@zeniai/web-cockpit-ui 1.14.95-dev → 1.14.95-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 (259) hide show
  1. package/dist/assets/{ACHDetailsPage-OhfwzmDP-BxTDVOh1.js → ACHDetailsPage-OhfwzmDP-B0MmhzQr.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-9OxanlvK-CgJqovaF.js → AIPerformancePage-9OxanlvK-Cj3SosId.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-CDn5K_o2-Jz8ASTF3.js → AccountInfoPage-CDn5K_o2-DHOHq5Yi.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-Bu-ZFVKf-Bzjfgq-w.js → AccountInfoPageContent-Bu-ZFVKf-i_2123h5.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BqLkGmTA-BNXIZ-_c.js → AccountLockedInfoModal-BqLkGmTA-Daz-nYiO.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CyQ13mJl-FHiDm0XX.js → AccountReconDetailsDrawerPage-CyQ13mJl-CMimijI1.js} +1 -1
  7. package/dist/assets/{AccountRow-pJ59k4-J-byrgsZ5o.js → AccountRow-pJ59k4-J-PE5eKiNX.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-Ukdm1VDj-LXzQVhgG.js → AccountsPromoCardStack-Ukdm1VDj-BN_8tVkO.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CZ9kZK-_-BorvwiUS.js → AddAddressForCardDrawer-CZ9kZK-_-DwKBQYyq.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-Bc0GY8mw-Bzy3APVO.js → AddToWalletPage-Bc0GY8mw-D6f6ytUI.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Cam_Ox67-esv0vh5e.js → AgingReportsPage-Cam_Ox67-Ba5VLHSD.js} +1 -1
  12. package/dist/assets/{AllUserItems-CEBWfFac-DTqOorYc.js → AllUserItems-CEBWfFac-BfBBvgBk.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-uy2AK45a-DNUi-nEy.js → ApAgingDetailPage-uy2AK45a-BCyhKSKv.js} +1 -1
  14. package/dist/assets/{AppBasePage-BBolfeYB-DNhslGFP.js → AppBasePage-BBolfeYB-Dssv1a5M.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-Df0b3OK2-B2ahGZLO.js → AppDrawerContent-Df0b3OK2-Blyf3ERI.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-ChI1Wnf--Dl3-g6oX.js → ApprovalRulesSettingsPage-ChI1Wnf--DGcHuuNk.js} +1 -1
  17. package/dist/assets/{ArAgingChart-PIQ_BFy4-BnDMbQVn.js → ArAgingChart-PIQ_BFy4-Cdm39dAn.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-DpdUPb6--z8BZ4n5F.js → ArAgingDetailPage-DpdUPb6--DZUjcxIB.js} +1 -1
  19. package/dist/assets/{AttachmentView-mC246Bpw-BHWqGVkj.js → AttachmentView-mC246Bpw-BuWO1Hj1.js} +1 -1
  20. package/dist/assets/{BankAccountSection-DehqZ04x-DO-HA5ys.js → BankAccountSection-DehqZ04x-x87MAJuQ.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-WkczfI75-CuH7tIxu.js → BankAccountWarningSection-WkczfI75-Q1Vw0vZn.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-CCEKqkfW-BfqVttB9.js → BankConnectionsSettingsPage-CCEKqkfW-DQ4Y2Ioc.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DA1djKtd-DyCGsfw-.js → BillDetailPage-DA1djKtd-B4uqwqMH.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CLkMLaIk-C1v-sTgA.js → BillPayApprovalRuleDetailPage-CLkMLaIk-B68NMx1R.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CZnYZ8cn-CAMKGQJy.js → BillPayApprovalRulesPage-CZnYZ8cn-BQxPsarJ.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-M3bRYehy-SjsaKPSV.js → BillPayPromoPage-M3bRYehy-CS--DaSV.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-CJyPhrld-C0AU7hvY.js → BillPaySetUpPage-CJyPhrld-CRiaFJ1l.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-CQngU3lq-Dyxs7zHK.js → BillingSettingsPage-CQngU3lq-D6r_Qe4j.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DlAOz-SY-3nnvXFIK.js → BillsBulkReviewDrawerPage-DlAOz-SY-CxNl8iRb.js} +1 -1
  30. package/dist/assets/{BoxItem-Cb4_ZBkK-Bkgg0u3k.js → BoxItem-Cb4_ZBkK-Bn5DIOk3.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-D7btikKT-CvsI0MLJ.js → BusinessVerificationPage-D7btikKT-0L5JTgvt.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-DQ6T2OKm-DvKU5ajv.js → CardNumberSubText-DQ6T2OKm-knZc9wO_.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-ToN5ueBt-C9SvI1bn.js → CashbackDetailPage-ToN5ueBt-Cd6WjvBe.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-BYNjlLQX-CdtS9CW8.js → ChargeCardDetailPage-BYNjlLQX-B_CJ0DJ7.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-CTG6bNbA-CEyn9Rpg.js → ChargeCardListPage-CTG6bNbA-CRS8qfE3.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BRAAvmWW-D-sN9KpZ.js → ChargeCardListTable-BRAAvmWW-mvKnI15-.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-xhEvT_sU-BkSGNTuR.js → ChargeCardPromoPage-xhEvT_sU-BABlm09x.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-Be89R3A7-DtcPTkPM.js → ChargeCardSetupPage-Be89R3A7-B3Xxv14P.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-CFNCOiLr-iPk9fUPX.js → ChargeCardStatementsPage-CFNCOiLr-OOTFZsxq.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-Cy0NVgKc-D5Z7NEXx.js → CheckDepositDrawerPage-Cy0NVgKc-B3Y5j3CY.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-CrR91Kpi-5o5TUvM_.js → CollapsableReportTable-CrR91Kpi-BZpIT4Xx.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-4FjXy6T9-BeFKaxwk.js → CompanyOfficerDetailsSection-4FjXy6T9-B5gjJGEF.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-Bv6Aws7i-BHrtuPF7.js → CompanyPassportCard-Bv6Aws7i-D45R-tmN.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-DRhnOgdd-CAYATeHw.js → CompanyPassportPage-DRhnOgdd-BTT2Nr9k.js} +1 -1
  45. package/dist/assets/{CompleteProfile-CdVQdaB0-B5_lHcue.js → CompleteProfile-CdVQdaB0-NRu6zfO4.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-Cygb8bhF-BkIJka8y.js → ConfettiBurst-Cygb8bhF-BMcKAZR4.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-_jZBL7C2-LSCYEMsl.js → CreateOrEditVendorPage-_jZBL7C2-DMqT-7sd.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-CWF47Q9G-DhX1QGtb.js → CreditCardPaymentDrawerPage-CWF47Q9G-Bs8XQD6n.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-ppkSKTpN-C5rfRVft.js → CurrencySelectField-ppkSKTpN-D8kyL-r_.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-DbaC9Uy1-BFo_8GS3.js → CustomerOnboardingActivationPage-DbaC9Uy1-BK8z6fBR.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-qmrLtjkH-Ch5kODdo.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-5PeyznvM-CWHXVqDg.js → CustomerOnboardingDetailPageSkeleton-5PeyznvM-DBgUFsyR.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-CWvaI2vY-BMWDOChj.js → CustomerOnboardingNoStepsPage-CWvaI2vY-C935jO-q.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-DWmMR5Ke-DrHmimlq.js → CustomerOnboardingPage-DWmMR5Ke-DSUmqH7G.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-CEOJEMdY-BJwF7tHC.js → CustomerOnboardingProductSuitePage-CEOJEMdY-gbiDhYV3.js} +1 -1
  56. package/dist/assets/{Dashboard-CJSMYKO7-DtTMv2YE.js → Dashboard-CJSMYKO7-Bv-bP000.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-CcY-7-W_-B9Xu9Dc7.js → DashboardReportPage-CcY-7-W_-DN-AWPGp.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-D3qI_q0a-zE-tHYqy.js → DashboardSidebarBackgroundAnimation-D3qI_q0a-DcExD0jn.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-BpbS0SRE-4G4pZt9E.js → DepositAccTransactionItem-BpbS0SRE-27G4FTFF.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-C1EuUbFg-CipCQ4gA.js → DepositAccTransactionListPage-C1EuUbFg-wlcRyWVL.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-DTrY_uHQ-Bx_xjnPA.js → DomesticWireDetailsPage-DTrY_uHQ-CqkBauOr.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-gRH0FIa6-DKDTdwBo.js → DownloadOverlay-gRH0FIa6-BGU_aVej.js} +1 -1
  63. package/dist/assets/{DrawerPage-gsfboWa--BG-IsntA.js → DrawerPage-gsfboWa--BPM8hf2C.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-D3GenIke-fFVPNEu-.js → EditPeoplePage-D3GenIke-RkWc5z_R.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-CC4JbXua-BHQf6Tq_.js → EditReimbursementDetailPage-CC4JbXua-Bba6P7yg.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-dZ-H_-kO-B7ZtrjJi.js → EntityDetailPage-dZ-H_-kO-DYROGWfq.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-BaSzuw3T-LStVjn5r.js → EntitySummarySection-BaSzuw3T-CcebPlUg.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-CtBVIXza-jj81QXv0.js → ExpenseAutomationOverviewPage-CtBVIXza-Cqy2rzSK.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-BByZfMUo-5XiRqMlX.js → ExpenseAutomationPage-BByZfMUo-Z6W4AUhd.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-Dx4Cc9w2-BPUrRRqb.js → ExpressPayPage-Dx4Cc9w2-BYXdl6Fc.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-Us5W5Wo9-B9QYuRIC.js → FeaturePreviewPage-Us5W5Wo9-CbgxLWSp.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-DDXRZdXi-SO_ZPpiI.js → FollowStepsSection-DDXRZdXi-h80RAI_K.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-Ou4B6O28-BDWqy7nZ.js → GlobalReviewListPage-Ou4B6O28-958_Gpry.js} +1 -1
  74. package/dist/assets/{InformationCardStack-DEj81xCg-Co1eZBNX.js → InformationCardStack-DEj81xCg-rohq7XrD.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-BSigEuRs-DTXlX0eo.js → InsightsCardStack-BSigEuRs-BIDRhbpd.js} +1 -1
  76. package/dist/assets/{InsightsSection-BrjpMz4X-CQnyuoM5.js → InsightsSection-BrjpMz4X-BnKLKQp0.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-BEBtsJ8z-CpdXXLPE.js → IntegrationsSettingsPage-BEBtsJ8z-C5uHQBnZ.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-DqTA5UPe-Dh2m_ClR.js → InternationalWireSwiftDetailsPage-DqTA5UPe-C7l7X3YR.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-CGLyTJOX-CgqcwWhe.js → InternationalWireVerificationPage-CGLyTJOX-D6s2ASkw.js} +1 -1
  80. package/dist/assets/{InviteFormPage-CHZVhrof-C1BLULVh.js → InviteFormPage-CHZVhrof-BwYiWEhJ.js} +1 -1
  81. package/dist/assets/{InvitePageListView-B0aN2fz0-CXq89Ggq.js → InvitePageListView-B0aN2fz0-BqF0ega_.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-DLPupvdi-QL22x-_S.js → InvitePeoplePage-DLPupvdi-BjGhH45Q.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-COIpUGEB-BbbQUA3q.js → InvoiceUploadSection-COIpUGEB-DlYNpHu0.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-6LWMwuaq-9nL_K9SN.js → IssueChargeCardPage-6LWMwuaq-C8Rtg1BF.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-BOPQCQtK-6Ctaq2uZ.js → LabeledAddressValue-BOPQCQtK-B3C5-qLP.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DxybAWPO-C8g5Q5Mh.js → LabeledAddressValueField-DxybAWPO-CDZx9yGJ.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-BSciMX7_-DE5GxjWa.js → LabeledControlledCheckBoxField-BSciMX7_-CSRtEg2h.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-q23ARfG8-CHK3wFhd.js → LabeledCreatableSingleSelectField-q23ARfG8-CL9-wbYU.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-Icg5_obX-Dhu5oRPx.js → LabeledDocumentField-Icg5_obX-DmHwo0ds.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-BiJOzT5B-mztVwrkZ.js → LabeledDropDownFormattedTextField-BiJOzT5B-OUIEj7An.js} +1 -1
  91. package/dist/assets/{LabeledText-Tn7u-Ek3-kHR2OkPB.js → LabeledText-Tn7u-Ek3-BjrUfAUz.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B_MWazM_-C56dsjd7.js → LabeledUserSingleSelectWithSubtitlesField-B_MWazM_-Btf7P8V1.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-DyCxNVQD-BPCdN2r2.js → LabeledZeniRolesDropDownField-DyCxNVQD-DTi8nkTA.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-NXVaaeQn-BpSun53t.js → LinkJETransactionPage-NXVaaeQn-C4bu2lt5.js} +1 -1
  95. package/dist/assets/{LockCardPage-DFFQF_XE-BFlJ9UKK.js → LockCardPage-DFFQF_XE-W53jL6na.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-T5Ms2v-E-BQ4WCPPF.js → LowBalancePopup-T5Ms2v-E-C0Mbibyj.js} +1 -1
  97. package/dist/assets/{MagicLinkACHDetailsPage-DtxKOlmX-0863GAuu.js → MagicLinkACHDetailsPage-DtxKOlmX-CrcTTnN4.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-C7DsI3GD-D5Dxo8vU.js → MagicLinkDomesticWireDetailsPage-C7DsI3GD-CssMxu3o.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BQtq93Cv-mQxkDvCy.js → MagicLinkInternationalWireDetailsPage-BQtq93Cv-CrWDpmXX.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-BU8oXuny-B0XijyZh.js → MagicLinkSuccessPage-BU8oXuny-BAH6ZqM6.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-kbY8yTTa-Dn-LABVB.js → MagicLinkTitleSection-kbY8yTTa-kE9urKSX.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-CMekdUCQ-D6VV7KFJ.js → MailingDetailsSection-CMekdUCQ-nHUv9zaz.js} +1 -1
  103. package/dist/assets/{Menu-DTdVYIrC-BgV_8qov.js → Menu-DTdVYIrC-BFcVkETT.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-B67G0-7Z-BU9I3M_U.js → MyBankConnectionsSettingsPage-B67G0-7Z-C0sQmPQX.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-Cbap6Vpr-CMtgu-Ia.js → MyPendingActivationChargeCardListPage-Cbap6Vpr-dzgcsCad.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-TqtGXk0G-C5zioJrw.js → MyProfileSettingsPage-TqtGXk0G-CeLipOpa.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-C4_SW0nA-C0GnDmGd.js → NavBarWithPicker-C4_SW0nA-BRuZdbDi.js} +1 -1
  108. package/dist/assets/{NavigationArrow-6jp6I9fp-CnBvKiHR.js → NavigationArrow-6jp6I9fp-B1M4m9dU.js} +1 -1
  109. package/dist/assets/{NavigationDots-BSjG6OlY-BrwTxyv0.js → NavigationDots-BSjG6OlY-DPcdNDf4.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-BXM36kwh-CpDwRLSC.js → NewGlobalMerchantPage-BXM36kwh-rKEYF_uv.js} +1 -1
  111. package/dist/assets/{NoDataChart-CRhOisS1-COtAQCUj.js → NoDataChart-CRhOisS1-RInsaDK9.js} +1 -1
  112. package/dist/assets/{NoDataTable-bIZY56VS-CN217muV.js → NoDataTable-bIZY56VS-C9_9WaqB.js} +1 -1
  113. package/dist/assets/{NotFoundPage-Y4UqiUrL-B4YsYETt.js → NotFoundPage-Y4UqiUrL-DCDY3OrX.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-Ct1wYM98-B_bcsz6g.js → NotificationSettingsPage-Ct1wYM98-uxBvaWkv.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-tD8IFVDs-ULU_nTGm.js → NotificationsListConfig-tD8IFVDs-RtYpDlQ5.js} +1 -1
  116. package/dist/assets/{NotificationsPage-C8PlG40Q-5AviDmKP.js → NotificationsPage-C8PlG40Q-D3a7ia0X.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-B5dz3g_I-D-sfcCoC.js → OpExByVendorPage-B5dz3g_I-DFy709LU.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-BbvZjeSQ.js → OverlayContainerPage-Daz3A7cI-Dxl-Qmyg.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-BzeV5E9J-DYpR0NHu.js → PandLWithForecastPage-BzeV5E9J-zgLTjpoq.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-C7ucXP-C-jaxMZozI.js → PaymentAccountSetupBillingAddressSection-C7ucXP-C-LC34Km4L.js} +1 -1
  121. package/dist/assets/{PeoplePage-Di9LbUPG-gazTpQwX.js → PeoplePage-Di9LbUPG-CWsCCTzh.js} +1 -1
  122. package/dist/assets/{Preview-Blj_5IQY.js → Preview-Bvl0A3zL.js} +1 -1
  123. package/dist/assets/{ProductsCarousel-IX34mwaP-K798zKfC.js → ProductsCarousel-IX34mwaP-D-izgCy0.js} +1 -1
  124. package/dist/assets/{PromoBaseCards-DKl5hmY7-DFLcHPib.js → PromoBaseCards-DKl5hmY7-CwzfyBKD.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog-CFgV4ltt-CYpBxArF.js → QBOConnectionDialog-CFgV4ltt-BX-aSdY9.js} +1 -1
  126. package/dist/assets/{QBOSetupSection-3Igwysxj-sm9A6uU9.js → QBOSetupSection-3Igwysxj-DAvVUUoQ.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRuleDetailPage-gUzCi41q-CGYjTbGQ.js → ReimbursementApprovalRuleDetailPage-gUzCi41q-CczEhirw.js} +1 -1
  128. package/dist/assets/{ReimbursementApprovalRulesPage-CUQt2z6s-m3DmX-q3.js → ReimbursementApprovalRulesPage-CUQt2z6s-C4nojr0m.js} +1 -1
  129. package/dist/assets/{ReimbursementDetailPage-CgwRpLnh-BKKRl5XL.js → ReimbursementDetailPage-CgwRpLnh-CpM2QWnE.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-BxBAhFM1-CCmdLSng.js → ReimbursementPromoPage-BxBAhFM1-FUnmWGWk.js} +1 -1
  131. package/dist/assets/{ReimbursementSetUpPage-CP8WtKvQ-BzwYqD-v.js → ReimbursementSetUpPage-CP8WtKvQ-BdfVVxIN.js} +1 -1
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Ir7LV3Qg-FmB-IcoK.js → ReimbursementsBulkReviewDrawerPage-Ir7LV3Qg-QSzacADo.js} +1 -1
  133. package/dist/assets/{ReloadCard-DLKVg3Sx-CJGjLDvX.js → ReloadCard-DLKVg3Sx-BTOHu7LX.js} +1 -1
  134. package/dist/assets/{ReportTableViewSelector-BlpUjTMl-BDDVFcAy.js → ReportTableViewSelector-BlpUjTMl-CCJ4G6Sa.js} +1 -1
  135. package/dist/assets/{ReportsPage-D-4SKTVF-1DspK86K.js → ReportsPage-D-4SKTVF-CZBOdI14.js} +1 -1
  136. package/dist/assets/{RevenueChart-C3cckydL-g0yPIBMk.js → RevenueChart-C3cckydL-LEJwhJKy.js} +1 -1
  137. package/dist/assets/{ReviewDetailsPage-Df882foz-CxLlFw3j.js → ReviewDetailsPage-Df882foz-DWBRw9JC.js} +1 -1
  138. package/dist/assets/{ReviewOverlay-n3lZIztC-BaYE0CrF.js → ReviewOverlay-n3lZIztC-DbnTz566.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-jGxjGCFo-BZAgNS7O.js → RoleWithToolTip-jGxjGCFo-CdttS9pY.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-cVGyXDC1-4W97BSmP.js → ScheduleDetailsFixedAssetsPage-cVGyXDC1-BSrz52X7.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsPage-Dcl5GREY-CSgH86CC.js → ScheduleDetailsPage-Dcl5GREY-D84ZlO_K.js} +1 -1
  142. package/dist/assets/{ScheduleSequenceTable-CkqvmnzR-BkWT4A03.js → ScheduleSequenceTable-CkqvmnzR-D7MxQHJ_.js} +1 -1
  143. package/dist/assets/{ScreenRoutes--Xu4aTei.js → ScreenRoutes-CCo07fH5.js} +1 -1
  144. package/dist/assets/{SetUpAccountSection-bKk_0Pau-WnVMpA_D.js → SetUpAccountSection-bKk_0Pau-B9UBsUKI.js} +1 -1
  145. package/dist/assets/{SignIn-BZXzRb1K-BrEU8WAx.js → SignIn-BZXzRb1K-LbV3zgh7.js} +1 -1
  146. package/dist/assets/{SignInScreen-DgTeNXoF.js → SignInScreen-BJ16jEL5.js} +1 -1
  147. package/dist/assets/{SpendManagementListViewPage-jdvSYQ4J-DsXAHxjb.js → SpendManagementListViewPage-jdvSYQ4J-BY4oWMhs.js} +3 -3
  148. package/dist/assets/{SpendManagementPerTabPage-BlyFIn6o-DJWoY1io.js → SpendManagementPerTabPage-BlyFIn6o-DSLVmlFM.js} +1 -1
  149. package/dist/assets/{SpendManagementSection-Dzlokoym-2kDboE_-.js → SpendManagementSection-Dzlokoym-Dg_BxSoe.js} +1 -1
  150. package/dist/assets/{StatementItem-BMV39A0D-CK6a43sV.js → StatementItem-BMV39A0D-DGpGtMfK.js} +1 -1
  151. package/dist/assets/{StatementsPage-Cw6GRd81-DnrYrFIX.js → StatementsPage-Cw6GRd81-DHSXQ7Hb.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-CcLiXtx4-Bk8L4YH5.js → StatusSwitcher-CcLiXtx4-B8YKkHCH.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-zpnLoSBy-Dt5pYptL.js → SubTabSwitcher-zpnLoSBy-C8gX1ptn.js} +1 -1
  154. package/dist/assets/{SummaryCard-C2KHXXwg-B46OJl_E.js → SummaryCard-C2KHXXwg-qdPbdsxg.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-C3M_HCXR-Dmk36h9D.js → TaskManagementPage-C3M_HCXR-DbnyAHvy.js} +1 -1
  156. package/dist/assets/{TimeRangeSwitcher-COHAPH9b-Duk9Ni0x.js → TimeRangeSwitcher-COHAPH9b-Dnf_4M2G.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcher-5ql0bSzz-PyYhkmzr.js → TimeframeSwitcher-5ql0bSzz-DVKqHt9F.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-BXSkHN5Y-CXXTcEDU.js → TimeframeSwitcherWithToggle-BXSkHN5Y-CDyDpGkS.js} +1 -1
  159. package/dist/assets/{TopExCard-BrodwfJq-Cb6RgMjA.js → TopExCard-BrodwfJq-CT8IDy7h.js} +1 -1
  160. package/dist/assets/{TopExDetailPage-B8-Zzr1B-uipHxmei.js → TopExDetailPage-B8-Zzr1B-Y7HXW4FX.js} +1 -1
  161. package/dist/assets/{TransactionDetailPage-D8v3KPrb-DUtpwjHc.js → TransactionDetailPage-D8v3KPrb-CrYGtXF1.js} +1 -1
  162. package/dist/assets/{TransactionList-DMb2xYOV-B2oFoO-E.js → TransactionList-DMb2xYOV-ByFMfeR2.js} +1 -1
  163. package/dist/assets/{TransactionListBig-dUBjAacV-Bmm-sJh2.js → TransactionListBig-dUBjAacV-IOcDbtZ_.js} +1 -1
  164. package/dist/assets/{TransactionListPage-x0r04hx4-CX-3Zldl.js → TransactionListPage-x0r04hx4-DV-Uahp0.js} +1 -1
  165. package/dist/assets/{TransactionVendorDetailPage-BqjeDf6Q-CKKZt-sE.js → TransactionVendorDetailPage-BqjeDf6Q-DaZqvh1V.js} +1 -1
  166. package/dist/assets/{TransferDrawerPage-LppLtT6A-UVTq-XXy.js → TransferDrawerPage-LppLtT6A-CUfIUI7x.js} +1 -1
  167. package/dist/assets/{TreasuryOverviewPage-DNoQLXPn-I3GX0kn0.js → TreasuryOverviewPage-DNoQLXPn-Bhex40Oh.js} +1 -1
  168. package/dist/assets/{TreasuryPromoPage--MgysW-J-C4qW5Hjb.js → TreasuryPromoPage--MgysW-J-BxuCjcRc.js} +1 -1
  169. package/dist/assets/{TreasuryStatementsPage-DRPB8HzF-Us1El1nE.js → TreasuryStatementsPage-DRPB8HzF-DpNi08ty.js} +1 -1
  170. package/dist/assets/{TreasuryTaxLetterPage-BeeNFRtm-BNRt42uj.js → TreasuryTaxLetterPage-BeeNFRtm-BdAlrQNQ.js} +1 -1
  171. package/dist/assets/{TrendChart-C7DgNHh6-DWSLEK7h.js → TrendChart-C7DgNHh6-Diouw0cc.js} +1 -1
  172. package/dist/assets/{TrendWithTransactions-CpQPkCN4-CjThbvYV.js → TrendWithTransactions-CpQPkCN4-DgfITFMB.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-f9xrtur3-wJ4bdRvL.js → UncategorizedAccountsMappingPage-f9xrtur3-DZoH6oY-.js} +1 -1
  174. package/dist/assets/{UnitIntegrationPage-SiS8CA0g-LkCGZb5A.js → UnitIntegrationPage-SiS8CA0g-l1qFvkph.js} +1 -1
  175. package/dist/assets/{UploadAdditionalDocumentOverlay-Djnl6dYH-Cb6cznud.js → UploadAdditionalDocumentOverlay-Djnl6dYH-DrFunnrV.js} +1 -1
  176. package/dist/assets/{Vendor2FAPopup-CYwD3yQ8-DteE76iF.js → Vendor2FAPopup-CYwD3yQ8-C09IZVbD.js} +1 -1
  177. package/dist/assets/{VendorACHDetailsPage-ChZp1Db0-m74ooXZH.js → VendorACHDetailsPage-ChZp1Db0-DotoAyne.js} +1 -1
  178. package/dist/assets/{VendorDetailPage-CG0SxxIa-CErJAoDL.js → VendorDetailPage-CG0SxxIa-DwzclZ0I.js} +1 -1
  179. package/dist/assets/{VendorDomesticWireDetailsPage-Dfawpwuo-XWP9GiBd.js → VendorDomesticWireDetailsPage-Dfawpwuo-BvWlpU0l.js} +1 -1
  180. package/dist/assets/{VendorFiling1099EditablePage-DQs8RP_2-Buxj_PiL.js → VendorFiling1099EditablePage-DQs8RP_2-X6QSJqUo.js} +1 -1
  181. package/dist/assets/{VendorFirstReviewPage-XaE6ddOQ-BWMGU3Tl.js → VendorFirstReviewPage-XaE6ddOQ-C1wUoC4d.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireDetailsPage-CT75sZ0O-DqLwSNE1.js → VendorInternationalWireDetailsPage-CT75sZ0O-DcCtuxF1.js} +1 -1
  183. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CBKqnkvK-D4x_F8qG.js → VendorInternationalWireSwiftDetailsPage-CBKqnkvK-B4ZB-PwF.js} +1 -1
  184. package/dist/assets/{VendorsAccountsSection-C9NkRN0p-CxSkczTx.js → VendorsAccountsSection-C9NkRN0p-DydZTo2d.js} +1 -1
  185. package/dist/assets/{VerifyDevice-c6uTgDIl-DXrax5KK.js → VerifyDevice-c6uTgDIl-DDqR7iLQ.js} +1 -1
  186. package/dist/assets/{VideoPlayer-BgTXP1p7-DSVVGcbk.js → VideoPlayer-BgTXP1p7-CthO62R1.js} +2 -2
  187. package/dist/assets/{VideoPopup-BD0vmbkL-B1pshKUR.js → VideoPopup-BD0vmbkL-CLqAQ-F0.js} +1 -1
  188. package/dist/assets/{WarningsDrawerPage-BS-TFvBs-CxQBdq8b.js → WarningsDrawerPage-BS-TFvBs-CqoMuo05.js} +1 -1
  189. package/dist/assets/{ZeniAccountDetailPage-CSVQF6vO-BPYfZJgl.js → ZeniAccountDetailPage-CSVQF6vO-DRvG3g8I.js} +1 -1
  190. package/dist/assets/{ZeniAccountListViewPage-BVGsjSB2-1PFcObmH.js → ZeniAccountListViewPage-BVGsjSB2-t2UTYPji.js} +1 -1
  191. package/dist/assets/{ZeniAccountNavBarPieces-B1l8Hjdg-DxwPdu4w.js → ZeniAccountNavBarPieces-B1l8Hjdg-CQH8qvkY.js} +1 -1
  192. package/dist/assets/{ZeniAccountPromoPage-s-QGT-pZ-DicXAF4k.js → ZeniAccountPromoPage-s-QGT-pZ-Bk83ExVy.js} +1 -1
  193. package/dist/assets/{ZeniAccountSetupPage-CqXokSq4-ZNS-0xul.js → ZeniAccountSetupPage-CqXokSq4-Bu1pk681.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-_f5jw1U0-D4XdQ2SF.js → ZeniCopyright-_f5jw1U0-DuSkzfDI.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-yvd98l69-BEYj6C-O.js → ZeniTransferAmountSlider-yvd98l69-Dk9ThfvP.js} +1 -1
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-BUzE53FC.js → add-to-wallet-DgdBD8_G-CeN9wsOX.js} +1 -1
  197. package/dist/assets/{analytics-CudETrrD.js → analytics-dBDO_kmt.js} +1 -1
  198. package/dist/assets/{analyticsHelper-BvohFLdK-Dy4GAyAC.js → analyticsHelper-BvohFLdK-Cj2qzEaw.js} +1 -1
  199. package/dist/assets/{analyticsHelper-DO-eHSEi.js → analyticsHelper-CdTd3Obi.js} +1 -1
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-QknSTNl-.js → arrow-south-east-round-PEovUgvH-DYwhnoJ9.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-Bj4AnUyI.js → auto-transfer-rule-mbafm5D3-CqoF3gqr.js} +1 -1
  202. package/dist/assets/{chartTypes-h1GkAvwh-DeXrp29h.js → chartTypes-h1GkAvwh-DtktD8Hg.js} +1 -1
  203. package/dist/assets/{commonDimensions-7B20r1RL-BsLeN16e.js → commonDimensions-7B20r1RL-sZAcxgn6.js} +1 -1
  204. package/dist/assets/{constants-qsYvqsp_.js → constants-DBqHTrL9.js} +1 -1
  205. package/dist/assets/{core-CSvDBKbK.js → core-CaI9oVhR.js} +1 -1
  206. package/dist/assets/{dash.all.min-CXX6UwCX.js → dash.all.min-C9IcqO_I.js} +1 -1
  207. package/dist/assets/{detailCommon-C28aeDGm-DXaZUKe3.js → detailCommon-C28aeDGm-CF_gPxjJ.js} +1 -1
  208. package/dist/assets/{downloadPdf-D1MhyCE3-Bl_kVnuy.js → downloadPdf-D1MhyCE3-CUItja8P.js} +1 -1
  209. package/dist/assets/{empty-BdJ2ubLR.js → empty-a4cO3sa1.js} +1 -1
  210. package/dist/assets/{empty-BlN3pbr0.js → empty-cUKt-JYs.js} +1 -1
  211. package/dist/assets/{epic-DoNCnWgY.js → epic-DdHxMLNo.js} +1 -1
  212. package/dist/assets/{gift-box-Cmt9OgIZ-CMjOsL5s.js → gift-box-Cmt9OgIZ-DQoUZPt7.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt-P_uJxgqv.js → graphic-no-data-l-DU4J8fDt-DFkAqt1f.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DX8wy8i8.js → graphic-no-data-net-burn-l-CzmycA0m-DfmU8t1g.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-Cvq-V9c-.js → handshake-BPg58FML-BieNV0jx.js} +1 -1
  216. package/dist/assets/{index-DTPFP43Z.js → index-2Z-F1VPT.js} +1 -1
  217. package/dist/assets/{index-B_ST3N1m.js → index-B-xhamrr.js} +1 -1
  218. package/dist/assets/{index-C_7vQmrg.js → index-BiF65tqa.js} +1 -1
  219. package/dist/assets/{index-B3_vBBYe.js → index-BxItVqfG.js} +1 -1
  220. package/dist/assets/{index-Bmog4VKy.js → index-C6Qi9fFs.js} +1 -1
  221. package/dist/assets/{index-BmlsHaIe.js → index-D-DGVKdQ.js} +1 -1
  222. package/dist/assets/{index-BRDgVxUL.js → index-rDlRqXqB.js} +7 -7
  223. package/dist/assets/{lexical-BmM_-J9_.js → lexical-BdCZ0qlw.js} +1 -1
  224. package/dist/assets/{liveblocks-B7l6-lVT.js → liveblocks-vN47Tj80.js} +1 -1
  225. package/dist/assets/{lottie-Cx9dNUMI.js → lottie-CN7rZ8UA.js} +1 -1
  226. package/dist/assets/{mapLoadingInProgressToTreeNode-B5fs_QGb-1RRRqxAS.js → mapLoadingInProgressToTreeNode-B5fs_QGb-Dy2XNo45.js} +1 -1
  227. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DtwKYRnC-BG8zzg0l.js → mapSectionWithAcOnlyToTreeNode-DtwKYRnC-6y1V4dLG.js} +1 -1
  228. package/dist/assets/{mapSpacerToTreeNode-BufNagSk-BerYj-N8.js → mapSpacerToTreeNode-BufNagSk-D6j_Nf9s.js} +1 -1
  229. package/dist/assets/{mapTimeframeBalancesToTreeNode-BHbBvkxK-Sg9H38Nv.js → mapTimeframeBalancesToTreeNode-BHbBvkxK-HfkAswUB.js} +1 -1
  230. package/dist/assets/{mapTimeframeBalancesToTreeNode-BOahnk__-Bv8a8zZk.js → mapTimeframeBalancesToTreeNode-BOahnk__-6kbEJvqu.js} +1 -1
  231. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-Ca65g1u9.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-B_ocqea4.js} +1 -1
  232. package/dist/assets/{mui-Cm3rVrD-.js → mui-DoMPwnI-.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-kxZACSVt.js → page-detail-CWX5S47F-DrlGOBfT.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-rhwWstOk.js → radio-default-CiSgisfh-41DZEgBx.js} +1 -1
  235. package/dist/assets/{react-BzJpcjr6.js → react-B1hsNH8s.js} +1 -1
  236. package/dist/assets/{react-CgC6TIq9.js → react-B2g8uEnT.js} +2 -2
  237. package/dist/assets/{react-CkyQ_f7y.js → react-BIwm0dwH.js} +1 -1
  238. package/dist/assets/{react-yAx4DBuZ.js → react-CJocSq7C.js} +1 -1
  239. package/dist/assets/{react-DIbjB6T0.js → react-CSDhpHiP.js} +1 -1
  240. package/dist/assets/{react-Byv2U7h7.js → react-Cdqn0GrJ.js} +1 -1
  241. package/dist/assets/{react-CPFSKMtT.js → react-DlHP1p5l.js} +1 -1
  242. package/dist/assets/{react-h0mTaAoM.js → react-WJQPcnhy.js} +1 -1
  243. package/dist/assets/{recharts-CJP-6HgW.js → recharts-C2KWMrTN.js} +1 -1
  244. package/dist/assets/{sentry-BFGzyFr-.js → sentry-dfNaDVMl.js} +1 -1
  245. package/dist/assets/{shield-DOlUxcFf-DHIE85xb.js → shield-DOlUxcFf-CAf7u53d.js} +1 -1
  246. package/dist/assets/{toCOABalancesWithID-DScSc4rG-B7GkAgAH.js → toCOABalancesWithID-DScSc4rG-DpPyhfra.js} +1 -1
  247. package/dist/assets/{toChartData-BYQCR1Q4-DQjt-eqe.js → toChartData-BYQCR1Q4-CvzRRQxj.js} +1 -1
  248. package/dist/assets/{transaction-placeholder-CpOwZAMG-CRJ-hgUa.js → transaction-placeholder-CpOwZAMG-DsDZNmRn.js} +1 -1
  249. package/dist/assets/{uploadAttachment-Cs2BAs2F-B7REmQX6.js → uploadAttachment-Cs2BAs2F-BlJimvNd.js} +1 -1
  250. package/dist/assets/{uploadReceipts-CPw64UYa-MigMlgVj.js → uploadReceipts-CPw64UYa-BTmPk4z6.js} +1 -1
  251. package/dist/assets/{url-Ql81cO0i.js → url-DApBCNss.js} +1 -1
  252. package/dist/assets/{url-CN0vl3oZ.js → url-pcFKP6m6.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-CLIsgKqx.js → useLongPress-GCK2COYQ-Cm8okCGA.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-BMJkTVjT.js → usp-line-BBd1wKwW-CjudpsWa.js} +1 -1
  255. package/dist/assets/{utils-DG7RBBiT.js → utils-Bx1Vu8fL.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-C--9cPPx.js → zeni-epic-state-CEj2yWhc.js} +3 -3
  257. package/dist/index.html +1 -1
  258. package/package.json +1 -1
  259. package/dist/assets/CustomerOnboardingContainerPage-qmrLtjkH-BBYdYWUC.js +0 -1
@@ -1,4 +1,4 @@
1
- import{av as At,a7 as Mt,q as Rt,d as Pt,ca as Bt,y as m,F as Xe,gc as Nt,ge as Lt,gf as _t,V as t,cm as ze,cn as Ae,co as Me,bz as Re,aM as y,bm as Ot,dr as Wt,gg as Et,gr as Pe,o as a,gh as Be,fd as b,gk as w,fg as x,aK as Ne,fc as Le,b as K,gm as _e,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Gt,L as Yt,a as Ht,B as Jt,ak as et,b7 as tt,p as U,al as qt,bS as Zt,ag as Qt,gI as Xt,gE as ei,c,cf as ti,cT as ii}from"./index-BRDgVxUL.js";import{a as p}from"./sentry-BFGzyFr-.js";import{n as r}from"./mui-Cm3rVrD-.js";import{a as ai}from"./liveblocks-B7l6-lVT.js";import{bL as ri,bP as oi,FB as ni}from"./zeni-epic-state-C--9cPPx.js";import li from"./InvoiceUploadSection-COIpUGEB-BbbQUA3q.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CSvDBKbK.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./recharts-CJP-6HgW.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./AttachmentView-mC246Bpw-BHWqGVkj.js";import"./uploadReceipts-CPw64UYa-MigMlgVj.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]="01f65e54-94d9-49fd-b466-c040fcae2f50",e._sentryDebugIdIdentifier="sentry-dbid-01f65e54-94d9-49fd-b466-c040fcae2f50")}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])},ci={formTitle:new Ht("h6Regular","h5Regular")},la=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:re,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:pe,deleteReimbursement:ot,cancelAndDeleteReport:ue,handleZeniLogoClick:nt,onAddNewRule:he})=>{const d=At(),lt=Mt().analytics,o=Rt(),ye=Pt(),[st,z]=p.useState(!1),[G,Y]=p.useState(!1),[dt,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ct]=p.useState(null),[mt,N]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>di(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const pt=()=>{V()};Bt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=s.labelWidth.value(o),A=s.largeLabelWidth.value(o),we=Xe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:L}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=_?.code==="paid",xt=$e?_:O?.code=="approved"&&W?.code?W:O,$=mi(e.remiDetails),M=O?.code=="approved"&&W?.code?W:O,E=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{at()},vt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},jt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ri(oi(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??jt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!It,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=xt?.code,Ct=si(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:F}=p.useContext(Nt),{threads:R,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>R.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[R]).length,zt=p.useCallback((l,n)=>{F(n),N(!1)},[F,N]);p.useEffect(()=>{te?.threadId!=null&&R.length>0&&!D&&(F(te.threadId),Ce(null))},[te,R,D,F,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},P=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:B,children:[st?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:vt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ai,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Mi,{onClick:()=>nt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Pi,{children:[u?t.jsxs(Bi,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),N(!0),lt.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ni,{})]}):null,t.jsx(Li,{size:o,onClick:()=>pt(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ri,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Vi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,M?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E}),P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ki,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(li,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:re,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ei,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,M?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null,P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(bi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(gi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(xi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(hi,{children:[i.thisExpenseReview," ",t.jsx(yi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&rt(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:A},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:A},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:A},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ui,{})]}),$e||E===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Tt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(fi,{children:t.jsxs(ki,{windowSize:o,children:[!P&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(Di,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(ae,{onClick:ft,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(ae,{onClick:$t,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ii,{windowSize:o,children:[!P&&Ie?t.jsx(ji,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!P&&Dt===!0?t.jsx(Ti,{windowSize:o,showEditIcon:Ie,children:t.jsx(vi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:mt,allowComposer:!0,drawerTitle:ht,threads:R,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:yt,replyComposerPlaceholder:gt,threadResolve:bt,threadUnResolve:wt},onThreadClick:(l,n)=>zt(l,n),onCloseAllThreadsDrawer:()=>N(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},mi=e=>{const C=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:ie.deleted.color,bgColor:ie.deleted.bgColor,borderColor:ie.deleted.borderColor,code:"deleted"}},pi=r.div`
1
+ import{av as At,a7 as Mt,q as Rt,d as Pt,ca as Bt,y as m,F as Xe,gc as Nt,ge as Lt,gf as _t,V as t,cm as ze,cn as Ae,co as Me,bz as Re,aM as y,bm as Ot,dr as Wt,gg as Et,gr as Pe,o as a,gh as Be,fd as b,gk as w,fg as x,aK as Ne,fc as Le,b as K,gm as _e,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Gt,L as Yt,a as Ht,B as Jt,ak as et,b7 as tt,p as U,al as qt,bS as Zt,ag as Qt,gI as Xt,gE as ei,c,cf as ti,cT as ii}from"./index-rDlRqXqB.js";import{a as p}from"./sentry-dfNaDVMl.js";import{n as r}from"./mui-DoMPwnI-.js";import{a as ai}from"./liveblocks-vN47Tj80.js";import{bL as ri,bP as oi,FB as ni}from"./zeni-epic-state-CEj2yWhc.js";import li from"./InvoiceUploadSection-COIpUGEB-DlYNpHu0.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-CaI9oVhR.js";import"./lottie-CN7rZ8UA.js";import"./analytics-dBDO_kmt.js";import"./recharts-C2KWMrTN.js";import"./lexical-BdCZ0qlw.js";import"./utils-Bx1Vu8fL.js";import"./AttachmentView-mC246Bpw-BuWO1Hj1.js";import"./uploadReceipts-CPw64UYa-BTmPk4z6.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]="01f65e54-94d9-49fd-b466-c040fcae2f50",e._sentryDebugIdIdentifier="sentry-dbid-01f65e54-94d9-49fd-b466-c040fcae2f50")}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])},ci={formTitle:new Ht("h6Regular","h5Regular")},la=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:re,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:pe,deleteReimbursement:ot,cancelAndDeleteReport:ue,handleZeniLogoClick:nt,onAddNewRule:he})=>{const d=At(),lt=Mt().analytics,o=Rt(),ye=Pt(),[st,z]=p.useState(!1),[G,Y]=p.useState(!1),[dt,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ct]=p.useState(null),[mt,N]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>di(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const pt=()=>{V()};Bt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=s.labelWidth.value(o),A=s.largeLabelWidth.value(o),we=Xe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:L}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=_?.code==="paid",xt=$e?_:O?.code=="approved"&&W?.code?W:O,$=mi(e.remiDetails),M=O?.code=="approved"&&W?.code?W:O,E=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{at()},vt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},jt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ri(oi(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??jt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!It,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=xt?.code,Ct=si(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:F}=p.useContext(Nt),{threads:R,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>R.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[R]).length,zt=p.useCallback((l,n)=>{F(n),N(!1)},[F,N]);p.useEffect(()=>{te?.threadId!=null&&R.length>0&&!D&&(F(te.threadId),Ce(null))},[te,R,D,F,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},P=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:B,children:[st?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:vt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ai,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Mi,{onClick:()=>nt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Pi,{children:[u?t.jsxs(Bi,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),N(!0),lt.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ni,{})]}):null,t.jsx(Li,{size:o,onClick:()=>pt(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ri,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Vi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,M?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E}),P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ki,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(li,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:re,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ei,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,M?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null,P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(bi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(gi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(xi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(hi,{children:[i.thisExpenseReview," ",t.jsx(yi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&rt(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:A},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:A},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:A},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ui,{})]}),$e||E===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Tt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(fi,{children:t.jsxs(ki,{windowSize:o,children:[!P&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(Di,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(ae,{onClick:ft,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(ae,{onClick:$t,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ii,{windowSize:o,children:[!P&&Ie?t.jsx(ji,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!P&&Dt===!0?t.jsx(Ti,{windowSize:o,showEditIcon:Ie,children:t.jsx(vi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:mt,allowComposer:!0,drawerTitle:ht,threads:R,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:yt,replyComposerPlaceholder:gt,threadResolve:bt,threadUnResolve:wt},onThreadClick:(l,n)=>zt(l,n),onCloseAllThreadsDrawer:()=>N(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},mi=e=>{const C=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:ie.deleted.color,bgColor:ie.deleted.bgColor,borderColor:ie.deleted.borderColor,code:"deleted"}},pi=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{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-BRDgVxUL.js";import{a as j}from"./sentry-BFGzyFr-.js";import{n as r}from"./mui-Cm3rVrD-.js";import{FA as je,bT as be}from"./zeni-epic-state-C--9cPPx.js";import{f as fe}from"./VideoPopup-BD0vmbkL-B1pshKUR.js";import{M as v}from"./usp-line-BBd1wKwW-BMJkTVjT.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./VideoPlayer-BgTXP1p7-DSVVGcbk.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]="1adced5d-55ee-4f2c-b26e-c88b5d7fc1bf",i._sentryDebugIdIdentifier="sentry-dbid-1adced5d-55ee-4f2c-b26e-c88b5d7fc1bf")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",E="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{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-rDlRqXqB.js";import{a as j}from"./sentry-dfNaDVMl.js";import{n as r}from"./mui-DoMPwnI-.js";import{FA as je,bT as be}from"./zeni-epic-state-CEj2yWhc.js";import{f as fe}from"./VideoPopup-BD0vmbkL-CLqAQ-F0.js";import{M as v}from"./usp-line-BBd1wKwW-CjudpsWa.js";import"./liveblocks-vN47Tj80.js";import"./core-CaI9oVhR.js";import"./recharts-C2KWMrTN.js";import"./lottie-CN7rZ8UA.js";import"./analytics-dBDO_kmt.js";import"./lexical-BdCZ0qlw.js";import"./utils-Bx1Vu8fL.js";import"./VideoPlayer-BgTXP1p7-CthO62R1.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]="1adced5d-55ee-4f2c-b26e-c88b5d7fc1bf",i._sentryDebugIdIdentifier="sentry-dbid-1adced5d-55ee-4f2c-b26e-c88b5d7fc1bf")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-BRDgVxUL.js";import{a as o}from"./sentry-BFGzyFr-.js";import{n as i}from"./mui-Cm3rVrD-.js";import{bJ as mt}from"./zeni-epic-state-C--9cPPx.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Djnl6dYH-Cb6cznud.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.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]="cd89d792-d0be-4486-9264-a05cd1342321",e._sentryDebugIdIdentifier="sentry-dbid-cd89d792-d0be-4486-9264-a05cd1342321")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(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(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-rDlRqXqB.js";import{a as o}from"./sentry-dfNaDVMl.js";import{n as i}from"./mui-DoMPwnI-.js";import{bJ as mt}from"./zeni-epic-state-CEj2yWhc.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Djnl6dYH-DrFunnrV.js";import"./liveblocks-vN47Tj80.js";import"./core-CaI9oVhR.js";import"./recharts-C2KWMrTN.js";import"./lottie-CN7rZ8UA.js";import"./analytics-dBDO_kmt.js";import"./lexical-BdCZ0qlw.js";import"./utils-Bx1Vu8fL.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]="cd89d792-d0be-4486-9264-a05cd1342321",e._sentryDebugIdIdentifier="sentry-dbid-cd89d792-d0be-4486-9264-a05cd1342321")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(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(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -1 +1 @@
1
- import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-BRDgVxUL.js";import{a as b}from"./sentry-BFGzyFr-.js";import{G5 as K}from"./zeni-epic-state-C--9cPPx.js";import{u as Q}from"./ReviewOverlay-n3lZIztC-BaYE0CrF.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./mui-Cm3rVrD-.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.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]="4eda3aa5-9d94-41e1-b1a1-0ff87fea1fda",e._sentryDebugIdIdentifier="sentry-dbid-4eda3aa5-9d94-41e1-b1a1-0ff87fea1fda")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,E=()=>{const{title:m,description:C}=Y(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
1
+ import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-rDlRqXqB.js";import{a as b}from"./sentry-dfNaDVMl.js";import{G5 as K}from"./zeni-epic-state-CEj2yWhc.js";import{u as Q}from"./ReviewOverlay-n3lZIztC-DbnTz566.js";import"./liveblocks-vN47Tj80.js";import"./core-CaI9oVhR.js";import"./recharts-C2KWMrTN.js";import"./mui-DoMPwnI-.js";import"./lottie-CN7rZ8UA.js";import"./analytics-dBDO_kmt.js";import"./lexical-BdCZ0qlw.js";import"./utils-Bx1Vu8fL.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]="4eda3aa5-9d94-41e1-b1a1-0ff87fea1fda",e._sentryDebugIdIdentifier="sentry-dbid-4eda3aa5-9d94-41e1-b1a1-0ff87fea1fda")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,E=()=>{const{title:m,description:C}=Y(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
@@ -1,4 +1,4 @@
1
- import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-BRDgVxUL.js";import{n as d}from"./mui-Cm3rVrD-.js";import{a as s}from"./sentry-BFGzyFr-.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]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}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=d(h)`
1
+ import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-rDlRqXqB.js";import{n as d}from"./mui-DoMPwnI-.js";import{a as s}from"./sentry-dfNaDVMl.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]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}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=d(h)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(h)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as we,cb as te,ab as _e,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-BRDgVxUL.js";import{a as u,w as ue}from"./sentry-BFGzyFr-.js";import{n as d}from"./mui-Cm3rVrD-.js";import{R as O,I as Be}from"./CollapsableReportTable-CrR91Kpi-5o5TUvM_.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]="4e393ee3-ccff-4f96-973c-ad5cfa9bd0ef",e._sentryDebugIdIdentifier="sentry-dbid-4e393ee3-ccff-4f96-973c-ad5cfa9bd0ef")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ae=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Te=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ae(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ve(h.headers,t.defaultFileName),w=await h.arrayBuffer();Ce(w,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
1
+ import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as we,cb as te,ab as _e,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-rDlRqXqB.js";import{a as u,w as ue}from"./sentry-dfNaDVMl.js";import{n as d}from"./mui-DoMPwnI-.js";import{R as O,I as Be}from"./CollapsableReportTable-CrR91Kpi-BZpIT4Xx.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]="4e393ee3-ccff-4f96-973c-ad5cfa9bd0ef",e._sentryDebugIdIdentifier="sentry-dbid-4e393ee3-ccff-4f96-973c-ad5cfa9bd0ef")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ae=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Te=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ae(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ve(h.headers,t.defaultFileName),w=await h.arrayBuffer();Ce(w,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
2
2
  padding: 0 ${n.sp3} 0 ${n.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-BRDgVxUL.js";import{a as T,w as K}from"./sentry-BFGzyFr-.js";import{n as _}from"./mui-Cm3rVrD-.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-C--9cPPx.js";import{m as z,l as q}from"./analyticsHelper-BvohFLdK-Dy4GAyAC.js";import{x as Ne}from"./ReportTableViewSelector-BlpUjTMl-BDDVFcAy.js";import{a as se,p as Me}from"./TimeRangeSwitcher-COHAPH9b-Duk9Ni0x.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-BXSkHN5Y-CXXTcEDU.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-gRH0FIa6-DKDTdwBo.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-CrR91Kpi-5o5TUvM_.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DtwKYRnC-BG8zzg0l.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BHbBvkxK-Sg9H38Nv.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-Ca65g1u9.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-B5fs_QGb-1RRRqxAS.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.js";import"./TimeframeSwitcher-5ql0bSzz-PyYhkmzr.js";import"./page-detail-CWX5S47F-kxZACSVt.js";import"./AccountRow-pJ59k4-J-byrgsZ5o.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]="4d272a03-b6a6-4914-aa33-325f0d73050e",e._sentryDebugIdIdentifier="sentry-dbid-4d272a03-b6a6-4914-aa33-325f0d73050e")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
1
+ import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-rDlRqXqB.js";import{a as T,w as K}from"./sentry-dfNaDVMl.js";import{n as _}from"./mui-DoMPwnI-.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-CEj2yWhc.js";import{m as z,l as q}from"./analyticsHelper-BvohFLdK-Cj2qzEaw.js";import{x as Ne}from"./ReportTableViewSelector-BlpUjTMl-CCJ4G6Sa.js";import{a as se,p as Me}from"./TimeRangeSwitcher-COHAPH9b-Dnf_4M2G.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-BXSkHN5Y-CDyDpGkS.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-gRH0FIa6-BGU_aVej.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-CrR91Kpi-BZpIT4Xx.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DtwKYRnC-6y1V4dLG.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BHbBvkxK-HfkAswUB.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-B_ocqea4.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-B5fs_QGb-Dy2XNo45.js";import"./liveblocks-vN47Tj80.js";import"./core-CaI9oVhR.js";import"./recharts-C2KWMrTN.js";import"./lottie-CN7rZ8UA.js";import"./analytics-dBDO_kmt.js";import"./lexical-BdCZ0qlw.js";import"./utils-Bx1Vu8fL.js";import"./TimeframeSwitcher-5ql0bSzz-DVKqHt9F.js";import"./page-detail-CWX5S47F-DrlGOBfT.js";import"./AccountRow-pJ59k4-J-PE5eKiNX.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]="4d272a03-b6a6-4914-aa33-325f0d73050e",e._sentryDebugIdIdentifier="sentry-dbid-4d272a03-b6a6-4914-aa33-325f0d73050e")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=M("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??M("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Le(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Te(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:M("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=M("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push($e({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${w.sp2};
@@ -1,4 +1,4 @@
1
- import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-BRDgVxUL.js";import{a as P,w as ee}from"./sentry-BFGzyFr-.js";import{n as x}from"./mui-Cm3rVrD-.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-h1GkAvwh-DeXrp29h.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-DScSc4rG-B7GkAgAH.js";import{V as Z}from"./toChartData-BYQCR1Q4-DQjt-eqe.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-CJP-6HgW.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]="c1558961-1804-4557-966f-edcc729dfd44",e._sentryDebugIdIdentifier="sentry-dbid-c1558961-1804-4557-966f-edcc729dfd44")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-rDlRqXqB.js";import{a as P,w as ee}from"./sentry-dfNaDVMl.js";import{n as x}from"./mui-DoMPwnI-.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-h1GkAvwh-DtktD8Hg.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-DScSc4rG-DpPyhfra.js";import{V as Z}from"./toChartData-BYQCR1Q4-CvzRRQxj.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-C2KWMrTN.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]="c1558961-1804-4557-966f-edcc729dfd44",e._sentryDebugIdIdentifier="sentry-dbid-c1558961-1804-4557-966f-edcc729dfd44")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -1,4 +1,4 @@
1
- import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as le,f4 as Mt,f5 as At,f6 as Bt,f7 as Ft,aK as M,f8 as Rt,aM as j,f9 as Lt,fa as Ae,fb as Be,fc as Fe,b as H,fd as O,p as S,fe as zt,ff as E,fg as _,fh as Nt,fi as Ot,bQ as Re,o as n,aO as Et,c as s,F as _t,ah as Wt,b$ as Zt,a as Vt,B as Yt,fj as qt,cf as Gt,ak as se,al as ce,fk as Ht,fl as Ut,bg as Kt,l as Qt,b7 as Jt,fm as Xt,ap as et,bH as en,ag as tt,br as tn,fn as nn}from"./index-BRDgVxUL.js";import{a as Z}from"./sentry-BFGzyFr-.js";import{n as a}from"./mui-Cm3rVrD-.js";import{bo as Le,bm as ze,bH as I,bN as an,Fp as ln,bL as oe,bP as on}from"./zeni-epic-state-C--9cPPx.js";import{t as rn,o as dn}from"./LowBalancePopup-T5Ms2v-E-BQ4WCPPF.js";import{S as W}from"./LabeledText-Tn7u-Ek3-kHR2OkPB.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.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]="7043bc79-5205-4466-9209-ca68f33d66d2",e._sentryDebugIdIdentifier="sentry-dbid-7043bc79-5205-4466-9209-ca68f33d66d2")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),A=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,q=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,q,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children: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(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,q,d)}},primaryBtn:{label:We(b,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,q,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},We=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,f,A,T)=>f?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
1
+ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as le,f4 as Mt,f5 as At,f6 as Bt,f7 as Ft,aK as M,f8 as Rt,aM as j,f9 as Lt,fa as Ae,fb as Be,fc as Fe,b as H,fd as O,p as S,fe as zt,ff as E,fg as _,fh as Nt,fi as Ot,bQ as Re,o as n,aO as Et,c as s,F as _t,ah as Wt,b$ as Zt,a as Vt,B as Yt,fj as qt,cf as Gt,ak as se,al as ce,fk as Ht,fl as Ut,bg as Kt,l as Qt,b7 as Jt,fm as Xt,ap as et,bH as en,ag as tt,br as tn,fn as nn}from"./index-rDlRqXqB.js";import{a as Z}from"./sentry-dfNaDVMl.js";import{n as a}from"./mui-DoMPwnI-.js";import{bo as Le,bm as ze,bH as I,bN as an,Fp as ln,bL as oe,bP as on}from"./zeni-epic-state-CEj2yWhc.js";import{t as rn,o as dn}from"./LowBalancePopup-T5Ms2v-E-C0Mbibyj.js";import{S as W}from"./LabeledText-Tn7u-Ek3-BjrUfAUz.js";import"./liveblocks-vN47Tj80.js";import"./core-CaI9oVhR.js";import"./recharts-C2KWMrTN.js";import"./lottie-CN7rZ8UA.js";import"./analytics-dBDO_kmt.js";import"./lexical-BdCZ0qlw.js";import"./utils-Bx1Vu8fL.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]="7043bc79-5205-4466-9209-ca68f33d66d2",e._sentryDebugIdIdentifier="sentry-dbid-7043bc79-5205-4466-9209-ca68f33d66d2")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),A=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.addedByZeni,q=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,q,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(U,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children: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(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,q,d)}},primaryBtn:{label:We(b,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,q,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},We=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,f,A,T)=>f?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,ak as j,cy as W,m as R,ag as b,bf as D,c as n,eg as G,u as _,iR as q,k0 as A}from"./index-BRDgVxUL.js";import{n as t}from"./mui-Cm3rVrD-.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]="f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53",e._sentryDebugIdIdentifier="sentry-dbid-f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:k},onCloseOverlay:E,onCloseReviewItem:M})=>{const a=B();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:E,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:a,children:[i.jsxs(J,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:O(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!k}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
1
+ import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,ak as j,cy as W,m as R,ag as b,bf as D,c as n,eg as G,u as _,iR as q,k0 as A}from"./index-rDlRqXqB.js";import{n as t}from"./mui-DoMPwnI-.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]="f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53",e._sentryDebugIdIdentifier="sentry-dbid-f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:k},onCloseOverlay:E,onCloseReviewItem:M})=>{const a=B();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:E,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:a,children:[i.jsxs(J,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:O(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!k}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{eL as f,eM as h,V as s,bQ as g,o as i,aM as n,F as x,am as y,ag as c}from"./index-BRDgVxUL.js";import{n as l}from"./mui-Cm3rVrD-.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]="f880c637-61c4-47f9-a13f-f4e73109bbc2",e._sentryDebugIdIdentifier="sentry-dbid-f880c637-61c4-47f9-a13f-f4e73109bbc2")}catch{}})();const{hyphen:d}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
1
+ import{eL as f,eM as h,V as s,bQ as g,o as i,aM as n,F as x,am as y,ag as c}from"./index-rDlRqXqB.js";import{n as l}from"./mui-DoMPwnI-.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]="f880c637-61c4-47f9-a13f-f4e73109bbc2",e._sentryDebugIdIdentifier="sentry-dbid-f880c637-61c4-47f9-a13f-f4e73109bbc2")}catch{}})();const{hyphen:d}=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{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC as _e,V as a,ab as Fe,cm as Pe,cn as Be,co as Ne,aO as qe,ij as Re,ik as We,F as ge,a9 as he,il as me,im as Ue,cO as ze,q as $e,iB as Ge,gG as re,c as R,p as Se,y as De,cE as Ke,io as He,ip as Qe,iq as Ye,o as _}from"./index-BRDgVxUL.js";import{a as f}from"./sentry-BFGzyFr-.js";import{n as U}from"./mui-Cm3rVrD-.js";import{FT as Ze,FU as Xe}from"./zeni-epic-state-C--9cPPx.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-CkqvmnzR-BkWT4A03.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.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]="face273d-1d85-484c-8396-7076848dc04a",e._sentryDebugIdIdentifier="sentry-dbid-face273d-1d85-484c-8396-7076848dc04a")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
1
+ import{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC as _e,V as a,ab as Fe,cm as Pe,cn as Be,co as Ne,aO as qe,ij as Re,ik as We,F as ge,a9 as he,il as me,im as Ue,cO as ze,q as $e,iB as Ge,gG as re,c as R,p as Se,y as De,cE as Ke,io as He,ip as Qe,iq as Ye,o as _}from"./index-rDlRqXqB.js";import{a as f}from"./sentry-dfNaDVMl.js";import{n as U}from"./mui-DoMPwnI-.js";import{FT as Ze,FU as Xe}from"./zeni-epic-state-CEj2yWhc.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-CkqvmnzR-D7MxQHJ_.js";import"./liveblocks-vN47Tj80.js";import"./core-CaI9oVhR.js";import"./recharts-C2KWMrTN.js";import"./lottie-CN7rZ8UA.js";import"./analytics-dBDO_kmt.js";import"./lexical-BdCZ0qlw.js";import"./utils-Bx1Vu8fL.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]="face273d-1d85-484c-8396-7076848dc04a",e._sentryDebugIdIdentifier="sentry-dbid-face273d-1d85-484c-8396-7076848dc04a")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aN as F,ig as Y,gB as ke,ew as Ie,ih as Ae,a8 as Je,ii as we,cB as Le,cC as Me,V as a,ab as Ve,cm as Pe,cn as _e,co as Fe,aO as Be,ij as $e,ik as Ne,F as Se,a9 as ie,il as he,im as Ue,cO as qe,q as ze,gG as pe,c as X,p as Re,y as We,io as Ke,ip as Ge,iq as He,o as w}from"./index-BRDgVxUL.js";import{a as D}from"./sentry-BFGzyFr-.js";import{n as P}from"./mui-Cm3rVrD-.js";import{FT as Qe,FU as Ye,bL as Xe}from"./zeni-epic-state-C--9cPPx.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CkqvmnzR-BkWT4A03.js";import"./liveblocks-B7l6-lVT.js";import"./core-CSvDBKbK.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./utils-DG7RBBiT.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]="702e2cfe-05cc-4b5f-8e78-af476d2db523",e._sentryDebugIdIdentifier="sentry-dbid-702e2cfe-05cc-4b5f-8e78-af476d2db523")}catch{}})();const U={labelWidth:new We(160,160,160)},at=P.div`
1
+ import{aN as F,ig as Y,gB as ke,ew as Ie,ih as Ae,a8 as Je,ii as we,cB as Le,cC as Me,V as a,ab as Ve,cm as Pe,cn as _e,co as Fe,aO as Be,ij as $e,ik as Ne,F as Se,a9 as ie,il as he,im as Ue,cO as qe,q as ze,gG as pe,c as X,p as Re,y as We,io as Ke,ip as Ge,iq as He,o as w}from"./index-rDlRqXqB.js";import{a as D}from"./sentry-dfNaDVMl.js";import{n as P}from"./mui-DoMPwnI-.js";import{FT as Qe,FU as Ye,bL as Xe}from"./zeni-epic-state-CEj2yWhc.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CkqvmnzR-D7MxQHJ_.js";import"./liveblocks-vN47Tj80.js";import"./core-CaI9oVhR.js";import"./recharts-C2KWMrTN.js";import"./lottie-CN7rZ8UA.js";import"./analytics-dBDO_kmt.js";import"./lexical-BdCZ0qlw.js";import"./utils-Bx1Vu8fL.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]="702e2cfe-05cc-4b5f-8e78-af476d2db523",e._sentryDebugIdIdentifier="sentry-dbid-702e2cfe-05cc-4b5f-8e78-af476d2db523")}catch{}})();const U={labelWidth:new We(160,160,160)},at=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{q as A,d as Z,V as t,ir as ie,is as le,a as oe,it as xe,dN as fe,fc as ye,b as I,F as N,iu as we,iq as be,o as i,y as b,p as j,l as $e,a9 as re,dJ as je,cm as Se,co as ke,cO as Q,cW as ee,cU as ve,iv as G,iw as De,b1 as Ce,ix as Me,cq as ze,iy as Ee,c as h,ak as E,b7 as Le,cn as Oe,an as pe,cX as Ie,a$ as ne,ek as Ae,aO as Ve,iz as V,gb as Te,aK as Fe,iA as Je,aS as H,cY as Be,bf as Pe}from"./index-BRDgVxUL.js";import{n as o,c as B}from"./mui-Cm3rVrD-.js";import{a as C}from"./sentry-BFGzyFr-.js";import{bh as U,FV as Ne}from"./zeni-epic-state-C--9cPPx.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]="fd17678c-2cbf-4bfd-8d37-1122928ab47a",e._sentryDebugIdIdentifier="sentry-dbid-fd17678c-2cbf-4bfd-8d37-1122928ab47a")}catch{}})();const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(_e,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ue,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ae,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ke,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(qe,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ve,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function qe({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},_e=o.div`
1
+ import{q as A,d as Z,V as t,ir as ie,is as le,a as oe,it as xe,dN as fe,fc as ye,b as I,F as N,iu as we,iq as be,o as i,y as b,p as j,l as $e,a9 as re,dJ as je,cm as Se,co as ke,cO as Q,cW as ee,cU as ve,iv as G,iw as De,b1 as Ce,ix as Me,cq as ze,iy as Ee,c as h,ak as E,b7 as Le,cn as Oe,an as pe,cX as Ie,a$ as ne,ek as Ae,aO as Ve,iz as V,gb as Te,aK as Fe,iA as Je,aS as H,cY as Be,bf as Pe}from"./index-rDlRqXqB.js";import{n as o,c as B}from"./mui-DoMPwnI-.js";import{a as C}from"./sentry-dfNaDVMl.js";import{bh as U,FV as Ne}from"./zeni-epic-state-CEj2yWhc.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]="fd17678c-2cbf-4bfd-8d37-1122928ab47a",e._sentryDebugIdIdentifier="sentry-dbid-fd17678c-2cbf-4bfd-8d37-1122928ab47a")}catch{}})();const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=A(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(_e,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ue,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Ae,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ke,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(qe,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ve,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:Ye(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(He,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function qe({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(Y,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const Ye=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},_e=o.div`
2
2
  position: relative;
3
3
  `,He=o.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{DO as Jf,DP as qt,DQ as Kf,iN as ot,hv as xl,iP as Ye,hs as Xf,hz as ql,DR as Ca,hB as Qf,hC as eh,DS as Vt,DT as Lt,h0 as th,DU as jr,DV as ea,cO as rh,f2 as ta,e$ as Ir,f7 as rt,f5 as nh,DW as Ll,DX as kl,hQ as ih,hN as oh,DY as ah,h$ as sh,hW as Pa,hT as uh,hI as ch,DZ as lh,dJ as fh,cU as hh,i$ as Nl,D_ as dh,bL as Or,hF as ja,hK as ph,oL as Dl,iO as xr,D$ as Ne,ib as ra,E0 as mh,j5 as gh,B as Re,E1 as na,E2 as yh,gZ as vh,E3 as bh,E4 as Ml,E5 as wh,nj as xa,mQ as Eh,E6 as Sh,mW as Hr,E7 as _h,mY as Rh,E8 as Ze,mN as Oh,cB as Ih,iS as Fl,iT as Ul,iR as ia,iQ as oa,iU as Th,E9 as Ah,nm as Ch,Ea as Ph,n3 as jh,ng as xh,Eb as qh,n7 as Lh,Ec as kh,Ed as St,Ee as aa,Ef as Nh,Eg as Dh,lQ as Mh,lW as Bl,Eh as $l,gu as Fh,CU as Vl,Ei as Uh,CO as Bh,Ej as $h,Ek as Vh,lZ as Gh,El as zh,CZ as Hh,CN as Zh,qg as Gl,Em as Zr,En as zl,A0 as sa,zO as Wh,A3 as Hl,zR as Yh,Eo as Jh,zW as Kh,zI as Xh,zL as Qh,Ep as ed,A7 as td,zZ as rd,c4 as nd,bd as id,Eq as od,Er as lt,Es as ad,Et as sd,Eu as ud,i3 as Jo,ba as cd}from"./zeni-epic-state-C--9cPPx.js";import{j as N}from"./liveblocks-B7l6-lVT.js";import{a as K,p as X,d as Zl,c as Wl,g as ld}from"./sentry-BFGzyFr-.js";import{d as ht,q as qr,e as pe,z as be,f as fd,W as hd,y as Pe,g as Lr,i as dd,N as Je,F as kt,j as dt,k as at,m as kr,o as tt,r as pd,X as md,R as nt,t as ua,v as it,Z as gd,Y as yd,c as Wr,A as vd,w as Yl,K as bd,x as Jl,O as Kl,C as Ko,E as wd,S as Ed,H as Sd,G as Xl,I as _d,J as Rd,P as Od,Q as Id,T as Td,U as Ad,_ as Cd,$ as Pd,a0 as jd,a1 as xd,a2 as qd,a3 as Ld,a4 as kd}from"./index-BRDgVxUL.js";import{f as Nd}from"./analyticsHelper-DO-eHSEi.js";import{i as me,m as Ee,n as je,o as Dd,g as re,h as ge,N as Ct,R as Ve,k as se,u as ca,j as Xo}from"./core-CSvDBKbK.js";import{D as Nr,n as Ie,S as pt}from"./mui-Cm3rVrD-.js";import{a as ve,b as Md,c as Fd,d as Ud,e as la,f as Bd,g as $d,h as Vd,i as mt,j as Gd,k as jt,l as Dr,m as zd,n as Nt,o as Hd}from"./utils-DG7RBBiT.js";import{r as fa}from"./empty-BdJ2ubLR.js";import{r as Zd,a as Wd,b as Yd,c as Jd}from"./constants-qsYvqsp_.js";import{r as Dt,a as Kd}from"./index-B_ST3N1m.js";import{r as Xd}from"./index-C_7vQmrg.js";import"./recharts-CJP-6HgW.js";import"./lottie-Cx9dNUMI.js";import"./analytics-CudETrrD.js";import"./lexical-BmM_-J9_.js";import"./url-CN0vl3oZ.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]="c27c24f0-c524-4be5-a0c8-1a98cb1be497",e._sentryDebugIdIdentifier="sentry-dbid-c27c24f0-c524-4be5-a0c8-1a98cb1be497")}catch{}})();const Qd={overlayWidth:new Pe(100,100,50)},{common:{strings:qa}}=kt.getLocalizedStrings();function ep(e,n){return{headerActions:{onTabChange:o=>{const a=at(o),i=dt(o);pe.trackCockpitTabClicked(i),n.navigate(`../../${a}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,a)=>{e(Vt({uiState:{filterText:a}}))},onFiltersChange:(o,a)=>{a.categories!=null&&a.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:a.categories.map(i=>i.matchingOperator).join(qa.comma),logic:a.categoryCombinationOperator,parameter:a.categories.map(i=>i.field).join(qa.comma)}}),e(Vt({uiState:{filters:a}}))}}},healthPageActions:{onRowClick:o=>{e(ql(o))},onColumnSortConfigChanged:(o,a)=>{e(Vt({uiState:{sortKey:o,sortOrder:a}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(Vt({uiState:{filters:o}}))}}}}function tp(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const rp=ge(tp,ep)(dd);function Yr({isDrawerOpen:e}){const n=me(),o=Ee(),a=ht(),i=qr(),{companyId:t}=je(),[r,s]=Dd(),[d,l]=K.useState(!1),h=re(b=>Jf(b)),f=re(b=>qt(b)),{additionalChurnFactors:c}=re(b=>Kf(b)),{selectedCompanyDetail:w,selectedCompanyId:p,localFormDataAndStatusByCompanyId:y}=h,m=re(b=>b.companyViewState.zeniUsers.fetchState),u=re(b=>b.companyHealthMetricConfigViewState);if(K.useEffect(()=>{const b=g=>g==="Not-Started"||g==="Error";h.fetchState==="Completed"?o(ot(!1)):b(h.fetchState)&&(o(xl()),b(m)&&o(Ye()),b(u.fetchState)&&o(Xf()))},[h.fetchState,u.fetchState]),K.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(ql(t)),w!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[h.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||p!=null&&w!=null?N.jsx(Nr,{anchor:"right",open:p!=null,PaperProps:{style:{width:Qd.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(Ca()),children:N.jsx(fd,{roomId:`cockpit_${p}`,autoConnect:!0,children:N.jsx(hd,{onSaveClick:()=>{p!=null&&o(eh(p))},onSaveChangesToLocalStore:b=>{h.selectedCompanyId!=null&&o(Qf({companyId:h.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(Ca()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:c})})}):null,N.jsx(rp,{healthView:h,managementView:f,navigate:n,mixpanelHMUrl:Lr.mixpanelHMUrl})]})}const Ql=(e,n)=>{const o=[...e??[]];return o.push(n),o},np=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ip=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Ct,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function op(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Yr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Yr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Yr,{})})})]})}const ap={drawerLeftMargin:new Pe(0,0,240)};function Mt(e){const{isOpen:n,drawerLeftMargin:o,children:a,onClose:i}=e,t=qr(),r=o?.valuePx(t)??ap.drawerLeftMargin.valuePx(t),s=ht();return N.jsx(Nr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:a})}const sp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(up,{children:N.jsx(kr,{size:"ExtraLarge",start:!0})}):null,up=Ie.div`
1
+ import{DO as Jf,DP as qt,DQ as Kf,iN as ot,hv as xl,iP as Ye,hs as Xf,hz as ql,DR as Ca,hB as Qf,hC as eh,DS as Vt,DT as Lt,h0 as th,DU as jr,DV as ea,cO as rh,f2 as ta,e$ as Ir,f7 as rt,f5 as nh,DW as Ll,DX as kl,hQ as ih,hN as oh,DY as ah,h$ as sh,hW as Pa,hT as uh,hI as ch,DZ as lh,dJ as fh,cU as hh,i$ as Nl,D_ as dh,bL as Or,hF as ja,hK as ph,oL as Dl,iO as xr,D$ as Ne,ib as ra,E0 as mh,j5 as gh,B as Re,E1 as na,E2 as yh,gZ as vh,E3 as bh,E4 as Ml,E5 as wh,nj as xa,mQ as Eh,E6 as Sh,mW as Hr,E7 as _h,mY as Rh,E8 as Ze,mN as Oh,cB as Ih,iS as Fl,iT as Ul,iR as ia,iQ as oa,iU as Th,E9 as Ah,nm as Ch,Ea as Ph,n3 as jh,ng as xh,Eb as qh,n7 as Lh,Ec as kh,Ed as St,Ee as aa,Ef as Nh,Eg as Dh,lQ as Mh,lW as Bl,Eh as $l,gu as Fh,CU as Vl,Ei as Uh,CO as Bh,Ej as $h,Ek as Vh,lZ as Gh,El as zh,CZ as Hh,CN as Zh,qg as Gl,Em as Zr,En as zl,A0 as sa,zO as Wh,A3 as Hl,zR as Yh,Eo as Jh,zW as Kh,zI as Xh,zL as Qh,Ep as ed,A7 as td,zZ as rd,c4 as nd,bd as id,Eq as od,Er as lt,Es as ad,Et as sd,Eu as ud,i3 as Jo,ba as cd}from"./zeni-epic-state-CEj2yWhc.js";import{j as N}from"./liveblocks-vN47Tj80.js";import{a as K,p as X,d as Zl,c as Wl,g as ld}from"./sentry-dfNaDVMl.js";import{d as ht,q as qr,e as pe,z as be,f as fd,W as hd,y as Pe,g as Lr,i as dd,N as Je,F as kt,j as dt,k as at,m as kr,o as tt,r as pd,X as md,R as nt,t as ua,v as it,Z as gd,Y as yd,c as Wr,A as vd,w as Yl,K as bd,x as Jl,O as Kl,C as Ko,E as wd,S as Ed,H as Sd,G as Xl,I as _d,J as Rd,P as Od,Q as Id,T as Td,U as Ad,_ as Cd,$ as Pd,a0 as jd,a1 as xd,a2 as qd,a3 as Ld,a4 as kd}from"./index-rDlRqXqB.js";import{f as Nd}from"./analyticsHelper-CdTd3Obi.js";import{i as me,m as Ee,n as je,o as Dd,g as re,h as ge,N as Ct,R as Ve,k as se,u as ca,j as Xo}from"./core-CaI9oVhR.js";import{D as Nr,n as Ie,S as pt}from"./mui-DoMPwnI-.js";import{a as ve,b as Md,c as Fd,d as Ud,e as la,f as Bd,g as $d,h as Vd,i as mt,j as Gd,k as jt,l as Dr,m as zd,n as Nt,o as Hd}from"./utils-Bx1Vu8fL.js";import{r as fa}from"./empty-a4cO3sa1.js";import{r as Zd,a as Wd,b as Yd,c as Jd}from"./constants-DBqHTrL9.js";import{r as Dt,a as Kd}from"./index-B-xhamrr.js";import{r as Xd}from"./index-BiF65tqa.js";import"./recharts-C2KWMrTN.js";import"./lottie-CN7rZ8UA.js";import"./analytics-dBDO_kmt.js";import"./lexical-BdCZ0qlw.js";import"./url-pcFKP6m6.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]="c27c24f0-c524-4be5-a0c8-1a98cb1be497",e._sentryDebugIdIdentifier="sentry-dbid-c27c24f0-c524-4be5-a0c8-1a98cb1be497")}catch{}})();const Qd={overlayWidth:new Pe(100,100,50)},{common:{strings:qa}}=kt.getLocalizedStrings();function ep(e,n){return{headerActions:{onTabChange:o=>{const a=at(o),i=dt(o);pe.trackCockpitTabClicked(i),n.navigate(`../../${a}`,{replace:!0})},filterActions:{onFilterTextChanged:(o,a)=>{e(Vt({uiState:{filterText:a}}))},onFiltersChange:(o,a)=>{a.categories!=null&&a.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:a.categories.map(i=>i.matchingOperator).join(qa.comma),logic:a.categoryCombinationOperator,parameter:a.categories.map(i=>i.field).join(qa.comma)}}),e(Vt({uiState:{filters:a}}))}}},healthPageActions:{onRowClick:o=>{e(ql(o))},onColumnSortConfigChanged:(o,a)=>{e(Vt({uiState:{sortKey:o,sortOrder:a}}))},onCockpitReloadData:o=>{o==="healthMonitor"&&e(xl())},onFiltersChange:o=>{e(Vt({uiState:{filters:o}}))}}}}function tp(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const rp=ge(tp,ep)(dd);function Yr({isDrawerOpen:e}){const n=me(),o=Ee(),a=ht(),i=qr(),{companyId:t}=je(),[r,s]=Dd(),[d,l]=K.useState(!1),h=re(b=>Jf(b)),f=re(b=>qt(b)),{additionalChurnFactors:c}=re(b=>Kf(b)),{selectedCompanyDetail:w,selectedCompanyId:p,localFormDataAndStatusByCompanyId:y}=h,m=re(b=>b.companyViewState.zeniUsers.fetchState),u=re(b=>b.companyHealthMetricConfigViewState);if(K.useEffect(()=>{const b=g=>g==="Not-Started"||g==="Error";h.fetchState==="Completed"?o(ot(!1)):b(h.fetchState)&&(o(xl()),b(m)&&o(Ye()),b(u.fetchState)&&o(Xf()))},[h.fetchState,u.fetchState]),K.useEffect(()=>{t!=null&&h.fetchState==="Completed"&&r.has("utm_source")===!0&&(o(ql(t)),w!=null&&(pe.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[h.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||p!=null&&w!=null?N.jsx(Nr,{anchor:"right",open:p!=null,PaperProps:{style:{width:Qd.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:a.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>o(Ca()),children:N.jsx(fd,{roomId:`cockpit_${p}`,autoConnect:!0,children:N.jsx(hd,{onSaveClick:()=>{p!=null&&o(eh(p))},onSaveChangesToLocalStore:b=>{h.selectedCompanyId!=null&&o(Qf({companyId:h.selectedCompanyId,updatedLocalData:b}))},localData:y?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:h,onCloseDrawer:()=>o(Ca()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:c})})}):null,N.jsx(rp,{healthView:h,managementView:f,navigate:n,mixpanelHMUrl:Lr.mixpanelHMUrl})]})}const Ql=(e,n)=>{const o=[...e??[]];return o.push(n),o},np=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},ip=(e=2)=>{let n="../";for(let o=0;o<e;o++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Ct,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function op(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Yr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Yr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Yr,{})})})]})}const ap={drawerLeftMargin:new Pe(0,0,240)};function Mt(e){const{isOpen:n,drawerLeftMargin:o,children:a,onClose:i}=e,t=qr(),r=o?.valuePx(t)??ap.drawerLeftMargin.valuePx(t),s=ht();return N.jsx(Nr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:a})}const sp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(up,{children:N.jsx(kr,{size:"ExtraLarge",start:!0})}):null,up=Ie.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;