@zeniai/web-cockpit-ui 1.15.68-dev → 1.15.68-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 (265) hide show
  1. package/dist/assets/{ACHDetailsPage-B5qIuZya-C3aJkcMK.js → ACHDetailsPage-B5qIuZya-Gkg9p8WM.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BHB45mP--Dkqa_6NM.js → AIPerformancePage-BHB45mP--2vhXgOZZ.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Cd5xYT1g-oYlOoTFh.js → AccountInfoPage-Cd5xYT1g-C7bgsuqQ.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CJ7ycVIK-D3wmzb6C.js → AccountInfoPageContent-CJ7ycVIK-DkQtJJGb.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Dox7IuAX-D2jstjYM.js → AccountLockedInfoModal-Dox7IuAX-epnuUGZh.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-Bqty08m0-C2lF-15J.js → AccountReconDetailsDrawerPage-Bqty08m0-CApB0i8d.js} +1 -1
  7. package/dist/assets/{AccountRow-D1cjRJJD-68vCYcVL.js → AccountRow-D1cjRJJD-C5wdR-ZR.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-Bs3naJHM-aTi5So3x.js → AccountsPromoCardStack-Bs3naJHM-pW4bovFs.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-DZkBMJfp-B1yl6GaN.js → AddAddressForCardDrawer-DZkBMJfp-BueV-XqF.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CyRfqVDB-DUq2dZuO.js → AddToWalletPage-CyRfqVDB-kPY-Qu-s.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-xBFff3BM-DTUv7MP5.js → AgingReportsPage-xBFff3BM-CHr8UXSv.js} +1 -1
  12. package/dist/assets/{AllUserItems-BJf6WPDo-oBZrDqKF.js → AllUserItems-BJf6WPDo-CnyxLgjD.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-CjBrPyi8-Ctyp_OQl.js → ApAgingDetailPage-CjBrPyi8-DnUMfKl3.js} +1 -1
  14. package/dist/assets/{AppBasePage-CqDm-hnV-CBWeFJt1.js → AppBasePage-CqDm-hnV-CXfdXR-8.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-CVVWj66i-BVbze0mI.js → AppDrawerContent-CVVWj66i-BlXnp7xs.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-Cckd2uVA-DVPWeDhs.js → ApprovalRulesSettingsPage-Cckd2uVA-DzDm8z-Z.js} +1 -1
  17. package/dist/assets/{ArAgingChart-CBsqOd-4-DjyETjt2.js → ArAgingChart-CBsqOd-4-BbbUUcT0.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-i7JObt60-SsEu5TGI.js → ArAgingDetailPage-i7JObt60-Bh2ysx9y.js} +1 -1
  19. package/dist/assets/{AttachmentView-CzC4skJ3-Bi12zP8s.js → AttachmentView-CzC4skJ3-Ddzn0SIg.js} +1 -1
  20. package/dist/assets/{BalancesInsightWithToolTip-B6umvmgL-ia72rJE3.js → BalancesInsightWithToolTip-B6umvmgL-BWvPP5LY.js} +1 -1
  21. package/dist/assets/{BankAccountSection-Di4sF52j-DIEDANH7.js → BankAccountSection-Di4sF52j-DKTKwyXo.js} +1 -1
  22. package/dist/assets/{BankAccountWarningSection-Cled-2cR-Btg4jA3W.js → BankAccountWarningSection-Cled-2cR-DzNCFUw-.js} +1 -1
  23. package/dist/assets/{BankConnectionsSettingsPage-Ccnzq7st-zo73imcz.js → BankConnectionsSettingsPage-Ccnzq7st-BHS9IbHN.js} +1 -1
  24. package/dist/assets/{BillDetailPage-XXOwBfO1-bzzMt-3T.js → BillDetailPage-XXOwBfO1-Bz-KFPww.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRuleDetailPage-DFZ0csaT-MjgDonCW.js → BillPayApprovalRuleDetailPage-DFZ0csaT-BTKluFlA.js} +1 -1
  26. package/dist/assets/{BillPayApprovalRulesPage-COCypDcS-OXkxfW5r.js → BillPayApprovalRulesPage-COCypDcS-B1NCaAJr.js} +1 -1
  27. package/dist/assets/{BillPayPromoPage-DOE2YIqC-BdcB_fiR.js → BillPayPromoPage-DOE2YIqC-BDki3_aN.js} +1 -1
  28. package/dist/assets/{BillPaySetUpPage-BCJbZDsV-CqE7jRvx.js → BillPaySetUpPage-BCJbZDsV-BF52BFMJ.js} +1 -1
  29. package/dist/assets/{BillingSettingsPage-iImtlEmO-CoZpnA72.js → BillingSettingsPage-iImtlEmO-DCUuuTLJ.js} +1 -1
  30. package/dist/assets/{BillsBulkReviewDrawerPage-B11GWM_0-DD3e0R6N.js → BillsBulkReviewDrawerPage-B11GWM_0-CXBBUwUh.js} +1 -1
  31. package/dist/assets/{BoxItem-Bxa1M4QU-C6dqF4Ox.js → BoxItem-Bxa1M4QU-oJeZNVjq.js} +1 -1
  32. package/dist/assets/{BusinessVerificationPage-DSuJFoW1-DjAbvNNU.js → BusinessVerificationPage-DSuJFoW1-CKOzZom2.js} +1 -1
  33. package/dist/assets/{CardNumberSubText-_ZZbaz_k-B01MfVRx.js → CardNumberSubText-_ZZbaz_k-CNZl4xyd.js} +1 -1
  34. package/dist/assets/{CashbackDetailPage-DAZXitLt-CcETVJHX.js → CashbackDetailPage-DAZXitLt-DhKc2Pxa.js} +1 -1
  35. package/dist/assets/{ChargeCardDetailPage-B1VIpASk-CholRaxO.js → ChargeCardDetailPage-B1VIpASk-CA04KA1W.js} +1 -1
  36. package/dist/assets/{ChargeCardListPage-BOBepN-x-B_s13mPY.js → ChargeCardListPage-BOBepN-x-D309yee8.js} +1 -1
  37. package/dist/assets/{ChargeCardListTable-YznzSsJo-BNhOVvS0.js → ChargeCardListTable-YznzSsJo-B1BvmxCu.js} +1 -1
  38. package/dist/assets/{ChargeCardPaymentHistoryPage--jOwsMla-cFFoj7V4.js → ChargeCardPaymentHistoryPage--jOwsMla-Egqn8VXK.js} +1 -1
  39. package/dist/assets/{ChargeCardPromoPage-DIfakIOK-Bo4_w0av.js → ChargeCardPromoPage-DIfakIOK-DUL9o5lB.js} +1 -1
  40. package/dist/assets/{ChargeCardSetupPage-0bpVkeJs-C9PMx1NQ.js → ChargeCardSetupPage-0bpVkeJs-_XByPcD_.js} +1 -1
  41. package/dist/assets/{ChargeCardStatementsPage-ChWyQlw6-CwHckC8y.js → ChargeCardStatementsPage-ChWyQlw6-BE0PHAGW.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-BS7hnyZn-B5V5osVM.js → CheckDepositDrawerPage-BS7hnyZn-BrVzXXXE.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-DNfFkAts-CKi8-92F.js → CollapsableReportTable-DNfFkAts-C6S6iQHx.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-CrOIN4IW-Bdbu216-.js → CompanyOfficerDetailsSection-CrOIN4IW-CWcNqsCE.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-CkzYFTrp-BacKEy19.js → CompanyPassportCard-CkzYFTrp-BQtxrqEe.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-FE6yli6h-DR6Ghlmc.js → CompanyPassportPage-FE6yli6h-Cyuwv8oK.js} +1 -1
  47. package/dist/assets/{CompleteProfile-Cb8i1XgZ-DbJmNPo9.js → CompleteProfile-Cb8i1XgZ-C8ebecRp.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-BZCXEGYA-B2yhgQww.js → ConfettiBurst-BZCXEGYA-DrPc0G5U.js} +1 -1
  49. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA--qLpImjq.js → ConstrainedInnerElement-CgdnMeoA-DsQR-JGH.js} +1 -1
  50. package/dist/assets/{CreateOrEditVendorPage-CzpSgxbO-CRxdxAMc.js → CreateOrEditVendorPage-CzpSgxbO-Bbp_ndqq.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentDrawerPage-c_q0MsSO-TA4Hobh4.js → CreditCardPaymentDrawerPage-c_q0MsSO-DzcFQpH8.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-BAh7SHrG-DxidpKws.js → CurrencySelectField-BAh7SHrG-BZJH2Eqi.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-f3Aa6E5r-BBdnGtao.js → CustomerOnboardingActivationPage-f3Aa6E5r-Dr5ZDU_S.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-CARhq5Td.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYuiWn8s-D7GeWD4L.js → CustomerOnboardingDetailPageSkeleton-DYuiWn8s-CTykOZiu.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Bh_F0-oC-BNSUjl4v.js → CustomerOnboardingNoStepsPage-Bh_F0-oC-BG7LRz-A.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-B9hSO88_-D7k4547U.js → CustomerOnboardingPage-B9hSO88_-CefQ2QQ9.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-CG0HKCpQ-S3V_r-iH.js → CustomerOnboardingProductSuitePage-CG0HKCpQ-Qbj9Mcxe.js} +1 -1
  59. package/dist/assets/{Dashboard-BJ_oIHab-Cok5_WDR.js → Dashboard-BJ_oIHab-DV1vsnfQ.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-BemzMw2e-DYYVToam.js → DashboardReportPage-BemzMw2e-C6UpClpd.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-BtA5oEGG-C_JawxjH.js → DashboardSidebarBackgroundAnimation-BtA5oEGG-OZkgOQ0B.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-CyFi1P_L-BmUq2dbW.js → DepositAccTransactionItem-CyFi1P_L-CSMcVFap.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-DvBRRUdZ-m3SoF-kw.js → DepositAccTransactionListPage-DvBRRUdZ-B1MhJVrP.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-DCDo3aHI-DOZS_gVw.js → DomesticWireDetailsPage-DCDo3aHI-B0Q_TzzY.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-D_lL1sPW-DvGv3saF.js → DownloadOverlay-D_lL1sPW-zH02H3o1.js} +1 -1
  66. package/dist/assets/{DrawerPage-DesxXhZk-B8kYZddx.js → DrawerPage-DesxXhZk-DAqN3gMu.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-QvPy_Six-BvFKkCVw.js → EditPeoplePage-QvPy_Six-MrqNclT6.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-C0ZDkboO-BUe-Yiha.js → EditReimbursementDetailPage-C0ZDkboO-BjI4eqld.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-l7nXIsyF-D4NCMOsL.js → EntityDetailPage-l7nXIsyF-DI51jxxs.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-BwX0a4JL-SUavY1op.js → EntitySummarySection-BwX0a4JL-DP_sTA0Z.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-EdyHjbff-C6Bwm59D.js → ExpenseAutomationOverviewPage-EdyHjbff-F7mOZqay.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-DA22Qofw-dd8tGA4N.js → ExpenseAutomationPage-DA22Qofw-jg4cZyif.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-EMP6inpX-Bhq6MNQ0.js → ExpressPayPage-EMP6inpX-Cpx4u4jT.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-SYJm-3aR-Bec3W0NG.js → FeaturePreviewPage-SYJm-3aR-Bc9WyFHl.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-BxESVqJD-Da5FF3Sc.js → FollowStepsSection-BxESVqJD-CfWMJGS4.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-D5_ACa-q-DSyD6bgo.js → GlobalReviewListPage-D5_ACa-q-F2fWQUuF.js} +1 -1
  77. package/dist/assets/{InformationCardStack-B_qQUEYD-Cf9-swA_.js → InformationCardStack-B_qQUEYD-DrGB_B1V.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-BsQzoVzj-B7Cu144k.js → InsightsCardStack-BsQzoVzj-Dm7qBA0v.js} +1 -1
  79. package/dist/assets/{InsightsSection-B6CNlTNH-C1k0XkMl.js → InsightsSection-B6CNlTNH-BoWJIzXG.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-DP6fAccq-DcJmzI7u.js → IntegrationsSettingsPage-DP6fAccq-BTZnZDts.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-VdG7bDZi-TISIJuKT.js → InternationalWireSwiftDetailsPage-VdG7bDZi-CSJRuK4T.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-COC6lZml-DVDnoPVJ.js → InternationalWireVerificationPage-COC6lZml-DuBye3E9.js} +1 -1
  83. package/dist/assets/{InviteFormPage-DN02jRy5-DXwTiwQI.js → InviteFormPage-DN02jRy5-Bi9lfNjG.js} +1 -1
  84. package/dist/assets/{InvitePageListView-CP4K9tJi-DYuLEhyF.js → InvitePageListView-CP4K9tJi-BiISz1Cn.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-VTM6kM1u-LzOSX0B1.js → InvitePeoplePage-VTM6kM1u-CPlmr4Ts.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-it-ZYl1N-DRo_N6ol.js → InvoiceUploadSection-it-ZYl1N-CfSaMEpf.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-CVfuvGey-dFAkH-M9.js → IssueChargeCardPage-CVfuvGey-BWzjbmd5.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-DDrQcHIE-DMu0GW44.js → LabeledAddressValue-DDrQcHIE-B-53flBJ.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-BgWwd5Gw-DuJuz6B4.js → LabeledAddressValueField-BgWwd5Gw-Do_cljFa.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-CcPO1k23-Y5RGRfkw.js → LabeledControlledCheckBoxField-CcPO1k23-BZ16pZm6.js} +1 -1
  91. package/dist/assets/{LabeledCountryMultiSelectField-BYYjzwUG-D382-i5G.js → LabeledCountryMultiSelectField-BYYjzwUG-CcHTjNvC.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CISYMojq-xYhovxcY.js → LabeledCreatableSingleSelectField-CISYMojq-BEno9E07.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-C_bcFxdY-BV9lofDJ.js → LabeledDocumentField-C_bcFxdY-DXQKAfr5.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-ScGGCap8-5lKoXSFL.js → LabeledDropDownFormattedTextField-ScGGCap8-BL_zqltK.js} +1 -1
  95. package/dist/assets/{LabeledText-C8Y7EOsX-C8fojKEp.js → LabeledText-C8Y7EOsX-DbaPZKOT.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-D0nf30JX.js → LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-CzLAWxlX.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BZtreVpj-jb4353B6.js → LabeledZeniRolesDropDownField-BZtreVpj-BDRFomYP.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-CKq4oiX9-BvFmTxZj.js → LinkJETransactionPage-CKq4oiX9-CZ-Xb4T0.js} +1 -1
  99. package/dist/assets/{LockCardPage-CZENNby7-DiexnWId.js → LockCardPage-CZENNby7-BvXRGTif.js} +1 -1
  100. package/dist/assets/{LowBalancePopup-1727S1ri-B9nzvQPQ.js → LowBalancePopup-1727S1ri-BRF8niwx.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-BSOlSfNu-CO-n7uHX.js → MagicLinkACHDetailsPage-BSOlSfNu-CAjYUTtx.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D1DTPo0E-D9JIICZ3.js → MagicLinkDomesticWireDetailsPage-D1DTPo0E-BkbEbHyS.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-D_wo_2nm-DRdINlrf.js → MagicLinkInternationalWireDetailsPage-D_wo_2nm-Dkp607tW.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-QMkZgQLG-DaCG6zJz.js → MagicLinkSuccessPage-QMkZgQLG-DUf_1dmR.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-CARU1oLQ-DPmYWXSQ.js → MagicLinkTitleSection-CARU1oLQ-CzoTFqWG.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-ByOPaJ05-kJqgrlBw.js → MailingDetailsSection-ByOPaJ05-Bui07D1m.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BdgIIhL1-FAtVw-QI.js → MyBankConnectionsSettingsPage-BdgIIhL1-CaVXLldM.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CX38bDdq-Cb-hNB9U.js → MyPendingActivationChargeCardListPage-CX38bDdq-DRgitLNo.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DYu0Fx6I-DSGiByeo.js → MyProfileSettingsPage-DYu0Fx6I-Cs8ha9P1.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-CGGEvLwe-CLvQbXHm.js → NavBarWithPicker-CGGEvLwe-CSHBT6Hm.js} +1 -1
  111. package/dist/assets/{NavigationArrow-CTNkKUtV-Bew2hAIb.js → NavigationArrow-CTNkKUtV-BdlxhLqb.js} +1 -1
  112. package/dist/assets/{NavigationDots-Dvce3gHt-CdTxmSBW.js → NavigationDots-Dvce3gHt-DKnLIoKK.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-D_f7z47T-BushshXt.js → NewGlobalMerchantPage-D_f7z47T-CbOrtD1j.js} +1 -1
  114. package/dist/assets/{NoDataChart-CrKeqWSr-4ekDnDn1.js → NoDataChart-CrKeqWSr-CHNQ48ID.js} +1 -1
  115. package/dist/assets/{NoDataTable-4vPXmPYF-B2XN4oW_.js → NoDataTable-4vPXmPYF-GxhoTZTX.js} +1 -1
  116. package/dist/assets/{NotFoundPage-BLWPU1wU-DvXGp0oy.js → NotFoundPage-BLWPU1wU-Civ3h6bp.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-CDiDLX3A-n_uE9rCj.js → NotificationSettingsPage-CDiDLX3A-CSd4pgab.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-B5pDa4cJ-BR4-nfaA.js → NotificationsListConfig-B5pDa4cJ-pQ_NFrpY.js} +1 -1
  119. package/dist/assets/{NotificationsPage-Ccl7Dny1-EW2nfZLI.js → NotificationsPage-Ccl7Dny1-CeMBBtCP.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-spd-nKV4-i9MSwJXR.js → OpExByVendorPage-spd-nKV4-B2y8scPL.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-BG9y5C0t-CMjvkc2h.js → OverlayContainerPage-BG9y5C0t-CO7VjTDz.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-TSoe4Z7F-DcZ-ZrV7.js → PandLWithForecastPage-TSoe4Z7F-D0G-L55C.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-9ma8SpIa-C7rhIAmu.js → PaymentAccountSetupBillingAddressSection-9ma8SpIa-SJn4gB3C.js} +1 -1
  124. package/dist/assets/{PeoplePage-b5_I0qOw-B2fq5ot3.js → PeoplePage-b5_I0qOw-BOv5uMS_.js} +1 -1
  125. package/dist/assets/{Preview-COnCxLvp.js → Preview-DAAvvXlZ.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-C3M0ocdF-wqRbMSDI.js → ProductsCarousel-C3M0ocdF-C62WQZ3J.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-BOGJI2ws--eO42JRX.js → PromoBaseCards-BOGJI2ws-CPX23pUF.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-CmpnnuzP-Dp-zON6o.js → QBOConnectionDialog-CmpnnuzP-CT3F21_s.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-DjnN9dgv-CJUK3Jp5.js → QBOSetupSection-DjnN9dgv-DUCJ2DUE.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-D5NXjrO9-B3fuWRBp.js → ReimbursementApprovalRuleDetailPage-D5NXjrO9-Bx7WLcBc.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-BsCTIqUJ-DFIBXG2A.js → ReimbursementApprovalRulesPage-BsCTIqUJ-B49Y-qti.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-BbyxE2uL-D7JOSI03.js → ReimbursementDetailPage-BbyxE2uL-KWcs_H7b.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-CyEgwqcf-A2nuc-1r.js → ReimbursementPromoPage-CyEgwqcf-hgiMNFdp.js} +1 -1
  134. package/dist/assets/{ReimbursementSetUpPage-RETPkEQd-CKs-VBpH.js → ReimbursementSetUpPage-RETPkEQd-ofQJdenT.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DnmYl0FM-BVo2hc1R.js → ReimbursementsBulkReviewDrawerPage-DnmYl0FM-DtAjyBO7.js} +1 -1
  136. package/dist/assets/{ReloadCard-Bdoo0XiI-D4akwdvc.js → ReloadCard-Bdoo0XiI-DUNsRYbX.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-Bc1K7mU_-CwFMTqSs.js → ReportTableViewSelector-Bc1K7mU_-CU-N1dG-.js} +1 -1
  138. package/dist/assets/{ReportsPage-BOTHMLWh-jv_O0Yek.js → ReportsPage-BOTHMLWh-CUyewAXL.js} +1 -1
  139. package/dist/assets/{RevenueChart-DvyZ3aO7-C6C2HRpr.js → RevenueChart-DvyZ3aO7-BYUIVzWS.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-BIMg1n2e-Ih4y_jnc.js → ReviewDetailsPage-BIMg1n2e-CPW_jZr1.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-CxwoiOLC-mlyTzHF7.js → ReviewOverlay-CxwoiOLC-Ce9Omsbd.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-Ct3_VuDM-DPE6FK82.js → RoleWithToolTip-Ct3_VuDM-c9OkWyzs.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DiL5Dozk-ZdtyO7K8.js → ScheduleDetailsFixedAssetsPage-DiL5Dozk-DdJCZ5Kg.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-5FWpLRtd-CMywSb8w.js → ScheduleDetailsPage-5FWpLRtd-DEkJl37p.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-R3-PsXES-CJvXYjeZ.js → ScheduleSequenceTable-R3-PsXES-EMpu-m3i.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-D5p_xk-S.js → ScreenRoutes-DsYm98Ql.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-CctbMmoK-CuWHUORG.js → SetUpAccountSection-CctbMmoK-BV_qUO34.js} +1 -1
  148. package/dist/assets/{SignIn-CmgmnRm4-CODAfAgX.js → SignIn-CmgmnRm4-kXx--IBS.js} +1 -1
  149. package/dist/assets/{SignInScreen-DzQr_yQg.js → SignInScreen-C-QIW99M.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-CFUxCqkU-BFFGha36.js → SpendManagementListViewPage-CFUxCqkU-DFe_LKmC.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-C-kqNTci-B4ll_8b8.js → SpendManagementPerTabPage-C-kqNTci--BLV19Hx.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-CIz4nE_w-Cd92E473.js → SpendManagementSection-CIz4nE_w-1PZnAwhM.js} +1 -1
  153. package/dist/assets/{StatementItem-vVtoBN2w-BlzDOZcF.js → StatementItem-vVtoBN2w-Zhek1pUJ.js} +1 -1
  154. package/dist/assets/{StatementsPage-As5WOnMR-CoYZUSlH.js → StatementsPage-As5WOnMR-Ca1N-swN.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-Bv-ozN6U-BKoiK-si.js → StatusSwitcher-Bv-ozN6U-BhXjSD5M.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-D7QeM6nb-BmZk-zBb.js → SubTabSwitcher-D7QeM6nb-CefLxod8.js} +1 -1
  157. package/dist/assets/{SummaryCard-C2qoTsAY-4dgnd5I6.js → SummaryCard-C2qoTsAY-C4IX595i.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-BJwp32Ph-BXxEB9ws.js → TaskManagementPage-BJwp32Ph-Ci1yyYH1.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-D00bDDhP-jzNZlsUf.js → TimeRangeSwitcher-D00bDDhP-mBG6n8kl.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcher-DA99HdHt-DUsdK6ru.js → TimeframeSwitcher-DA99HdHt-BD7Yd5Q9.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-DyggDIQj-Dg5fJRkI.js → TimeframeSwitcherWithToggle-DyggDIQj-CAP7KrsO.js} +1 -1
  162. package/dist/assets/{TopExCard-Z1WabZ8c-_3_PDA2G.js → TopExCard-Z1WabZ8c-CG4A3X6L.js} +1 -1
  163. package/dist/assets/{TopExDetailPage-CzHG4f9E-BrWfJk_t.js → TopExDetailPage-CzHG4f9E-BJNzGQKT.js} +1 -1
  164. package/dist/assets/{TransactionActivityLogPage-CGKnjNfU-DuJzBBcn.js → TransactionActivityLogPage-CGKnjNfU-4nR7ssgD.js} +1 -1
  165. package/dist/assets/{TransactionDetailPage-1-mLOWSz-D2-6FnXF.js → TransactionDetailPage-1-mLOWSz-BMNRbOeT.js} +1 -1
  166. package/dist/assets/{TransactionList-BB-xoIGm-Cs0g42iq.js → TransactionList-BB-xoIGm-D35inDBa.js} +1 -1
  167. package/dist/assets/{TransactionListBig-C5Sf5Xh--DoQGlOXx.js → TransactionListBig-C5Sf5Xh--DrjQKlpi.js} +1 -1
  168. package/dist/assets/{TransactionListPage-Cj7h1Ros-0xwtgWrr.js → TransactionListPage-Cj7h1Ros-im4--pc9.js} +1 -1
  169. package/dist/assets/{TransactionVendorDetailPage-SsrSOk3O-DnCs2Tcb.js → TransactionVendorDetailPage-SsrSOk3O-CJjPts0q.js} +1 -1
  170. package/dist/assets/{TransferDrawerPage-BvKZ7vHF-U4D4BHco.js → TransferDrawerPage-BvKZ7vHF-B73zSOl-.js} +1 -1
  171. package/dist/assets/{TreasuryOverviewPage-DwvjMR4_-DaWJ0Z8W.js → TreasuryOverviewPage-DwvjMR4_-Ds5kNIul.js} +1 -1
  172. package/dist/assets/{TreasuryPromoPage-CtTFvSQW-ByP104Sz.js → TreasuryPromoPage-CtTFvSQW-BBJsFYCq.js} +1 -1
  173. package/dist/assets/{TreasuryStatementsPage-Catz8shX-DqD0V1HF.js → TreasuryStatementsPage-Catz8shX-BAhe5_jg.js} +1 -1
  174. package/dist/assets/{TreasuryTaxLetterPage-D8hzCL5o-_SN1L0BB.js → TreasuryTaxLetterPage-D8hzCL5o-D-aYruDH.js} +1 -1
  175. package/dist/assets/{TrendChart-Bnp4Pcdf-BY18h9jb.js → TrendChart-Bnp4Pcdf-CIPgZ_J6.js} +1 -1
  176. package/dist/assets/{TrendWithTransactions-3D1FvM8G-DxPZ_o7N.js → TrendWithTransactions-3D1FvM8G-DRHrfYZi.js} +1 -1
  177. package/dist/assets/{UncategorizedAccountsMappingPage-DbyY-dYB-BC4-aDe6.js → UncategorizedAccountsMappingPage-DbyY-dYB-CTZmdipl.js} +1 -1
  178. package/dist/assets/{UnitIntegrationPage-CTzme1te-BpgcZRO2.js → UnitIntegrationPage-CTzme1te-CROkqxYA.js} +1 -1
  179. package/dist/assets/{UploadAdditionalDocumentOverlay-Wl4Spdpn-Ckt7F9AB.js → UploadAdditionalDocumentOverlay-Wl4Spdpn-BfvknC-m.js} +1 -1
  180. package/dist/assets/{Vendor2FAPopup-D0zYKkIv-BA93A3FY.js → Vendor2FAPopup-D0zYKkIv-BXtMRxk_.js} +1 -1
  181. package/dist/assets/{VendorACHDetailsPage-YYX9aQdw-DswVRSnB.js → VendorACHDetailsPage-YYX9aQdw-OLgzSPd3.js} +1 -1
  182. package/dist/assets/{VendorDetailPage-Br9wIOnI-CiQfXNfs.js → VendorDetailPage-Br9wIOnI-CaT9j2GT.js} +1 -1
  183. package/dist/assets/{VendorDomesticWireDetailsPage-BpPgQRHI-DgAKk1Hg.js → VendorDomesticWireDetailsPage-BpPgQRHI-e4koVt__.js} +1 -1
  184. package/dist/assets/{VendorFiling1099EditablePage-himC7iD3-DN6_aqMw.js → VendorFiling1099EditablePage-himC7iD3-gYDEBjSH.js} +1 -1
  185. package/dist/assets/{VendorFirstReviewPage-BbknTCBD-DRyalqYz.js → VendorFirstReviewPage-BbknTCBD-CGSsuC6e.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireDetailsPage-CS595Xgc-DyYlqKnN.js → VendorInternationalWireDetailsPage-CS595Xgc-D8n03Epk.js} +1 -1
  187. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-yhTjWXvw-B6FT2wH7.js → VendorInternationalWireSwiftDetailsPage-yhTjWXvw-BjVvRjEe.js} +1 -1
  188. package/dist/assets/{VendorsAccountsSection-CgSJu8wq-DAQ1vUE3.js → VendorsAccountsSection-CgSJu8wq-C2mBB_Nl.js} +1 -1
  189. package/dist/assets/{VerifyDevice-Dvf0JsNN-BhIFtpoZ.js → VerifyDevice-Dvf0JsNN-DOfOCRT3.js} +1 -1
  190. package/dist/assets/{VideoPlayer-VAzOGCDL-dg_i7rhP.js → VideoPlayer-VAzOGCDL-ALnCE_Or.js} +2 -2
  191. package/dist/assets/{VideoPopup-BqvZ-XIh-j79cwOsZ.js → VideoPopup-BqvZ-XIh-BGAxR4nc.js} +1 -1
  192. package/dist/assets/{WarningsDrawerPage-DeNonoNp-B2ZGl3aK.js → WarningsDrawerPage-DeNonoNp-CZasHj09.js} +1 -1
  193. package/dist/assets/{ZeniAccountDetailPage-GcwTJdB8-BH5nfFTv.js → ZeniAccountDetailPage-GcwTJdB8-CmiFdig9.js} +1 -1
  194. package/dist/assets/{ZeniAccountListViewPage-CdwO0Duy-Bq_tNys0.js → ZeniAccountListViewPage-CdwO0Duy-CyJHTkfE.js} +1 -1
  195. package/dist/assets/{ZeniAccountNavBarPieces-BrSIfL36-H4nUIkPW.js → ZeniAccountNavBarPieces-BrSIfL36-CtHvoqMP.js} +1 -1
  196. package/dist/assets/{ZeniAccountPromoPage-JrcedQYB-C192Vo1k.js → ZeniAccountPromoPage-JrcedQYB-DAxSsXTC.js} +1 -1
  197. package/dist/assets/{ZeniAccountSetupPage-TKBfbgzJ-BOKcMzjm.js → ZeniAccountSetupPage-TKBfbgzJ-DsZ3-mUt.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-DglqrTpl-DiOzf86L.js → ZeniCopyright-DglqrTpl-BjsbVZJR.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-BcaZZuAw-DwXtlH-I.js → ZeniTransferAmountSlider-BcaZZuAw-BIVdWh03.js} +1 -1
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-B2d4-MGl.js → add-to-wallet-DgdBD8_G-DYCkJhyA.js} +1 -1
  201. package/dist/assets/{analytics-BdPgTZIq.js → analytics-Cy3lM-YK.js} +1 -1
  202. package/dist/assets/{analyticsHelper-CqcfNRvx.js → analyticsHelper-B8BXI7vm.js} +1 -1
  203. package/dist/assets/{analyticsHelper-CAYdbjhS-B2pke1yA.js → analyticsHelper-CAYdbjhS-DpZD7rse.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-CQDBPmsC.js → arrow-south-east-round-PEovUgvH-D2gKseQ8.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-D3lLCn3Q.js → auto-transfer-rule-mbafm5D3-ueut2tXM.js} +1 -1
  206. package/dist/assets/{chartTypes-CD3vrBsI-B60Spgf7.js → chartTypes-CD3vrBsI-BsUEjWN7.js} +1 -1
  207. package/dist/assets/{commonDimensions-Oz1tdAcx-DwbBmI-Z.js → commonDimensions-Oz1tdAcx-BS6fvM_G.js} +1 -1
  208. package/dist/assets/{commonTypes-5tEXwrX4-DCDhKssr.js → commonTypes-5tEXwrX4-yJElLtOB.js} +1 -1
  209. package/dist/assets/{constants-CBenFj2i.js → constants-i8SbWp6r.js} +1 -1
  210. package/dist/assets/{core--0SFXVg4.js → core-BneeMkMs.js} +1 -1
  211. package/dist/assets/{dash.all.min-CMzLy0h6.js → dash.all.min-CAm0M8dW.js} +1 -1
  212. package/dist/assets/{downloadPdf-Dsuxeias-COKJ0VCh.js → downloadPdf-Dsuxeias-mAaQpwd1.js} +1 -1
  213. package/dist/assets/{empty-B-BVwcCU.js → empty-BQekd75w.js} +1 -1
  214. package/dist/assets/{empty-2Ztl6Ian.js → empty-BcaKjzHy.js} +1 -1
  215. package/dist/assets/{epic-BDwupNLN.js → epic-BObaPTco.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-gUV3c8cx.js → gift-box-Cmt9OgIZ-BdyilZmI.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DzC5dTIM.js → graphic-no-data-l-DU4J8fDt-DYurhetV.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BjiTvRpS.js → graphic-no-data-net-burn-l-CzmycA0m-CzGq_AAG.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-C_pCUoyC.js → handshake-BPg58FML-DQa8N992.js} +1 -1
  220. package/dist/assets/{helper-Ckm10Uko-C9m0OsqI.js → helper-Ckm10Uko-BXNX9K_r.js} +1 -1
  221. package/dist/assets/{index-DRaGNS6O.js → index--WG4lqCg.js} +1 -1
  222. package/dist/assets/{index-CKQ5JKXb.js → index-BLdL0CvK.js} +1 -1
  223. package/dist/assets/{index-Dg4q7vvv.js → index-BPE9D0Re.js} +1 -1
  224. package/dist/assets/{index-CUC_7JNL.js → index-C1CTEU15.js} +1 -1
  225. package/dist/assets/{index-CdtFtg4i.js → index-CTugtlo7.js} +1 -1
  226. package/dist/assets/{index-C2ktPgcm.js → index-sTFJOQ2H.js} +1 -1
  227. package/dist/assets/{index-DMG72kst.js → index-xVVRZYei.js} +7 -7
  228. package/dist/assets/{lexical-RPR5fwFX.js → lexical-jHv0jkMa.js} +1 -1
  229. package/dist/assets/{liveblocks-BPjePRRW.js → liveblocks-bsyR3ync.js} +1 -1
  230. package/dist/assets/{lottie-x1a70pv5.js → lottie-A_DgSlna.js} +1 -1
  231. package/dist/assets/{mapLoadingInProgressToTreeNode-jcHEi-mv-3CmCtSOT.js → mapLoadingInProgressToTreeNode-jcHEi-mv-jPHNd3VK.js} +1 -1
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Cgyt68f3-gWv13TX8.js → mapSectionWithAcOnlyToTreeNode-Cgyt68f3-CuHtfWIs.js} +1 -1
  233. package/dist/assets/{mapSpacerToTreeNode-XgUp1xUb-C8lourC4.js → mapSpacerToTreeNode-XgUp1xUb-D-UsPqt7.js} +1 -1
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-Bre8FfBF-CeRR9HNy.js → mapTimeframeBalancesToTreeNode-Bre8FfBF-Bs_1IkDc.js} +1 -1
  235. package/dist/assets/{mapTimeframeBalancesToTreeNode-DOyCX6ij-DNs8km3x.js → mapTimeframeBalancesToTreeNode-DOyCX6ij-NjwgqhCE.js} +1 -1
  236. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-DJ_zEjzF.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-DwFeda_C.js} +1 -1
  237. package/dist/assets/{mui-PTGaeBGX.js → mui-CXMQ9Piz.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-3PBwxH1C.js → page-detail-CWX5S47F-CDK4DKDx.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-Cddsb26L-CGfB88iV.js → panelSelectedMixin-Cddsb26L-CSBzo2mF.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-D9daKtZ-.js → radio-default-CiSgisfh-vDudmy_r.js} +1 -1
  241. package/dist/assets/{react-De98TyJc.js → react-2qjqKKZh.js} +1 -1
  242. package/dist/assets/{react-vwiCHqgl.js → react-Bm5RPkqi.js} +1 -1
  243. package/dist/assets/{react-PvV8gmtB.js → react-Bmu5eUlH.js} +1 -1
  244. package/dist/assets/{react-DBNQWrgN.js → react-Bxb95BvJ.js} +1 -1
  245. package/dist/assets/{react-Cc4bx4sY.js → react-C9XuYJvo.js} +1 -1
  246. package/dist/assets/{react-CPjlVQm7.js → react-CWmc1YHX.js} +1 -1
  247. package/dist/assets/{react-BEXFTqCN.js → react-DYV35Hrs.js} +1 -1
  248. package/dist/assets/{react-DrO9dj3C.js → react-DndhAFUx.js} +2 -2
  249. package/dist/assets/{recharts-qzs3V2Ze.js → recharts-CZTxjHHJ.js} +1 -1
  250. package/dist/assets/{sentry-DA3cfNtR.js → sentry-BgeswcBo.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-BOQtgkJq.js → shield-DOlUxcFf-BrylrOn-.js} +1 -1
  252. package/dist/assets/{toCOABalancesWithID-aLNB35t7-Bj9jSpq4.js → toCOABalancesWithID-aLNB35t7-CCYOqPb4.js} +1 -1
  253. package/dist/assets/{toChartData-DUL6vnzJ-BfCuWWLN.js → toChartData-DUL6vnzJ-D1CeQRVq.js} +1 -1
  254. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-Ge_wO5yU.js → upload-reimbursement-receipt-O2N8vcO7-DpXDyzqE.js} +1 -1
  255. package/dist/assets/{uploadAttachment-Ck4wivBR-Bh6Y3xK9.js → uploadAttachment-Ck4wivBR-BSdqWaHu.js} +1 -1
  256. package/dist/assets/{uploadReceipts-CIgkuVpu-BMgQocne.js → uploadReceipts-CIgkuVpu-abPzzw91.js} +1 -1
  257. package/dist/assets/{url-D0R1uffE.js → url-Cgsx8RxG.js} +1 -1
  258. package/dist/assets/{url-DNLur0Mx.js → url-DYdO6hMe.js} +1 -1
  259. package/dist/assets/{useLongPress-GCK2COYQ-Dvxz8hJC.js → useLongPress-GCK2COYQ-DJRI6ZrY.js} +1 -1
  260. package/dist/assets/{usp-line-BBd1wKwW-Bxz4MR0G.js → usp-line-BBd1wKwW-BQ5rVDD1.js} +1 -1
  261. package/dist/assets/{utils-ZYxK6Sqs.js → utils-DSMlyvFX.js} +1 -1
  262. package/dist/assets/{zeni-epic-state-qJAZZeEy.js → zeni-epic-state-BcNJxRyY.js} +3 -3
  263. package/dist/index.html +1 -1
  264. package/package.json +1 -1
  265. package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-B7XaiHVP.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as F,e as N,O as j,V as t,bE as G,L as V,ac as m,o,x as r,an as E,aQ as P,c1 as k,cy as q,cz as O,cA as J,da as K,u as l,bb as Q,N as T,ba as X,d as z,d9 as Y,bv as Z,w as ee}from"./index-DMG72kst.js";import{n as i}from"./mui-PTGaeBGX.js";import{a as te}from"./sentry-DA3cfNtR.js";import"./liveblocks-BPjePRRW.js";import"./core--0SFXVg4.js";import"./recharts-qzs3V2Ze.js";import"./zeni-epic-state-qJAZZeEy.js";import"./lottie-x1a70pv5.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./utils-ZYxK6Sqs.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]="ee3c2bd6-0043-486a-b241-448d9eeb7efe",e._sentryDebugIdIdentifier="sentry-dbid-ee3c2bd6-0043-486a-b241-448d9eeb7efe")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},M={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:g=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[w,x]=te.useState(!1),n=N(),{range:u}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{x(!0)},U={onOkClick:()=>{x(!1),y?.(p)},onCancelClick:()=>{x(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(he,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),u.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e?c?t.jsx(k,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(k,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),h.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},`${d.subType}_${_}`)),h.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},d.userId))]},H))})}),w?t.jsx(q,{titleComponent:t.jsx(J,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(O,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
1
+ import{g as F,e as N,O as j,V as t,bE as G,L as V,ac as m,o,x as r,an as E,aQ as P,c1 as k,cy as q,cz as O,cA as J,da as K,u as l,bb as Q,N as T,ba as X,d as z,d9 as Y,bv as Z,w as ee}from"./index-xVVRZYei.js";import{n as i}from"./mui-CXMQ9Piz.js";import{a as te}from"./sentry-BgeswcBo.js";import"./liveblocks-bsyR3ync.js";import"./core-BneeMkMs.js";import"./recharts-CZTxjHHJ.js";import"./zeni-epic-state-BcNJxRyY.js";import"./lottie-A_DgSlna.js";import"./analytics-Cy3lM-YK.js";import"./lexical-jHv0jkMa.js";import"./utils-DSMlyvFX.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]="ee3c2bd6-0043-486a-b241-448d9eeb7efe",e._sentryDebugIdIdentifier="sentry-dbid-ee3c2bd6-0043-486a-b241-448d9eeb7efe")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},M={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:g=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[w,x]=te.useState(!1),n=N(),{range:u}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{x(!0)},U={onOkClick:()=>{x(!1),y?.(p)},onCancelClick:()=>{x(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(he,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),u.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e?c?t.jsx(k,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(k,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),h.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},`${d.subType}_${_}`)),h.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},d.userId))]},H))})}),w?t.jsx(q,{titleComponent:t.jsx(J,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(O,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ay as tt,V as t,gv as Bt,a9 as Pt,e as Nt,g as _t,cl as Lt,x as m,O as it,bQ as Ot,gw as Et,gx as Wt,cy as Ae,cz as Me,cA as Re,bE as Be,ac as f,bq as Kt,dE as Vt,gy as Ft,gH as Pe,o as a,gz as Ne,dN as b,gC as g,dT as w,aQ as _e,fx as Le,w as H,gE as Oe,aT as Ut,aq as Gt,bU as Ht,gF as ne,bz as Yt,bV as qt,b as Qt,N as Jt,M as Xt,an as at,bb as rt,d as Y,ao as Zt,c3 as ei,ak as ti,h0 as ii,gW as ai,u as c,cq as ri,d8 as oi}from"./index-DMG72kst.js";import{a as u}from"./sentry-DA3cfNtR.js";import{n as r}from"./mui-PTGaeBGX.js";import{bL as ni,bZ as li,GD as si}from"./zeni-epic-state-qJAZZeEy.js";import di from"./InvoiceUploadSection-it-ZYl1N-DRo_N6ol.js";import{r as ci,h as x,u as mi}from"./types-DyvtCprH-NFPm5TaG.js";import"./liveblocks-BPjePRRW.js";import"./core--0SFXVg4.js";import"./recharts-qzs3V2Ze.js";import"./lottie-x1a70pv5.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./utils-ZYxK6Sqs.js";import"./AttachmentView-CzC4skJ3-Bi12zP8s.js";import"./uploadReceipts-CIgkuVpu-BMgQocne.js";import"./upload-reimbursement-receipt-O2N8vcO7-Ge_wO5yU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new e.Error().stack;v&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[v]="d76ece58-fbca-43d6-9c79-f8cb7a219d6d",e._sentryDebugIdIdentifier="sentry-dbid-d76ece58-fbca-43d6-9c79-f8cb7a219d6d")}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])},pi={formTitle:new Jt("h6Regular","h5Regular")},Ee=({remiDetails:e,uploadInvoiceEndPoint:v,authParams:z,isAdmin:_,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:p,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:ot,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:q,redirectToEditableReimbursementScreen:nt,onDuplicateLineClick:lt,approveOrRejectRemi:he,deleteReimbursement:st,cancelAndDeleteReport:ye,handleZeniLogoClick:dt,onAddNewRule:be,initialOpenThreadRequest:A})=>{const d=tt(),ct=Pt().analytics,n=Nt(),ge=_t(),[mt,M]=u.useState(!1),[Q,J]=u.useState(!1),[pt,X]=u.useState(!1),[Z,ee]=u.useState("approved"),L=u.useRef(null),[D,te]=u.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ut]=u.useState(null),[ht,O]=u.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=u.useRef({}),xe=l=>{const o=we.current[l];o!=null&&setTimeout(()=>mi(o,L.current),100)};u.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&q()},[e,q]),u.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const o=l.substring(1);xe(o)}},[]);const yt=()=>{q()};Lt({componentName:"reimbursement.details"});const bt={onOkClick:()=>{M(!1),D.primaryButtonText===i.buttons.delete?st?.():D.title===i.cancelReportTitle?ye?.():D.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{M(!1)}},S=s.labelWidth.value(n),R=s.largeLabelWidth.value(n),fe=it.getLocalizedStrings(),{common:{texts:{comments:gt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:wt,replyAComment:xt},tooltip:{resolveComment:ft,unResolveComment:$t}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:E}=fe.spendManagement.reimbursement,ie=e.remiDetails?.reportTitle,I=e.remiDetails?.lines??[],W=e.remiDetails?.reimbursementInfo.stage,K=e.remiDetails?.reimbursementInfo.billStatus,V=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=W?.code==="paid",vt=Te?W:K?.code=="approved"&&V?.code?V:K,T=ui(e.remiDetails),B=K?.code=="approved"&&V?.code?V:K,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{te({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),M(!0)},Tt=()=>{te({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},jt=()=>{te({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},De=()=>{nt()},St={onOkClick:l=>{X(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{X(!1)}},It=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(ee("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},Dt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(ee("delete"),Ie()):(ee("rejected"),X(!0))},Ct=e.remiDetails?.reimbursementInfo.paymentDate!=null?ni(li(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ae=e.remiDetails?.reimbursementInfo.expectedDepositDate??Ct,kt=e.remiDetails?.lines?.some(l=>{const o=l.lineDetail;return o?.account?.isDeleted===!0&&o?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&ot&&!kt,zt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",re=vt?.code,At=ci(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&At>0,{requestToOpenThread:oe,setRequestToOpenThread:U,setOpenThread:G}=u.useContext(Ot);u.useEffect(()=>{A?.threadId!=null&&A?.companyId!=null&&A?.entityType!=null&&U(A)},[A,U]);const{threads:P,isLoading:C}=Et(),Mt=u.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Wt)),[P]).length,Rt=u.useCallback((l,o)=>{G(o),O(!1)},[G,O]);u.useEffect(()=>{oe?.threadId!=null&&P.length>0&&!C&&(G(oe.threadId),U(null))},[oe,P,C,G,U]);const y={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},N=si(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ei,{windowSize:n,ref:L,children:[mt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:D.title}),descriptionComponent:t.jsx(Me,{children:D.description}),primaryButtonText:D.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:D.secondaryButtonText,action:bt}):null,pt?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:St,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ri,{windowSize:n,"data-testid":f("reimbursement-detail-page-nav-bar-container"),children:[n!=="small"?t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Bi,{onClick:()=>dt?.(),"data-testid":f("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ge.colors.background,keepBackgroundOnScroll:!0,scrollableContent:L,source:"ReimbursementDetailPage"}):null,n!=="small"?t.jsx(zi,{}):null,t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-right"),title:ie??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:n!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ni,{children:[p?t.jsxs(_i,{isDisabled:C,onClick:C?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ut({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),O(!0),ct.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(o=>Vt(o)),void 0,void 0,"page icon")},"data-testid":f("remi-comments-section"),children:[t.jsx(Kt,{count:C?void 0:Mt,isLoading:C,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:n,onClick:()=>yt(),"data-testid":f("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:L,enableTitleOnScroll:n!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{windowSize:n,children:t.jsx(Je,{windowsSize:n,children:ie})}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null,B?.code!=null?n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,I.map((l,o)=>{const j=e.duplicateLineByLineId[l.lineId];return t.jsxs(et,{windowSize:n,children:[t.jsx(Fi,{windowSize:n,children:t.jsx(Ui,{bottomSeperator:I.length!==1,windowSize:n,children:t.jsx(di,{showAutofill:!1,uploadInvoiceEndPoint:v,authParams:z,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:I.length>1?`#${o+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:I.length-1===o||o===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Vi,{windowSize:n,children:[o===0&&n!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Qe,{windowSize:n,children:[t.jsx(Je,{windowsSize:n,children:ie}),me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,B?.code!=null?t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:n,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[n!=="small"?t.jsx(wi,{children:t.jsx(fi,{children:I.length>1?`#${o+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs($i,{windowSize:n,children:[j?.duplicateLineId!=null?t.jsxs(bi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(j.isDuplicateWithinTransaction&&j.duplicateLineId!=null)return xe(`L${j.duplicateLineId}`);j.duplicateTransactionId!=null&&j.duplicateLineId!=null&&lt(j.duplicateTransactionId,j.duplicateLineId)},"data-testid":f("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${o}.mileage.reimbursementType`:`${o}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("reimbursementType",o,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(g,{label:{label:i.reimbursementType,width:R},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx($,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"mileage")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("distanceInMiles",o,"mileage")}`},children:t.jsx(g,{label:{label:i.distanceInMiles,width:R},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"mileage")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"mileage")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"mileage")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("merchant",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.merchant,width:R},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("account",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.category,width:S},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),I.length!==1&&I.length===o+1&&t.jsxs(Ki,{windowSize:n,children:[t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,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:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),I.length===1&&t.jsxs(et,{windowSize:n,children:[t.jsx(Ye,{}),t.jsxs(hi,{windowSize:n,children:[t.jsx(Wi,{windowSize:n,children:t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(yi,{windowSize:n,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,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:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Gi,{})]}),Te||F===!0?null:t.jsxs(Mi,{children:[n!=="small"?t.jsx(Ye,{}):null,t.jsx(Ti,{windowSize:n,"data-testid":f("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Q===!0&&J(!1)},children:t.jsx(Ut,{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"?n==="small"?i.buttons.delete:i.buttons.deleteReport:n==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:Dt,style:{width:s.footerButtonWidth.value(n)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.edit:i.buttons.editAndResubmit:n==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:It,style:{width:s.footerButtonWidth.value(n)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(vi,{children:t.jsxs(Ai,{windowSize:n,children:[!N&&Q?t.jsx(Gt,{onClickAway:()=>J(!1),children:t.jsxs(ki,{windowSize:n,children:[re!=="processing"?t.jsx(le,{onClick:Ie,"data-testid":f("remi-delete-action"),children:i.buttons.deleteReport}):null,re==="processing"?t.jsx(le,{onClick:Tt,"data-testid":f("remi-cancel-action"),children:i.buttons.cancel}):null,re==="processing"?t.jsx(le,{onClick:jt,"data-testid":f("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ci,{windowSize:n,children:[!N&&Ce?t.jsx(Di,{onClick:De,"data-testid":f("remi-edit-button"),children:t.jsx(Ii,{})}):null,!N&&zt===!0?t.jsx(Si,{windowSize:n,showEditIcon:Ce,children:t.jsx(ji,{onClick:()=>J(!Q),"data-testid":f("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),p?t.jsx(Ht,{isDrawerOpen:ht,allowComposer:!0,drawerTitle:gt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:C,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:wt,replyComposerPlaceholder:xt,threadResolve:ft,threadUnResolve:$t},onThreadClick:(l,o)=>Rt(l,o),onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:"400px",backgroundColor:ge.colors.background}}):null]})},ca=e=>{const v=tt().currentTenant?.companyId,z=e.remiDetails.remiDetails?.id;if(!(e.isReimbursementCommentingEnabled&&z!=null&&v!=null))return t.jsx(Ee,{...e});const _=`dashboard_${v}`;return t.jsx(Bt,{roomId:_,filter:{application:"dashboard",companyId:v,entityId:z,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(Ee,{...e})})},ui=e=>{const v=it.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:v.tabsById.deleted,color:ne.deleted.color,bgColor:ne.deleted.bgColor,borderColor:ne.deleted.borderColor,code:"deleted"}},hi=r.div`
1
+ import{ay as tt,V as t,gv as Bt,a9 as Pt,e as Nt,g as _t,cl as Lt,x as m,O as it,bQ as Ot,gw as Et,gx as Wt,cy as Ae,cz as Me,cA as Re,bE as Be,ac as f,bq as Kt,dE as Vt,gy as Ft,gH as Pe,o as a,gz as Ne,dN as b,gC as g,dT as w,aQ as _e,fx as Le,w as H,gE as Oe,aT as Ut,aq as Gt,bU as Ht,gF as ne,bz as Yt,bV as qt,b as Qt,N as Jt,M as Xt,an as at,bb as rt,d as Y,ao as Zt,c3 as ei,ak as ti,h0 as ii,gW as ai,u as c,cq as ri,d8 as oi}from"./index-xVVRZYei.js";import{a as u}from"./sentry-BgeswcBo.js";import{n as r}from"./mui-CXMQ9Piz.js";import{bL as ni,bZ as li,GD as si}from"./zeni-epic-state-BcNJxRyY.js";import di from"./InvoiceUploadSection-it-ZYl1N-CfSaMEpf.js";import{r as ci,h as x,u as mi}from"./types-DyvtCprH-NFPm5TaG.js";import"./liveblocks-bsyR3ync.js";import"./core-BneeMkMs.js";import"./recharts-CZTxjHHJ.js";import"./lottie-A_DgSlna.js";import"./analytics-Cy3lM-YK.js";import"./lexical-jHv0jkMa.js";import"./utils-DSMlyvFX.js";import"./AttachmentView-CzC4skJ3-Ddzn0SIg.js";import"./uploadReceipts-CIgkuVpu-abPzzw91.js";import"./upload-reimbursement-receipt-O2N8vcO7-DpXDyzqE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new e.Error().stack;v&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[v]="d76ece58-fbca-43d6-9c79-f8cb7a219d6d",e._sentryDebugIdIdentifier="sentry-dbid-d76ece58-fbca-43d6-9c79-f8cb7a219d6d")}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])},pi={formTitle:new Jt("h6Regular","h5Regular")},Ee=({remiDetails:e,uploadInvoiceEndPoint:v,authParams:z,isAdmin:_,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:p,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:ot,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:q,redirectToEditableReimbursementScreen:nt,onDuplicateLineClick:lt,approveOrRejectRemi:he,deleteReimbursement:st,cancelAndDeleteReport:ye,handleZeniLogoClick:dt,onAddNewRule:be,initialOpenThreadRequest:A})=>{const d=tt(),ct=Pt().analytics,n=Nt(),ge=_t(),[mt,M]=u.useState(!1),[Q,J]=u.useState(!1),[pt,X]=u.useState(!1),[Z,ee]=u.useState("approved"),L=u.useRef(null),[D,te]=u.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ut]=u.useState(null),[ht,O]=u.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=u.useRef({}),xe=l=>{const o=we.current[l];o!=null&&setTimeout(()=>mi(o,L.current),100)};u.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&q()},[e,q]),u.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const o=l.substring(1);xe(o)}},[]);const yt=()=>{q()};Lt({componentName:"reimbursement.details"});const bt={onOkClick:()=>{M(!1),D.primaryButtonText===i.buttons.delete?st?.():D.title===i.cancelReportTitle?ye?.():D.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{M(!1)}},S=s.labelWidth.value(n),R=s.largeLabelWidth.value(n),fe=it.getLocalizedStrings(),{common:{texts:{comments:gt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:wt,replyAComment:xt},tooltip:{resolveComment:ft,unResolveComment:$t}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:E}=fe.spendManagement.reimbursement,ie=e.remiDetails?.reportTitle,I=e.remiDetails?.lines??[],W=e.remiDetails?.reimbursementInfo.stage,K=e.remiDetails?.reimbursementInfo.billStatus,V=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=W?.code==="paid",vt=Te?W:K?.code=="approved"&&V?.code?V:K,T=ui(e.remiDetails),B=K?.code=="approved"&&V?.code?V:K,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{te({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),M(!0)},Tt=()=>{te({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},jt=()=>{te({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},De=()=>{nt()},St={onOkClick:l=>{X(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{X(!1)}},It=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(ee("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},Dt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(ee("delete"),Ie()):(ee("rejected"),X(!0))},Ct=e.remiDetails?.reimbursementInfo.paymentDate!=null?ni(li(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ae=e.remiDetails?.reimbursementInfo.expectedDepositDate??Ct,kt=e.remiDetails?.lines?.some(l=>{const o=l.lineDetail;return o?.account?.isDeleted===!0&&o?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&ot&&!kt,zt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",re=vt?.code,At=ci(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&At>0,{requestToOpenThread:oe,setRequestToOpenThread:U,setOpenThread:G}=u.useContext(Ot);u.useEffect(()=>{A?.threadId!=null&&A?.companyId!=null&&A?.entityType!=null&&U(A)},[A,U]);const{threads:P,isLoading:C}=Et(),Mt=u.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Wt)),[P]).length,Rt=u.useCallback((l,o)=>{G(o),O(!1)},[G,O]);u.useEffect(()=>{oe?.threadId!=null&&P.length>0&&!C&&(G(oe.threadId),U(null))},[oe,P,C,G,U]);const y={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},N=si(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ei,{windowSize:n,ref:L,children:[mt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:D.title}),descriptionComponent:t.jsx(Me,{children:D.description}),primaryButtonText:D.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:D.secondaryButtonText,action:bt}):null,pt?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:St,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ri,{windowSize:n,"data-testid":f("reimbursement-detail-page-nav-bar-container"),children:[n!=="small"?t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Bi,{onClick:()=>dt?.(),"data-testid":f("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ge.colors.background,keepBackgroundOnScroll:!0,scrollableContent:L,source:"ReimbursementDetailPage"}):null,n!=="small"?t.jsx(zi,{}):null,t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-right"),title:ie??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:n!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ni,{children:[p?t.jsxs(_i,{isDisabled:C,onClick:C?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ut({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),O(!0),ct.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(o=>Vt(o)),void 0,void 0,"page icon")},"data-testid":f("remi-comments-section"),children:[t.jsx(Kt,{count:C?void 0:Mt,isLoading:C,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:n,onClick:()=>yt(),"data-testid":f("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:L,enableTitleOnScroll:n!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{windowSize:n,children:t.jsx(Je,{windowsSize:n,children:ie})}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null,B?.code!=null?n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,I.map((l,o)=>{const j=e.duplicateLineByLineId[l.lineId];return t.jsxs(et,{windowSize:n,children:[t.jsx(Fi,{windowSize:n,children:t.jsx(Ui,{bottomSeperator:I.length!==1,windowSize:n,children:t.jsx(di,{showAutofill:!1,uploadInvoiceEndPoint:v,authParams:z,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:I.length>1?`#${o+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:I.length-1===o||o===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Vi,{windowSize:n,children:[o===0&&n!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Qe,{windowSize:n,children:[t.jsx(Je,{windowsSize:n,children:ie}),me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,B?.code!=null?t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:n,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[n!=="small"?t.jsx(wi,{children:t.jsx(fi,{children:I.length>1?`#${o+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs($i,{windowSize:n,children:[j?.duplicateLineId!=null?t.jsxs(bi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(j.isDuplicateWithinTransaction&&j.duplicateLineId!=null)return xe(`L${j.duplicateLineId}`);j.duplicateTransactionId!=null&&j.duplicateLineId!=null&&lt(j.duplicateTransactionId,j.duplicateLineId)},"data-testid":f("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${o}.mileage.reimbursementType`:`${o}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("reimbursementType",o,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(g,{label:{label:i.reimbursementType,width:R},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx($,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"mileage")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("distanceInMiles",o,"mileage")}`},children:t.jsx(g,{label:{label:i.distanceInMiles,width:R},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"mileage")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"mileage")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"mileage")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("merchant",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.merchant,width:R},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("account",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.category,width:S},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),I.length!==1&&I.length===o+1&&t.jsxs(Ki,{windowSize:n,children:[t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,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:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),I.length===1&&t.jsxs(et,{windowSize:n,children:[t.jsx(Ye,{}),t.jsxs(hi,{windowSize:n,children:[t.jsx(Wi,{windowSize:n,children:t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(yi,{windowSize:n,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,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:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Gi,{})]}),Te||F===!0?null:t.jsxs(Mi,{children:[n!=="small"?t.jsx(Ye,{}):null,t.jsx(Ti,{windowSize:n,"data-testid":f("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Q===!0&&J(!1)},children:t.jsx(Ut,{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"?n==="small"?i.buttons.delete:i.buttons.deleteReport:n==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:Dt,style:{width:s.footerButtonWidth.value(n)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.edit:i.buttons.editAndResubmit:n==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:It,style:{width:s.footerButtonWidth.value(n)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(vi,{children:t.jsxs(Ai,{windowSize:n,children:[!N&&Q?t.jsx(Gt,{onClickAway:()=>J(!1),children:t.jsxs(ki,{windowSize:n,children:[re!=="processing"?t.jsx(le,{onClick:Ie,"data-testid":f("remi-delete-action"),children:i.buttons.deleteReport}):null,re==="processing"?t.jsx(le,{onClick:Tt,"data-testid":f("remi-cancel-action"),children:i.buttons.cancel}):null,re==="processing"?t.jsx(le,{onClick:jt,"data-testid":f("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ci,{windowSize:n,children:[!N&&Ce?t.jsx(Di,{onClick:De,"data-testid":f("remi-edit-button"),children:t.jsx(Ii,{})}):null,!N&&zt===!0?t.jsx(Si,{windowSize:n,showEditIcon:Ce,children:t.jsx(ji,{onClick:()=>J(!Q),"data-testid":f("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),p?t.jsx(Ht,{isDrawerOpen:ht,allowComposer:!0,drawerTitle:gt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:C,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:wt,replyComposerPlaceholder:xt,threadResolve:ft,threadUnResolve:$t},onThreadClick:(l,o)=>Rt(l,o),onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:"400px",backgroundColor:ge.colors.background}}):null]})},ca=e=>{const v=tt().currentTenant?.companyId,z=e.remiDetails.remiDetails?.id;if(!(e.isReimbursementCommentingEnabled&&z!=null&&v!=null))return t.jsx(Ee,{...e});const _=`dashboard_${v}`;return t.jsx(Bt,{roomId:_,filter:{application:"dashboard",companyId:v,entityId:z,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(Ee,{...e})})},ui=e=>{const v=it.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:v.tabsById.deleted,color:ne.deleted.color,bgColor:ne.deleted.bgColor,borderColor:ne.deleted.borderColor,code:"deleted"}},hi=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{ay as ne,g as S,e as k,aS as le,V as e,ac as a,fH as ae,bE as de,a as u,ag as d,O as E,o as s,as as ce,c as me,aV as V,ao as pe,x as xe,d as z,cN as he,aW as ue,bc as ge,u as we}from"./index-DMG72kst.js";import{a as j}from"./sentry-DA3cfNtR.js";import{n as r}from"./mui-PTGaeBGX.js";import{GC as je,bQ as fe}from"./zeni-epic-state-qJAZZeEy.js";import{C as be}from"./VideoPopup-BqvZ-XIh-j79cwOsZ.js";import{M as v}from"./usp-line-BBd1wKwW-Bxz4MR0G.js";import"./liveblocks-BPjePRRW.js";import"./core--0SFXVg4.js";import"./recharts-qzs3V2Ze.js";import"./lottie-x1a70pv5.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./utils-ZYxK6Sqs.js";import"./VideoPlayer-VAzOGCDL-dg_i7rhP.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]="27cd28fa-8401-4f23-8ff0-db54b7f30344",i._sentryDebugIdIdentifier="sentry-dbid-27cd28fa-8401-4f23-8ff0-db54b7f30344")}catch{}})();const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
1
+ import{ay as ne,g as S,e as k,aS as le,V as e,ac as a,fH as ae,bE as de,a as u,ag as d,O as E,o as s,as as ce,c as me,aV as V,ao as pe,x as xe,d as z,cN as he,aW as ue,bc as ge,u as we}from"./index-xVVRZYei.js";import{a as j}from"./sentry-BgeswcBo.js";import{n as r}from"./mui-CXMQ9Piz.js";import{GC as je,bQ as fe}from"./zeni-epic-state-BcNJxRyY.js";import{C as be}from"./VideoPopup-BqvZ-XIh-BGAxR4nc.js";import{M as v}from"./usp-line-BBd1wKwW-BQ5rVDD1.js";import"./liveblocks-bsyR3ync.js";import"./core-BneeMkMs.js";import"./recharts-CZTxjHHJ.js";import"./lottie-A_DgSlna.js";import"./analytics-Cy3lM-YK.js";import"./lexical-jHv0jkMa.js";import"./utils-DSMlyvFX.js";import"./VideoPlayer-VAzOGCDL-ALnCE_Or.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]="27cd28fa-8401-4f23-8ff0-db54b7f30344",i._sentryDebugIdIdentifier="sentry-dbid-27cd28fa-8401-4f23-8ff0-db54b7f30344")}catch{}})();const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{g as Ee,e as Ve,aS as N,aa as qe,cQ as Ge,O as Ie,aX as Ce,V as t,fr as Je,d as J,x as s,bE as Ze,L as Qe,ae as Xe,fI as ve,e1 as Ye,fJ as Ke,by as et,dS as tt,aT as it,o as a,fL as nt,u as n,cq as ot,cU as at,eJ as lt,fU as ke,fV as $e,gu as st,a as rt,ac as Pe,N as Ae,bO as ct,ak as dt,bv as ut}from"./index-DMG72kst.js";import{a as o}from"./sentry-DA3cfNtR.js";import{n as i}from"./mui-PTGaeBGX.js";import{bJ as mt}from"./zeni-epic-state-qJAZZeEy.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Wl4Spdpn-Ckt7F9AB.js";import"./liveblocks-BPjePRRW.js";import"./core--0SFXVg4.js";import"./recharts-qzs3V2Ze.js";import"./lottie-x1a70pv5.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./utils-ZYxK6Sqs.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]="23347f5b-3129-4fc8-b1dc-ea376bc6b27a",e._sentryDebugIdIdentifier="sentry-dbid-23347f5b-3129-4fc8-b1dc-ea376bc6b27a")}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:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:Q},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:U,mileageStatus:w}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:K}=Ie.getLocalizedStrings(),{reimbursement:ee}=K,[S,V]=o.useState(F),[te,W]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Y,ne=S===!1||U.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!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(St,{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(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Tt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&F&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:I=>{I.stopPropagation(),V(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(It,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{g as Ee,e as Ve,aS as N,aa as qe,cQ as Ge,O as Ie,aX as Ce,V as t,fr as Je,d as J,x as s,bE as Ze,L as Qe,ae as Xe,fI as ve,e1 as Ye,fJ as Ke,by as et,dS as tt,aT as it,o as a,fL as nt,u as n,cq as ot,cU as at,eJ as lt,fU as ke,fV as $e,gu as st,a as rt,ac as Pe,N as Ae,bO as ct,ak as dt,bv as ut}from"./index-xVVRZYei.js";import{a as o}from"./sentry-BgeswcBo.js";import{n as i}from"./mui-CXMQ9Piz.js";import{bJ as mt}from"./zeni-epic-state-BcNJxRyY.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Wl4Spdpn-BfvknC-m.js";import"./liveblocks-bsyR3ync.js";import"./core-BneeMkMs.js";import"./recharts-CZTxjHHJ.js";import"./lottie-A_DgSlna.js";import"./analytics-Cy3lM-YK.js";import"./lexical-jHv0jkMa.js";import"./utils-DSMlyvFX.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]="23347f5b-3129-4fc8-b1dc-ea376bc6b27a",e._sentryDebugIdIdentifier="sentry-dbid-23347f5b-3129-4fc8-b1dc-ea376bc6b27a")}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:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:Q},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:U,mileageStatus:w}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:K}=Ie.getLocalizedStrings(),{reimbursement:ee}=K,[S,V]=o.useState(F),[te,W]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Y,ne=S===!1||U.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!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(St,{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(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Tt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&F&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:I=>{I.stopPropagation(),V(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(It,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.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{ay as M,g6 as z,V as _,cy as W,cz as H,cA as J,kq as K,a_ as X,O as G}from"./index-DMG72kst.js";import{a as f}from"./sentry-DA3cfNtR.js";import{Ha as Q}from"./zeni-epic-state-qJAZZeEy.js";import{u as Y}from"./ReviewOverlay-CxwoiOLC-mlyTzHF7.js";import"./liveblocks-BPjePRRW.js";import"./core--0SFXVg4.js";import"./recharts-qzs3V2Ze.js";import"./mui-PTGaeBGX.js";import"./lottie-x1a70pv5.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./utils-ZYxK6Sqs.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]="fc0295de-4613-4399-bb55-04642ce1ee62",e._sentryDebugIdIdentifier="sentry-dbid-fc0295de-4613-4399-bb55-04642ce1ee62")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=G.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:d,onCloseReviewItem:u,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:p,bulkOperationTypeSelected:r,currentTab:b,currentSubTab:y}=e,g=!1,T=M(),l=z(T),[v,m]=f.useState(!1),[h,A]=f.useState(j(e,g,o,l)),[w,D]=f.useState(g),[P,te]=f.useState(0),[S,$]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(P===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(j(e,!1,o,l)),()=>{clearInterval(R)}),[h.length,P,w,e.fetchState,g,e,o,l]);const E=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,F=()=>{const{title:c,description:k}=Z(x);$({type:"reject",title:c,description:k,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,b,y),m(!0)},L={onOkClick:c=>{m(!1);const k=e.remisForReview.map(I=>I.reimbursement);s.trackReimbursementBulkPopupConfirm(r,b,y,Q(k.map(I=>I?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{m(!1)}},{title:O,description:U}=ee(i,x,E,w),C=e.fetchState==="Completed"&&x===0,N=()=>{s.trackReimbursementBulkSubmit(r,b,y),d(r)},V=()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&p==="In-Progress",isLoading:p==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:N,style:r==="send_for_approval"?{minWidth:"92px"}:{}}},q={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&p==="In-Progress",isLoading:r==="reject"&&p==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:F,style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(J,{children:S.title}),descriptionComponent:_.jsx(H,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:L,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Y,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:u,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:V(),cancelButton:q,hideCancel:C}})]})},j=(e,o,s,d)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=K(s,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:X("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:t.reviewStatus??""}}})},Z=e=>{const{this_:o,these:s,report:d,reports:u,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",u)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},ee=(e,o,s,d)=>{const{has:u,have:t,report:i,reports:p,are:r,is:b,do_:y,does:g}=a.texts,T=o>1,l=s>1;let v="",m="";return e==="Completed"&&!d?(v=n.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:n.report).replace("<_has_>",l?t:u),o===0?m=n.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?p:i).replace("<_do_>",l?y:g):m=`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?p:i).replace("<_is_>",T?r:b)}`):(v=n.reviewPage.reportsReviewing.title.replace("__report__",l?p:i),m=n.reviewPage.reportsReviewing.description.replace("__report__",l?p:i)),{title:v,description:m}};export{_e as default};
1
+ import{ay as M,g6 as z,V as _,cy as W,cz as H,cA as J,kq as K,a_ as X,O as G}from"./index-xVVRZYei.js";import{a as f}from"./sentry-BgeswcBo.js";import{Ha as Q}from"./zeni-epic-state-BcNJxRyY.js";import{u as Y}from"./ReviewOverlay-CxwoiOLC-Ce9Omsbd.js";import"./liveblocks-bsyR3ync.js";import"./core-BneeMkMs.js";import"./recharts-CZTxjHHJ.js";import"./mui-CXMQ9Piz.js";import"./lottie-A_DgSlna.js";import"./analytics-Cy3lM-YK.js";import"./lexical-jHv0jkMa.js";import"./utils-DSMlyvFX.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]="fc0295de-4613-4399-bb55-04642ce1ee62",e._sentryDebugIdIdentifier="sentry-dbid-fc0295de-4613-4399-bb55-04642ce1ee62")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=G.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:d,onCloseReviewItem:u,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:p,bulkOperationTypeSelected:r,currentTab:b,currentSubTab:y}=e,g=!1,T=M(),l=z(T),[v,m]=f.useState(!1),[h,A]=f.useState(j(e,g,o,l)),[w,D]=f.useState(g),[P,te]=f.useState(0),[S,$]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(P===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(j(e,!1,o,l)),()=>{clearInterval(R)}),[h.length,P,w,e.fetchState,g,e,o,l]);const E=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,F=()=>{const{title:c,description:k}=Z(x);$({type:"reject",title:c,description:k,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,b,y),m(!0)},L={onOkClick:c=>{m(!1);const k=e.remisForReview.map(I=>I.reimbursement);s.trackReimbursementBulkPopupConfirm(r,b,y,Q(k.map(I=>I?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{m(!1)}},{title:O,description:U}=ee(i,x,E,w),C=e.fetchState==="Completed"&&x===0,N=()=>{s.trackReimbursementBulkSubmit(r,b,y),d(r)},V=()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&p==="In-Progress",isLoading:p==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:N,style:r==="send_for_approval"?{minWidth:"92px"}:{}}},q={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&p==="In-Progress",isLoading:r==="reject"&&p==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:F,style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(J,{children:S.title}),descriptionComponent:_.jsx(H,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:L,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Y,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:u,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:V(),cancelButton:q,hideCancel:C}})]})},j=(e,o,s,d)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=K(s,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:X("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:t.reviewStatus??""}}})},Z=e=>{const{this_:o,these:s,report:d,reports:u,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",u)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},ee=(e,o,s,d)=>{const{has:u,have:t,report:i,reports:p,are:r,is:b,do_:y,does:g}=a.texts,T=o>1,l=s>1;let v="",m="";return e==="Completed"&&!d?(v=n.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:n.report).replace("<_has_>",l?t:u),o===0?m=n.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?p:i).replace("<_do_>",l?y:g):m=`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?p:i).replace("<_is_>",T?r:b)}`):(v=n.reviewPage.reportsReviewing.title.replace("__report__",l?p:i),m=n.reviewPage.reportsReviewing.description.replace("__report__",l?p:i)),{title:v,description:m}};export{_e as default};
@@ -1,4 +1,4 @@
1
- import{g as l,V as r,aP as a,b4 as f,O as m,ac as y,aU as h,bG as g,ak as u,o as c,b5 as w}from"./index-DMG72kst.js";import{n as s}from"./mui-PTGaeBGX.js";import{a as d}from"./sentry-DA3cfNtR.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]="9ed483a1-2499-4b50-b63c-0088e23eec04",e._sentryDebugIdIdentifier="sentry-dbid-9ed483a1-2499-4b50-b63c-0088e23eec04")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=s(h)`
1
+ import{g as l,V as r,aP as a,b4 as f,O as m,ac as y,aU as h,bG as g,ak as u,o as c,b5 as w}from"./index-xVVRZYei.js";import{n as s}from"./mui-CXMQ9Piz.js";import{a as d}from"./sentry-BgeswcBo.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]="9ed483a1-2499-4b50-b63c-0088e23eec04",e._sentryDebugIdIdentifier="sentry-dbid-9ed483a1-2499-4b50-b63c-0088e23eec04")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=s(h)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=s(h)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{g as oe,e as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as S,aT as ve,o as r,O as te,cn as ke,co as Ce,cp as je,cq as Ne,cr as Ie,ao as ue,cs as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Te}from"./index-DMG72kst.js";import{a as u,P as pe}from"./sentry-DA3cfNtR.js";import{n as d}from"./mui-PTGaeBGX.js";import{t as P,n as Ae}from"./CollapsableReportTable-DNfFkAts-CKi8-92F.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="20eb1af4-c104-41fc-b30f-1fab6251011a",e._sentryDebugIdIdentifier="sentry-dbid-20eb1af4-c104-41fc-b30f-1fab6251011a")}catch{}})();const R=te.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ee=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Le=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Be(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(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ee(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Le(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed,class_view_layout:e.accountViewMode==="classes"?e.classViewLayout:void 0}}async function uo(e,i,a){const t=te.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:i,fileType:a.statementFileType});if(h.ok){const y=Ce(h.headers,t.defaultFileName),_=await h.arrayBuffer();je(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const He=d.div`
1
+ import{g as oe,e as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as S,aT as ve,o as r,O as te,cn as ke,co as Ce,cp as je,cq as Ne,cr as Ie,ao as ue,cs as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Te}from"./index-xVVRZYei.js";import{a as u,P as pe}from"./sentry-BgeswcBo.js";import{n as d}from"./mui-CXMQ9Piz.js";import{t as P,n as Ae}from"./CollapsableReportTable-DNfFkAts-C6S6iQHx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="20eb1af4-c104-41fc-b30f-1fab6251011a",e._sentryDebugIdIdentifier="sentry-dbid-20eb1af4-c104-41fc-b30f-1fab6251011a")}catch{}})();const R=te.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ee=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Le=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Be(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(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ee(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Le(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed,class_view_layout:e.accountViewMode==="classes"?e.classViewLayout:void 0}}async function uo(e,i,a){const t=te.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:i,fileType:a.statementFileType});if(h.ok){const y=Ce(h.headers,t.defaultFileName),_=await h.arrayBuffer();je(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const He=d.div`
2
2
  padding: 0 ${r.sp3} 0 ${r.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{e as le,g as ce,ay as Je,bQ as et,bR as tt,bS as st,O as T,V as o,bT as ot,ac as F,bF as nt,bq as at,bE as it,bU as rt,o as _,aV as lt,L as ct,bV as dt,x as U,bW as pt,u as L,aq as me,K as D,bX as ge,bY as ut,ak as de,av as ht,bZ as ft,aG as Te,W as mt,aX as gt,an as Ae,au as bt,bN as _t}from"./index-DMG72kst.js";import{a as C,P as Be}from"./sentry-DA3cfNtR.js";import{n as h}from"./mui-PTGaeBGX.js";import{a as yt}from"./liveblocks-BPjePRRW.js";import{bg as be,FD as xt,FM as wt,FN as St,FO as X,FP as Ct,FQ as Rt,FR as Ot,FS as vt,FT as Tt,FU as pe,FV as ue,FW as ke}from"./zeni-epic-state-qJAZZeEy.js";import{j as At,z as he}from"./mapTimeframeBalancesToTreeNode-Bre8FfBF-CeRR9HNy.js";import{m as K,l as ae}from"./analyticsHelper-CAYdbjhS-B2pke1yA.js";import{b as Bt}from"./ReportTableViewSelector-Bc1K7mU_-CwFMTqSs.js";import{S as J,y as kt,M as $t,$ as Lt,v as Nt}from"./TimeRangeSwitcher-D00bDDhP-jzNZlsUf.js";import{X as jt}from"./TimeframeSwitcherWithToggle-DyggDIQj-Dg5fJRkI.js";import{DownloadOverlayButton as Mt}from"./DownloadOverlay-D_lL1sPW-DvGv3saF.js";import{Z as It,n as Ft,t as V,j as $e}from"./CollapsableReportTable-DNfFkAts-CKi8-92F.js";import{D as Le,T as Ne,C as ee,L as Pt,g as je}from"./mapSectionWithAcOnlyToTreeNode-Cgyt68f3-gWv13TX8.js";import{d as Vt,l as Et}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-DJ_zEjzF.js";import{d as Dt}from"./mapLoadingInProgressToTreeNode-jcHEi-mv-3CmCtSOT.js";import"./core--0SFXVg4.js";import"./lottie-x1a70pv5.js";import"./recharts-qzs3V2Ze.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./utils-ZYxK6Sqs.js";import"./TimeframeSwitcher-DA99HdHt-DUsdK6ru.js";import"./page-detail-CWX5S47F-3PBwxH1C.js";import"./AccountRow-D1cjRJJD-68vCYcVL.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]="a6d5b7f3-6227-426c-b190-a9b99623df08",e._sentryDebugIdIdentifier="sentry-dbid-a6d5b7f3-6227-426c-b190-a9b99623df08")}catch{}})();const zt=h.div`
1
+ import{e as le,g as ce,ay as Je,bQ as et,bR as tt,bS as st,O as T,V as o,bT as ot,ac as F,bF as nt,bq as at,bE as it,bU as rt,o as _,aV as lt,L as ct,bV as dt,x as U,bW as pt,u as L,aq as me,K as D,bX as ge,bY as ut,ak as de,av as ht,bZ as ft,aG as Te,W as mt,aX as gt,an as Ae,au as bt,bN as _t}from"./index-xVVRZYei.js";import{a as C,P as Be}from"./sentry-BgeswcBo.js";import{n as h}from"./mui-CXMQ9Piz.js";import{a as yt}from"./liveblocks-bsyR3ync.js";import{bg as be,FD as xt,FM as wt,FN as St,FO as X,FP as Ct,FQ as Rt,FR as Ot,FS as vt,FT as Tt,FU as pe,FV as ue,FW as ke}from"./zeni-epic-state-BcNJxRyY.js";import{j as At,z as he}from"./mapTimeframeBalancesToTreeNode-Bre8FfBF-Bs_1IkDc.js";import{m as K,l as ae}from"./analyticsHelper-CAYdbjhS-DpZD7rse.js";import{b as Bt}from"./ReportTableViewSelector-Bc1K7mU_-CU-N1dG-.js";import{S as J,y as kt,M as $t,$ as Lt,v as Nt}from"./TimeRangeSwitcher-D00bDDhP-mBG6n8kl.js";import{X as jt}from"./TimeframeSwitcherWithToggle-DyggDIQj-CAP7KrsO.js";import{DownloadOverlayButton as Mt}from"./DownloadOverlay-D_lL1sPW-zH02H3o1.js";import{Z as It,n as Ft,t as V,j as $e}from"./CollapsableReportTable-DNfFkAts-C6S6iQHx.js";import{D as Le,T as Ne,C as ee,L as Pt,g as je}from"./mapSectionWithAcOnlyToTreeNode-Cgyt68f3-CuHtfWIs.js";import{d as Vt,l as Et}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-DwFeda_C.js";import{d as Dt}from"./mapLoadingInProgressToTreeNode-jcHEi-mv-jPHNd3VK.js";import"./core-BneeMkMs.js";import"./lottie-A_DgSlna.js";import"./recharts-CZTxjHHJ.js";import"./analytics-Cy3lM-YK.js";import"./lexical-jHv0jkMa.js";import"./utils-DSMlyvFX.js";import"./TimeframeSwitcher-DA99HdHt-BD7Yd5Q9.js";import"./page-detail-CWX5S47F-CDK4DKDx.js";import"./AccountRow-D1cjRJJD-C5wdR-ZR.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]="a6d5b7f3-6227-426c-b190-a9b99623df08",e._sentryDebugIdIdentifier="sentry-dbid-a6d5b7f3-6227-426c-b190-a9b99623df08")}catch{}})();const zt=h.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  `,Ut=h.div`
@@ -1,4 +1,4 @@
1
- import{g as A,V as a,O as D,e as de,b5 as Q,u as I,w as M,a_ as J,o as m,ac as Ae,d as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-DMG72kst.js";import{a as P,P as ee}from"./sentry-DA3cfNtR.js";import{n as x}from"./mui-PTGaeBGX.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-CD3vrBsI-B60Spgf7.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-aLNB35t7-Bj9jSpq4.js";import{V as Z}from"./toChartData-DUL6vnzJ-BfCuWWLN.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-qzs3V2Ze.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]="72f1a44e-8da4-47b0-a71f-2668863e6485",e._sentryDebugIdIdentifier="sentry-dbid-72f1a44e-8da4-47b0-a71f-2668863e6485")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{g as A,V as a,O as D,e as de,b5 as Q,u as I,w as M,a_ as J,o as m,ac as Ae,d as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-xVVRZYei.js";import{a as P,P as ee}from"./sentry-BgeswcBo.js";import{n as x}from"./mui-CXMQ9Piz.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-CD3vrBsI-BsUEjWN7.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-aLNB35t7-CCYOqPb4.js";import{V as Z}from"./toChartData-DUL6vnzJ-D1CeQRVq.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-CZTxjHHJ.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]="72f1a44e-8da4-47b0-a71f-2668863e6485",e._sentryDebugIdIdentifier="sentry-dbid-72f1a44e-8da4-47b0-a71f-2668863e6485")}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{e as Tt,ay as Ct,x as u,fk as Dt,fl as It,fm as kt,V as t,fn as Pt,fo as le,fp as Mt,fq as At,fr as Bt,fs as Ft,aQ as M,ft as Lt,ac as v,fu as Rt,fv as Be,fw as Fe,fx as Le,w as U,dN as O,d as j,fy as zt,fz as E,dT as _,fA as Nt,fB as Ot,c1 as Re,o as n,aT as Et,u as d,O as _t,ai as Wt,cc as Vt,N as Zt,M as Gt,fC as Yt,cq as qt,an as ce,ao as me,fD as Ut,fE as Ht,bk as Kt,n as Xt,bb as Qt,fF as Jt,as as tt,bM as en,ak as nt,bv as tn,fG as nn}from"./index-DMG72kst.js";import{a as V}from"./sentry-DA3cfNtR.js";import{n as i}from"./mui-PTGaeBGX.js";import{bo as ze,bm as Ne,bH as I,bX as an,Gr as on,bL as re,bZ as ln}from"./zeni-epic-state-qJAZZeEy.js";import{t as rn,o as sn}from"./LowBalancePopup-1727S1ri-B9nzvQPQ.js";import{S as W}from"./LabeledText-C8Y7EOsX-C8fojKEp.js";import"./liveblocks-BPjePRRW.js";import"./core--0SFXVg4.js";import"./recharts-qzs3V2Ze.js";import"./lottie-x1a70pv5.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./utils-ZYxK6Sqs.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]="0af5e1fd-4b1e-4b06-b840-72cf5f139005",e._sentryDebugIdIdentifier="sentry-dbid-0af5e1fd-4b1e-4b06-b840-72cf5f139005")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Zt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:_e}=mn,We=({attachment:e})=>{const[y,g]=V.useState(!1),A=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ht,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:Q,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),k=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?kt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=V.useState(!1),[te,be]=V.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(k?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),fe())},[k,J,fe,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&Z?.code?Z:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&Z?.code?Z:N,ie=()=>{pe()},$e=()=>{pe()},G=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ve(h,Y,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Jt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=P?.code??"draft",Ie=N?.code??"",ke=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",Me=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,ke,Pe,Me,Ae):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,ke,Pe,Me,Ae)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=V.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:k?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ie()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(T)??"",paymentType:ve,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ke,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Rt(o);return o!=null?t.jsx(Zn,{children:it.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(Pn,{children:[t.jsxs(Mn,{children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Je,{windowSize:s,children:M("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(o.id,o.billPayInfo.stage.code),children:[t.jsxs(K,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":v("review-detail-info"),onClick:()=>Q(o.id,o.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:M("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},o.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(He,{children:t.jsx(Le,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(H,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!x&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:G.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(G.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ge,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ge,{children:[t.jsx(de,{children:_e.transactionFee}),t.jsx(se,{children:M("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:M("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(Le,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&k?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ze(!1,C,h,Y,s)}},primaryBtn:{label:Ve(h,Y,e.isBillMarkedForRetry),isLoading:k?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?q(!0):Te()},style:{width:Ze(!0,C,h,Y,s)}},rightSideComponent:C&&!h&&k.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Re,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ve=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,g,A,S)=>g?128:y&&!e&&S==="small"?"auto":A?165:m.footerButtonWidth.value(S),pn=i(en)`
1
+ import{e as Tt,ay as Ct,x as u,fk as Dt,fl as It,fm as kt,V as t,fn as Pt,fo as le,fp as Mt,fq as At,fr as Bt,fs as Ft,aQ as M,ft as Lt,ac as v,fu as Rt,fv as Be,fw as Fe,fx as Le,w as U,dN as O,d as j,fy as zt,fz as E,dT as _,fA as Nt,fB as Ot,c1 as Re,o as n,aT as Et,u as d,O as _t,ai as Wt,cc as Vt,N as Zt,M as Gt,fC as Yt,cq as qt,an as ce,ao as me,fD as Ut,fE as Ht,bk as Kt,n as Xt,bb as Qt,fF as Jt,as as tt,bM as en,ak as nt,bv as tn,fG as nn}from"./index-xVVRZYei.js";import{a as V}from"./sentry-BgeswcBo.js";import{n as i}from"./mui-CXMQ9Piz.js";import{bo as ze,bm as Ne,bH as I,bX as an,Gr as on,bL as re,bZ as ln}from"./zeni-epic-state-BcNJxRyY.js";import{t as rn,o as sn}from"./LowBalancePopup-1727S1ri-BRF8niwx.js";import{S as W}from"./LabeledText-C8Y7EOsX-DbaPZKOT.js";import"./liveblocks-bsyR3ync.js";import"./core-BneeMkMs.js";import"./recharts-CZTxjHHJ.js";import"./lottie-A_DgSlna.js";import"./analytics-Cy3lM-YK.js";import"./lexical-jHv0jkMa.js";import"./utils-DSMlyvFX.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]="0af5e1fd-4b1e-4b06-b840-72cf5f139005",e._sentryDebugIdIdentifier="sentry-dbid-0af5e1fd-4b1e-4b06-b840-72cf5f139005")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Zt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:_e}=mn,We=({attachment:e})=>{const[y,g]=V.useState(!1),A=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ht,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:Q,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),k=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?kt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=V.useState(!1),[te,be]=V.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(k?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),fe())},[k,J,fe,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&Z?.code?Z:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&Z?.code?Z:N,ie=()=>{pe()},$e=()=>{pe()},G=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ve(h,Y,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Jt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=P?.code??"draft",Ie=N?.code??"",ke=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",Me=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,ke,Pe,Me,Ae):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,ke,Pe,Me,Ae)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=V.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:k?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ie()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(T)??"",paymentType:ve,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ke,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Rt(o);return o!=null?t.jsx(Zn,{children:it.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(Pn,{children:[t.jsxs(Mn,{children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Je,{windowSize:s,children:M("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(o.id,o.billPayInfo.stage.code),children:[t.jsxs(K,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":v("review-detail-info"),onClick:()=>Q(o.id,o.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:M("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},o.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(He,{children:t.jsx(Le,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(H,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!x&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:G.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(G.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ge,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ge,{children:[t.jsx(de,{children:_e.transactionFee}),t.jsx(se,{children:M("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:M("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(Le,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&k?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ze(!1,C,h,Y,s)}},primaryBtn:{label:Ve(h,Y,e.isBillMarkedForRetry),isLoading:k?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?q(!0):Te()},style:{width:Ze(!0,C,h,Y,s)}},rightSideComponent:C&&!h&&k.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Re,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ve=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,g,A,S)=>g?128:y&&!e&&S==="small"?"auto":A?165:m.footerButtonWidth.value(S),pn=i(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{e as M,V as i,ac as m,o as r,aT as P,x as d,b as B,N as C,M as I,d as s,an as j,cL as W,L as D,ak as b,bj as R,u as n,eA as G,y as _,jc as A,kp as F}from"./index-DMG72kst.js";import{n as t}from"./mui-PTGaeBGX.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]="7c047d86-67d8-49e1-9a33-630ac3dc5eeb",e._sentryDebugIdIdentifier="sentry-dbid-7c047d86-67d8-49e1-9a33-630ac3dc5eeb")}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])},N={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:L})=>{const a=M();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(O,{windowSize:a,children:[i.jsx(q,{children:i.jsx(K,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>L(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(P,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
1
+ import{e as M,V as i,ac as m,o as r,aT as P,x as d,b as B,N as C,M as I,d as s,an as j,cL as W,L as D,ak as b,bj as R,u as n,eA as G,y as _,jc as A,kp as F}from"./index-xVVRZYei.js";import{n as t}from"./mui-CXMQ9Piz.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]="7c047d86-67d8-49e1-9a33-630ac3dc5eeb",e._sentryDebugIdIdentifier="sentry-dbid-7c047d86-67d8-49e1-9a33-630ac3dc5eeb")}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])},N={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:L})=>{const a=M();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(O,{windowSize:a,children:[i.jsx(q,{children:i.jsx(K,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>L(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(P,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),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{f3 as f,f4 as h,V as s,c1 as g,o as d,ac as n,O as x,ap as y,ak as c}from"./index-DMG72kst.js";import{n as l}from"./mui-PTGaeBGX.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]="293687a6-b742-4c04-a2ce-fb66df02a384",e._sentryDebugIdIdentifier="sentry-dbid-293687a6-b742-4c04-a2ce-fb66df02a384")}catch{}})();const{hyphen:a}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
1
+ import{f3 as f,f4 as h,V as s,c1 as g,o as d,ac as n,O as x,ap as y,ak as c}from"./index-xVVRZYei.js";import{n as l}from"./mui-CXMQ9Piz.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]="293687a6-b742-4c04-a2ce-fb66df02a384",e._sentryDebugIdIdentifier="sentry-dbid-293687a6-b742-4c04-a2ce-fb66df02a384")}catch{}})();const{hyphen:a}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aS as K,iF as te,gT as me,eR as Je,iG as Me,aa as _e,iH as Ve,cQ as Pe,cR as Fe,V as a,ae as Ne,cy as Re,cz as qe,cA as We,aT as ze,iI as Be,iJ as Ue,O as be,ab as pe,iK as Se,iL as $e,cU as Ge,e as Ke,iY as He,gZ as ue,u as W,d as De,x as ye,cV as Xe,iM as Ze,iN as Qe,iO as Ye,o as V}from"./index-DMG72kst.js";import{a as f}from"./sentry-DA3cfNtR.js";import{n as B}from"./mui-PTGaeBGX.js";import{GW as et,GX as tt}from"./zeni-epic-state-qJAZZeEy.js";import{l as lt,a as at,s as st,r as ot}from"./ScheduleSequenceTable-R3-PsXES-CJvXYjeZ.js";import"./liveblocks-BPjePRRW.js";import"./core--0SFXVg4.js";import"./recharts-qzs3V2Ze.js";import"./lottie-x1a70pv5.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./utils-ZYxK6Sqs.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="3d9716f3-63a4-4dd5-9f04-029b7d81e6c4",e._sentryDebugIdIdentifier="sentry-dbid-3d9716f3-63a4-4dd5-9f04-029b7d81e6c4")}catch{}})();const z={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=B.div`
1
+ import{aS as K,iF as te,gT as me,eR as Je,iG as Me,aa as _e,iH as Ve,cQ as Pe,cR as Fe,V as a,ae as Ne,cy as Re,cz as qe,cA as We,aT as ze,iI as Be,iJ as Ue,O as be,ab as pe,iK as Se,iL as $e,cU as Ge,e as Ke,iY as He,gZ as ue,u as W,d as De,x as ye,cV as Xe,iM as Ze,iN as Qe,iO as Ye,o as V}from"./index-xVVRZYei.js";import{a as f}from"./sentry-BgeswcBo.js";import{n as B}from"./mui-CXMQ9Piz.js";import{GW as et,GX as tt}from"./zeni-epic-state-BcNJxRyY.js";import{l as lt,a as at,s as st,r as ot}from"./ScheduleSequenceTable-R3-PsXES-EMpu-m3i.js";import"./liveblocks-bsyR3ync.js";import"./core-BneeMkMs.js";import"./recharts-CZTxjHHJ.js";import"./lottie-A_DgSlna.js";import"./analytics-Cy3lM-YK.js";import"./lexical-jHv0jkMa.js";import"./utils-DSMlyvFX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="3d9716f3-63a4-4dd5-9f04-029b7d81e6c4",e._sentryDebugIdIdentifier="sentry-dbid-3d9716f3-63a4-4dd5-9f04-029b7d81e6c4")}catch{}})();const z={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=B.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aS as F,iF as Y,gT as Ie,eR as Je,iG as Le,aa as we,iH as Me,cQ as Ve,cR as Pe,V as a,ae as _e,cy as Fe,cz as $e,cA as Ne,aT as Re,iI as ze,iJ as Be,O as ye,ab as re,iK as pe,iL as Ue,cU as We,e as qe,gZ as fe,u as Z,d as Ge,x as Ke,iM as He,iN as Qe,iO as Xe,o as L}from"./index-DMG72kst.js";import{a as y}from"./sentry-DA3cfNtR.js";import{n as P}from"./mui-PTGaeBGX.js";import{GW as Ye,GX as Ze,bL as et}from"./zeni-epic-state-qJAZZeEy.js";import{l as tt,a as lt,s as at,r as st}from"./ScheduleSequenceTable-R3-PsXES-CJvXYjeZ.js";import"./liveblocks-BPjePRRW.js";import"./core--0SFXVg4.js";import"./recharts-qzs3V2Ze.js";import"./lottie-x1a70pv5.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./utils-ZYxK6Sqs.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]="1c8eb500-f2c2-4ddb-b4fc-50925085ebf2",e._sentryDebugIdIdentifier="sentry-dbid-1c8eb500-f2c2-4ddb-b4fc-50925085ebf2")}catch{}})();const z={labelWidth:new Ke(160,160,160)},nt=P.div`
1
+ import{aS as F,iF as Y,gT as Ie,eR as Je,iG as Le,aa as we,iH as Me,cQ as Ve,cR as Pe,V as a,ae as _e,cy as Fe,cz as $e,cA as Ne,aT as Re,iI as ze,iJ as Be,O as ye,ab as re,iK as pe,iL as Ue,cU as We,e as qe,gZ as fe,u as Z,d as Ge,x as Ke,iM as He,iN as Qe,iO as Xe,o as L}from"./index-xVVRZYei.js";import{a as y}from"./sentry-BgeswcBo.js";import{n as P}from"./mui-CXMQ9Piz.js";import{GW as Ye,GX as Ze,bL as et}from"./zeni-epic-state-BcNJxRyY.js";import{l as tt,a as lt,s as at,r as st}from"./ScheduleSequenceTable-R3-PsXES-EMpu-m3i.js";import"./liveblocks-bsyR3ync.js";import"./core-BneeMkMs.js";import"./recharts-CZTxjHHJ.js";import"./lottie-A_DgSlna.js";import"./analytics-Cy3lM-YK.js";import"./lexical-jHv0jkMa.js";import"./utils-DSMlyvFX.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]="1c8eb500-f2c2-4ddb-b4fc-50925085ebf2",e._sentryDebugIdIdentifier="sentry-dbid-1c8eb500-f2c2-4ddb-b4fc-50925085ebf2")}catch{}})();const z={labelWidth:new Ke(160,160,160)},nt=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{e as T,g as Z,V as t,iP as oe,dR as ne,N as re,iQ as ye,e4 as we,fx as be,w as I,O as N,iR as $e,iO as je,o as i,x as j,d as S,n as Se,ac as q,ab as se,d_ as ke,cy as ve,cA as De,cU as ee,eJ as te,cZ as Ce,iS as U,iT as Me,b5 as ze,iU as Ee,cC as Oe,iV as Le,u as p,an as z,bb as Ie,cz as Te,aq as ge,eS as Ae,b3 as ae,eE as Fe,aT as Ve,iW as F,gu as Je,aQ as Be,iX as Pe,aX as G,da as Re,bj as Ne}from"./index-DMG72kst.js";import{n as o,c as P}from"./mui-PTGaeBGX.js";import{a as D}from"./sentry-DA3cfNtR.js";import{bh as Q,GY as We}from"./zeni-epic-state-qJAZZeEy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="8bd188a8-c299-4f4b-8ef7-1952946ac520",e._sentryDebugIdIdentifier="sentry-dbid-8bd188a8-c299-4f4b-8ef7-1952946ac520")}catch{}})();const W=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:C},common:de}=N.getLocalizedStrings();function Ye({defaultValue:e,name:l,placeholder:r,alignLeft:n=!1,style:m,isDisabled:d,registerOptions:s,onSaveClick:c,onCancelClick:b}){const[y,u]=D.useState(!1),{control:f,formState:{errors:x},setValue:g}=ee(),k=()=>{$||(c(),u(!1))},w=()=>{b(),u(!1)},$=te(x,l),E=T(),a=Z();return t.jsx(ge,{onClickAway:()=>{u(!1)},children:t.jsx(Ze,{style:m,isDisabled:d!=null,windowSize:E,onClick:()=>{!y&&d==null&&u(!0)},children:t.jsx(Ae,{name:W(l,"dayOfMonth"),control:f,rules:{...s},render:()=>t.jsxs(Ge,{children:[t.jsx(_e,{placeholder:r,defaultValue:e,isDisabled:d}),y?t.jsxs(Ue,{alignLeft:n===!0,children:[t.jsx(it,{}),t.jsxs(ce,{isSelected:e.type==="day",children:[t.jsxs(tt,{isError:e.type==="day"&&$,children:[t.jsx(ae,{label:{label:C.pickDate},radioField:{id:"day",name:W(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&$?S.important:"inherit"}}),t.jsx(Fe,{name:W(l,"dayOfMonth"),type:"number",placeholder:C.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:h=>{h.key!=="Backspace"&&isNaN(parseInt(h.key))&&h.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"&&$?S.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Xe,{isSelected:e.type==="day",children:C.ofEveryMonth})]}),t.jsx(He,{defaultValue:e.dayOfMonth,onClick:h=>{g(`${l}.dayOfMonth`,h),g(`${l}.type`,"day")}})]}),t.jsx(lt,{}),t.jsx(ce,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ae,{label:{label:C.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:W(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&$?S.important:"inherit"}})}),t.jsx(Ve,{primaryBtn:{label:de.footer.save,onClick:k,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:de.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:l,isDisabled:r}){return t.jsxs(Qe,{isDisabled:r!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(ue,{children:[t.jsx(Y,{children:C.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(Y,{children:C.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(ue,{children:[t.jsx(Y,{children:C.daysOfMonth.lastDayOfMonth}),t.jsx(Y,{children:C.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:l}){return t.jsxs(et,{children:[t.jsx(_,{children:[...Array(7).keys()].map(r=>{const n=r+1;return t.jsx(H,{isSelected:n===e,onClick:()=>l(We(n)),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(r=>{const n=r+8;return t.jsx(H,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(r=>{const n=r+15;return t.jsx(H,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(r=>{const n=r+22;return t.jsx(H,{isSelected:n===e,onClick:()=>l(n),children:n},n)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ge=o.div`
1
+ import{e as T,g as Z,V as t,iP as oe,dR as ne,N as re,iQ as ye,e4 as we,fx as be,w as I,O as N,iR as $e,iO as je,o as i,x as j,d as S,n as Se,ac as q,ab as se,d_ as ke,cy as ve,cA as De,cU as ee,eJ as te,cZ as Ce,iS as U,iT as Me,b5 as ze,iU as Ee,cC as Oe,iV as Le,u as p,an as z,bb as Ie,cz as Te,aq as ge,eS as Ae,b3 as ae,eE as Fe,aT as Ve,iW as F,gu as Je,aQ as Be,iX as Pe,aX as G,da as Re,bj as Ne}from"./index-xVVRZYei.js";import{n as o,c as P}from"./mui-CXMQ9Piz.js";import{a as D}from"./sentry-BgeswcBo.js";import{bh as Q,GY as We}from"./zeni-epic-state-BcNJxRyY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="8bd188a8-c299-4f4b-8ef7-1952946ac520",e._sentryDebugIdIdentifier="sentry-dbid-8bd188a8-c299-4f4b-8ef7-1952946ac520")}catch{}})();const W=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:C},common:de}=N.getLocalizedStrings();function Ye({defaultValue:e,name:l,placeholder:r,alignLeft:n=!1,style:m,isDisabled:d,registerOptions:s,onSaveClick:c,onCancelClick:b}){const[y,u]=D.useState(!1),{control:f,formState:{errors:x},setValue:g}=ee(),k=()=>{$||(c(),u(!1))},w=()=>{b(),u(!1)},$=te(x,l),E=T(),a=Z();return t.jsx(ge,{onClickAway:()=>{u(!1)},children:t.jsx(Ze,{style:m,isDisabled:d!=null,windowSize:E,onClick:()=>{!y&&d==null&&u(!0)},children:t.jsx(Ae,{name:W(l,"dayOfMonth"),control:f,rules:{...s},render:()=>t.jsxs(Ge,{children:[t.jsx(_e,{placeholder:r,defaultValue:e,isDisabled:d}),y?t.jsxs(Ue,{alignLeft:n===!0,children:[t.jsx(it,{}),t.jsxs(ce,{isSelected:e.type==="day",children:[t.jsxs(tt,{isError:e.type==="day"&&$,children:[t.jsx(ae,{label:{label:C.pickDate},radioField:{id:"day",name:W(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&$?S.important:"inherit"}}),t.jsx(Fe,{name:W(l,"dayOfMonth"),type:"number",placeholder:C.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:h=>{h.key!=="Backspace"&&isNaN(parseInt(h.key))&&h.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"&&$?S.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Xe,{isSelected:e.type==="day",children:C.ofEveryMonth})]}),t.jsx(He,{defaultValue:e.dayOfMonth,onClick:h=>{g(`${l}.dayOfMonth`,h),g(`${l}.type`,"day")}})]}),t.jsx(lt,{}),t.jsx(ce,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ae,{label:{label:C.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:W(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&$?S.important:"inherit"}})}),t.jsx(Ve,{primaryBtn:{label:de.footer.save,onClick:k,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:de.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function _e({placeholder:e,defaultValue:l,isDisabled:r}){return t.jsxs(Qe,{isDisabled:r!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(ue,{children:[t.jsx(Y,{children:C.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(Y,{children:C.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(ue,{children:[t.jsx(Y,{children:C.daysOfMonth.lastDayOfMonth}),t.jsx(Y,{children:C.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:l}){return t.jsxs(et,{children:[t.jsx(_,{children:[...Array(7).keys()].map(r=>{const n=r+1;return t.jsx(H,{isSelected:n===e,onClick:()=>l(We(n)),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(r=>{const n=r+8;return t.jsx(H,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(r=>{const n=r+15;return t.jsx(H,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(_,{children:[...Array(7).keys()].map(r=>{const n=r+22;return t.jsx(H,{isSelected:n===e,onClick:()=>l(n),children:n},n)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ge=o.div`
2
2
  position: relative;
3
3
  `,Qe=o.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{EK as Xf,EL as Lt,EM as Qf,iP as ot,hx as ql,iR as Ye,hu as eh,hB as Ll,EN as Pa,hD as th,hE as rh,EO as Gt,EP as kt,h1 as nh,EQ as xr,ER as ta,cP as ih,f3 as ra,f0 as Ir,f8 as rt,f6 as oh,ES as kl,ET as Nl,hS as ah,hP as sh,EU as uh,i1 as ch,hY as ja,hV as lh,hK as fh,EV as hh,dK as dh,cV as ph,j1 as Dl,EW as mh,bL as Tr,hH as xa,hM as gh,pw as Ml,iQ as qr,EX as Ne,id as na,EY as yh,j7 as vh,B as Re,EZ as ia,E_ as bh,g_ as wh,E$ as Eh,F0 as Fl,F1 as Sh,o4 as qa,nB as _h,F2 as Rh,nH as Zr,F3 as Oh,nJ as Th,F4 as Ze,ny as Ih,cC as Ah,iU as Ul,iV as Bl,iT as oa,iS as aa,iW as Ch,F5 as Ph,o7 as jh,F6 as xh,nQ as qh,o1 as Lh,F7 as kh,nU as Nh,F8 as Dh,F9 as _t,Fa as sa,Fb as Mh,Fc as Fh,mB as Uh,mH as $l,Fd as Vl,gv as Bh,DQ as Gl,Fe as $h,DK as Vh,Ff as Gh,Fg as Hh,mK as zh,Fh as Zh,DV as Wh,DJ as Yh,r1 as Hl,Fi as Wr,Fj as zl,AT as ua,AF as Jh,AW as Zl,AI as Kh,Fk as Xh,AN as Qh,Az as ed,AC as td,Fl as rd,A_ as nd,AQ as id,c4 as od,bd as ad,Fm as sd,Fn as ft,Fo as ud,Fp as cd,Fq as ld,i5 as Ko,ba as fd}from"./zeni-epic-state-qJAZZeEy.js";import{j as N}from"./liveblocks-BPjePRRW.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-DA3cfNtR.js";import{D as dd,g as dt,e as Lr,h as pd,i as pe,j as be,k as md,l as gd,x as Pe,m as kr,q as yd,R as Je,O as Nt,r as pt,s as at,L as Nr,o as tt,C as vd,t as bd,v as nt,H as ca,A as it,B as wd,E as Ed,u as Yr,J as Sd,F as Jl,G as _d,I as Kl,W as Xl,K as Xo,P as Rd,U as Od,Q as Td,S as Ql,T as Id,X as Ad,Y as Cd,Z as Pd,_ as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md,a6 as Fd}from"./index-DMG72kst.js";import{f as Ud}from"./analyticsHelper-CqcfNRvx.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core--0SFXVg4.js";import{D as Dr,n as Te,S as mt}from"./mui-PTGaeBGX.js";import{a as ve,b as Bd,c as $d,d as Vd,e as fa,f as Gd,g as Hd,h as zd,i as gt,j as Zd,k as xt,l as Mr,m as Wd,n as Dt,o as Yd}from"./utils-ZYxK6Sqs.js";import{r as ha}from"./empty-B-BVwcCU.js";import{r as Jd,a as Kd,b as Xd,c as Qd}from"./constants-CBenFj2i.js";import{r as Mt,a as ep}from"./index-CKQ5JKXb.js";import{r as tp}from"./index-Dg4q7vvv.js";import"./recharts-qzs3V2Ze.js";import"./lottie-x1a70pv5.js";import"./analytics-BdPgTZIq.js";import"./lexical-RPR5fwFX.js";import"./url-DNLur0Mx.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]="2c838a8f-e9ca-4cab-8717-4a09272a4578",e._sentryDebugIdIdentifier="sentry-dbid-2c838a8f-e9ca-4cab-8717-4a09272a4578")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},rp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function np(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function ip(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const op=ge(ip,np)(yd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pd(),pe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(!0),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:rp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(md,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(gd,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(op,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},ap=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},sp=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function up(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const cp={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??cp.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const lp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(fp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,fp=Te.div`
1
+ import{EK as Xf,EL as Lt,EM as Qf,iP as ot,hx as ql,iR as Ye,hu as eh,hB as Ll,EN as Pa,hD as th,hE as rh,EO as Gt,EP as kt,h1 as nh,EQ as xr,ER as ta,cP as ih,f3 as ra,f0 as Ir,f8 as rt,f6 as oh,ES as kl,ET as Nl,hS as ah,hP as sh,EU as uh,i1 as ch,hY as ja,hV as lh,hK as fh,EV as hh,dK as dh,cV as ph,j1 as Dl,EW as mh,bL as Tr,hH as xa,hM as gh,pw as Ml,iQ as qr,EX as Ne,id as na,EY as yh,j7 as vh,B as Re,EZ as ia,E_ as bh,g_ as wh,E$ as Eh,F0 as Fl,F1 as Sh,o4 as qa,nB as _h,F2 as Rh,nH as Zr,F3 as Oh,nJ as Th,F4 as Ze,ny as Ih,cC as Ah,iU as Ul,iV as Bl,iT as oa,iS as aa,iW as Ch,F5 as Ph,o7 as jh,F6 as xh,nQ as qh,o1 as Lh,F7 as kh,nU as Nh,F8 as Dh,F9 as _t,Fa as sa,Fb as Mh,Fc as Fh,mB as Uh,mH as $l,Fd as Vl,gv as Bh,DQ as Gl,Fe as $h,DK as Vh,Ff as Gh,Fg as Hh,mK as zh,Fh as Zh,DV as Wh,DJ as Yh,r1 as Hl,Fi as Wr,Fj as zl,AT as ua,AF as Jh,AW as Zl,AI as Kh,Fk as Xh,AN as Qh,Az as ed,AC as td,Fl as rd,A_ as nd,AQ as id,c4 as od,bd as ad,Fm as sd,Fn as ft,Fo as ud,Fp as cd,Fq as ld,i5 as Ko,ba as fd}from"./zeni-epic-state-BcNJxRyY.js";import{j as N}from"./liveblocks-bsyR3ync.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-BgeswcBo.js";import{D as dd,g as dt,e as Lr,h as pd,i as pe,j as be,k as md,l as gd,x as Pe,m as kr,q as yd,R as Je,O as Nt,r as pt,s as at,L as Nr,o as tt,C as vd,t as bd,v as nt,H as ca,A as it,B as wd,E as Ed,u as Yr,J as Sd,F as Jl,G as _d,I as Kl,W as Xl,K as Xo,P as Rd,U as Od,Q as Td,S as Ql,T as Id,X as Ad,Y as Cd,Z as Pd,_ as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md,a6 as Fd}from"./index-xVVRZYei.js";import{f as Ud}from"./analyticsHelper-B8BXI7vm.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-BneeMkMs.js";import{D as Dr,n as Te,S as mt}from"./mui-CXMQ9Piz.js";import{a as ve,b as Bd,c as $d,d as Vd,e as fa,f as Gd,g as Hd,h as zd,i as gt,j as Zd,k as xt,l as Mr,m as Wd,n as Dt,o as Yd}from"./utils-DSMlyvFX.js";import{r as ha}from"./empty-BQekd75w.js";import{r as Jd,a as Kd,b as Xd,c as Qd}from"./constants-i8SbWp6r.js";import{r as Mt,a as ep}from"./index-BLdL0CvK.js";import{r as tp}from"./index-BPE9D0Re.js";import"./recharts-CZTxjHHJ.js";import"./lottie-A_DgSlna.js";import"./analytics-Cy3lM-YK.js";import"./lexical-jHv0jkMa.js";import"./url-DYdO6hMe.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]="2c838a8f-e9ca-4cab-8717-4a09272a4578",e._sentryDebugIdIdentifier="sentry-dbid-2c838a8f-e9ca-4cab-8717-4a09272a4578")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},rp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function np(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function ip(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const op=ge(ip,np)(yd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pd(),pe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(!0),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:rp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(md,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(gd,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(op,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},ap=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},sp=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function up(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const cp={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??cp.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const lp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(fp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,fp=Te.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;