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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/dist/assets/{ACHDetailsPage-BLKhKkZC-CoU9qIfj.js → ACHDetailsPage-BLKhKkZC-Cwg6umDT.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-J3dtNEgn-DnDSfWCN.js → AIPerformancePage-J3dtNEgn-sTRsaQC_.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-CI5UcHFj-BegJKMi4.js → AccountInfoPage-CI5UcHFj-DVcbaU4k.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-D8oVcn1T-BXq3_V4W.js → AccountInfoPageContent-D8oVcn1T-BAIex2AG.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-B9_FdrYm-5NyxuZ6Z.js → AccountLockedInfoModal-B9_FdrYm-DUvOiAaB.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DFjW0u9--BQEqjGYe.js → AccountReconDetailsDrawerPage-DFjW0u9--CEMx4ZiT.js} +1 -1
  7. package/dist/assets/{AccountRow-Bq6uJ1hA-Vc9-Z3M-.js → AccountRow-Bq6uJ1hA-Dq-J-ens.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DQmHrc8b-Vd3CyDRc.js → AccountsPromoCardStack-DQmHrc8b-dTF46QrE.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-O987RTn2-BVD6IV9k.js → AddAddressForCardDrawer-O987RTn2-CIHIqG1f.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-C2Z6f8Y6-DKRITatO.js → AddToWalletPage-C2Z6f8Y6-nb9R59bx.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BlPqvXdx-BhMR9uMZ.js → AgingReportsPage-BlPqvXdx-Cy7AQ_z4.js} +1 -1
  12. package/dist/assets/{AllUserItems-CL17FcAl-HA7Ybf9E.js → AllUserItems-CL17FcAl-B0FJViwo.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-CHVwRH_g-DOXwF09t.js → ApAgingDetailPage-CHVwRH_g-DtUbf7wo.js} +1 -1
  14. package/dist/assets/{AppBasePage-CnlPnTBn-DzDs3_Wg.js → AppBasePage-CnlPnTBn-D-4gEX8X.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-C2CNe5yn-CV61WWnW.js → AppDrawerContent-C2CNe5yn-DuYG18dx.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-XsMzIe4e-WBRcfJJV.js → ApprovalRulesSettingsPage-XsMzIe4e-Bhk4H1xu.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Ck1uAv_a-BqG8XmZ6.js → ArAgingChart-Ck1uAv_a-Dudw45Io.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-KRWJzbCq-SXmC1xou.js → ArAgingDetailPage-KRWJzbCq-Dsnq69za.js} +1 -1
  19. package/dist/assets/{AttachmentView-uaen0kuU-Bv_0F11t.js → AttachmentView-uaen0kuU-9Lfk2NiV.js} +1 -1
  20. package/dist/assets/{BankAccountSection-CwOhGEgT-CV3SB5KM.js → BankAccountSection-CwOhGEgT-Buv39QSj.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-D7BVcqIu-RUBf41j-.js → BankAccountWarningSection-D7BVcqIu-CsUsQ1jy.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BOdlcBfa-aX1YHXK9.js → BankConnectionsSettingsPage-BOdlcBfa-CerQRTxv.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Ct4Q960V-B1Ta0IG7.js → BillDetailPage-Ct4Q960V-BqQmRUcf.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DUU4rXuM-DI9nvx98.js → BillPayApprovalRuleDetailPage-DUU4rXuM-DOBZleBQ.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-C0pcFzje-Rb9cSqGe.js → BillPayApprovalRulesPage-C0pcFzje-BPAUBneh.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-BsEtxcjB-BRyrvd2x.js → BillPayPromoPage-BsEtxcjB-BoUyZwck.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-B-rBYCtR-CKuO1PYp.js → BillPaySetUpPage-B-rBYCtR-CPyAQSLC.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-BadzsZdt-CdWNz3my.js → BillingSettingsPage-BadzsZdt-BoOy-JQ5.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CbA-LUIt-BCAx-hEw.js → BillsBulkReviewDrawerPage-CbA-LUIt-C5Sn8R1z.js} +1 -1
  30. package/dist/assets/{BoxItem-BoanamYM-C9a7ISxI.js → BoxItem-BoanamYM-BL3cSRvZ.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-B9hjIdCd-fjXOOEEK.js → BusinessVerificationPage-B9hjIdCd-DbC_Mjin.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-DFO_EKrs-fq6YqMPG.js → CardNumberSubText-DFO_EKrs-DLs-Ds_l.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-Bp85-5Ie-BrWWJ_z3.js → CashbackDetailPage-Bp85-5Ie-CvJZIe7U.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-D8dY9X8Q-CY9gkPfd.js → ChargeCardDetailPage-D8dY9X8Q-GfA1L0n9.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-CxplfJ1W-Cs-f2f69.js → ChargeCardListPage-CxplfJ1W-DR6Hwv-a.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-scY11ryy-Biigjr-j.js → ChargeCardListTable-scY11ryy-C6YUz_wT.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-Brh4ot5q-B0jRGM62.js → ChargeCardPaymentHistoryPage-Brh4ot5q-DN9vXd-G.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-CPURUrkI-ElY1-FvK.js → ChargeCardPromoPage-CPURUrkI-jii4gwjH.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-Bumq17f6-CZtiCi9E.js → ChargeCardSetupPage-Bumq17f6-D6Wz1U_q.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-DbU7LEIP-BvT1248-.js → ChargeCardStatementsPage-DbU7LEIP-Cs_ksugQ.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-CFl7Vr_I-m-GUaKwL.js → CheckDepositDrawerPage-CFl7Vr_I-BMjSmdjc.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-CRaZZnGr-DHalWth7.js → CollapsableReportTable-CRaZZnGr-D1FLfhCE.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-C4rN7mXr-DfF7L_UZ.js → CompanyOfficerDetailsSection-C4rN7mXr-BCKTMWpz.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-I21kA_Ir-BLJfyfQk.js → CompanyPassportCard-I21kA_Ir-CfI2OWpy.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-BSDnF5-7-Cj98T4ob.js → CompanyPassportPage-BSDnF5-7-B4YH43RE.js} +1 -1
  46. package/dist/assets/{CompleteProfile-uultMZ5R-wTNN90nG.js → CompleteProfile-uultMZ5R-B8yd6Qu9.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-CpmYtgfk-D3B4eByY.js → ConfettiBurst-CpmYtgfk-DnYgpyS7.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-AfKsEb9G-Dm36bf3i.js → CreateOrEditVendorPage-AfKsEb9G-BpESosp5.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-D0Lh5Tw1-XpTz-POB.js → CreditCardPaymentDrawerPage-D0Lh5Tw1-M2sFeExn.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-BvNBUOqg-A4J8Uxia.js → CurrencySelectField-BvNBUOqg-D-3EuZ8d.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-OtCugBPI-qX05IlgL.js → CustomerOnboardingActivationPage-OtCugBPI-BAzJ417_.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-DGhE9fpo-BBUOjDAN.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CMqEIIWe-DnAkQb7J.js → CustomerOnboardingDetailPageSkeleton-CMqEIIWe-CMpghLCG.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-p062pNc5-C-l3wTbU.js → CustomerOnboardingNoStepsPage-p062pNc5-Cvv3rtDF.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-Byojt-WN-CQTmwoTL.js → CustomerOnboardingPage-Byojt-WN-a8lJlUKg.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingProductSuitePage-C9W7h_tT-Brpfoewd.js → CustomerOnboardingProductSuitePage-C9W7h_tT-IJVPZkTX.js} +1 -1
  57. package/dist/assets/{Dashboard-Dkwr9npN-BXZ9_-Zj.js → Dashboard-Dkwr9npN-DSjQtzNn.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-Qk5_OFw7-BDc17Jc3.js → DashboardReportPage-Qk5_OFw7-BbnZLUii.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-BiD26wyg-CHBm92QN.js → DashboardSidebarBackgroundAnimation-BiD26wyg-BLAUjhiQ.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-13TnlK6P-m98DXUKx.js → DepositAccTransactionItem-13TnlK6P-CWWeROfc.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-Dc3G81fB-A9cH7zUI.js → DepositAccTransactionListPage-Dc3G81fB-C7g5aQ6E.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-CCIoGmZO-B4_Jo1Es.js → DomesticWireDetailsPage-CCIoGmZO-CYfu7_Dx.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-Nc_Ra7Co-DN1ubFHO.js → DownloadOverlay-Nc_Ra7Co-CEm2hY5a.js} +1 -1
  64. package/dist/assets/{DrawerPage-Bq1naYya-CQiLfSVq.js → DrawerPage-Bq1naYya-DMc-tfKh.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-BnYTxq_9-DPMlpday.js → EditPeoplePage-BnYTxq_9-1X-zBt6N.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-D-uH9OV3-BSdAEEMn.js → EditReimbursementDetailPage-D-uH9OV3-DsNNMyOZ.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-DCcgGupN-C9TRJ7Es.js → EntityDetailPage-DCcgGupN-zRXBWDUd.js} +1 -1
  68. package/dist/assets/{EntitySummarySection-BI44dDjO-CYCNaLvg.js → EntitySummarySection-BI44dDjO-B7qOcys6.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-XA0L4mZw-dYnFXq-m.js → ExpenseAutomationOverviewPage-XA0L4mZw-C9BClvUq.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-CGkJWoKY-B55w2jvQ.js → ExpenseAutomationPage-CGkJWoKY-DHa6Sd68.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-BX3rmT8V-AcNsZZN-.js → ExpressPayPage-BX3rmT8V-DJXYj54g.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-W5YS3_F--DlENOTKC.js → FeaturePreviewPage-W5YS3_F--BCLVpFme.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-C1Nmspra-Cdu3naRV.js → FollowStepsSection-C1Nmspra-D3s2sQ4x.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-BfVSGVJe-Bw9xs6tt.js → GlobalReviewListPage-BfVSGVJe-B8mJXjwD.js} +1 -1
  75. package/dist/assets/{InformationCardStack-BwgEyJER-uNbIwCBo.js → InformationCardStack-BwgEyJER-Cny1CGuz.js} +1 -1
  76. package/dist/assets/{InsightsCardStack-BnEWSQ0m-VtqL0Nqc.js → InsightsCardStack-BnEWSQ0m-2VkFAsKh.js} +1 -1
  77. package/dist/assets/{InsightsSection-hFNVHtei-D2NFl-zU.js → InsightsSection-hFNVHtei-ACHOXVMi.js} +1 -1
  78. package/dist/assets/{IntegrationsSettingsPage-De8DEt0a-Cw9Ydly2.js → IntegrationsSettingsPage-De8DEt0a-CkvyzlPJ.js} +1 -1
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-Dri_Nj57-i38KBpxN.js → InternationalWireSwiftDetailsPage-Dri_Nj57-CwfYSOSz.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-CPIRgDy5-DxjBH4Le.js → InternationalWireVerificationPage-CPIRgDy5-BLVxot-Y.js} +1 -1
  81. package/dist/assets/{InviteFormPage-Ca_tdccZ-C7hXm59I.js → InviteFormPage-Ca_tdccZ-o95G_z1r.js} +1 -1
  82. package/dist/assets/{InvitePageListView-BQbRhQ6V-DRrSpNW9.js → InvitePageListView-BQbRhQ6V-BLstFj5f.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-BKffwOP--D-GaMZqa.js → InvitePeoplePage-BKffwOP--xnLsciCO.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-H-JhX_DQ-B3PXCVQk.js → InvoiceUploadSection-H-JhX_DQ-CuMMrjJG.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-rinAPB-d-By9lpPwl.js → IssueChargeCardPage-rinAPB-d-DNUcpTXu.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-kPYLLOgv-BlJjmDxn.js → LabeledAddressValue-kPYLLOgv-Bv5PLZGK.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-B_N4O3Mv-CAfERVwt.js → LabeledAddressValueField-B_N4O3Mv-ByLvorpS.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-DiD9FNgO-CEPdNCHK.js → LabeledControlledCheckBoxField-DiD9FNgO-SiLo0Mfr.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-BCYMtV4j-BR8aIp2g.js → LabeledCountryMultiSelectField-BCYMtV4j-CdFiYFXy.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-Dm03LVdQ-DGBXlNr1.js → LabeledCreatableSingleSelectField-Dm03LVdQ-Ct74mqMo.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-CWqz_jSU-BI4o2Iwv.js → LabeledDocumentField-CWqz_jSU-DTs_59Gk.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-DhwPnDY8-yVeJPc_Q.js → LabeledDropDownFormattedTextField-DhwPnDY8-xhHpbnYB.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-C9feGqHN-OE3NSO1-.js → LabeledMultiSelectField-C9feGqHN-BOUoE2En.js} +1 -1
  94. package/dist/assets/{LabeledText-C91Eu04E-DW9Q389z.js → LabeledText-C91Eu04E-UhheuOCH.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-uruIe6mr--Ku_p9uL.js → LabeledUserSingleSelectWithSubtitlesField-uruIe6mr-9hh6c6OD.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-BBpe1-wI-fb12_Q3E.js → LabeledZeniRolesDropDownField-BBpe1-wI-BZn4or6n.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-Cn7He0uo-CU1EJOb0.js → LinkJETransactionPage-Cn7He0uo-B9VlqMHm.js} +1 -1
  98. package/dist/assets/{LockCardPage-CaIor45t-fxRy_eBL.js → LockCardPage-CaIor45t-Bhm-QmSQ.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-DQJYforY-CaW9bnoT.js → LowBalancePopup-DQJYforY-CTxVxhCr.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-CTqUXhIp-BPw-bzqm.js → MagicLinkACHDetailsPage-CTqUXhIp-CUUxVuEP.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-Dn7zRSmC-Cp1zfiCQ.js → MagicLinkDomesticWireDetailsPage-Dn7zRSmC-Cuh2rVHj.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BP3vdY52-BzDP-7_t.js → MagicLinkInternationalWireDetailsPage-BP3vdY52-CUuXnoxf.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-RsvHwQTQ-DKdw4jPk.js → MagicLinkSuccessPage-RsvHwQTQ-DDFHbaGm.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DaThYY60-DuPzkS6C.js → MagicLinkTitleSection-DaThYY60-D70CLqHF.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-DKs9SGYB-DpYzwmUT.js → MailingDetailsSection-DKs9SGYB-B-cSuB4_.js} +1 -1
  106. package/dist/assets/{Menu-DWx47kcG-CqRpt11Z.js → Menu-DWx47kcG-C9odUpTQ.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-DtnGJLK--62eLaU86.js → MyBankConnectionsSettingsPage-DtnGJLK--_lqEV6Wy.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-B1A2Dxw3-KQAV9F2y.js → MyPendingActivationChargeCardListPage-B1A2Dxw3-DnM7JeZm.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BHpnpTmJ-DUJX3teA.js → MyProfileSettingsPage-BHpnpTmJ-B35kkqy2.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-Biz620wH-BwhpY8Dt.js → NavBarWithPicker-Biz620wH-65O-le6L.js} +1 -1
  111. package/dist/assets/{NavigationArrow-CV_u5I1d-Dq_Cpl0i.js → NavigationArrow-CV_u5I1d-D2FdiFIo.js} +1 -1
  112. package/dist/assets/{NavigationDots-DBshnTnS-eQudWkl3.js → NavigationDots-DBshnTnS-Bg06WJy5.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DV2k3q5N-BcTx-Ahj.js → NewGlobalMerchantPage-DV2k3q5N-BwXGYi1Q.js} +1 -1
  114. package/dist/assets/{NoDataChart-DmThvRWS-pxiREfeT.js → NoDataChart-DmThvRWS-DIzVvW-R.js} +1 -1
  115. package/dist/assets/{NoDataTable-8GCzndE4-Bqx95DdJ.js → NoDataTable-8GCzndE4-BzlbBa5m.js} +1 -1
  116. package/dist/assets/{NotFoundPage-VR72eVPP-RofDTL3E.js → NotFoundPage-VR72eVPP-DNPenelk.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-Bwf-7o4F-Aj6P3Xzl.js → NotificationSettingsPage-Bwf-7o4F-DU_dcYUt.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-Dn_RFaAK-YhpveZOf.js → NotificationsListConfig-Dn_RFaAK-DlY8wt6z.js} +1 -1
  119. package/dist/assets/{NotificationsPage-B8GufkTS-DUQT6vp2.js → NotificationsPage-B8GufkTS-Bkye1xyY.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-BlEqljuU-DVw46mxv.js → OpExByVendorPage-BlEqljuU-ugJht3bd.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-jq9xEsKm.js → OverlayContainerPage-Daz3A7cI-D2nmhFab.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-GOxiUR2j-BGagWawc.js → PandLWithForecastPage-GOxiUR2j-OxNh_eJd.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BIxsEOJG-BjXFADJ0.js → PaymentAccountSetupBillingAddressSection-BIxsEOJG-CTnEt7q9.js} +1 -1
  124. package/dist/assets/{PeoplePage-DahKRMoB-F0cHCzgT.js → PeoplePage-DahKRMoB-BKmUa7_X.js} +1 -1
  125. package/dist/assets/{Preview-CrPzNPnm.js → Preview-BY7hEQoC.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-1P24z1p4-CeCLsS0U.js → ProductsCarousel-1P24z1p4-CAm3v9DD.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-DiKj0_oo-CtEGMdvr.js → PromoBaseCards-DiKj0_oo-WjjIGRQu.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-A0ysjdIC-Eqpwl6_L.js → QBOConnectionDialog-A0ysjdIC-Cvw-OxXn.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-Me828i1a-N1PCk_UL.js → QBOSetupSection-Me828i1a--EU-oD_m.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-dID4dZbu-DAIygneU.js → ReimbursementApprovalRuleDetailPage-dID4dZbu-YB0IkwTt.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-D8stgYq_-CqsPNPUT.js → ReimbursementApprovalRulesPage-D8stgYq_-BypSCYYZ.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-DaYD1eTP-BBI-ZKs3.js → ReimbursementDetailPage-DaYD1eTP-NP1HVfaF.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-ClRa3wo6-GK77Fy92.js → ReimbursementPromoPage-ClRa3wo6-BJmntArG.js} +1 -1
  134. package/dist/assets/{ReimbursementSetUpPage-CaJCRajP-Bhbzq9G6.js → ReimbursementSetUpPage-CaJCRajP-uuftAk2G.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BuBVWui--heWobZZd.js → ReimbursementsBulkReviewDrawerPage-BuBVWui--DdHHU679.js} +1 -1
  136. package/dist/assets/{ReloadCard-DzxA-pGI-BwtgRkm9.js → ReloadCard-DzxA-pGI-CTrvWZKo.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-D1k2eDtE-DWKTaUmF.js → ReportTableViewSelector-D1k2eDtE-CoAwDvw1.js} +1 -1
  138. package/dist/assets/{ReportsPage-DqXYfBQC-DTOBKK0U.js → ReportsPage-DqXYfBQC-DNTjyXU3.js} +1 -1
  139. package/dist/assets/{RevenueChart-C0vx4zUX-Uw0PsYMZ.js → RevenueChart-C0vx4zUX-CjwUy05i.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-DmHHVA8I-Sy4HvXq_.js → ReviewDetailsPage-DmHHVA8I-pWSwntyU.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-tGj059Ib-BvRNdoTH.js → ReviewOverlay-tGj059Ib-Bwn4pvXK.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-BGafXnoE-Cs8CtpyO.js → RoleWithToolTip-BGafXnoE-D_-qI3CC.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DuuvsMhX-gKNOvkFU.js → ScheduleDetailsFixedAssetsPage-DuuvsMhX-Dd6bDYON.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-BCw7YaHZ-CsQRejR9.js → ScheduleDetailsPage-BCw7YaHZ-DmhZQ_eX.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-C31xhtxt-m1Npa7Ri.js → ScheduleSequenceTable-C31xhtxt-CB_zqXDw.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-CcDq1jZA.js → ScreenRoutes-sbu7YrDk.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-D8PGmPML-_7698rPN.js → SetUpAccountSection-D8PGmPML-Dq-hQBDk.js} +1 -1
  148. package/dist/assets/{SignIn-CwWQnPnB-BjWxjduT.js → SignIn-CwWQnPnB-Dtwi6OcL.js} +1 -1
  149. package/dist/assets/{SignInScreen-CMNwX-LP.js → SignInScreen-DY0OSh4h.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-B-EbBpvJ-ON20KKOZ.js → SpendManagementListViewPage-B-EbBpvJ-DBo2VNeG.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-DANa2aTd-C61KLHM_.js → SpendManagementPerTabPage-DANa2aTd-Dg3lvXOe.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-CXYhrJSF-CXDxQfGM.js → SpendManagementSection-CXYhrJSF--ZBTaO-g.js} +1 -1
  153. package/dist/assets/{StatementItem-DeYhvD3S-1QR10Whm.js → StatementItem-DeYhvD3S-B-TIVH7V.js} +1 -1
  154. package/dist/assets/{StatementsPage-2OCuox8g-8nyeHbc9.js → StatementsPage-2OCuox8g-hYW5pdP2.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-CfBOEbYV-jyQUqc0h.js → StatusSwitcher-CfBOEbYV-DDaicIjD.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-LzrZe6zz-Bq05ehgW.js → SubTabSwitcher-LzrZe6zz-DaisWPTL.js} +1 -1
  157. package/dist/assets/{SummaryCard-DTbKziXk-DQjaUfYU.js → SummaryCard-DTbKziXk-aKO6lpiE.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-J0L5w2Wc-ChHzcbst.js → TaskManagementPage-J0L5w2Wc-CNyNKqOA.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-CIhE-4dW-CNYy5JM_.js → TimeRangeSwitcher-CIhE-4dW-De_4fCGW.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcher-YlXclGGy-Dzk_QBMX.js → TimeframeSwitcher-YlXclGGy-Dhm3AMez.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-BKRmBPLL-D7T-iUSK.js → TimeframeSwitcherWithToggle-BKRmBPLL-BbjV9aR9.js} +1 -1
  162. package/dist/assets/{TopExCard-D1k8bh_F-C0WRKW8Q.js → TopExCard-D1k8bh_F-CFHj_VHR.js} +1 -1
  163. package/dist/assets/{TopExDetailPage-BRJ9k9hY-DGh-mViS.js → TopExDetailPage-BRJ9k9hY-DRh4t0Dw.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-CJjGDJoM-4j_0Nnvx.js → TransactionDetailPage-CJjGDJoM-CxZvd9fU.js} +1 -1
  165. package/dist/assets/{TransactionList-CLJV-J8J-DPWKYbwQ.js → TransactionList-CLJV-J8J-D1x3YRzB.js} +1 -1
  166. package/dist/assets/{TransactionListBig-CDMd8KmW-BMMhha0s.js → TransactionListBig-CDMd8KmW-mO4T6d4u.js} +1 -1
  167. package/dist/assets/{TransactionListPage-Dm_JZDPM-CpkM0KX9.js → TransactionListPage-Dm_JZDPM-D8Vkr60J.js} +1 -1
  168. package/dist/assets/{TransactionVendorDetailPage-BDuBQged-CAcA5ymW.js → TransactionVendorDetailPage-BDuBQged-B2XBHaJi.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-lY_wB7eB-BHJQPQzp.js → TransferDrawerPage-lY_wB7eB-C3N8x7p2.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-D5OetJEP-DU_svhq3.js → TreasuryOverviewPage-D5OetJEP-57M75i0r.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-8tXexPVv-CiI-0ZNb.js → TreasuryPromoPage-8tXexPVv-CEM4Pgwn.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-DEOyNQFW-CWB-xLSh.js → TreasuryStatementsPage-DEOyNQFW-CiL0Oe7A.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-B2AurZ-A-Dvkl-xbT.js → TreasuryTaxLetterPage-B2AurZ-A-pQLwldDF.js} +1 -1
  174. package/dist/assets/{TrendChart-DhH1bAfv-Bh3qy9e2.js → TrendChart-DhH1bAfv-BmKgBiva.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-BLYyM3MY-D_wSnssv.js → TrendWithTransactions-BLYyM3MY-CYOxRj7-.js} +1 -1
  176. package/dist/assets/{UncategorizedAccountsMappingPage-CFir4dX5-DJbsYjHd.js → UncategorizedAccountsMappingPage-CFir4dX5-Ddpfm4Gt.js} +1 -1
  177. package/dist/assets/{UnitIntegrationPage-CHR1UsV3-CoAODj2A.js → UnitIntegrationPage-CHR1UsV3-CWIgh3WU.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-CVb-0jqF-BDqTVyrb.js → UploadAdditionalDocumentOverlay-CVb-0jqF-CwIiJpSx.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-BJI6SeE0-CTu9U0EV.js → Vendor2FAPopup-BJI6SeE0-CZLk5408.js} +1 -1
  180. package/dist/assets/{VendorACHDetailsPage-DLY7vm1r-DGGLogkV.js → VendorACHDetailsPage-DLY7vm1r-CsSWruRx.js} +1 -1
  181. package/dist/assets/{VendorDetailPage-Bl6Xaq0d-DsXiZRzL.js → VendorDetailPage-Bl6Xaq0d-DDYdEpvK.js} +1 -1
  182. package/dist/assets/{VendorDomesticWireDetailsPage-B83WB2Vz-DFPT0ZYm.js → VendorDomesticWireDetailsPage-B83WB2Vz-CGhWuJwe.js} +1 -1
  183. package/dist/assets/{VendorFiling1099EditablePage-DHabnH22-CEFAMCGK.js → VendorFiling1099EditablePage-DHabnH22-DUppCv6m.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-JhwEqiFF-kofbScrA.js → VendorFirstReviewPage-JhwEqiFF-2FkwyjbW.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-DKsYBIjo-D8VzNPtl.js → VendorInternationalWireDetailsPage-DKsYBIjo-BUfaBgJ0.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-XKp9TJ4g-m_5Ao1BR.js → VendorInternationalWireSwiftDetailsPage-XKp9TJ4g-BATXpPFv.js} +1 -1
  187. package/dist/assets/{VendorsAccountsSection-Bvhib6Hd-BRinGYjw.js → VendorsAccountsSection-Bvhib6Hd-SdNkzQw5.js} +1 -1
  188. package/dist/assets/{VerifyDevice-DGjS39sh-CtcNv75O.js → VerifyDevice-DGjS39sh-CVTt42lP.js} +1 -1
  189. package/dist/assets/{VideoPlayer-DufuoQRs-CzFmZCl7.js → VideoPlayer-DufuoQRs-KcBRcfL0.js} +2 -2
  190. package/dist/assets/{VideoPopup-1aNRmLD6-E6I5SdxR.js → VideoPopup-1aNRmLD6-B8fjOipp.js} +1 -1
  191. package/dist/assets/{WarningsDrawerPage-Bikg48FF-BUXgPrL6.js → WarningsDrawerPage-Bikg48FF-KLdWNjEK.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-DJiB-R44-8YHKJ_Rk.js → ZeniAccountDetailPage-DJiB-R44-v1eDhnlE.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-BJF3-1hq-aqs0GGLS.js → ZeniAccountListViewPage-BJF3-1hq-D-HFzYJF.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-ZZoVi49V-B5zNoIEH.js → ZeniAccountNavBarPieces-ZZoVi49V-CMA3gi6T.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-VfZj6e9J-CEBstujd.js → ZeniAccountPromoPage-VfZj6e9J-2Dbl8jcZ.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-CfUBgLaM-ZmrhqCPO.js → ZeniAccountSetupPage-CfUBgLaM-fW_6mW8s.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-UUk3LylG-VfT1dTbC.js → ZeniCopyright-UUk3LylG-B0W5rvEf.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-DuyKUAsb-Di2nbbIa.js → ZeniTransferAmountSlider-DuyKUAsb-CTY1pn1U.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-DHth-HM4.js → add-to-wallet-DgdBD8_G-DJXoYkQf.js} +1 -1
  200. package/dist/assets/{analytics-CxT-6Gc4.js → analytics-BEw2fi7A.js} +1 -1
  201. package/dist/assets/{analyticsHelper-C_CHYSrd-D1gtzETx.js → analyticsHelper-C_CHYSrd-W8txgNdB.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BbgU3YZ3.js → analyticsHelper-Dvg9Bvbu.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-jJL-u3ku.js → arrow-south-east-round-PEovUgvH-DH9I7vSe.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-Bxbaldq-.js → auto-transfer-rule-mbafm5D3-BJfLub-W.js} +1 -1
  205. package/dist/assets/{chartTypes-CfyGWP2E-zDFdatAv.js → chartTypes-CfyGWP2E-C5b5a70T.js} +1 -1
  206. package/dist/assets/{commonDimensions-uDLC8oOH-DZ9sBzhX.js → commonDimensions-uDLC8oOH-BgYBJaCx.js} +1 -1
  207. package/dist/assets/{commonTypes-DBWmGaRi-Bvj_-gYH.js → commonTypes-DBWmGaRi-B1DwHYjm.js} +1 -1
  208. package/dist/assets/{constants-Dpo-zUMa.js → constants-Cm9RnKqi.js} +1 -1
  209. package/dist/assets/{core-CYa2vsSD.js → core-DQ9KkRWR.js} +1 -1
  210. package/dist/assets/{dash.all.min-BwfoNW06.js → dash.all.min-CcNRgclf.js} +1 -1
  211. package/dist/assets/{detailCommon-CUjnzfBn-Bjs9ry6w.js → detailCommon-CUjnzfBn-floN4K04.js} +1 -1
  212. package/dist/assets/{downloadPdf-DZnGQqi5-DWxICXE5.js → downloadPdf-DZnGQqi5-3hAXxeGU.js} +1 -1
  213. package/dist/assets/{empty-CFYi5Ru2.js → empty-D_eQGbXL.js} +1 -1
  214. package/dist/assets/{empty-BSEyVh8N.js → empty-Tkd4XVrK.js} +1 -1
  215. package/dist/assets/{epic-BaGEtIuG.js → epic-DqyPdO0n.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-D2c9pOix.js → gift-box-Cmt9OgIZ-chX1JxMo.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-Dm8Nhvl9.js → graphic-no-data-l-DU4J8fDt-B_vGHcB3.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CTFvUdJH.js → graphic-no-data-net-burn-l-CzmycA0m-vlyL0FaK.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-cD35y_0x.js → handshake-BPg58FML-CNeixspq.js} +1 -1
  220. package/dist/assets/{index-CLqQIFvx.js → index-4DzZ87kX.js} +7 -7
  221. package/dist/assets/{index-oF3vysIj.js → index-BLVRGVi9.js} +1 -1
  222. package/dist/assets/{index-WnHIYL2y.js → index-C0uZJlx3.js} +1 -1
  223. package/dist/assets/{index-D1NG7F-c.js → index-C1M4inzi.js} +1 -1
  224. package/dist/assets/{index-DEJ7sanz.js → index-Dot8S_1Z.js} +1 -1
  225. package/dist/assets/{index-o7l6M0TC.js → index-M1pD3B5z.js} +1 -1
  226. package/dist/assets/{index-DhBlfmDf.js → index-MXzkUonC.js} +1 -1
  227. package/dist/assets/{lexical-DzVC4tTe.js → lexical-CA4-BPwC.js} +1 -1
  228. package/dist/assets/{liveblocks-DZksneMc.js → liveblocks-zSqDf1bq.js} +1 -1
  229. package/dist/assets/{lottie-EtzJiaFi.js → lottie-BLs4x5z1.js} +1 -1
  230. package/dist/assets/{mapLoadingInProgressToTreeNode-BNip5yf2-B8eJRUmh.js → mapLoadingInProgressToTreeNode-BNip5yf2-Rb4MmfqZ.js} +1 -1
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-6D3s6K5H-Bt6Ormba.js → mapSectionWithAcOnlyToTreeNode-6D3s6K5H-BgUfsXeJ.js} +1 -1
  232. package/dist/assets/{mapSpacerToTreeNode-D950gQIm-BVvu7Mmj.js → mapSpacerToTreeNode-D950gQIm-bKmJ9T9c.js} +1 -1
  233. package/dist/assets/{mapTimeframeBalancesToTreeNode-BwoNhSxI-9FFTEIt6.js → mapTimeframeBalancesToTreeNode-BwoNhSxI-DDWfV1qm.js} +1 -1
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-CpO1mQ6n-CJZiBXdi.js → mapTimeframeBalancesToTreeNode-CpO1mQ6n-BcWRxSRv.js} +1 -1
  235. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-tLFl9PXK-2yg-AGqh.js → mapTimeframeHeaderLoadingInProgressToTreeNode-tLFl9PXK-0WeyYAbR.js} +1 -1
  236. package/dist/assets/{mui-Co4rhSdf.js → mui-B15nRDIw.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-DzQ9yNth.js → page-detail-CWX5S47F-DjMzlOQe.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-DdBmb3s2.js → radio-default-CiSgisfh-CvxGX88t.js} +1 -1
  239. package/dist/assets/{react-DaPNcQnJ.js → react-B09M0c6S.js} +1 -1
  240. package/dist/assets/{react-BfmS3tc2.js → react-BR4hWPov.js} +1 -1
  241. package/dist/assets/{react-B9BOYeX6.js → react-BctF4ASX.js} +2 -2
  242. package/dist/assets/{react-BrZdHxR5.js → react-C0kldXxt.js} +1 -1
  243. package/dist/assets/{react-BHvhexjt.js → react-Cbl0iPuB.js} +1 -1
  244. package/dist/assets/{react-BcTgPaBt.js → react-Cu8UXC-A.js} +1 -1
  245. package/dist/assets/{react-USABo3kI.js → react-Dy285qxA.js} +1 -1
  246. package/dist/assets/{react-hKmyc3EK.js → react-daIwIobh.js} +1 -1
  247. package/dist/assets/{recharts-C4PW-81v.js → recharts-Bdabbksq.js} +1 -1
  248. package/dist/assets/{sentry-Cue4MgLi.js → sentry-DTNzys6B.js} +1 -1
  249. package/dist/assets/{shield-DOlUxcFf-UAy-EXjs.js → shield-DOlUxcFf-BHRPA5sB.js} +1 -1
  250. package/dist/assets/{toCOABalancesWithID-B6AaIKKE-ZUVHY5cX.js → toCOABalancesWithID-B6AaIKKE-D71wud79.js} +1 -1
  251. package/dist/assets/{toChartData-DD8ISjzM-DQ9NjKIx.js → toChartData-DD8ISjzM-DAqcUfAA.js} +1 -1
  252. package/dist/assets/{uploadAttachment-CEqqTe84-MicetzMb.js → uploadAttachment-CEqqTe84-Ck0IMPw8.js} +1 -1
  253. package/dist/assets/{uploadReceipts-CPw64UYa-BwoznkPo.js → uploadReceipts-CPw64UYa-BTwC4JAy.js} +1 -1
  254. package/dist/assets/{url-CpxLPhmr.js → url-CrFUnuDq.js} +1 -1
  255. package/dist/assets/{url-CIbQHzW3.js → url-D3iH5qm6.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-Da6NOL1P.js → useLongPress-GCK2COYQ-B4VQSGYE.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-BZcVCehg.js → usp-line-BBd1wKwW-C2w4m3Sc.js} +1 -1
  258. package/dist/assets/{utils-CxOjlxtI.js → utils-BqD-jFjH.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-DcWK4mxP.js → zeni-epic-state-fcAUn9iH.js} +3 -3
  260. package/dist/index.html +1 -1
  261. package/package.json +1 -1
  262. package/dist/assets/CustomerOnboardingContainerPage-DGhE9fpo-BZZCLRzR.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as O,F as u,V as i,n as k,o,y as a,p as c,fL as I,R as T,af as D,bu as E,eJ as W,fC as _,aT as h,ai as f,c as r}from"./index-CLqQIFvx.js";import{n}from"./mui-Co4rhSdf.js";import q from"./QBOConnectionDialog-A0ysjdIC-Eqpwl6_L.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]="cada12bc-8fc7-4afe-8130-c91d6ee1734b",e._sentryDebugIdIdentifier="sentry-dbid-cada12bc-8fc7-4afe-8130-c91d6ee1734b")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},B={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:w,handleOnConnectClick:b})=>{const s=O(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(G,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[s==="small"?i.jsx(J,{children:d?i.jsx(K,{}):i.jsx(U,{})}):null,i.jsx(F,{windowSize:s,children:S})]}),i.jsxs(H,{windowSize:s,children:[i.jsxs(N,{windowSize:s,children:[i.jsxs(R,{children:[i.jsx(V,{}),i.jsx(L,{windowSize:s}),i.jsx(M,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>w(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(Q,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(q,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>w(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(_,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new h(c.successDark),borderColor:new h(c.successDark)}})},G=n.div`
1
+ import{q as O,F as u,V as i,n as k,o,y as a,p as c,fL as I,R as T,af as D,bu as E,eJ as W,fC as _,aT as h,ai as f,c as r}from"./index-4DzZ87kX.js";import{n}from"./mui-B15nRDIw.js";import q from"./QBOConnectionDialog-A0ysjdIC-Cvw-OxXn.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]="cada12bc-8fc7-4afe-8130-c91d6ee1734b",e._sentryDebugIdIdentifier="sentry-dbid-cada12bc-8fc7-4afe-8130-c91d6ee1734b")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},B={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:w,handleOnConnectClick:b})=>{const s=O(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(G,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[s==="small"?i.jsx(J,{children:d?i.jsx(K,{}):i.jsx(U,{})}):null,i.jsx(F,{windowSize:s,children:S})]}),i.jsxs(H,{windowSize:s,children:[i.jsxs(N,{windowSize:s,children:[i.jsxs(R,{children:[i.jsx(V,{}),i.jsx(L,{windowSize:s}),i.jsx(M,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>w(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(Q,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(q,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>w(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(_,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new h(c.successDark),borderColor:new h(c.successDark)}})},G=n.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as W,c as L,d as M,q as G,F as U,a9 as H,aO as X,aH as J,cC as K,V as r,bA as Q,ac as Y,aP as Z,o as b,g3 as ee}from"./index-CLqQIFvx.js";import{a as T}from"./sentry-Cue4MgLi.js";import{n as c}from"./mui-Co4rhSdf.js";import{b as ae,f as te,o as k,l as B}from"./FollowStepsSection-C1Nmspra-Cdu3naRV.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./zeni-epic-state-DcWK4mxP.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.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]="ee0d2b35-ea19-4cf6-b269-db77e58ef9a5",e._sentryDebugIdIdentifier="sentry-dbid-ee0d2b35-ea19-4cf6-b269-db77e58ef9a5")}catch{}})();const C="reimbursementApprovalRuleDetailPage",$="lowerBound",j="upperBound",A="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Pe({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:I}){const F=M(),w=G(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=X(u?.fetchState),{upperBound:R}=x,{allApprovalRules:i,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=i.length>1?i.length-1:0,v=i.length>0?i[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=i.findIndex(d=>d.approvalRuleId===n),v=f>0?i[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,d)=>{g(d)};return T.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=J(d);K(()=>z(D,O))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&I()},[P,u?.fetchState,I]),r.jsxs(ie,{children:[r.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:_(C),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:$,placeholder:"$0",options:{required:!0,max:R===1/0?Number.MAX_SAFE_INTEGER-1:R-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:A,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[A],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(w)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[A]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),k(e.allAttributes),k(e.filteredAttributes),o??[])??[],[$]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:B},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:B},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),_=e=>`${e}_form`,Re=e=>`${e}`,ie=c.div`
1
+ import{y as W,c as L,d as M,q as G,F as U,a9 as H,aO as X,aH as J,cC as K,V as r,bA as Q,ac as Y,aP as Z,o as b,g3 as ee}from"./index-4DzZ87kX.js";import{a as T}from"./sentry-DTNzys6B.js";import{n as c}from"./mui-B15nRDIw.js";import{b as ae,f as te,o as k,l as B}from"./FollowStepsSection-C1Nmspra-D3s2sQ4x.js";import"./liveblocks-zSqDf1bq.js";import"./core-DQ9KkRWR.js";import"./recharts-Bdabbksq.js";import"./zeni-epic-state-fcAUn9iH.js";import"./lottie-BLs4x5z1.js";import"./analytics-BEw2fi7A.js";import"./lexical-CA4-BPwC.js";import"./utils-BqD-jFjH.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]="ee0d2b35-ea19-4cf6-b269-db77e58ef9a5",e._sentryDebugIdIdentifier="sentry-dbid-ee0d2b35-ea19-4cf6-b269-db77e58ef9a5")}catch{}})();const C="reimbursementApprovalRuleDetailPage",$="lowerBound",j="upperBound",A="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Pe({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:I}){const F=M(),w=G(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=X(u?.fetchState),{upperBound:R}=x,{allApprovalRules:i,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=i.length>1?i.length-1:0,v=i.length>0?i[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=i.findIndex(d=>d.approvalRuleId===n),v=f>0?i[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,d)=>{g(d)};return T.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=J(d);K(()=>z(D,O))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&I()},[P,u?.fetchState,I]),r.jsxs(ie,{children:[r.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:_(C),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:$,placeholder:"$0",options:{required:!0,max:R===1/0?Number.MAX_SAFE_INTEGER-1:R-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:A,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[A],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(w)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[A]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),k(e.allAttributes),k(e.filteredAttributes),o??[])??[],[$]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:B},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:B},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),_=e=>`${e}_form`,Re=e=>`${e}`,ie=c.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{d as _,q as W,F as S,V as t,bA as M,k as E,aN as j,o,y as r,al as z,aL as P,cn as H,co as V,cp as G,cX as U,c as l,b8 as q,R as T,b7 as F,p as k,cW as J,bs as K,b as O}from"./index-CLqQIFvx.js";import{n as i}from"./mui-Co4rhSdf.js";import{a as Q}from"./sentry-Cue4MgLi.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./zeni-epic-state-DcWK4mxP.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="7f94a5bd-c7c7-44b9-8332-0d818d241bcc",e._sentryDebugIdIdentifier="sentry-dbid-7f94a5bd-c7c7-44b9-8332-0d818d241bcc")}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)},A={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},X=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:u,onEditRuleClick:b,onDeleteRuleClick:v})=>{const[x,c]=Q.useState(!1),a=W(),{range:d}=u.criteria[0],{steps:g,approvalRuleId:w}=u,n=S.getLocalizedStrings().commonSetUp.approval,f=()=>{c(!0)},y={onOkClick:()=>{c(!1),v?.(w)},onCancelClick:()=>{c(!1)}};return t.jsxs(Y,{windowSize:a,isLastSection:m,"data-testid":j("approval-rule-section",w),children:[t.jsxs(Z,{windowSize:a,children:[t.jsxs(ne,{children:[t.jsxs(L,{windowSize:a,children:[n.from," ",P("0,0",d.min)]}),t.jsxs(ee,{children:[t.jsx(R,{}),t.jsx(te,{}),t.jsx(R,{})]}),d.max==null?t.jsx(ce,{}):t.jsx(L,{windowSize:a,children:P("0,0",{...d.min,amount:d.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e?t.jsx(pe,{onClick:f}):null,t.jsx(de,{onClick:()=>{b(w)},"data-testid":j("edit-approval-rule",w)})]})]}),t.jsx(oe,{windowSize:a,children:t.jsx(ie,{isSingleStep:g.length===1,windowSize:a,children:g.map((h,D)=>t.jsxs(re,{isSingleStep:g.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?t.jsx(le,{children:n.requireText}):t.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(B,{children:[t.jsx(I,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${N}`)),h.actors.map(p=>t.jsxs(B,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},D))})}),x?t.jsx(H,{titleComponent:t.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:y}):null]})},Y=i.div`
1
+ import{d as _,q as W,F as S,V as t,bA as M,k as E,aN as j,o,y as r,al as z,aL as P,cn as H,co as V,cp as G,cX as U,c as l,b8 as q,R as T,b7 as F,p as k,cW as J,bs as K,b as O}from"./index-4DzZ87kX.js";import{n as i}from"./mui-B15nRDIw.js";import{a as Q}from"./sentry-DTNzys6B.js";import"./liveblocks-zSqDf1bq.js";import"./core-DQ9KkRWR.js";import"./recharts-Bdabbksq.js";import"./zeni-epic-state-fcAUn9iH.js";import"./lottie-BLs4x5z1.js";import"./analytics-BEw2fi7A.js";import"./lexical-CA4-BPwC.js";import"./utils-BqD-jFjH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="7f94a5bd-c7c7-44b9-8332-0d818d241bcc",e._sentryDebugIdIdentifier="sentry-dbid-7f94a5bd-c7c7-44b9-8332-0d818d241bcc")}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)},A={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},X=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:u,onEditRuleClick:b,onDeleteRuleClick:v})=>{const[x,c]=Q.useState(!1),a=W(),{range:d}=u.criteria[0],{steps:g,approvalRuleId:w}=u,n=S.getLocalizedStrings().commonSetUp.approval,f=()=>{c(!0)},y={onOkClick:()=>{c(!1),v?.(w)},onCancelClick:()=>{c(!1)}};return t.jsxs(Y,{windowSize:a,isLastSection:m,"data-testid":j("approval-rule-section",w),children:[t.jsxs(Z,{windowSize:a,children:[t.jsxs(ne,{children:[t.jsxs(L,{windowSize:a,children:[n.from," ",P("0,0",d.min)]}),t.jsxs(ee,{children:[t.jsx(R,{}),t.jsx(te,{}),t.jsx(R,{})]}),d.max==null?t.jsx(ce,{}):t.jsx(L,{windowSize:a,children:P("0,0",{...d.min,amount:d.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e?t.jsx(pe,{onClick:f}):null,t.jsx(de,{onClick:()=>{b(w)},"data-testid":j("edit-approval-rule",w)})]})]}),t.jsx(oe,{windowSize:a,children:t.jsx(ie,{isSingleStep:g.length===1,windowSize:a,children:g.map((h,D)=>t.jsxs(re,{isSingleStep:g.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?t.jsx(le,{children:n.requireText}):t.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(B,{children:[t.jsx(I,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${N}`)),h.actors.map(p=>t.jsxs(B,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},D))})}),x?t.jsx(H,{titleComponent:t.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:y}):null]})},Y=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{aw as Mt,a8 as Rt,q as Pt,d as Bt,cb as Nt,y as m,F as et,gf as Lt,gh as _t,gi as Ot,V as t,cn as Ae,co as Me,cp as Re,bA as Pe,aN as y,bn as Wt,dq as Et,gj as Ft,gu as Be,o as a,gk as Ne,fe as b,gn as w,fh as x,aL as Le,fd as _e,b as V,gp as Oe,aP as Kt,ao as Ut,gq as Vt,gr as re,bw as Gt,gs as Ht,L as qt,R as Yt,M as Jt,al as tt,b8 as it,p as G,am as Qt,bT as Zt,ai as Xt,gL as ei,gH as ti,c,cg as ii,cU as ai}from"./index-CLqQIFvx.js";import{a as p}from"./sentry-Cue4MgLi.js";import{n as r}from"./mui-Co4rhSdf.js";import{a as ri}from"./liveblocks-DZksneMc.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-DcWK4mxP.js";import si from"./InvoiceUploadSection-H-JhX_DQ-B3PXCVQk.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CYa2vsSD.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./recharts-C4PW-81v.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.js";import"./AttachmentView-uaen0kuU-Bv_0F11t.js";import"./uploadReceipts-CPw64UYa-BwoznkPo.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]="97ed9c18-9270-4092-890d-91c1ac65355d",e._sentryDebugIdIdentifier="sentry-dbid-97ed9c18-9270-4092-890d-91c1ac65355d")}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 Yt("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:H,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),[q,Y]=p.useState(!1),[ct,J]=p.useState(!1),[Q,Z]=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")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};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():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("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(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ye,{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(Ge,{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(qe,{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(Ye,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{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(qe,{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(Qe,{windowSize:o,children:[t.jsx(Ze,{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(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{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(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),q===!0&&Y(!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:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="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:Q==="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&&q?t.jsx(Ut,{onClickAway:()=>Y(!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:()=>Y(!q),"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{aw as Mt,a8 as Rt,q as Pt,d as Bt,cb as Nt,y as m,F as et,gf as Lt,gh as _t,gi as Ot,V as t,cn as Ae,co as Me,cp as Re,bA as Pe,aN as y,bn as Wt,dq as Et,gj as Ft,gu as Be,o as a,gk as Ne,fe as b,gn as w,fh as x,aL as Le,fd as _e,b as V,gp as Oe,aP as Kt,ao as Ut,gq as Vt,gr as re,bw as Gt,gs as Ht,L as qt,R as Yt,M as Jt,al as tt,b8 as it,p as G,am as Qt,bT as Zt,ai as Xt,gL as ei,gH as ti,c,cg as ii,cU as ai}from"./index-4DzZ87kX.js";import{a as p}from"./sentry-DTNzys6B.js";import{n as r}from"./mui-B15nRDIw.js";import{a as ri}from"./liveblocks-zSqDf1bq.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-fcAUn9iH.js";import si from"./InvoiceUploadSection-H-JhX_DQ-CuMMrjJG.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-DQ9KkRWR.js";import"./lottie-BLs4x5z1.js";import"./analytics-BEw2fi7A.js";import"./recharts-Bdabbksq.js";import"./lexical-CA4-BPwC.js";import"./utils-BqD-jFjH.js";import"./AttachmentView-uaen0kuU-9Lfk2NiV.js";import"./uploadReceipts-CPw64UYa-BTwC4JAy.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]="97ed9c18-9270-4092-890d-91c1ac65355d",e._sentryDebugIdIdentifier="sentry-dbid-97ed9c18-9270-4092-890d-91c1ac65355d")}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 Yt("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:H,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),[q,Y]=p.useState(!1),[ct,J]=p.useState(!1),[Q,Z]=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")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};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():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("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(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ye,{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(Ge,{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(qe,{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(Ye,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{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(qe,{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(Qe,{windowSize:o,children:[t.jsx(Ze,{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(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{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(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),q===!0&&Y(!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:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="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:Q==="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&&q?t.jsx(Ut,{onClickAway:()=>Y(!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:()=>Y(!q),"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{aw as ne,d as S,q as k,aO as le,V as e,aN as a,fp as ae,bA as de,n as u,ae as d,F,o as s,aq as ce,a as me,aR as E,am as pe,y as xe,p as z,cB as he,aS as ue,b9 as ge,c as we}from"./index-CLqQIFvx.js";import{a as j}from"./sentry-Cue4MgLi.js";import{n as r}from"./mui-Co4rhSdf.js";import{FG as je,bT as be}from"./zeni-epic-state-DcWK4mxP.js";import{f as fe}from"./VideoPopup-1aNRmLD6-E6I5SdxR.js";import{M as v}from"./usp-line-BBd1wKwW-BZcVCehg.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.js";import"./VideoPlayer-DufuoQRs-CzFmZCl7.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]="a97bed90-6a4b-4629-821c-be5909ce073d",i._sentryDebugIdIdentifier="sentry-dbid-a97bed90-6a4b-4629-821c-be5909ce073d")}catch{}})();const N="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
1
+ import{aw as ne,d as S,q as k,aO as le,V as e,aN as a,fp as ae,bA as de,n as u,ae as d,F,o as s,aq as ce,a as me,aR as E,am as pe,y as xe,p as z,cB as he,aS as ue,b9 as ge,c as we}from"./index-4DzZ87kX.js";import{a as j}from"./sentry-DTNzys6B.js";import{n as r}from"./mui-B15nRDIw.js";import{FG as je,bT as be}from"./zeni-epic-state-fcAUn9iH.js";import{f as fe}from"./VideoPopup-1aNRmLD6-B8fjOipp.js";import{M as v}from"./usp-line-BBd1wKwW-C2w4m3Sc.js";import"./liveblocks-zSqDf1bq.js";import"./core-DQ9KkRWR.js";import"./recharts-Bdabbksq.js";import"./lottie-BLs4x5z1.js";import"./analytics-BEw2fi7A.js";import"./lexical-CA4-BPwC.js";import"./utils-BqD-jFjH.js";import"./VideoPlayer-DufuoQRs-KcBRcfL0.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]="a97bed90-6a4b-4629-821c-be5909ce073d",i._sentryDebugIdIdentifier="sentry-dbid-a97bed90-6a4b-4629-821c-be5909ce073d")}catch{}})();const N="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as Je,p as J,y as s,bA as Ze,k as Ye,ac as Ke,fq as ve,dL as Xe,fr as Qe,bv as et,dB as tt,aP as it,o as a,ft as nt,c as n,cg as ot,cP as at,eo as lt,fC as ke,fD as $e,ge as st,n as rt,aN as Pe,R as Ae,bK as dt,ai as ct,bs as ut}from"./index-CLqQIFvx.js";import{a as o}from"./sentry-Cue4MgLi.js";import{n as i}from"./mui-Co4rhSdf.js";import{bJ as mt}from"./zeni-epic-state-DcWK4mxP.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-CVb-0jqF-BDqTVyrb.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.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]="fae51e5b-4a08-456d-8b20-3ee0e5509366",e._sentryDebugIdIdentifier="sentry-dbid-fae51e5b-4a08-456d-8b20-3ee0e5509366")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ee(),D=Te(),{formState:{errors:Y},trigger:K}=at(),T=ht(P,"mileageAmountInDenomination"),x=lt(Y,T),{localData:d,updateStatus:F,mileageStatus:w}=p,W=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ie.getLocalizedStrings(),{reimbursement:ee}=Q,[C,E]=o.useState(W),[te,U]=o.useState(!1);o.useEffect(()=>{x||K(T)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&E(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||U(C)},[C]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=C===!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:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(Ct,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(St,{})]})]}),t.jsxs(Tt,{children:[t.jsxs(Et,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:C||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:T,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(Vt,{children:C?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&W&&!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(),E(!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 Te,q as Ee,aO as N,a9 as qe,cC as Ge,F as Ie,aT as Se,V as t,f7 as Je,p as J,y as s,bA as Ze,k as Ye,ac as Ke,fq as ve,dL as Xe,fr as Qe,bv as et,dB as tt,aP as it,o as a,ft as nt,c as n,cg as ot,cP as at,eo as lt,fC as ke,fD as $e,ge as st,n as rt,aN as Pe,R as Ae,bK as dt,ai as ct,bs as ut}from"./index-4DzZ87kX.js";import{a as o}from"./sentry-DTNzys6B.js";import{n as i}from"./mui-B15nRDIw.js";import{bJ as mt}from"./zeni-epic-state-fcAUn9iH.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-CVb-0jqF-CwIiJpSx.js";import"./liveblocks-zSqDf1bq.js";import"./core-DQ9KkRWR.js";import"./recharts-Bdabbksq.js";import"./lottie-BLs4x5z1.js";import"./analytics-BEw2fi7A.js";import"./lexical-CA4-BPwC.js";import"./utils-BqD-jFjH.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]="fae51e5b-4a08-456d-8b20-3ee0e5509366",e._sentryDebugIdIdentifier="sentry-dbid-fae51e5b-4a08-456d-8b20-3ee0e5509366")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ee(),D=Te(),{formState:{errors:Y},trigger:K}=at(),T=ht(P,"mileageAmountInDenomination"),x=lt(Y,T),{localData:d,updateStatus:F,mileageStatus:w}=p,W=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ie.getLocalizedStrings(),{reimbursement:ee}=Q,[C,E]=o.useState(W),[te,U]=o.useState(!1);o.useEffect(()=>{x||K(T)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&E(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||U(C)},[C]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=C===!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:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(Ct,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(St,{})]})]}),t.jsxs(Tt,{children:[t.jsxs(Et,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:C||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:T,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(Vt,{children:C?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&W&&!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(),E(!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 b,cn as V,co as M,cp as W,k6 as q,aW as z,F as G}from"./index-CLqQIFvx.js";import{a as f}from"./sentry-Cue4MgLi.js";import{Ge as K}from"./zeni-epic-state-DcWK4mxP.js";import{u as Q}from"./ReviewOverlay-tGj059Ib-BvRNdoTH.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./mui-Co4rhSdf.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.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]="c7b80e46-0cfd-416c-bb52-4d99bd15ce9d",e._sentryDebugIdIdentifier="sentry-dbid-c7b80e46-0cfd-416c-bb52-4d99bd15ce9d")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=f.useState(!1),[d,_]=f.useState(P(e,v,o)),[h,R]=f.useState(v),[B,H]=f.useState(0),[w,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.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,S=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=X(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},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 b.jsxs(b.Fragment,{children:[x?b.jsx(V,{titleComponent:b.jsx(W,{children:w.title}),descriptionComponent:b.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===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=q(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:z("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)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let 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?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(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 b,cn as V,co as M,cp as W,k6 as q,aW as z,F as G}from"./index-4DzZ87kX.js";import{a as f}from"./sentry-DTNzys6B.js";import{Ge as K}from"./zeni-epic-state-fcAUn9iH.js";import{u as Q}from"./ReviewOverlay-tGj059Ib-Bwn4pvXK.js";import"./liveblocks-zSqDf1bq.js";import"./core-DQ9KkRWR.js";import"./recharts-Bdabbksq.js";import"./mui-B15nRDIw.js";import"./lottie-BLs4x5z1.js";import"./analytics-BEw2fi7A.js";import"./lexical-CA4-BPwC.js";import"./utils-BqD-jFjH.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]="c7b80e46-0cfd-416c-bb52-4d99bd15ce9d",e._sentryDebugIdIdentifier="sentry-dbid-c7b80e46-0cfd-416c-bb52-4d99bd15ce9d")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=f.useState(!1),[d,_]=f.useState(P(e,v,o)),[h,R]=f.useState(v),[B,H]=f.useState(0),[w,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.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,S=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=X(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},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 b.jsxs(b.Fragment,{children:[x?b.jsx(V,{titleComponent:b.jsx(W,{children:w.title}),descriptionComponent:b.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===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=q(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:z("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)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let 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?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(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,aK as a,b1 as x,F as y,aN as m,aQ as h,bC as g,ai as f,o as c,b2 as b}from"./index-CLqQIFvx.js";import{n as d}from"./mui-Co4rhSdf.js";import{a as s}from"./sentry-Cue4MgLi.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]="abcbfcc8-e8b5-453d-8f47-21f2802d0004",e._sentryDebugIdIdentifier="sentry-dbid-abcbfcc8-e8b5-453d-8f47-21f2802d0004")}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 p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=d(h)`
1
+ import{d as l,V as r,aK as a,b1 as x,F as y,aN as m,aQ as h,bC as g,ai as f,o as c,b2 as b}from"./index-4DzZ87kX.js";import{n as d}from"./mui-B15nRDIw.js";import{a as s}from"./sentry-DTNzys6B.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]="abcbfcc8-e8b5-453d-8f47-21f2802d0004",e._sentryDebugIdIdentifier="sentry-dbid-abcbfcc8-e8b5-453d-8f47-21f2802d0004")}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 p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=d(h)`
2
2
  justify-content: flex-start;
3
3
  `;function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({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 j=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,q as de,cb as xe,a9 as ye,V as o,ao as _e,cc as te,ac as we,y as D,aP as $e,o as n,F as oe,cd as ve,ce as ke,cf as Ce,cg as je,ch as Ie,am as he,ci as Se,ai as Ne,aB as X,bC as De,c as f,aT as Pe,al as Oe,au as Fe}from"./index-CLqQIFvx.js";import{a as u,S as ue}from"./sentry-Cue4MgLi.js";import{n as d}from"./mui-Co4rhSdf.js";import{R as P,I as Be}from"./CollapsableReportTable-CRaZZnGr-DHalWth7.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]="d39deea1-a5aa-4f70-be21-875aa0e14ed6",e._sentryDebugIdIdentifier="sentry-dbid-d39deea1-a5aa-4f70-be21-875aa0e14ed6")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Te(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,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,q as de,cb as xe,a9 as ye,V as o,ao as _e,cc as te,ac as we,y as D,aP as $e,o as n,F as oe,cd as ve,ce as ke,cf as Ce,cg as je,ch as Ie,am as he,ci as Se,ai as Ne,aB as X,bC as De,c as f,aT as Pe,al as Oe,au as Fe}from"./index-4DzZ87kX.js";import{a as u,S as ue}from"./sentry-DTNzys6B.js";import{n as d}from"./mui-B15nRDIw.js";import{R as P,I as Be}from"./CollapsableReportTable-CRaZZnGr-D1FLfhCE.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]="d39deea1-a5aa-4f70-be21-875aa0e14ed6",e._sentryDebugIdIdentifier="sentry-dbid-d39deea1-a5aa-4f70-be21-875aa0e14ed6")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Te(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,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{q as W,d as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o as w,aR as we,k as ye,y as B,bN as Ce,c as S,H as A,aB as X,G as xe,aT as Oe,at as Re,bJ as Ae}from"./index-CLqQIFvx.js";import{a as T,S as K}from"./sentry-Cue4MgLi.js";import{n as _}from"./mui-Co4rhSdf.js";import{bg as Z,EN as Be,EW as ve,EX as E,EY as Le,EZ as Te,E_ as Pe,E$ as Ne,F0 as ke,F1 as ee,F2 as te}from"./zeni-epic-state-DcWK4mxP.js";import{m as z,l as q}from"./analyticsHelper-C_CHYSrd-D1gtzETx.js";import{x as Ie}from"./ReportTableViewSelector-D1k2eDtE-DWKTaUmF.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-CIhE-4dW-CNYy5JM_.js";import{M as Me}from"./TimeframeSwitcherWithToggle-BKRmBPLL-D7T-iUSK.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-Nc_Ra7Co-DN1ubFHO.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-CRaZZnGr-DHalWth7.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-6D3s6K5H-Bt6Ormba.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BwoNhSxI-9FFTEIt6.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-tLFl9PXK-2yg-AGqh.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-BNip5yf2-B8eJRUmh.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.js";import"./TimeframeSwitcher-YlXclGGy-Dzk_QBMX.js";import"./page-detail-CWX5S47F-DzQ9yNth.js";import"./AccountRow-Bq6uJ1hA-Vc9-Z3M-.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]="8bffa30a-30a9-445c-b339-77891ec86acf",e._sentryDebugIdIdentifier="sentry-dbid-8bffa30a-30a9-445c-b339-77891ec86acf")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),f=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push($({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push($({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{q as W,d as G,F as y,aw as ge,V as r,bM as _e,aN as P,bB as be,bA as Se,o as w,aR as we,k as ye,y as B,bN as Ce,c as S,H as A,aB as X,G as xe,aT as Oe,at as Re,bJ as Ae}from"./index-4DzZ87kX.js";import{a as T,S as K}from"./sentry-DTNzys6B.js";import{n as _}from"./mui-B15nRDIw.js";import{bg as Z,EN as Be,EW as ve,EX as E,EY as Le,EZ as Te,E_ as Pe,E$ as Ne,F0 as ke,F1 as ee,F2 as te}from"./zeni-epic-state-fcAUn9iH.js";import{m as z,l as q}from"./analyticsHelper-C_CHYSrd-W8txgNdB.js";import{x as Ie}from"./ReportTableViewSelector-D1k2eDtE-CoAwDvw1.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-CIhE-4dW-De_4fCGW.js";import{M as Me}from"./TimeframeSwitcherWithToggle-BKRmBPLL-BbjV9aR9.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-Nc_Ra7Co-CEm2hY5a.js";import{I as $e,R as F,x as ne}from"./CollapsableReportTable-CRaZZnGr-D1FLfhCE.js";import{D as oe,T as ae,C as $,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-6D3s6K5H-BgUfsXeJ.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BwoNhSxI-DDWfV1qm.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-tLFl9PXK-0WeyYAbR.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-BNip5yf2-Rb4MmfqZ.js";import"./liveblocks-zSqDf1bq.js";import"./core-DQ9KkRWR.js";import"./recharts-Bdabbksq.js";import"./lottie-BLs4x5z1.js";import"./analytics-BEw2fi7A.js";import"./lexical-CA4-BPwC.js";import"./utils-BqD-jFjH.js";import"./TimeframeSwitcher-YlXclGGy-Dhm3AMez.js";import"./page-detail-CWX5S47F-DjMzlOQe.js";import"./AccountRow-Bq6uJ1hA-Dq-J-ens.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]="8bffa30a-30a9-445c-b339-77891ec86acf",e._sentryDebugIdIdentifier="sentry-dbid-8bffa30a-30a9-445c-b339-77891ec86acf")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push($({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),f=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push($({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push($({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,q as de,b2 as Q,c as I,b as M,aW as J,o as m,aN as Ae,p as g,aB as Ve,y as xe,bK as ge,al as R,bL as V,b9 as F}from"./index-CLqQIFvx.js";import{a as P,S as ee}from"./sentry-Cue4MgLi.js";import{n as x}from"./mui-Co4rhSdf.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-CfyGWP2E-zDFdatAv.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-B6AaIKKE-ZUVHY5cX.js";import{V as Z}from"./toChartData-DD8ISjzM-DQ9NjKIx.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-C4PW-81v.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]="2d8be8f2-43f0-4f5c-8b7a-e5b01c1be359",e._sentryDebugIdIdentifier="sentry-dbid-2d8be8f2-43f0-4f5c-8b7a-e5b01c1be359")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{d as A,V as a,F as D,q as de,b2 as Q,c as I,b as M,aW as J,o as m,aN as Ae,p as g,aB as Ve,y as xe,bK as ge,al as R,bL as V,b9 as F}from"./index-4DzZ87kX.js";import{a as P,S as ee}from"./sentry-DTNzys6B.js";import{n as x}from"./mui-B15nRDIw.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-CfyGWP2E-C5b5a70T.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-B6AaIKKE-D71wud79.js";import{V as Z}from"./toChartData-DD8ISjzM-DAqcUfAA.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-Bdabbksq.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]="2d8be8f2-43f0-4f5c-8b7a-e5b01c1be359",e._sentryDebugIdIdentifier="sentry-dbid-2d8be8f2-43f0-4f5c-8b7a-e5b01c1be359")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -1,4 +1,4 @@
1
- import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as At,f6 as Mt,f7 as Bt,f8 as Ft,aL as A,f9 as Rt,aN as j,fa as Lt,fb as Me,fc as Be,fd as Fe,b as H,fe as O,p as S,ff as zt,fg as E,fh as Z,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,c as s,F as Zt,ag as _t,c0 as qt,R as Wt,M as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Ht,fm as Kt,bh as Ut,l as Jt,b8 as Qt,fn as Xt,aq as et,bI as en,ai as tt,bs as tn,fo as nn}from"./index-CLqQIFvx.js";import{a as q}from"./sentry-Cue4MgLi.js";import{n as a}from"./mui-Co4rhSdf.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-DcWK4mxP.js";import{t as rn,o as dn}from"./LowBalancePopup-DQJYforY-CaW9bnoT.js";import{S as _}from"./LabeledText-C91Eu04E-DW9Q389z.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.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]="4b6911bf-691c-4658-a5b1-a43faf8add6e",e._sentryDebugIdIdentifier="sentry-dbid-4b6911bf-691c-4658-a5b1-a43faf8add6e")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Zt.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,Ze=({attachment:e})=>{const[y,f]=q.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:Q,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=q.useState(!1),[mt,xe]=q.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);q.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,W=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&W?.code?W:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&W?.code?W:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,V=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,V,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?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?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&Y(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,Y]=q.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(qn,{children:[t.jsx(Gn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Wn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Zn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?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(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{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(Ye,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ye,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(We,{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(We,{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:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:qe(!1,k,b,V,d)}},primaryBtn:{label:_e(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?Y(!0):Se()},style:{width:qe(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},_e=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,qe=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=a(en)`
1
+ import{q as Tt,aw as Ct,y as u,f0 as Dt,f1 as It,f2 as Pt,V as t,f3 as kt,f4 as le,f5 as At,f6 as Mt,f7 as Bt,f8 as Ft,aL as A,f9 as Rt,aN as j,fa as Lt,fb as Me,fc as Be,fd as Fe,b as H,fe as O,p as S,ff as zt,fg as E,fh as Z,fi as Nt,fj as Ot,bR as Re,o as n,aP as Et,c as s,F as Zt,ag as _t,c0 as qt,R as Wt,M as Gt,fk as Vt,cg as Yt,al as se,am as ce,fl as Ht,fm as Kt,bh as Ut,l as Jt,b8 as Qt,fn as Xt,aq as et,bI as en,ai as tt,bs as tn,fo as nn}from"./index-4DzZ87kX.js";import{a as q}from"./sentry-DTNzys6B.js";import{n as a}from"./mui-B15nRDIw.js";import{bo as Le,bm as ze,bH as I,bN as an,Fv as ln,bL as oe,bP as on}from"./zeni-epic-state-fcAUn9iH.js";import{t as rn,o as dn}from"./LowBalancePopup-DQJYforY-CTxVxhCr.js";import{S as _}from"./LabeledText-C91Eu04E-UhheuOCH.js";import"./liveblocks-zSqDf1bq.js";import"./core-DQ9KkRWR.js";import"./recharts-Bdabbksq.js";import"./lottie-BLs4x5z1.js";import"./analytics-BEw2fi7A.js";import"./lexical-CA4-BPwC.js";import"./utils-BqD-jFjH.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]="4b6911bf-691c-4658-a5b1-a43faf8add6e",e._sentryDebugIdIdentifier="sentry-dbid-4b6911bf-691c-4658-a5b1-a43faf8add6e")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=Zt.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,Ze=({attachment:e})=>{const[y,f]=q.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Kt,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:Q,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=q.useState(!1),[mt,xe]=q.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);q.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,W=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&W?.code?W:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&W?.code?W:P,ne=()=>{me()},we=()=>{me()},G=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,V=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=_e(b,V,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?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?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Ae):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Ae)}}},Se=()=>{Te===!0&&Y(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,Y]=q.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{Y(!1),ne()},onClickAway:()=>{Y(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ke,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Vn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(qn,{children:[t.jsx(Gn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Wn,{children:nt.includes(d)?t.jsxs(Ve,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Qe,{windowSize:d,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Zn,{"data-testid":j("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(U,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?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(Ve,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ze,{attachment:l.attachments[0]}):t.jsx(Ue,{children:t.jsx(Je,{})}),t.jsxs(_n,{"data-testid":j("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:d,children:A("0,0[.]00",l.amount)})]}),t.jsx(Xe,{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(Ye,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ye,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(K,{}),!g&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:G.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(G.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:Z({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(We,{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(We,{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:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:qe(!1,k,b,V,d)}},primaryBtn:{label:_e(b,V,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?Y(!0):Se()},style:{width:qe(!0,k,b,V,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Yn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Kn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},_e=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,qe=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=a(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{q as L,V as i,aN as m,o as r,aP as M,y as d,L as B,R as I,M as W,p as s,al as j,cz as C,k as R,ai as b,bg as D,c as n,ef as G,u as _,iU as q,k5 as A}from"./index-CLqQIFvx.js";import{n as t}from"./mui-Co4rhSdf.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]="5d53e90f-a21d-413b-9144-a8effa06f86f",e._sentryDebugIdIdentifier="sentry-dbid-5d53e90f-a21d-413b-9144-a8effa06f86f")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=L();return i.jsxs(H,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:a,children:[i.jsxs(N,{windowSize:a,children:[i.jsx(O,{children:i.jsx(U,{windowSize:a,children:e})}),i.jsx(K,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(Q,{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:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(M,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
1
+ import{q as L,V as i,aN as m,o as r,aP as M,y as d,L as B,R as I,M as W,p as s,al as j,cz as C,k as R,ai as b,bg as D,c as n,ef as G,u as _,iU as q,k5 as A}from"./index-4DzZ87kX.js";import{n as t}from"./mui-B15nRDIw.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]="5d53e90f-a21d-413b-9144-a8effa06f86f",e._sentryDebugIdIdentifier="sentry-dbid-5d53e90f-a21d-413b-9144-a8effa06f86f")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:P})=>{const a=L();return i.jsxs(H,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:a,children:[i.jsxs(N,{windowSize:a,children:[i.jsx(O,{children:i.jsx(U,{windowSize:a,children:e})}),i.jsx(K,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(Q,{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:()=>P(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(M,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=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{eM as h,eN as b,V as s,bR as f,o as d,aN as l,F as g,an as x,ai as c}from"./index-CLqQIFvx.js";import{n}from"./mui-Co4rhSdf.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]="61eb3be2-80a0-452c-8aed-e8bcb86512f6",e._sentryDebugIdIdentifier="sentry-dbid-61eb3be2-80a0-452c-8aed-e8bcb86512f6")}catch{}})();const{hyphen:i}=g.getLocalizedStrings().common.strings,y=n.div``,m=n.div`
1
+ import{eM as h,eN as b,V as s,bR as f,o as d,aN as l,F as g,an as x,ai as c}from"./index-4DzZ87kX.js";import{n}from"./mui-B15nRDIw.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]="61eb3be2-80a0-452c-8aed-e8bcb86512f6",e._sentryDebugIdIdentifier="sentry-dbid-61eb3be2-80a0-452c-8aed-e8bcb86512f6")}catch{}})();const{hyphen:i}=g.getLocalizedStrings().common.strings,y=n.div``,m=n.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD as Ve,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,im as Re,io as We,F as Ce,aa as he,ip as me,iq as ze,cP as Ue,q as $e,iE as Ge,gJ as re,c as R,p as Se,y as De,cF as Ke,ir as He,is as Qe,it as Ye,o as V}from"./index-CLqQIFvx.js";import{a as f}from"./sentry-Cue4MgLi.js";import{n as z}from"./mui-Co4rhSdf.js";import{F_ as Ze,F$ as Xe}from"./zeni-epic-state-DcWK4mxP.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-C31xhtxt-m1Npa7Ri.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.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]="43beab83-c1f5-4852-b95a-f264ac8aedd2",e._sentryDebugIdIdentifier="sentry-dbid-43beab83-c1f5-4852-b95a-f264ac8aedd2")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=z.div`
1
+ import{aO as K,ij as ee,gE as fe,ew as we,ik as Le,a9 as Je,il as Me,cC as _e,cD as Ve,V as a,ac as Fe,cn as Pe,co as qe,cp as Ne,aP as Be,im as Re,io as We,F as Ce,aa as he,ip as me,iq as ze,cP as Ue,q as $e,iE as Ge,gJ as re,c as R,p as Se,y as De,cF as Ke,ir as He,is as Qe,it as Ye,o as V}from"./index-4DzZ87kX.js";import{a as f}from"./sentry-DTNzys6B.js";import{n as z}from"./mui-B15nRDIw.js";import{F_ as Ze,F$ as Xe}from"./zeni-epic-state-fcAUn9iH.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-C31xhtxt-CB_zqXDw.js";import"./liveblocks-zSqDf1bq.js";import"./core-DQ9KkRWR.js";import"./recharts-Bdabbksq.js";import"./lottie-BLs4x5z1.js";import"./analytics-BEw2fi7A.js";import"./lexical-CA4-BPwC.js";import"./utils-BqD-jFjH.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]="43beab83-c1f5-4852-b95a-f264ac8aedd2",e._sentryDebugIdIdentifier="sentry-dbid-43beab83-c1f5-4852-b95a-f264ac8aedd2")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=z.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aO as F,ij as Y,gE as ke,ew as Ae,ik as Ie,a9 as Je,il as we,cC as Le,cD as Me,V as a,ac as Ve,cn as Pe,co as _e,cp as Fe,aP as $e,im as Be,io as Ne,F as Se,aa as ie,ip as he,iq as qe,cP as ze,q as Ue,gJ as pe,c as X,p as We,y as Re,ir as Ke,is as Ge,it as He,o as w}from"./index-CLqQIFvx.js";import{a as D}from"./sentry-Cue4MgLi.js";import{n as P}from"./mui-Co4rhSdf.js";import{F_ as Qe,F$ as Ye,bL as Xe}from"./zeni-epic-state-DcWK4mxP.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-C31xhtxt-m1Npa7Ri.js";import"./liveblocks-DZksneMc.js";import"./core-CYa2vsSD.js";import"./recharts-C4PW-81v.js";import"./lottie-EtzJiaFi.js";import"./analytics-CxT-6Gc4.js";import"./lexical-DzVC4tTe.js";import"./utils-CxOjlxtI.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]="7dd4c544-7387-4b47-a592-315a3e8c2d2b",e._sentryDebugIdIdentifier="sentry-dbid-7dd4c544-7387-4b47-a592-315a3e8c2d2b")}catch{}})();const q={labelWidth:new Re(160,160,160)},at=P.div`
1
+ import{aO as F,ij as Y,gE as ke,ew as Ae,ik as Ie,a9 as Je,il as we,cC as Le,cD as Me,V as a,ac as Ve,cn as Pe,co as _e,cp as Fe,aP as $e,im as Be,io as Ne,F as Se,aa as ie,ip as he,iq as qe,cP as ze,q as Ue,gJ as pe,c as X,p as We,y as Re,ir as Ke,is as Ge,it as He,o as w}from"./index-4DzZ87kX.js";import{a as D}from"./sentry-DTNzys6B.js";import{n as P}from"./mui-B15nRDIw.js";import{F_ as Qe,F$ as Ye,bL as Xe}from"./zeni-epic-state-fcAUn9iH.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-C31xhtxt-CB_zqXDw.js";import"./liveblocks-zSqDf1bq.js";import"./core-DQ9KkRWR.js";import"./recharts-Bdabbksq.js";import"./lottie-BLs4x5z1.js";import"./analytics-BEw2fi7A.js";import"./lexical-CA4-BPwC.js";import"./utils-BqD-jFjH.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]="7dd4c544-7387-4b47-a592-315a3e8c2d2b",e._sentryDebugIdIdentifier="sentry-dbid-7dd4c544-7387-4b47-a592-315a3e8c2d2b")}catch{}})();const q={labelWidth:new Re(160,160,160)},at=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{q as A,d as X,V as t,iu as ie,iv as oe,R as le,iw as xe,dM as fe,fd as ye,b as I,F as R,ix as we,it as be,o as i,y as b,p as j,l as $e,aa as re,dI as je,cn as Se,cp as ke,cP as Z,eo as ee,cV as ve,iy as K,iz as De,b2 as Ce,iA as Me,cr as ze,iB as Le,c as h,al as L,b8 as Ee,co as Oe,ao as pe,ex as Ie,b0 as ne,ej as Ae,aP as Te,iC as T,ge as Ve,aL as Fe,iD as Je,aT as H,cX as Be,bg as Pe}from"./index-CLqQIFvx.js";import{n as l,c as B}from"./mui-Co4rhSdf.js";import{a as C}from"./sentry-Cue4MgLi.js";import{bh as G,G0 as Re}from"./zeni-epic-state-DcWK4mxP.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]="0658ac7a-81f3-46c1-8855-66bd86c4cfb4",e._sentryDebugIdIdentifier="sentry-dbid-0658ac7a-81f3-46c1-8855-66bd86c4cfb4")}catch{}})();const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:o,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}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,o),g=A(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"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(Ae,{name:N(o,"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(Qe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(o,"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 We({placeholder:e,defaultValue:o,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ke,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:o}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(Re(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=l.div`
1
+ import{q as A,d as X,V as t,iu as ie,iv as oe,R as le,iw as xe,dM as fe,fd as ye,b as I,F as R,ix as we,it as be,o as i,y as b,p as j,l as $e,aa as re,dI as je,cn as Se,cp as ke,cP as Z,eo as ee,cV as ve,iy as K,iz as De,b2 as Ce,iA as Me,cr as ze,iB as Le,c as h,al as L,b8 as Ee,co as Oe,ao as pe,ex as Ie,b0 as ne,ej as Ae,aP as Te,iC as T,ge as Ve,aL as Fe,iD as Je,aT as H,cX as Be,bg as Pe}from"./index-4DzZ87kX.js";import{n as l,c as B}from"./mui-B15nRDIw.js";import{a as C}from"./sentry-DTNzys6B.js";import{bh as G,G0 as Re}from"./zeni-epic-state-fcAUn9iH.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]="0658ac7a-81f3-46c1-8855-66bd86c4cfb4",e._sentryDebugIdIdentifier="sentry-dbid-0658ac7a-81f3-46c1-8855-66bd86c4cfb4")}catch{}})();const N=(e,o)=>`${e}.${o}`,{formElements:{dayOfMonthSelector:M},common:se}=R.getLocalizedStrings();function Ne({defaultValue:e,name:o,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}=Z(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,o),g=A(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ue,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(o,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(qe,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Ze,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:N(o,"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(Ae,{name:N(o,"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(Qe,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${o}.dayOfMonth`,$),S(`${o}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(o,"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 We({placeholder:e,defaultValue:o,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[o?.type==null?t.jsx(Ke,{children:e}):null,o?.type=="day"&&o.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${o.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,o?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:o}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(Re(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>o(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},qe=l.div`
2
2
  position: relative;
3
3
  `,He=l.div`
4
4
  display: flex;