@zeniai/web-cockpit-ui 1.15.29-dev → 1.15.29-qa

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 (219) hide show
  1. package/dist/assets/{ACHDetailsPage-D0jUmxS6-DI0CExu1.js → ACHDetailsPage-D0jUmxS6-BsyksSdq.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DQyvDXPN-ukOMU-RT.js → AIPerformancePage-DQyvDXPN-BhEY3MME.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-CQNGh3_A-ZcjlM8t2.js → AccountInfoPage-CQNGh3_A-8CGo7zl4.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B7DASXbm-BefZrlih.js → AccountInfoPageContent-B7DASXbm-CfgZBo7w.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Cr7_xUUY-Bk3CNMu-.js → AccountLockedInfoModal-Cr7_xUUY-BunT5t6u.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CrmjKiV7-Cv1Tfaeu.js → AccountReconDetailsDrawerPage-CrmjKiV7-CCewa5Cq.js} +1 -1
  7. package/dist/assets/{AccountRow-C3tJgM2h-CpbgtnSJ.js → AccountRow-C3tJgM2h-D6bVgxu0.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DhZiDNjz-rI4AiDYZ.js → AccountsPromoCardStack-DhZiDNjz-CUXP-w9w.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-D0veIubx-2oArova3.js → AddAddressForCardDrawer-D0veIubx-DE4ZTuXm.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DC8BGIUj-BKDs0XXJ.js → AddToWalletPage-DC8BGIUj-C43rBeCR.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-tUsuhbO0-x1wC9HEj.js → AgingReportsPage-tUsuhbO0-bnYXqPGM.js} +1 -1
  12. package/dist/assets/{AllUserItems-CscMl1JD-C_ccJ4Oy.js → AllUserItems-CscMl1JD-C7e2pIGq.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-CjpIU0Dh-DkRRiTCn.js → ApAgingDetailPage-CjpIU0Dh-DVxjWGcS.js} +1 -1
  14. package/dist/assets/{AppBasePage-DMwbBUJi-Cr6HTrVh.js → AppBasePage-DMwbBUJi-CwfgOYvf.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-CUw-1lGW-BBjh8fWe.js → AppDrawerContent-CUw-1lGW-Bl_56_R0.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DEySZg2e-DvCAs_N3.js → ApprovalRulesSettingsPage-DEySZg2e-vnOjmRfC.js} +1 -1
  17. package/dist/assets/{ArAgingChart-B99-xh0r-CShFZ1sO.js → ArAgingChart-B99-xh0r-CE8d9vMX.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BMs-sIjj-De_5HPMl.js → ArAgingDetailPage-BMs-sIjj-BlvHfa9N.js} +1 -1
  19. package/dist/assets/{AttachmentView-D8FFMCan-Bx8SM48F.js → AttachmentView-D8FFMCan-HliG1O2K.js} +1 -1
  20. package/dist/assets/{BankAccountSection-DwcbHNr4-DXV-hFK5.js → BankAccountSection-DwcbHNr4-BzUR7jwr.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CKlrNRtW-Dk0QQgmR.js → BankAccountWarningSection-CKlrNRtW-BYb315Ci.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-CnQX_eIy-B636S2v9.js → BankConnectionsSettingsPage-CnQX_eIy-HH3R7Ajn.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DoiN5bdp-QEVu_Fw8.js → BillDetailPage-DoiN5bdp-DbLCl74c.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-C9rO8GVf-C5mUyabS.js → BillPayApprovalRuleDetailPage-C9rO8GVf-B2zmu5XN.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DUoGmtQA-Df24zHhP.js → BillPayApprovalRulesPage-DUoGmtQA--vbDuy75.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-pb2Uoote-CfGc45oI.js → BillPayPromoPage-pb2Uoote-B5BN33a7.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-CCJ-y0-e-vj3UvmhL.js → BillPaySetUpPage-CCJ-y0-e-DCM3LQPY.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BtZx7XsQ-DqKnlJDW.js → BillingSettingsPage-BtZx7XsQ-C47DMEKk.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-ihLtPXjK-MCDf88-k.js → BillsBulkReviewDrawerPage-ihLtPXjK-ypmC5555.js} +1 -1
  30. package/dist/assets/{BoxItem-CggSwHNx-DTdeZgcp.js → BoxItem-CggSwHNx-XFR7cXyR.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-B5N2bKw0-BATAN3Fe.js → BusinessVerificationPage-B5N2bKw0-_SqX-bfV.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CzY1q13C-MnBX8zlt.js → CardNumberSubText-CzY1q13C-CizrzI0W.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BfbarB85-DbIy7v5_.js → CashbackDetailPage-BfbarB85-BdOeoCBo.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-ZbiEFEmP-DkldS52E.js → ChargeCardDetailPage-ZbiEFEmP-hQXgQLFI.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-TZjLs-P6-jDKL4UGC.js → ChargeCardListPage-TZjLs-P6-eI9Hf6Ml.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-8xOxHHdR-CbA4UAJN.js → ChargeCardListTable-8xOxHHdR-CR-3V18C.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-C59HJbX_-DSN6B2YJ.js → ChargeCardPaymentHistoryPage-C59HJbX_-3d2oett1.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-BStN0hwL-CcQVPDda.js → ChargeCardPromoPage-BStN0hwL-D9LQIDC6.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-BV9CZbZA-jaoX3c_D.js → ChargeCardSetupPage-BV9CZbZA-BPZP5yda.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-BM0-VzSs-VRFfREaU.js → ChargeCardStatementsPage-BM0-VzSs-mRSCcWqp.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-Ck_FJENk-D6N1pJ8d.js → CheckDepositDrawerPage-Ck_FJENk-hl5iVjGB.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-Bp12uWDe-2QtZhAQ4.js → CollapsableReportTable-Bp12uWDe-DCcqYieC.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-BpXbh4hd-B1pobiqV.js → CompanyOfficerDetailsSection-BpXbh4hd-UFoGVIgI.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-DdLCLtke-DeiUHnOs.js → CompanyPassportCard-DdLCLtke-BGOpz-dk.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-C_YEVe_6-DIOl60Ev.js → CompanyPassportPage-C_YEVe_6-BiGPLpzo.js} +1 -1
  46. package/dist/assets/{CompleteProfile-IidaBize-xGzDlV_8.js → CompleteProfile-IidaBize-b749vlPR.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-BBQSP4O0-MpV_vNzT.js → ConfettiBurst-BBQSP4O0-BqtJoXRE.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DF6OOn_R.js → ConstrainedInnerElement-BeIpAPjB-B9GW0-ZB.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DRIcvWIi-BQvkqlYA.js → CreateOrEditVendorPage-DRIcvWIi-CogPKExQ.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CP16DSkY-IwkiXaEV.js → CreditCardPaymentDrawerPage-CP16DSkY-DBQVPHsA.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-Dh8_yxO9-COrLBUNn.js → CurrencySelectField-Dh8_yxO9-DgfCVwca.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-CruwsOaY-BXS0eWp7.js → CustomerOnboardingActivationPage-CruwsOaY-bMYxmKcT.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-s1UpiNNV-I1MjTXGI.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D5vI0fK5-8RtejMqZ.js → CustomerOnboardingDetailPageSkeleton-D5vI0fK5-CeoPYW8S.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CeP1FYaR-BRWUwLIJ.js → CustomerOnboardingNoStepsPage-CeP1FYaR-CyeUt-4y.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-POOYVKHb-liAi5v-r.js → CustomerOnboardingPage-POOYVKHb-C2HlGYiA.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CsGY-9DW-DPpUnCq_.js → CustomerOnboardingProductSuitePage-CsGY-9DW-DSONUNKZ.js} +1 -1
  58. package/dist/assets/{Dashboard-DVGSm94S-CMlVQ1ZN.js → Dashboard-DVGSm94S-ek6XXFNQ.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-BTH4sqly-ByEpuMCT.js → DashboardReportPage-BTH4sqly-TVndyRux.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-P4dMLhdR-2wFPpcaC.js → DashboardSidebarBackgroundAnimation-P4dMLhdR-BWSiAIFD.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-CdGb-mdn-Dw1qtycC.js → DepositAccTransactionItem-CdGb-mdn-cQFddvm2.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionListPage-D_4GDpPX-C_mh40lO.js → DepositAccTransactionListPage-D_4GDpPX-na9ZYz4u.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-CyR8VR17-BP00VxXE.js → DomesticWireDetailsPage-CyR8VR17-DugxqkzP.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-XjCXyoWD-Bm1X3iZG.js → DownloadOverlay-XjCXyoWD-DF9S8c0i.js} +1 -1
  65. package/dist/assets/{DrawerPage-BrFA4rZ6-aasrPA1W.js → DrawerPage-BrFA4rZ6-UJWihtY9.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-C7oQnEDx-yTYT60dT.js → EditPeoplePage-C7oQnEDx-BCrgtoBd.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-BKCA_tOp-Pr7pYlV3.js → EditReimbursementDetailPage-BKCA_tOp-Dqrmnfhn.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-DfRYXWR2-CnKeibYv.js → EntityDetailPage-DfRYXWR2-B1hhfTXR.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-jiCl0IQB-IzBxXNSj.js → EntitySummarySection-jiCl0IQB-W-pLI3jz.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-D5FqhZ4C-DlHKncfS.js → ExpenseAutomationOverviewPage-D5FqhZ4C-0g3pkGW7.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-BxePbH-d-BFQdSZ2G.js → ExpenseAutomationPage-BxePbH-d-vBewGYnV.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-Ce1ICmZX-DpNy83UQ.js → ExpressPayPage-Ce1ICmZX-CRiREa0_.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-BPy4OV1_-CtEoQSwh.js → FeaturePreviewPage-BPy4OV1_-DF2KgXAr.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-Din7sNsE-DZ-lAocX.js → FollowStepsSection-Din7sNsE-Bka2bXBE.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-DdBS6gtg-DMCbQGeD.js → GlobalReviewListPage-DdBS6gtg-Da3bbg93.js} +1 -1
  76. package/dist/assets/{InformationCardStack-D2m2hpoN-CgTMVL3x.js → InformationCardStack-D2m2hpoN-D_cEWCU-.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-CwPV_ZFA-cNT4O5VS.js → InsightsCardStack-CwPV_ZFA-BZGSOjt3.js} +1 -1
  78. package/dist/assets/{InsightsSection-C99GeNPc-DdumJc8q.js → InsightsSection-C99GeNPc-ZyHAgCre.js} +1 -1
  79. package/dist/assets/{IntegrationsSettingsPage-Cj3wec0l-B3o48im5.js → IntegrationsSettingsPage-Cj3wec0l-D_cXiP1p.js} +1 -1
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-BUMPAKcc-DHu68DCf.js → InternationalWireSwiftDetailsPage-BUMPAKcc-BGwcC4Fv.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-sMa3CFzS-C1hB1KbH.js → InternationalWireVerificationPage-sMa3CFzS-BgO_L4E_.js} +1 -1
  82. package/dist/assets/{InviteFormPage-BllyKSzh-DgIr8C1D.js → InviteFormPage-BllyKSzh-CbPDkxQX.js} +1 -1
  83. package/dist/assets/{InvitePageListView-C3RyUNhD-DT7ypg0Y.js → InvitePageListView-C3RyUNhD-DTm4mduT.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-CKyzJq5O-CTTGoWvH.js → InvitePeoplePage-CKyzJq5O-D03raYQC.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-Cy_eY3C3-BvOhggtx.js → InvoiceUploadSection-Cy_eY3C3-BDj5n3WW.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-JGrU6BE3-Bzst3S02.js → IssueChargeCardPage-JGrU6BE3-BIhGV4kp.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-BI2stF8S-C5RJ9xTq.js → LabeledAddressValue-BI2stF8S-CaJDqmpl.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-BeN4saF8-Dh6otOvG.js → LabeledAddressValueField-BeN4saF8-cvVvhiNT.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-1cRVmzfC-aaZUiMVX.js → LabeledControlledCheckBoxField-1cRVmzfC-Con0KtwH.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-Dq1kA0bH-CINWTh7q.js → LabeledCountryMultiSelectField-Dq1kA0bH-oPhoIJP3.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-CA4tIjc4-pHS5FOKT.js → LabeledCreatableSingleSelectField-CA4tIjc4-X_2W3wq_.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-BwDcnGXz-CVNmYnjT.js → LabeledDocumentField-BwDcnGXz-DSgbEu-e.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-BiX_zDWp-rtvF0WL7.js → LabeledDropDownFormattedTextField-BiX_zDWp-CIPHFmOc.js} +1 -1
  94. package/dist/assets/{LabeledText-DBGBNWrC-Bz-BEuAu.js → LabeledText-DBGBNWrC-DTS4NY-4.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-c48OKP3k-TTTd1TKD.js → LabeledUserSingleSelectWithSubtitlesField-c48OKP3k-Y_LbewjK.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-BledLq8r-B5R8Kb64.js → LabeledZeniRolesDropDownField-BledLq8r-BaHojzPa.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-T3YbAuGo-Blo3eQug.js → LinkJETransactionPage-T3YbAuGo-DBebcBZG.js} +1 -1
  98. package/dist/assets/{LockCardPage-CCbSDbLg-CNyg49ub.js → LockCardPage-CCbSDbLg-ZpT_TeWc.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-Dcu_nflD-jwxLB_6o.js → LowBalancePopup-Dcu_nflD-D0ffoSvY.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-DqxFWlcN-Cr3KMl9z.js → MagicLinkACHDetailsPage-DqxFWlcN-B9JCI0X6.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-Ci1FYKWc-DPej34Er.js → MagicLinkDomesticWireDetailsPage-Ci1FYKWc-DvcIGyVo.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DjVTnPdg-C7wE4yBl.js → MagicLinkInternationalWireDetailsPage-DjVTnPdg-DYWtS9ON.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-Cj9eBkUy-LBOEVLww.js → MagicLinkSuccessPage-Cj9eBkUy-B-MUloz8.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DYgXcZiu-CC2yOIm_.js → MagicLinkTitleSection-DYgXcZiu-oQ6QmgCO.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-NHD_RPvO-wAGrbezn.js → MailingDetailsSection-NHD_RPvO-C9yYvlKS.js} +1 -1
  106. package/dist/assets/{MyBankConnectionsSettingsPage-CA6Wlg9P-TP5mxlEd.js → MyBankConnectionsSettingsPage-CA6Wlg9P-sBjfoTFh.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-vuCK_pay-CNz5Jstw.js → MyPendingActivationChargeCardListPage-vuCK_pay-seLRkwA2.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-ivKa4qXq-C9jiGRCh.js → MyProfileSettingsPage-ivKa4qXq-DtHk96aF.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-CaEVqLYu-Bn-Q2SAg.js → NavBarWithPicker-CaEVqLYu-Mt6iac90.js} +1 -1
  110. package/dist/assets/{NavigationArrow-CE75i93Q-if294S5X.js → NavigationArrow-CE75i93Q-lI7yTcn_.js} +1 -1
  111. package/dist/assets/{NavigationDots-DSmdsJan-DqJUZkJm.js → NavigationDots-DSmdsJan-D7Dn9zqB.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-D1t1Omz1-D4yLnbSk.js → NewGlobalMerchantPage-D1t1Omz1-033pVM92.js} +1 -1
  113. package/dist/assets/{NoDataChart-DWJgpsRV-DeKQSYlF.js → NoDataChart-DWJgpsRV-GxCWUXak.js} +1 -1
  114. package/dist/assets/{NoDataTable-CfVHlNP8-B8R0ZBzf.js → NoDataTable-CfVHlNP8-Cjys4hCI.js} +1 -1
  115. package/dist/assets/{NotFoundPage-BRQ7JAuQ-BzclJDLa.js → NotFoundPage-BRQ7JAuQ-_Kq4eHg7.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-BwEA5Wca-BtO-6P8v.js → NotificationSettingsPage-BwEA5Wca-BAxN5Vtu.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-CKAbHHpg-Cwkh8zuv.js → NotificationsListConfig-CKAbHHpg-Ba-UUMpa.js} +1 -1
  118. package/dist/assets/{NotificationsPage-CEh-UBpl-CuvjGabS.js → NotificationsPage-CEh-UBpl-DprBm1Gh.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-CTee-X2c-RoYLqL_B.js → OpExByVendorPage-CTee-X2c-BLCgbLI6.js} +1 -1
  120. package/dist/assets/{OverlayContainerPage-D4QU0p4o-DyYs9r74.js → OverlayContainerPage-D4QU0p4o-fzlmX50I.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-Bx5J8Jkw-CtXQ0GtS.js → PandLWithForecastPage-Bx5J8Jkw-DGqUboJd.js} +1 -1
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-vh9LcTSB-CdrJ4ZnV.js → PaymentAccountSetupBillingAddressSection-vh9LcTSB-B2K7pIhZ.js} +1 -1
  123. package/dist/assets/{PeoplePage-B7dwoi8R-B0GXOF92.js → PeoplePage-B7dwoi8R-Cc3PgS1X.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-CpPUyzF7-CbseGDls.js → ProductsCarousel-CpPUyzF7-MkqtUAeu.js} +1 -1
  125. package/dist/assets/{PromoBaseCards-Dl_042jf-Bxd3YCV0.js → PromoBaseCards-Dl_042jf-gFv3X1j8.js} +1 -1
  126. package/dist/assets/{QBOConnectionDialog-CuGzMWxh-CUYgOSB_.js → QBOConnectionDialog-CuGzMWxh-C314aSf5.js} +1 -1
  127. package/dist/assets/{QBOSetupSection-PANAGPOA-BMX2y2pY.js → QBOSetupSection-PANAGPOA-CNiEupWo.js} +1 -1
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BN9aWFrw-C2lN68IA.js → ReimbursementApprovalRuleDetailPage-BN9aWFrw-7DCi0li7.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRulesPage-C8EnDVZP-CsGEUBPm.js → ReimbursementApprovalRulesPage-C8EnDVZP-rOVUZi1n.js} +1 -1
  130. package/dist/assets/{ReimbursementDetailPage-DsD9fJEP-Dv7tP_q3.js → ReimbursementDetailPage-DsD9fJEP-CfnkzNmN.js} +1 -1
  131. package/dist/assets/{ReimbursementPromoPage-C6ZhcnHL-CP40VdLA.js → ReimbursementPromoPage-C6ZhcnHL-G41Su_DX.js} +1 -1
  132. package/dist/assets/{ReimbursementSetUpPage-Bpf71REk-DXOdP7tH.js → ReimbursementSetUpPage-Bpf71REk-CbPDM4Br.js} +1 -1
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DBzyyzc5-BwLsg3si.js → ReimbursementsBulkReviewDrawerPage-DBzyyzc5-CbZb1Ll3.js} +1 -1
  134. package/dist/assets/{ReloadCard-D8vHHU5l-D9Zcmqfy.js → ReloadCard-D8vHHU5l-DQ03UepM.js} +1 -1
  135. package/dist/assets/{ReportTableViewSelector-BGUS_EOK-BgEPLzeb.js → ReportTableViewSelector-BGUS_EOK-BBwBgVZu.js} +1 -1
  136. package/dist/assets/{ReportsPage-7AfDaHtI-Cn6WVWVc.js → ReportsPage-7AfDaHtI-TwXiOtk9.js} +1 -1
  137. package/dist/assets/{RevenueChart-BwmL3D54-6Q-FXG5L.js → RevenueChart-BwmL3D54-622TMw2i.js} +1 -1
  138. package/dist/assets/{ReviewDetailsPage-k4QAybX2-CZrfCcmm.js → ReviewDetailsPage-k4QAybX2-RBQhjfai.js} +1 -1
  139. package/dist/assets/{ReviewOverlay-DueknjXC-BR1KXLF3.js → ReviewOverlay-DueknjXC-B12qd42l.js} +1 -1
  140. package/dist/assets/{RoleWithToolTip-JIflStMs-BP1BkhJL.js → RoleWithToolTip-JIflStMs-B6__Ogz6.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DKD4n8OH-H56JJlor.js → ScheduleDetailsFixedAssetsPage-DKD4n8OH-CsnuQ1cV.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsPage-B3c9vFiq--f9OssWG.js → ScheduleDetailsPage-B3c9vFiq-lIq_po0z.js} +1 -1
  143. package/dist/assets/{ScheduleSequenceTable-dniltDqh-C61tZgFj.js → ScheduleSequenceTable-dniltDqh-prEj6nJM.js} +1 -1
  144. package/dist/assets/{ScreenRoutes-B6abahal.js → ScreenRoutes-DmS9mnp_.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-dQy1ylAS-DgAYqShu.js → SetUpAccountSection-dQy1ylAS-DxTSmKH2.js} +1 -1
  146. package/dist/assets/{SignIn-CfgXHpxt-Dy-dAAjO.js → SignIn-CfgXHpxt-Ux-9VU3Q.js} +1 -1
  147. package/dist/assets/{SignInScreen-AKxDKkfa.js → SignInScreen-9QoqsnNl.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-D7buHVht-BCYFnNle.js → SpendManagementListViewPage-D7buHVht-5VhObY49.js} +3 -3
  149. package/dist/assets/{SpendManagementPerTabPage-DdFSZjQ0-D9EmWQSU.js → SpendManagementPerTabPage-DdFSZjQ0-DRMhBpB_.js} +1 -1
  150. package/dist/assets/{SpendManagementSection-CKaS7I-j-BvawxFnE.js → SpendManagementSection-CKaS7I-j-I0086kUa.js} +1 -1
  151. package/dist/assets/{StatementItem-D6RxD4P2-CMxwr4rG.js → StatementItem-D6RxD4P2-DV_o8MKk.js} +1 -1
  152. package/dist/assets/{StatementsPage-BVDChKXj-BeaWjdy-.js → StatementsPage-BVDChKXj-BUU1cgO_.js} +1 -1
  153. package/dist/assets/{StatusSwitcher-B0FtlfFf-CoiY0okw.js → StatusSwitcher-B0FtlfFf-D4mXIaDE.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-DmV2fMPv-DS0cimVQ.js → SubTabSwitcher-DmV2fMPv-DDcdxW1V.js} +1 -1
  155. package/dist/assets/{SummaryCard-DVks1oex-Cb7FYo-V.js → SummaryCard-DVks1oex-M8-I8cNs.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-DFzE-ZKA-CiF6HWS_.js → TaskManagementPage-DFzE-ZKA-BpjxUvFO.js} +1 -1
  157. package/dist/assets/{TimeRangeSwitcher-DTNA8U_P-b0TgL39D.js → TimeRangeSwitcher-DTNA8U_P-vCMNkMQY.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcher-BxrcpeVc-B20EMzBs.js → TimeframeSwitcher-BxrcpeVc-B6217ekz.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-Bey7Ur6y-Bg7nqQR7.js → TimeframeSwitcherWithToggle-Bey7Ur6y-C7DSjGao.js} +1 -1
  160. package/dist/assets/{TopExCard-DusKBxd3-DKuTfXVw.js → TopExCard-DusKBxd3-BASMRY9t.js} +1 -1
  161. package/dist/assets/{TopExDetailPage-CGmklvDK-D7xmqV9n.js → TopExDetailPage-CGmklvDK-DLx-qUkZ.js} +1 -1
  162. package/dist/assets/{TransactionActivityLogPage-JYq6KI76-CCoo9rRF.js → TransactionActivityLogPage-JYq6KI76-CL71JDwh.js} +1 -1
  163. package/dist/assets/{TransactionDetailPage-BXt0iZ7l-0erqz-tE.js → TransactionDetailPage-BXt0iZ7l-BNiwNsQy.js} +1 -1
  164. package/dist/assets/{TransactionList-DP661oJz-C07CF0TZ.js → TransactionList-DP661oJz-BFg5qxvf.js} +1 -1
  165. package/dist/assets/{TransactionListBig-WJlzcWYP-BBVrTLwH.js → TransactionListBig-WJlzcWYP-CCdcKryl.js} +1 -1
  166. package/dist/assets/{TransactionListPage-D0-fRME1-v5v-Rxz3.js → TransactionListPage-D0-fRME1-5tnjhioB.js} +1 -1
  167. package/dist/assets/{TransactionVendorDetailPage-jvafc4cV-COQwxNKZ.js → TransactionVendorDetailPage-jvafc4cV-CXkzsZol.js} +1 -1
  168. package/dist/assets/{TransferDrawerPage-Djud_Goy-BCREr1hn.js → TransferDrawerPage-Djud_Goy-BvhVsqjd.js} +1 -1
  169. package/dist/assets/{TreasuryOverviewPage-BxuNNp2Z-Dh2mMp9a.js → TreasuryOverviewPage-BxuNNp2Z-Bg2AnpcA.js} +1 -1
  170. package/dist/assets/{TreasuryPromoPage-CYRA-PZW-D99_4xCb.js → TreasuryPromoPage-CYRA-PZW-Dwp-Kcgx.js} +1 -1
  171. package/dist/assets/{TreasuryStatementsPage-BDD7oQaj-BJB4NR3A.js → TreasuryStatementsPage-BDD7oQaj-5XBglvwW.js} +1 -1
  172. package/dist/assets/{TreasuryTaxLetterPage-BdEhgdSA-DpQnIbLk.js → TreasuryTaxLetterPage-BdEhgdSA-Bgh6AcWi.js} +1 -1
  173. package/dist/assets/{TrendChart-CMXEv68i-8X5R0L8Y.js → TrendChart-CMXEv68i-DC000tUk.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-zXEGbsVb-DbAtKUuU.js → TrendWithTransactions-zXEGbsVb-DgsT5KlM.js} +1 -1
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BPDK7owI-nmj499q4.js → UncategorizedAccountsMappingPage-BPDK7owI-DX8Fbg2v.js} +1 -1
  176. package/dist/assets/{UnitIntegrationPage-D_F0oMUu-BY90ymwk.js → UnitIntegrationPage-D_F0oMUu-kwCn2LZu.js} +1 -1
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-DFQFVIWx-BIsDVDCj.js → UploadAdditionalDocumentOverlay-DFQFVIWx-DCm6gjHR.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-DsUXjTAV-DuANajHh.js → Vendor2FAPopup-DsUXjTAV-B3GXIcPW.js} +1 -1
  179. package/dist/assets/{VendorACHDetailsPage-D_yVSMEu-BW4qL4rX.js → VendorACHDetailsPage-D_yVSMEu-CuiHjR4v.js} +1 -1
  180. package/dist/assets/{VendorDetailPage-v53y8sON-BZNauhkC.js → VendorDetailPage-v53y8sON-BoOuCnR4.js} +1 -1
  181. package/dist/assets/{VendorDomesticWireDetailsPage-zhf4AerL-zVc3mcS3.js → VendorDomesticWireDetailsPage-zhf4AerL-BjrgFDGE.js} +1 -1
  182. package/dist/assets/{VendorFiling1099EditablePage-Dor-pZOp-CKSTbCLy.js → VendorFiling1099EditablePage-Dor-pZOp-r3SNn4rM.js} +1 -1
  183. package/dist/assets/{VendorFirstReviewPage-Cn7WNLEm-GPg5vXX_.js → VendorFirstReviewPage-Cn7WNLEm-EZFrIVYn.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage-dNFkO-SJ-BvEPjWwu.js → VendorInternationalWireDetailsPage-dNFkO-SJ-Bgkn6ewA.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-B6Tuhksp-DJW8kABC.js → VendorInternationalWireSwiftDetailsPage-B6Tuhksp-BF5mvkEQ.js} +1 -1
  186. package/dist/assets/{VendorsAccountsSection-RJt3aILM-3q5Ht3Hr.js → VendorsAccountsSection-RJt3aILM-DJgMK8t5.js} +1 -1
  187. package/dist/assets/{VerifyDevice-mDoeg6Dk-DaUHWhRY.js → VerifyDevice-mDoeg6Dk-RhtaLyWM.js} +1 -1
  188. package/dist/assets/{VideoPlayer-BcrYqHHj-B50XdHck.js → VideoPlayer-BcrYqHHj-DfgUgeFg.js} +1 -1
  189. package/dist/assets/{VideoPopup-DdpEDBAh-B6X5aY1O.js → VideoPopup-DdpEDBAh-C7IpQ23i.js} +1 -1
  190. package/dist/assets/{WarningsDrawerPage-BcYmTO5U-DedTWrjK.js → WarningsDrawerPage-BcYmTO5U-CyrcjeVv.js} +1 -1
  191. package/dist/assets/{ZeniAccountDetailPage-DVD5D6lb-CpgnYk_i.js → ZeniAccountDetailPage-DVD5D6lb-utVeckgq.js} +1 -1
  192. package/dist/assets/{ZeniAccountListViewPage-BwMBqn8d-CGHx4BTS.js → ZeniAccountListViewPage-BwMBqn8d-Ctj-VdUr.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-Cgnw6bfi-DfdKbw3x.js → ZeniAccountNavBarPieces-Cgnw6bfi-DDuNBemh.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-huShnIqL-D45AN6o9.js → ZeniAccountPromoPage-huShnIqL-DVajoJsH.js} +1 -1
  195. package/dist/assets/{ZeniAccountSetupPage-DN9UOt3e-DImQP2Ot.js → ZeniAccountSetupPage-DN9UOt3e-Bmfndrcm.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-BgPtS8Cn-B89iVGfl.js → ZeniCopyright-BgPtS8Cn-Dz6vwF5E.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-BUw419PL-DswwFzaw.js → ZeniTransferAmountSlider-BUw419PL-Drg5KxV4.js} +1 -1
  198. package/dist/assets/{analyticsHelper-CSgs7aGq.js → analyticsHelper-B0HBcUOS.js} +1 -1
  199. package/dist/assets/{analyticsHelper-BuvUCPRb-ydDzfLDf.js → analyticsHelper-BuvUCPRb-Dhr-3cLH.js} +1 -1
  200. package/dist/assets/{chartTypes-CmkcIJwp-5YWcoKB3.js → chartTypes-CmkcIJwp-Dw0BFF7X.js} +1 -1
  201. package/dist/assets/{commonDimensions-4sQbZHS3-Cvcwq2mC.js → commonDimensions-4sQbZHS3-BWjtQwRH.js} +1 -1
  202. package/dist/assets/{commonTypes-xwvnsO_k-COIVAOvG.js → commonTypes-xwvnsO_k-AWE0IUQl.js} +1 -1
  203. package/dist/assets/{detailCommon-B2fQpJgd-3GpCIfF1.js → detailCommon-B2fQpJgd-DTs7y59U.js} +1 -1
  204. package/dist/assets/{downloadPdf-OR-QEskO-ZhLzJ4Dx.js → downloadPdf-OR-QEskO-C1DvIKXY.js} +1 -1
  205. package/dist/assets/{helper-nrbLfb1z-BHxhawIw.js → helper-nrbLfb1z-DIeRJT9t.js} +1 -1
  206. package/dist/assets/{index-ruFrDgOE.js → index-V6jIIx9c.js} +5 -5
  207. package/dist/assets/{mapLoadingInProgressToTreeNode-saf-eikX-DyjzOgm4.js → mapLoadingInProgressToTreeNode-saf-eikX-_6D9Xq4-.js} +1 -1
  208. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DViahlE6-gYrXGrsn.js → mapSectionWithAcOnlyToTreeNode-DViahlE6-CHFSmBY0.js} +1 -1
  209. package/dist/assets/{mapSpacerToTreeNode-C1XdqapG-u58Wq9QD.js → mapSpacerToTreeNode-C1XdqapG-Z0VmGG-z.js} +1 -1
  210. package/dist/assets/{mapTimeframeBalancesToTreeNode-BgzCaFB8-BP6YYsRr.js → mapTimeframeBalancesToTreeNode-BgzCaFB8-gUJ1JSVo.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cxi3Mx1s-CtYmEitE.js → mapTimeframeBalancesToTreeNode-Cxi3Mx1s-BerM6DYj.js} +1 -1
  212. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DKSP4IMH-DEutvLdq.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DKSP4IMH-CnRCpe-k.js} +1 -1
  213. package/dist/assets/{toCOABalancesWithID-C0EdFFOl-C4uMvfMM.js → toCOABalancesWithID-C0EdFFOl-Wbx2xnxl.js} +1 -1
  214. package/dist/assets/{toChartData-CWuGepY4-zwBpsjjj.js → toChartData-CWuGepY4-BvWY1wy9.js} +1 -1
  215. package/dist/assets/{uploadAttachment-Drk1oIZw-EvqVPGDV.js → uploadAttachment-Drk1oIZw-BPDTalPC.js} +1 -1
  216. package/dist/assets/{uploadReceipts-Dge0cNF1-B8hOzDLM.js → uploadReceipts-Dge0cNF1-BQWfyg0r.js} +1 -1
  217. package/dist/index.html +1 -1
  218. package/package.json +1 -1
  219. package/dist/assets/CustomerOnboardingContainerPage-s1UpiNNV-ntNpCB3e.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as F,J as N,F as j,V as t,bD as G,m as V,ab as m,o,y as r,am as H,aP as P,bU as k,cr as q,cs as J,ct as O,d1 as K,u as l,ba as Q,H as T,b9 as X,p as z,d0 as Y,bu as Z,b as ee}from"./index-ruFrDgOE.js";import{n as i}from"./mui-CcAbIvqz.js";import{a as te}from"./sentry-C9gjpXHu.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./zeni-epic-state-yTwK6eAd.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="2f5358b6-727d-460a-8687-8b198e2b264c",e._sentryDebugIdIdentifier="sentry-dbid-2f5358b6-727d-460a-8687-8b198e2b264c")}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)},M={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:x=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[g,w]=te.useState(!1),n=N(),{range:h}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},U={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(D,{}),t.jsx(se,{}),t.jsx(D,{})]}),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(k,{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(k,{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,E)=>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(R,{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(R,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},d.userId))]},E))})}),g?t.jsx(q,{titleComponent:t.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(J,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
1
+ import{d as F,J as N,F as j,V as t,bD as G,m as V,ab as m,o,y as r,am as H,aP as P,bU as k,cr as q,cs as J,ct as O,d1 as K,u as l,ba as Q,H as T,b9 as X,p as z,d0 as Y,bu as Z,b as ee}from"./index-V6jIIx9c.js";import{n as i}from"./mui-CcAbIvqz.js";import{a as te}from"./sentry-C9gjpXHu.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./zeni-epic-state-yTwK6eAd.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="2f5358b6-727d-460a-8687-8b198e2b264c",e._sentryDebugIdIdentifier="sentry-dbid-2f5358b6-727d-460a-8687-8b198e2b264c")}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)},M={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:x=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[g,w]=te.useState(!1),n=N(),{range:h}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},U={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(D,{}),t.jsx(se,{}),t.jsx(D,{})]}),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(k,{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(k,{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,E)=>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(R,{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(R,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},d.userId))]},E))})}),g?t.jsx(q,{titleComponent:t.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(J,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):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,a8 as Rt,J as Pt,d as Bt,ce as Nt,y as m,F as et,gl as Lt,gn as _t,go as Ot,V as t,cr as Ae,cs as Me,ct as Re,bD as Pe,ab as y,bp as Wt,dw as Et,gp as Ft,gA as Be,o as a,gq as Ne,fm as b,gt as w,fp as x,aP as Le,fl as _e,b as V,gv as Oe,aS as Kt,ap as Ut,gw as Vt,gx as re,by as Ht,gy as Gt,x as Yt,H as qt,a as Jt,am as tt,ba as it,p as H,an as Zt,bW as Qt,aj as Xt,gS as ei,gO as ti,u as c,cj as ii,c$ as ai}from"./index-ruFrDgOE.js";import{a as p}from"./sentry-C9gjpXHu.js";import{n as r}from"./mui-CcAbIvqz.js";import{a as ri}from"./liveblocks-BojMpfZr.js";import{bL as oi,bP as ni,FT as li}from"./zeni-epic-state-yTwK6eAd.js";import si from"./InvoiceUploadSection-Cy_eY3C3-BvOhggtx.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-BfdQ3W3i.js";import"./lottie-C8ug7xYl.js";import"./recharts-CH4lD6YZ.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./AttachmentView-D8FFMCan-Bx8SM48F.js";import"./uploadReceipts-Dge0cNF1-B8hOzDLM.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]="29a91ede-7ded-40a7-9cd1-a8b57e6d32ee",e._sentryDebugIdIdentifier="sentry-dbid-29a91ede-7ded-40a7-9cd1-a8b57e6d32ee")}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}`,we=p.useRef({}),xe=l=>{const n=we.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);xe(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:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=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:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({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(Ot)),[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),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{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=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{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(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{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:F})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ki,{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(Fi,{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:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{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 xe(`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:x({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(w,{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:x({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(w,{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:x({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(w,{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:x({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(w,{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:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{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:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{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(Ei,{windowSize:o,children:[t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.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(Wi,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.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||F===!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(Kt,{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:wt,threadUnResolve:xt},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,a8 as Rt,J as Pt,d as Bt,ce as Nt,y as m,F as et,gl as Lt,gn as _t,go as Ot,V as t,cr as Ae,cs as Me,ct as Re,bD as Pe,ab as y,bp as Wt,dw as Et,gp as Ft,gA as Be,o as a,gq as Ne,fm as b,gt as w,fp as x,aP as Le,fl as _e,b as V,gv as Oe,aS as Kt,ap as Ut,gw as Vt,gx as re,by as Ht,gy as Gt,x as Yt,H as qt,a as Jt,am as tt,ba as it,p as H,an as Zt,bW as Qt,aj as Xt,gS as ei,gO as ti,u as c,cj as ii,c$ as ai}from"./index-V6jIIx9c.js";import{a as p}from"./sentry-C9gjpXHu.js";import{n as r}from"./mui-CcAbIvqz.js";import{a as ri}from"./liveblocks-BojMpfZr.js";import{bL as oi,bP as ni,FT as li}from"./zeni-epic-state-yTwK6eAd.js";import si from"./InvoiceUploadSection-Cy_eY3C3-BDj5n3WW.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-BfdQ3W3i.js";import"./lottie-C8ug7xYl.js";import"./recharts-CH4lD6YZ.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./AttachmentView-D8FFMCan-HliG1O2K.js";import"./uploadReceipts-Dge0cNF1-BQWfyg0r.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]="29a91ede-7ded-40a7-9cd1-a8b57e6d32ee",e._sentryDebugIdIdentifier="sentry-dbid-29a91ede-7ded-40a7-9cd1-a8b57e6d32ee")}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}`,we=p.useRef({}),xe=l=>{const n=we.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);xe(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:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=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:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({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(Ot)),[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),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{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=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{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(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{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:F})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ki,{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(Fi,{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:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{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 xe(`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:x({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(w,{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:x({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(w,{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:x({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(w,{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:x({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(w,{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:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{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:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{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(Ei,{windowSize:o,children:[t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.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(Wi,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.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||F===!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(Kt,{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:wt,threadUnResolve:xt},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,aR as le,V as e,ab as a,fx as ae,bD as de,i as u,af as d,F,o as t,ar as ce,R as me,aU as V,an as pe,y as xe,p as z,cG as he,aV as ue,bb as ge,u as we}from"./index-ruFrDgOE.js";import{a as j}from"./sentry-C9gjpXHu.js";import{n as s}from"./mui-CcAbIvqz.js";import{FS as je,bT as be}from"./zeni-epic-state-yTwK6eAd.js";import{C as fe}from"./VideoPopup-DdpEDBAh-B6X5aY1O.js";import{M as v}from"./usp-line-BBd1wKwW-DebSG3AQ.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./VideoPlayer-BcrYqHHj-B50XdHck.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]="077e489d-9f28-47b1-a3c0-c18829999b16",i._sentryDebugIdIdentifier="sentry-dbid-077e489d-9f28-47b1-a3c0-c18829999b16")}catch{}})();const E="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,aR as le,V as e,ab as a,fx as ae,bD as de,i as u,af as d,F,o as t,ar as ce,R as me,aU as V,an as pe,y as xe,p as z,cG as he,aV as ue,bb as ge,u as we}from"./index-V6jIIx9c.js";import{a as j}from"./sentry-C9gjpXHu.js";import{n as s}from"./mui-CcAbIvqz.js";import{FS as je,bT as be}from"./zeni-epic-state-yTwK6eAd.js";import{C as fe}from"./VideoPopup-DdpEDBAh-C7IpQ23i.js";import{M as v}from"./usp-line-BBd1wKwW-DebSG3AQ.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./VideoPlayer-BcrYqHHj-DfgUgeFg.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]="077e489d-9f28-47b1-a3c0-c18829999b16",i._sentryDebugIdIdentifier="sentry-dbid-077e489d-9f28-47b1-a3c0-c18829999b16")}catch{}})();const E="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 Ve,aR as N,a9 as qe,cH as Ge,F as Ie,aW as Ce,V as t,ff as Je,p as J,y as s,bD as Ze,m as Ke,ad as Ye,fy as ve,dR as Qe,fz as Xe,bx as et,dH as tt,aS as it,o as a,fB as nt,u as n,cj as ot,cL as at,ex as lt,fK as ke,fL as $e,gk as st,i as rt,ab as Pe,H as je,bN as dt,aj as ct,bu as ut}from"./index-ruFrDgOE.js";import{a as o}from"./sentry-C9gjpXHu.js";import{n as i}from"./mui-CcAbIvqz.js";import{bJ as mt}from"./zeni-epic-state-yTwK6eAd.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DFQFVIWx-BIsDVDCj.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="ffe809c8-0d3a-4a64-930d-6b95a0d6ea39",e._sentryDebugIdIdentifier="sentry-dbid-ffe809c8-0d3a-4a64-930d-6b95a0d6ea39")}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 je("standardSemiBold","largeSemiBold"),infoLabel:new je("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:A,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:K},trigger:Y}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(K,E),{localData:d,updateStatus:F,mileageStatus:b}=p,H=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Ie.getLocalizedStrings(),{reimbursement:ee}=X,[S,V]=o.useState(H),[te,U]=o.useState(!1);o.useEffect(()=>{x||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||U(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Q,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,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(jt,{children:[t.jsxs(At,{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(Vt,{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:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Tt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&H&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:I=>{I.stopPropagation(),V(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(It,{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 Ve,aR as N,a9 as qe,cH as Ge,F as Ie,aW as Ce,V as t,ff as Je,p as J,y as s,bD as Ze,m as Ke,ad as Ye,fy as ve,dR as Qe,fz as Xe,bx as et,dH as tt,aS as it,o as a,fB as nt,u as n,cj as ot,cL as at,ex as lt,fK as ke,fL as $e,gk as st,i as rt,ab as Pe,H as je,bN as dt,aj as ct,bu as ut}from"./index-V6jIIx9c.js";import{a as o}from"./sentry-C9gjpXHu.js";import{n as i}from"./mui-CcAbIvqz.js";import{bJ as mt}from"./zeni-epic-state-yTwK6eAd.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DFQFVIWx-DCm6gjHR.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="ffe809c8-0d3a-4a64-930d-6b95a0d6ea39",e._sentryDebugIdIdentifier="sentry-dbid-ffe809c8-0d3a-4a64-930d-6b95a0d6ea39")}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 je("standardSemiBold","largeSemiBold"),infoLabel:new je("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:A,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:K},trigger:Y}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(K,E),{localData:d,updateStatus:F,mileageStatus:b}=p,H=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Ie.getLocalizedStrings(),{reimbursement:ee}=X,[S,V]=o.useState(H),[te,U]=o.useState(!1);o.useEffect(()=>{x||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||U(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Q,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,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(jt,{children:[t.jsxs(At,{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(Vt,{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:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Tt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&H&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:I=>{I.stopPropagation(),V(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(It,{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 q,kd as K,aZ as W,F as Z}from"./index-ruFrDgOE.js";import{a as b}from"./sentry-C9gjpXHu.js";import{Gq as z}from"./zeni-epic-state-yTwK6eAd.js";import{u as G}from"./ReviewOverlay-DueknjXC-BR1KXLF3.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./mui-CcAbIvqz.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="6e3b8f63-5d5f-4979-8c56-3ce9ad17552d",e._sentryDebugIdIdentifier="sentry-dbid-6e3b8f63-5d5f-4979-8c56-3ce9ad17552d")}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:g,currentSubTab:y}=e,v=!1,[S,l]=b.useState(!1),[d,_]=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===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,x=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=X(x);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,z(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Y(p,x,D,h),T=e.fetchState==="Completed"&&x===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},N=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,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"}:{}}},O={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:[S?f.jsx(V,{titleComponent:f.jsx(q,{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(G,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&x===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=K(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:W("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},X=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)}},Y=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,S=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=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?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",S?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
1
+ import{V as f,cr as V,cs as M,ct as q,kd as K,aZ as W,F as Z}from"./index-V6jIIx9c.js";import{a as b}from"./sentry-C9gjpXHu.js";import{Gq as z}from"./zeni-epic-state-yTwK6eAd.js";import{u as G}from"./ReviewOverlay-DueknjXC-B12qd42l.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./mui-CcAbIvqz.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="6e3b8f63-5d5f-4979-8c56-3ce9ad17552d",e._sentryDebugIdIdentifier="sentry-dbid-6e3b8f63-5d5f-4979-8c56-3ce9ad17552d")}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:g,currentSubTab:y}=e,v=!1,[S,l]=b.useState(!1),[d,_]=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===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,x=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=X(x);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,z(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Y(p,x,D,h),T=e.fetchState==="Completed"&&x===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},N=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,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"}:{}}},O={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:[S?f.jsx(V,{titleComponent:f.jsx(q,{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(G,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&x===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=K(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:W("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},X=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)}},Y=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,S=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=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?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",S?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
@@ -1,4 +1,4 @@
1
- import{d as l,V as r,aO as a,b3 as x,F as m,ab as y,aT as h,bF as g,aj as f,o as c,b4 as b}from"./index-ruFrDgOE.js";import{n as d}from"./mui-CcAbIvqz.js";import{a as s}from"./sentry-C9gjpXHu.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]="4c556f1f-b1fd-4615-931a-c1819b88cc65",e._sentryDebugIdIdentifier="sentry-dbid-4c556f1f-b1fd-4615-931a-c1819b88cc65")}catch{}})();function w({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 j({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 u=d(h)`
1
+ import{d as l,V as r,aO as a,b3 as x,F as m,ab as y,aT as h,bF as g,aj as f,o as c,b4 as b}from"./index-V6jIIx9c.js";import{n as d}from"./mui-CcAbIvqz.js";import{a as s}from"./sentry-C9gjpXHu.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]="4c556f1f-b1fd-4615-931a-c1819b88cc65",e._sentryDebugIdIdentifier="sentry-dbid-4c556f1f-b1fd-4615-931a-c1819b88cc65")}catch{}})();function w({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 j({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 u=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(u,{children:r.jsx(j,{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(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(b,{children:({height:n,width:i})=>r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const p=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,ce as xe,a9 as ye,V as o,ap as _e,cf as te,ad as we,y as P,aS as $e,o as n,F as oe,cg as ve,ch as ke,ci as Ce,cj as je,ck as Ie,an as he,cl as Se,aj as Ne,aF as X,bF as Pe,u as f,aW as Fe,am as De,au as Oe}from"./index-ruFrDgOE.js";import{a as u,P as ue}from"./sentry-C9gjpXHu.js";import{n as d}from"./mui-CcAbIvqz.js";import{R as F,I as Ae}from"./CollapsableReportTable-Bp12uWDe-2QtZhAQ4.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]="76dab32c-bd2a-4317-a1cd-d0dcb96cec14",e._sentryDebugIdIdentifier="sentry-dbid-76dab32c-bd2a-4317-a1cd-d0dcb96cec14")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=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}),Te=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:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.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,ce as xe,a9 as ye,V as o,ap as _e,cf as te,ad as we,y as P,aS as $e,o as n,F as oe,cg as ve,ch as ke,ci as Ce,cj as je,ck as Ie,an as he,cl as Se,aj as Ne,aF as X,bF as Pe,u as f,aW as Fe,am as De,au as Oe}from"./index-V6jIIx9c.js";import{a as u,P as ue}from"./sentry-C9gjpXHu.js";import{n as d}from"./mui-CcAbIvqz.js";import{R as F,I as Ae}from"./CollapsableReportTable-Bp12uWDe-DCcqYieC.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]="76dab32c-bd2a-4317-a1cd-d0dcb96cec14",e._sentryDebugIdIdentifier="sentry-dbid-76dab32c-bd2a-4317-a1cd-d0dcb96cec14")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=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}),Te=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:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.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 ${n.sp3} 0 ${n.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,F as y,ax as ge,V as r,bP as _e,ab as P,bE as be,bD as Se,o as w,aU as we,m as ye,y as B,bQ as Ce,u as S,A,aF as K,O as xe,aW as Oe,at as Re,bM as Ae}from"./index-ruFrDgOE.js";import{a as L,P as X}from"./sentry-C9gjpXHu.js";import{n as _}from"./mui-CcAbIvqz.js";import{bg as Z,ET as Be,F0 as ve,F1 as $,F2 as Te,F3 as Le,F4 as Pe,F5 as Ie,F6 as ke,F7 as ee,F8 as te}from"./zeni-epic-state-yTwK6eAd.js";import{m as z,l as q}from"./analyticsHelper-BuvUCPRb-ydDzfLDf.js";import{x as Fe}from"./ReportTableViewSelector-BGUS_EOK-BgEPLzeb.js";import{a as se,p as Ne}from"./TimeRangeSwitcher-DTNA8U_P-b0TgL39D.js";import{M as Me}from"./TimeframeSwitcherWithToggle-Bey7Ur6y-Bg7nqQR7.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-XjCXyoWD-Bm1X3iZG.js";import{I as Ee,R as N,x as ne}from"./CollapsableReportTable-Bp12uWDe-2QtZhAQ4.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DViahlE6-gYrXGrsn.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BgzCaFB8-BP6YYsRr.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DKSP4IMH-DEutvLdq.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-saf-eikX-DyjzOgm4.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./TimeframeSwitcher-BxrcpeVc-B20EMzBs.js";import"./page-detail-CWX5S47F-Dtc_Xfll.js";import"./AccountRow-C3tJgM2h-CpbgtnSJ.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]="29190322-48d1-43f4-a8d6-cce027144395",e._sentryDebugIdIdentifier="sentry-dbid-29190322-48d1-43f4-a8d6-cce027144395")}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=N("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??N("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=N("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(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:N("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=N("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(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,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=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,F as y,ax as ge,V as r,bP as _e,ab as P,bE as be,bD as Se,o as w,aU as we,m as ye,y as B,bQ as Ce,u as S,A,aF as K,O as xe,aW as Oe,at as Re,bM as Ae}from"./index-V6jIIx9c.js";import{a as L,P as X}from"./sentry-C9gjpXHu.js";import{n as _}from"./mui-CcAbIvqz.js";import{bg as Z,ET as Be,F0 as ve,F1 as $,F2 as Te,F3 as Le,F4 as Pe,F5 as Ie,F6 as ke,F7 as ee,F8 as te}from"./zeni-epic-state-yTwK6eAd.js";import{m as z,l as q}from"./analyticsHelper-BuvUCPRb-Dhr-3cLH.js";import{x as Fe}from"./ReportTableViewSelector-BGUS_EOK-BBwBgVZu.js";import{a as se,p as Ne}from"./TimeRangeSwitcher-DTNA8U_P-vCMNkMQY.js";import{M as Me}from"./TimeframeSwitcherWithToggle-Bey7Ur6y-C7DSjGao.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-XjCXyoWD-DF9S8c0i.js";import{I as Ee,R as N,x as ne}from"./CollapsableReportTable-Bp12uWDe-DCcqYieC.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DViahlE6-CHFSmBY0.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BgzCaFB8-gUJ1JSVo.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DKSP4IMH-CnRCpe-k.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-saf-eikX-_6D9Xq4-.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.js";import"./TimeframeSwitcher-BxrcpeVc-B6217ekz.js";import"./page-detail-CWX5S47F-Dtc_Xfll.js";import"./AccountRow-C3tJgM2h-D6bVgxu0.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]="29190322-48d1-43f4-a8d6-cce027144395",e._sentryDebugIdIdentifier="sentry-dbid-29190322-48d1-43f4-a8d6-cce027144395")}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=N("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??N("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=N("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(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:N("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=N("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(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,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=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,F as D,J as de,b4 as J,u as I,b as M,aZ as Q,o as m,ab as Ae,p as g,aF as Fe,y as xe,bN as ge,am as R,bO as F,bb as V}from"./index-ruFrDgOE.js";import{a as P,P as ee}from"./sentry-C9gjpXHu.js";import{n as x}from"./mui-CcAbIvqz.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-CmkcIJwp-5YWcoKB3.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-C0EdFFOl-C4uMvfMM.js";import{V as Z}from"./toChartData-CWuGepY4-zwBpsjjj.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-CH4lD6YZ.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]="e7f125be-a962-4663-bde5-93a4c4da7d79",e._sentryDebugIdIdentifier="sentry-dbid-e7f125be-a962-4663-bde5-93a4c4da7d79")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Ve=x.div`
1
+ import{d as A,V as a,F as D,J as de,b4 as J,u as I,b as M,aZ as Q,o as m,ab as Ae,p as g,aF as Fe,y as xe,bN as ge,am as R,bO as F,bb as V}from"./index-V6jIIx9c.js";import{a as P,P as ee}from"./sentry-C9gjpXHu.js";import{n as x}from"./mui-CcAbIvqz.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-CmkcIJwp-Dw0BFF7X.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-C0EdFFOl-Wbx2xnxl.js";import{V as Z}from"./toChartData-CWuGepY4-BvWY1wy9.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-CH4lD6YZ.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]="e7f125be-a962-4663-bde5-93a4c4da7d79",e._sentryDebugIdIdentifier="sentry-dbid-e7f125be-a962-4663-bde5-93a4c4da7d79")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Ve=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -1,4 +1,4 @@
1
- import{J as Ct,ax as Tt,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 Lt,ab as j,fi as Rt,fj as Me,fk as Be,fl as Fe,b as K,fm as O,p as S,fn as zt,fo as E,fp as W,fq as Nt,fr as Ot,bU as Le,o as n,aS as Et,u as s,F as Wt,ah as _t,c3 as Zt,H as Ht,a as Vt,fs as Yt,cj as Gt,am as se,an as ce,ft as Kt,fu as Ut,bj as qt,c as Jt,ba as Xt,fv as Qt,ar as et,bL as en,aj as tt,bu as tn,fw as nn}from"./index-ruFrDgOE.js";import{a as Z}from"./sentry-C9gjpXHu.js";import{n as i}from"./mui-CcAbIvqz.js";import{bo as Re,bm as ze,bH as I,bN as an,FH as ln,bL as oe,bP as on}from"./zeni-epic-state-yTwK6eAd.js";import{t as rn,o as dn}from"./LowBalancePopup-Dcu_nflD-jwxLB_6o.js";import{S as _}from"./LabeledText-DBGBNWrC-Bz-BEuAu.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="ea264f1b-7648-410e-ad46-8822fde52433",e._sentryDebugIdIdentifier="sentry-dbid-ea264f1b-7648-410e-ad46-8822fde52433")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Ht("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,f]=Z.useState(!1),M=()=>{f(!1)},C=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:st})=>{const d=Ct(),c=Tt(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(C,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:d,children:t.jsx(Ln,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&H?.code?H:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&H?.code?H:P,ne=()=>{me()},we=()=>{me()},V=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=Re(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,Y,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(T),endDate:oe(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}),ae!=null){const Te=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Te,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Te,De,Ie,Pe,ke,Ae)}}},Se=()=>{Ce===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:V?.format(T)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ve,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ve,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Vn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Rt(l);return l!=null?t.jsx(Hn,{children:nt.includes(d)?t.jsxs(Ye,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Je,{})}),t.jsx(q,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(q,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(T)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ye,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(q,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(q,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(T)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ge,{children:a.pay}),t.jsx(Ke,{children:t.jsx(Fe,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ge,{children:a.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&V!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:V.format(T),additionalInfoLabel:`${a.estimatedArrival}${oe(on(V.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(He,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(He,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children: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(Fe,{amount:Re(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,Y,d)}},primaryBtn:{label:_e(b,Y,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?G(!0):Se()},style:{width:Ze(!0,k,b,Y,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Le,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(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,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,f,M,C)=>f?128:y&&!e&&C==="small"?"auto":M?165:m.footerButtonWidth.value(C),pn=i(en)`
1
+ import{J as Ct,ax as Tt,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 Lt,ab as j,fi as Rt,fj as Me,fk as Be,fl as Fe,b as K,fm as O,p as S,fn as zt,fo as E,fp as W,fq as Nt,fr as Ot,bU as Le,o as n,aS as Et,u as s,F as Wt,ah as _t,c3 as Zt,H as Ht,a as Vt,fs as Yt,cj as Gt,am as se,an as ce,ft as Kt,fu as Ut,bj as qt,c as Jt,ba as Xt,fv as Qt,ar as et,bL as en,aj as tt,bu as tn,fw as nn}from"./index-V6jIIx9c.js";import{a as Z}from"./sentry-C9gjpXHu.js";import{n as i}from"./mui-CcAbIvqz.js";import{bo as Re,bm as ze,bH as I,bN as an,FH as ln,bL as oe,bP as on}from"./zeni-epic-state-yTwK6eAd.js";import{t as rn,o as dn}from"./LowBalancePopup-Dcu_nflD-D0ffoSvY.js";import{S as _}from"./LabeledText-DBGBNWrC-DTS4NY-4.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="ea264f1b-7648-410e-ad46-8822fde52433",e._sentryDebugIdIdentifier="sentry-dbid-ea264f1b-7648-410e-ad46-8822fde52433")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Ht("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,We=({attachment:e})=>{const[y,f]=Z.useState(!1),M=()=>{f(!1)},C=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>C===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},si=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:st})=>{const d=Ct(),c=Tt(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(d),z=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(C,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:d,children:t.jsx(Ln,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[z,Q,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,H=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&H?.code?H:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&H?.code?H:P,ne=()=>{me()},we=()=>{me()},V=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=Re(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,Y,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(T),endDate:oe(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}),ae!=null){const Te=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Te,De,Ie,Pe,ke,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Te,De,Ie,Pe,ke,Ae)}}},Se=()=>{Ce===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:V?.format(T)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:at,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ve,{windowSize:d,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ve,{windowSize:d,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Vn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Rt(l);return l!=null?t.jsx(Hn,{children:nt.includes(d)?t.jsxs(Ye,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Je,{})}),t.jsx(q,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(q,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(T)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ye,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(We,{attachment:l.attachments[0]}):t.jsx(qe,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(q,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(q,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(T)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ge,{children:a.pay}),t.jsx(Ke,{children:t.jsx(Fe,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ge,{children:a.to}),t.jsx(Ke,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&V!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:V.format(T),additionalInfoLabel:`${a.estimatedArrival}${oe(on(V.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(T)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(He,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(He,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children: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(Fe,{amount:Re(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,Y,d)}},primaryBtn:{label:_e(b,Y,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?G(!0):Se()},style:{width:Ze(!0,k,b,Y,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Le,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(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,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,f,M,C)=>f?128:y&&!e&&C==="small"?"auto":M?165:m.footerButtonWidth.value(C),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,ab as m,o as r,aS as L,y as d,x as M,H as I,a as C,p as s,am as j,cE as W,m as D,aj as b,bi as R,u as n,eo as G,h as H,i$ as _,kc as J}from"./index-ruFrDgOE.js";import{n as t}from"./mui-CcAbIvqz.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]="b7080a47-7dd2-4e48-a481-d57ce56fdd5a",e._sentryDebugIdIdentifier="sentry-dbid-b7080a47-7dd2-4e48-a481-d57ce56fdd5a")}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(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
1
+ import{J as P,V as i,ab as m,o as r,aS as L,y as d,x as M,H as I,a as C,p as s,am as j,cE as W,m as D,aj as b,bi as R,u as n,eo as G,h as H,i$ as _,kc as J}from"./index-V6jIIx9c.js";import{n as t}from"./mui-CcAbIvqz.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]="b7080a47-7dd2-4e48-a481-d57ce56fdd5a",e._sentryDebugIdIdentifier="sentry-dbid-b7080a47-7dd2-4e48-a481-d57ce56fdd5a")}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(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),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 f,eU as h,V as s,bU as g,o,ab as l,F as b,ao as x,aj as c}from"./index-ruFrDgOE.js";import{n as d}from"./mui-CcAbIvqz.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]="82007ed3-1f11-4cbe-9dcf-6bceed265128",e._sentryDebugIdIdentifier="sentry-dbid-82007ed3-1f11-4cbe-9dcf-6bceed265128")}catch{}})();const{hyphen:i}=b.getLocalizedStrings().common.strings,y=d.div``,m=d.div`
1
+ import{eT as f,eU as h,V as s,bU as g,o,ab as l,F as b,ao as x,aj as c}from"./index-V6jIIx9c.js";import{n as d}from"./mui-CcAbIvqz.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]="82007ed3-1f11-4cbe-9dcf-6bceed265128",e._sentryDebugIdIdentifier="sentry-dbid-82007ed3-1f11-4cbe-9dcf-6bceed265128")}catch{}})();const{hyphen:i}=b.getLocalizedStrings().common.strings,y=d.div``,m=d.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aR as K,ir as te,gL as me,eF as Je,is as Me,a9 as _e,it as Ve,cH as Pe,cI as Fe,V as a,ad as Ne,cr as qe,cs as Re,ct as Be,aS as We,iu as ze,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cL as Ge,J as Ke,iL as He,gQ as ue,u as B,p as De,y as ye,cM as Xe,iy as Ye,iz as Ze,iA as Qe,o as V}from"./index-ruFrDgOE.js";import{a as f}from"./sentry-C9gjpXHu.js";import{n as z}from"./mui-CcAbIvqz.js";import{Ga as et,Gb as tt}from"./zeni-epic-state-yTwK6eAd.js";import{r as lt,s as at,i as st,n as ot}from"./ScheduleSequenceTable-dniltDqh-C61tZgFj.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="07f373dc-c0cf-47bd-863d-32008ec267aa",e._sentryDebugIdIdentifier="sentry-dbid-07f373dc-c0cf-47bd-863d-32008ec267aa")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=z.div`
1
+ import{aR as K,ir as te,gL as me,eF as Je,is as Me,a9 as _e,it as Ve,cH as Pe,cI as Fe,V as a,ad as Ne,cr as qe,cs as Re,ct as Be,aS as We,iu as ze,iv as Ue,F as be,aa as pe,iw as Se,ix as $e,cL as Ge,J as Ke,iL as He,gQ as ue,u as B,p as De,y as ye,cM as Xe,iy as Ye,iz as Ze,iA as Qe,o as V}from"./index-V6jIIx9c.js";import{a as f}from"./sentry-C9gjpXHu.js";import{n as z}from"./mui-CcAbIvqz.js";import{Ga as et,Gb as tt}from"./zeni-epic-state-yTwK6eAd.js";import{r as lt,s as at,i as st,n as ot}from"./ScheduleSequenceTable-dniltDqh-prEj6nJM.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="07f373dc-c0cf-47bd-863d-32008ec267aa",e._sentryDebugIdIdentifier="sentry-dbid-07f373dc-c0cf-47bd-863d-32008ec267aa")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=z.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aR as F,ir as Q,gL as Ie,eF as Je,is as we,a9 as Le,it as Me,cH as Ve,cI as Pe,V as a,ad as _e,cr as Fe,cs as $e,ct as Be,aS as Ne,iu as ze,iv as Re,F as De,aa as re,iw as pe,ix as Ue,cL as We,J as qe,gQ as me,u as Z,p as Ke,y as Ge,iy as He,iz as Ye,iA as Xe,o as w}from"./index-ruFrDgOE.js";import{a as D}from"./sentry-C9gjpXHu.js";import{n as P}from"./mui-CcAbIvqz.js";import{Ga as Qe,Gb as Ze,bL as et}from"./zeni-epic-state-yTwK6eAd.js";import{r as tt,s as lt,i as at,n as st}from"./ScheduleSequenceTable-dniltDqh-C61tZgFj.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="e309ac7c-a107-4dcd-8684-80011e8e1378",e._sentryDebugIdIdentifier="sentry-dbid-e309ac7c-a107-4dcd-8684-80011e8e1378")}catch{}})();const z={labelWidth:new Ge(160,160,160)},nt=P.div`
1
+ import{aR as F,ir as Q,gL as Ie,eF as Je,is as we,a9 as Le,it as Me,cH as Ve,cI as Pe,V as a,ad as _e,cr as Fe,cs as $e,ct as Be,aS as Ne,iu as ze,iv as Re,F as De,aa as re,iw as pe,ix as Ue,cL as We,J as qe,gQ as me,u as Z,p as Ke,y as Ge,iy as He,iz as Ye,iA as Xe,o as w}from"./index-V6jIIx9c.js";import{a as D}from"./sentry-C9gjpXHu.js";import{n as P}from"./mui-CcAbIvqz.js";import{Ga as Qe,Gb as Ze,bL as et}from"./zeni-epic-state-yTwK6eAd.js";import{r as tt,s as lt,i as at,n as st}from"./ScheduleSequenceTable-dniltDqh-prEj6nJM.js";import"./liveblocks-BojMpfZr.js";import"./core-BfdQ3W3i.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./utils-1UbrxmNv.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]="e309ac7c-a107-4dcd-8684-80011e8e1378",e._sentryDebugIdIdentifier="sentry-dbid-e309ac7c-a107-4dcd-8684-80011e8e1378")}catch{}})();const z={labelWidth:new Ge(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 A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye,b as I,F as R,iE as we,iA as be,o as i,y as b,p as j,c as $e,ab as je,aa as re,dO as Se,cr as ke,ct as ve,cL as X,ex as ee,cQ as De,iF as K,iG as Ce,b4 as Me,iH as ze,cv as Ee,iI as Le,u as h,am as E,ba as Oe,cs as Ie,ap as pe,eG as Ae,b2 as ne,es as Fe,aS as Te,iJ as F,gk as Ve,aP as Je,iK as Be,aW as q,d1 as Pe,bi as Re}from"./index-ruFrDgOE.js";import{n as o,c as B}from"./mui-CcAbIvqz.js";import{a as C}from"./sentry-C9gjpXHu.js";import{bh as G,Gc as Ne}from"./zeni-epic-state-yTwK6eAd.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]="90edb35b-ccbd-4d65-9cb4-5fb47005c8d0",e._sentryDebugIdIdentifier="sentry-dbid-90edb35b-ccbd-4d65-9cb4-5fb47005c8d0")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function We({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=X(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Q();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Qe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(_e,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ke,{alignLeft:r===!0,children:[t.jsx(tt,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(et,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.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:M.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(Ze,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(He,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(it,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.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(Te,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ge,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ue,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=o.div`
1
+ import{J as A,d as Q,V as t,iB as ie,iC as le,H as oe,iD as xe,dU as fe,fl as ye,b as I,F as R,iE as we,iA as be,o as i,y as b,p as j,c as $e,ab as je,aa as re,dO as Se,cr as ke,ct as ve,cL as X,ex as ee,cQ as De,iF as K,iG as Ce,b4 as Me,iH as ze,cv as Ee,iI as Le,u as h,am as E,ba as Oe,cs as Ie,ap as pe,eG as Ae,b2 as ne,es as Fe,aS as Te,iJ as F,gk as Ve,aP as Je,iK as Be,aW as q,d1 as Pe,bi as Re}from"./index-V6jIIx9c.js";import{n as o,c as B}from"./mui-CcAbIvqz.js";import{a as C}from"./sentry-C9gjpXHu.js";import{bh as G,Gc as Ne}from"./zeni-epic-state-yTwK6eAd.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]="90edb35b-ccbd-4d65-9cb4-5fb47005c8d0",e._sentryDebugIdIdentifier="sentry-dbid-90edb35b-ccbd-4d65-9cb4-5fb47005c8d0")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function We({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=X(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Q();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Qe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(_e,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ke,{alignLeft:r===!0,children:[t.jsx(tt,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(et,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.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:M.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(Ze,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(He,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(it,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.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(Te,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ge,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ue,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=o.div`
2
2
  position: relative;
3
3
  `,Ge=o.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{D_ as Xf,D$ as Lt,E0 as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,E1 as Pa,hB as th,hC as rh,E2 as Gt,E3 as kt,h0 as nh,E4 as xr,E5 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E6 as kl,E7 as Nl,hQ as ah,hN as sh,E8 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E9 as hh,dJ as dh,cU as ph,i$ as Dl,Ea as mh,bL as Tr,hF as xa,hK as gh,oO as Ml,iO as qr,Eb as Ne,ib as na,Ec as yh,j5 as vh,B as Re,Ed as ia,Ee as bh,gZ as wh,Ef as Eh,Eg as Fl,Eh as Sh,nm as qa,mT as _h,Ei as Rh,mZ as Zr,Ej as Oh,m$ as Th,Ek as Ze,mQ as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,El as Ph,np as jh,Em as xh,n6 as qh,nj as Lh,En as kh,na as Nh,Eo as Dh,Ep as _t,Eq as sa,Er as Mh,Es as Fh,lT as Uh,lZ as $l,Et as Vl,gu as Bh,D4 as Gl,Eu as $h,C_ as Vh,Ev as Gh,Ew as zh,m0 as Hh,Ex as Zh,D9 as Wh,CZ as Yh,qj as zl,Ey as Wr,Ez as Hl,A9 as ua,zX as Jh,Ac as Zl,z_ as Kh,EA as Xh,A3 as Qh,zR as ed,zU as td,EB as rd,Ag as nd,A6 as id,c4 as od,bd as ad,EC as sd,ED as ft,EE as ud,EF as cd,EG as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-yTwK6eAd.js";import{j as N}from"./liveblocks-BojMpfZr.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-C9gjpXHu.js";import{T as dd,d as dt,J as Lr,e as pe,z as be,P as pd,W as md,y as Pe,f as kr,g as gd,E as Je,F as Nt,j as pt,k as at,m as Nr,o as tt,X as yd,n as vd,I as nt,q as ca,r as it,Z as bd,Y as wd,u as Yr,s as Ed,t as Jl,v as Sd,w as Kl,O as Xl,A as Xo,C as _d,D as Rd,G as Od,K as Ql,L as Td,M as Id,_ as Ad,Q as Cd,S as Pd,U as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md}from"./index-ruFrDgOE.js";import{f as Fd}from"./analyticsHelper-CSgs7aGq.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-BfdQ3W3i.js";import{D as Dr,n as Te,S as mt}from"./mui-CcAbIvqz.js";import{a as ve,b as Ud,c as Bd,d as $d,e as fa,f as Vd,g as Gd,h as zd,i as gt,j as Hd,k as xt,l as Mr,m as Zd,n as Dt,o as Wd}from"./utils-1UbrxmNv.js";import{r as ha}from"./empty-3tUyFVJa.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-DKA52eYI.js";import{r as Mt,a as Qd}from"./index-Cok412UJ.js";import{r as ep}from"./index-Q_V1WjIh.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./url-GoO98ssj.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a403ddd3-5159-4aa6-9b23-141111a5888e",e._sentryDebugIdIdentifier="sentry-dbid-a403ddd3-5159-4aa6-9b23-141111a5888e")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},tp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function rp(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function np(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const ip=ge(np,rp)(gd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:tp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(pd,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(md,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(ip,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},op=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ap=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function sp(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const up={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??up.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const cp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(lp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,lp=Te.div`
1
+ import{D_ as Xf,D$ as Lt,E0 as Qf,iN as ot,hv as ql,iP as Ye,hs as eh,hz as Ll,E1 as Pa,hB as th,hC as rh,E2 as Gt,E3 as kt,h0 as nh,E4 as xr,E5 as ta,cO as ih,f2 as ra,e$ as Ir,f7 as rt,f5 as oh,E6 as kl,E7 as Nl,hQ as ah,hN as sh,E8 as uh,h$ as ch,hW as ja,hT as lh,hI as fh,E9 as hh,dJ as dh,cU as ph,i$ as Dl,Ea as mh,bL as Tr,hF as xa,hK as gh,oO as Ml,iO as qr,Eb as Ne,ib as na,Ec as yh,j5 as vh,B as Re,Ed as ia,Ee as bh,gZ as wh,Ef as Eh,Eg as Fl,Eh as Sh,nm as qa,mT as _h,Ei as Rh,mZ as Zr,Ej as Oh,m$ as Th,Ek as Ze,mQ as Ih,cB as Ah,iS as Ul,iT as Bl,iR as oa,iQ as aa,iU as Ch,El as Ph,np as jh,Em as xh,n6 as qh,nj as Lh,En as kh,na as Nh,Eo as Dh,Ep as _t,Eq as sa,Er as Mh,Es as Fh,lT as Uh,lZ as $l,Et as Vl,gu as Bh,D4 as Gl,Eu as $h,C_ as Vh,Ev as Gh,Ew as zh,m0 as Hh,Ex as Zh,D9 as Wh,CZ as Yh,qj as zl,Ey as Wr,Ez as Hl,A9 as ua,zX as Jh,Ac as Zl,z_ as Kh,EA as Xh,A3 as Qh,zR as ed,zU as td,EB as rd,Ag as nd,A6 as id,c4 as od,bd as ad,EC as sd,ED as ft,EE as ud,EF as cd,EG as ld,i3 as Ko,ba as fd}from"./zeni-epic-state-yTwK6eAd.js";import{j as N}from"./liveblocks-BojMpfZr.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-C9gjpXHu.js";import{T as dd,d as dt,J as Lr,e as pe,z as be,P as pd,W as md,y as Pe,f as kr,g as gd,E as Je,F as Nt,j as pt,k as at,m as Nr,o as tt,X as yd,n as vd,I as nt,q as ca,r as it,Z as bd,Y as wd,u as Yr,s as Ed,t as Jl,v as Sd,w as Kl,O as Xl,A as Xo,C as _d,D as Rd,G as Od,K as Ql,L as Td,M as Id,_ as Ad,Q as Cd,S as Pd,U as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md}from"./index-V6jIIx9c.js";import{f as Fd}from"./analyticsHelper-B0HBcUOS.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-BfdQ3W3i.js";import{D as Dr,n as Te,S as mt}from"./mui-CcAbIvqz.js";import{a as ve,b as Ud,c as Bd,d as $d,e as fa,f as Vd,g as Gd,h as zd,i as gt,j as Hd,k as xt,l as Mr,m as Zd,n as Dt,o as Wd}from"./utils-1UbrxmNv.js";import{r as ha}from"./empty-3tUyFVJa.js";import{r as Yd,a as Jd,b as Kd,c as Xd}from"./constants-DKA52eYI.js";import{r as Mt,a as Qd}from"./index-Cok412UJ.js";import{r as ep}from"./index-Q_V1WjIh.js";import"./recharts-CH4lD6YZ.js";import"./lottie-C8ug7xYl.js";import"./analytics-deCUYv6O.js";import"./lexical-C3B1wTQQ.js";import"./url-GoO98ssj.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a403ddd3-5159-4aa6-9b23-141111a5888e",e._sentryDebugIdIdentifier="sentry-dbid-a403ddd3-5159-4aa6-9b23-141111a5888e")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},tp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function rp(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function np(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const ip=ge(np,rp)(gd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(r.has("utm_source")),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:tp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(pd,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(md,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(ip,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},op=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ap=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function sp(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const up={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??up.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const cp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(lp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,lp=Te.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;