@zeniai/web-cockpit-ui 1.15.65-dev → 1.15.66-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/dist/assets/{ACHDetailsPage-BShpKoIj-DBPKn0sX.js → ACHDetailsPage-BShpKoIj-CW1imKMz.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CFErwUsE-BYOi4eif.js → AIPerformancePage-CFErwUsE-C9puPCCO.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-B8upbXj9-DVCxjo1L.js → AccountInfoPage-B8upbXj9-Dtz8WQyO.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CKpeDot5-C4xEct6y.js → AccountInfoPageContent-CKpeDot5-DIGFDBxC.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-c30P9O_3-BXRFFhii.js → AccountLockedInfoModal-c30P9O_3-n0xGj_zZ.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CO9BYPWm-Det_iJaE.js → AccountReconDetailsDrawerPage-CO9BYPWm-Mg0FsDRd.js} +1 -1
  7. package/dist/assets/{AccountRow-BrW_eEjE-HoBl8v8H.js → AccountRow-BrW_eEjE-DlgTvuFF.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-De2yNNuZ-C74RtM0g.js → AccountsPromoCardStack-De2yNNuZ-G5M7i2un.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-riOPLnxb-hTaoKUhW.js → AddAddressForCardDrawer-riOPLnxb-4wUmSook.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CsOmzC7v-XA_Ukf0G.js → AddToWalletPage-CsOmzC7v-DDekkTcs.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-D9I9afnB-j70-fH52.js → AgingReportsPage-D9I9afnB-Pr6LqJHU.js} +1 -1
  12. package/dist/assets/{AllUserItems-Dq7NcP-o-bQnq3Yy5.js → AllUserItems-Dq7NcP-o-BNPnQC3d.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Z5JgfH-e-DlNnTpGB.js → ApAgingDetailPage-Z5JgfH-e-BCqAdteh.js} +1 -1
  14. package/dist/assets/{AppBasePage-B5sDynhi-B6PJcirc.js → AppBasePage-B5sDynhi-CUXe21st.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-D9Q8ir0T-BlV3y7qg.js → AppDrawerContent-D9Q8ir0T-CV--mref.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DVGvJsQG-g3c3aBsx.js → ApprovalRulesSettingsPage-DVGvJsQG-COBJqCxP.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Tcu0Lja_-DlvMwgJ3.js → ArAgingChart-Tcu0Lja_-Dcd3iM-I.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-B5vqkc3v-xHE7Qc0m.js → ArAgingDetailPage-B5vqkc3v-DkiCuj_D.js} +1 -1
  19. package/dist/assets/{AttachmentView-CiYfninr-BohG7XjP.js → AttachmentView-CiYfninr-76W0iAd5.js} +1 -1
  20. package/dist/assets/{BalancesInsightWithToolTip-tiQUQUbX-C692_oh-.js → BalancesInsightWithToolTip-tiQUQUbX-C4adSAUq.js} +1 -1
  21. package/dist/assets/{BankAccountSection-EZtscP2z-aKL8vcpJ.js → BankAccountSection-EZtscP2z-BUefIH5V.js} +1 -1
  22. package/dist/assets/{BankAccountWarningSection-DCfyIUlu-DyMLU3Tg.js → BankAccountWarningSection-DCfyIUlu-CKci9TET.js} +1 -1
  23. package/dist/assets/{BankConnectionsSettingsPage-CQWy9jvt-B-n6frCU.js → BankConnectionsSettingsPage-CQWy9jvt-BdLZIBvy.js} +1 -1
  24. package/dist/assets/{BillDetailPage-pt1k5AQf-BM9-GtkV.js → BillDetailPage-pt1k5AQf-BjT4Ihsm.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRuleDetailPage-Drh7Bhi8-CDpJ0g2R.js → BillPayApprovalRuleDetailPage-Drh7Bhi8-091yCGF7.js} +1 -1
  26. package/dist/assets/{BillPayApprovalRulesPage-Cmyo59xB-pg1tP0xq.js → BillPayApprovalRulesPage-Cmyo59xB-Bc1FlC0c.js} +1 -1
  27. package/dist/assets/{BillPayPromoPage-Dgpz2TLG-BFCcBeGF.js → BillPayPromoPage-Dgpz2TLG-RoPtYKEQ.js} +1 -1
  28. package/dist/assets/{BillPaySetUpPage-B6Pd_eBf-BC27u6lI.js → BillPaySetUpPage-B6Pd_eBf-CWUn729m.js} +1 -1
  29. package/dist/assets/{BillingSettingsPage-CYsvBrFV-BWO0QWBs.js → BillingSettingsPage-CYsvBrFV-DtV08_g9.js} +1 -1
  30. package/dist/assets/{BillsBulkReviewDrawerPage-DNnAmqWz-BQr-aBSF.js → BillsBulkReviewDrawerPage-DNnAmqWz-CEdBVzVe.js} +1 -1
  31. package/dist/assets/{BoxItem-B06DK4G--CNFqY3pV.js → BoxItem-B06DK4G--Bupc4dyY.js} +1 -1
  32. package/dist/assets/{BusinessVerificationPage-Dgk5gyMv-BdAKTgt0.js → BusinessVerificationPage-Dgk5gyMv-BKMYH8C3.js} +1 -1
  33. package/dist/assets/{CardNumberSubText-CcH9jUoZ-BGeGZCAA.js → CardNumberSubText-CcH9jUoZ-mqNKBu9B.js} +1 -1
  34. package/dist/assets/{CashbackDetailPage-5eysaHGf-qWx0m6gR.js → CashbackDetailPage-5eysaHGf-O2irFEC3.js} +1 -1
  35. package/dist/assets/{ChargeCardDetailPage-Diwf-gwZ-DmopcUlO.js → ChargeCardDetailPage-Diwf-gwZ-BUyvgd6i.js} +1 -1
  36. package/dist/assets/{ChargeCardListPage-C-RTGkKK-Bb-QwUsn.js → ChargeCardListPage-C-RTGkKK-DLkixTq5.js} +1 -1
  37. package/dist/assets/{ChargeCardListTable-B-bNbtZQ-Bfw8s7pe.js → ChargeCardListTable-B-bNbtZQ--LQKl6Xj.js} +1 -1
  38. package/dist/assets/{ChargeCardPaymentHistoryPage-Cu-zT5tO-C6SEcidH.js → ChargeCardPaymentHistoryPage-Cu-zT5tO-CNtnC-O7.js} +1 -1
  39. package/dist/assets/{ChargeCardPromoPage-Cz3rNFwM-N71PCrPp.js → ChargeCardPromoPage-Cz3rNFwM-D_0OzJRZ.js} +1 -1
  40. package/dist/assets/{ChargeCardSetupPage-BcTB9Yy5-DkE42DK5.js → ChargeCardSetupPage-BcTB9Yy5-BOaP0LVe.js} +1 -1
  41. package/dist/assets/{ChargeCardStatementsPage-B_ERvgmB-DFHNpOVz.js → ChargeCardStatementsPage-B_ERvgmB-DjHyNuHd.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-D7_usOVn-C_GuSSOC.js → CheckDepositDrawerPage-D7_usOVn-B0KdoA_b.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-h0vIfI8o-Bg2RfRDJ.js → CollapsableReportTable-h0vIfI8o-D3Pt-4FZ.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-CWADX4kZ-IHJvDX6-.js → CompanyOfficerDetailsSection-CWADX4kZ-jF_BBJt5.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-DF9LFrFD-DjueOJ3s.js → CompanyPassportCard-DF9LFrFD-nY8e_5Nd.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-BtAopyLq-DbU6xdRd.js → CompanyPassportPage-BtAopyLq-BcF__FaA.js} +1 -1
  47. package/dist/assets/{CompleteProfile-CsbsHQ0p-BLF2mnNn.js → CompleteProfile-CsbsHQ0p-Da1z9Z7H.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-duD341Gp-Bb3-s_zN.js → ConfettiBurst-duD341Gp-CRM9LgmA.js} +1 -1
  49. package/dist/assets/{ConstrainedInnerElement-hv51KpGg-DTOZooRA.js → ConstrainedInnerElement-hv51KpGg-CXln6N2t.js} +1 -1
  50. package/dist/assets/{CreateOrEditVendorPage-C2xU6c51-DT9rwnbq.js → CreateOrEditVendorPage-C2xU6c51-B-kxLo4f.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentDrawerPage-CeagMaCu-D6hhhd3N.js → CreditCardPaymentDrawerPage-CeagMaCu-tu_QZ5if.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-B8EoF2aF-uavVFTum.js → CurrencySelectField-B8EoF2aF-GOW4qR7m.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-CIeR2XvU-B59q7JSL.js → CustomerOnboardingActivationPage-CIeR2XvU-CK8C5kkD.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-BLPiI0Mv.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-kUbwh2r2-zrrFUTGk.js → CustomerOnboardingDetailPageSkeleton-kUbwh2r2-J-3HD8z8.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Br0jy7Pu-C04-tCb6.js → CustomerOnboardingNoStepsPage-Br0jy7Pu-ChmYYCLk.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-Dm2Si769-DsN6K-ie.js → CustomerOnboardingPage-Dm2Si769-D58-iBoA.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-Cz81Q5jC-eSuGAIqK.js → CustomerOnboardingProductSuitePage-Cz81Q5jC-n81ts80h.js} +1 -1
  59. package/dist/assets/{Dashboard-DReG_aaf-C4aSoq3o.js → Dashboard-DReG_aaf-DwSOFg0b.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-BXSlwsR7-4jSB_qXZ.js → DashboardReportPage-BXSlwsR7-CQ7UXe-C.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-B3dtVAe2-BBvO3tiT.js → DashboardSidebarBackgroundAnimation-B3dtVAe2-B6yGX6Ah.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-YuSXjbLh-dhpmj79R.js → DepositAccTransactionItem-YuSXjbLh-C2vDDOod.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-C-FAvZwD-5kKsnSxM.js → DepositAccTransactionListPage-C-FAvZwD-BbAq4nWD.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-BaiSpc0N-BaNvy8Dj.js → DomesticWireDetailsPage-BaiSpc0N-DnjTEbYw.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-BpRKCn-0-GQtzMlpD.js → DownloadOverlay-BpRKCn-0-CHKRQCgV.js} +1 -1
  66. package/dist/assets/{DrawerPage-DQ3Xuekx-71bFG_xW.js → DrawerPage-DQ3Xuekx-B9p3dBku.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-8DalSMWH-BO--FbCf.js → EditPeoplePage-8DalSMWH-Ckh9exV5.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-CC2BjMkR-BrDBl4Nx.js → EditReimbursementDetailPage-CC2BjMkR-CV9Xwg25.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-fmWuxHTZ-BEOMoyTE.js → EntityDetailPage-fmWuxHTZ-DJDbCj57.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-vsEMiXYh-UA5Y35sl.js → EntitySummarySection-vsEMiXYh-CDZa-Mc3.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-B3HPfIsK-4ZtjmO8G.js → ExpenseAutomationOverviewPage-B3HPfIsK-CWN4kP2X.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-4LJefgNh-YH8canW3.js → ExpenseAutomationPage-4LJefgNh-isL_Jc14.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-BH7oCW_F-HW0llOdu.js → ExpressPayPage-BH7oCW_F-ls2gqEkj.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-DSv61BhF-rk5VNvfQ.js → FeaturePreviewPage-DSv61BhF-D3bUAc_I.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-Bgy9MpO4-DCiZAX41.js → FollowStepsSection-Bgy9MpO4-DjmY6ECY.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-VRq_gimm-D4JxkgEf.js → GlobalReviewListPage-VRq_gimm-BJViyoax.js} +1 -1
  77. package/dist/assets/{InformationCardStack-rx0fypl3-C50dsns2.js → InformationCardStack-rx0fypl3-PVL5sP4g.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-uJWMkIZL-k2gW7JtA.js → InsightsCardStack-uJWMkIZL-BMcef6eP.js} +1 -1
  79. package/dist/assets/{InsightsSection-ByFf2oGn-BaSZhycl.js → InsightsSection-ByFf2oGn-v8_DJRM0.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-Cj01Nub6-JLccDpyu.js → IntegrationsSettingsPage-Cj01Nub6-Ckk6jPFc.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-C2PM97sv-CXe5WYRW.js → InternationalWireSwiftDetailsPage-C2PM97sv-DZ12UKs3.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-Cr3sDrT--Bq6HNEU0.js → InternationalWireVerificationPage-Cr3sDrT--DP2ZfrSL.js} +1 -1
  83. package/dist/assets/{InviteFormPage-dsMpScvq-CF55W3d2.js → InviteFormPage-dsMpScvq-CwRYtYza.js} +1 -1
  84. package/dist/assets/{InvitePageListView-e7vGSbFa-wcp0OLc4.js → InvitePageListView-e7vGSbFa-DcUjhdI-.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-BT_YVCP4-yRtlk6wv.js → InvitePeoplePage-BT_YVCP4-CgT1m3Z3.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-Dg1-uunA-DejmnF3G.js → InvoiceUploadSection-Dg1-uunA-CW2z21hh.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-CyF9wrb0-DIt_LpMY.js → IssueChargeCardPage-CyF9wrb0-CEZ2-O-B.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-3l0Bv00--DmuSRVDq.js → LabeledAddressValue-3l0Bv00--CRsMpkI1.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-F9kvUR_r-BCeaFKsb.js → LabeledAddressValueField-F9kvUR_r--rBMYRFp.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-BgC8y0D6-Cxk0wWCO.js → LabeledControlledCheckBoxField-BgC8y0D6-BL02IYWO.js} +1 -1
  91. package/dist/assets/{LabeledCountryMultiSelectField-3qI_4noU-BCLCbVPc.js → LabeledCountryMultiSelectField-3qI_4noU-BwwxeoBQ.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BV3h9bh7-BAj07yW-.js → LabeledCreatableSingleSelectField-BV3h9bh7-D2WoBuGQ.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-rriEcsdr-CkxtZhMI.js → LabeledDocumentField-rriEcsdr-DuJ2zUxk.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-DoVSg3nZ-Be0l5Q_z.js → LabeledDropDownFormattedTextField-DoVSg3nZ-k-dWGYUh.js} +1 -1
  95. package/dist/assets/{LabeledText-DGZ7hxY4-IuE8fmYf.js → LabeledText-DGZ7hxY4-DsEkDfJy.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-DgE4V-VP.js → LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-BdZT_J4k.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-jIrTovp--Bw9Copum.js → LabeledZeniRolesDropDownField-jIrTovp--BhxE0P_I.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-Bvbqpltz-Bc-21K8g.js → LinkJETransactionPage-Bvbqpltz-HF3tsHRK.js} +1 -1
  99. package/dist/assets/{LockCardPage-DyEQBJYx-BLiE9GBP.js → LockCardPage-DyEQBJYx-Cp9KP7Ha.js} +1 -1
  100. package/dist/assets/{LowBalancePopup-C2vHKMNF-PKO6ElPE.js → LowBalancePopup-C2vHKMNF-bdPNLfbg.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-lAAwAtH7-SJ0jUK4M.js → MagicLinkACHDetailsPage-lAAwAtH7-Ck-bBlpT.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-cv823ASo-DimLQOFo.js → MagicLinkDomesticWireDetailsPage-cv823ASo-o8N9E1Vn.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C_SjsgC9-Bvgil6AB.js → MagicLinkInternationalWireDetailsPage-C_SjsgC9-VMrnWF1u.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-B1LBYM2F-BYLLbXss.js → MagicLinkSuccessPage-B1LBYM2F-6icyR0Uu.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-ClAnBBt9-CxQuR-QP.js → MagicLinkTitleSection-ClAnBBt9-BG2qP1eV.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-9_XLl4bT-BB3mmWQ9.js → MailingDetailsSection-9_XLl4bT-aum9pUe4.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-CBNYcuP4-DwZ11Kbp.js → MyBankConnectionsSettingsPage-CBNYcuP4-JphRdcv2.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-n71n40uQ-DzAksyAj.js → MyPendingActivationChargeCardListPage-n71n40uQ-Dl2qH7gb.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BUMIjZYc-CtFmjBIE.js → MyProfileSettingsPage-BUMIjZYc-Bnuq---Y.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-CbjFNysh-BLH7wXCB.js → NavBarWithPicker-CbjFNysh-fM8X8YaY.js} +1 -1
  111. package/dist/assets/{NavigationArrow-Dpc7u6y4-94AYlIy-.js → NavigationArrow-Dpc7u6y4-BiRqyGkx.js} +1 -1
  112. package/dist/assets/{NavigationDots-DCpslVnm-BIAw9fTc.js → NavigationDots-DCpslVnm-DccClgwI.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-B10sY6Q_-Owh-T5As.js → NewGlobalMerchantPage-B10sY6Q_-VgMXWXS2.js} +1 -1
  114. package/dist/assets/{NoDataChart-9-bhq204-jF2VPuzU.js → NoDataChart-9-bhq204-Mk2SpDph.js} +1 -1
  115. package/dist/assets/{NoDataTable-C6Q2Anpz-DB9htpIj.js → NoDataTable-C6Q2Anpz-DUKNluuK.js} +1 -1
  116. package/dist/assets/{NotFoundPage-4mPhXD5--Dq1iR5VQ.js → NotFoundPage-4mPhXD5--D8Xe2RH2.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-BTxCoB_b-BHZscHCj.js → NotificationSettingsPage-BTxCoB_b-EQULZcKC.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-CylnViXd-Dg2fm6St.js → NotificationsListConfig-CylnViXd-BsFR_NcM.js} +1 -1
  119. package/dist/assets/{NotificationsPage-D41h0mS6-Dzdq9z4a.js → NotificationsPage-D41h0mS6-Bb6S9Jk3.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-BV_uJSCh-BHuftqJi.js → OpExByVendorPage-BV_uJSCh-DSWgiZdt.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-CkUYOhlh-ChB_ia4V.js → OverlayContainerPage-CkUYOhlh-BnCo9_OT.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-Cj3UWjG4-Ufv6uGVt.js → PandLWithForecastPage-Cj3UWjG4-Daok_AzA.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BWFl695q-DUUCCWV6.js → PaymentAccountSetupBillingAddressSection-BWFl695q-CDWvoSql.js} +1 -1
  124. package/dist/assets/{PeoplePage-DcGqWtAP-CfVqJS-U.js → PeoplePage-DcGqWtAP-DkPagYKu.js} +1 -1
  125. package/dist/assets/{Preview-DHku7oFH.js → Preview-Cc9vKqgF.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-C9JoJQeH-7TCp-gr7.js → ProductsCarousel-C9JoJQeH-x81n9I1l.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-mFk7SsOr-cB2eyHgD.js → PromoBaseCards-mFk7SsOr-qtCHMf8v.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-CJsIrEZq-Djdbh1G7.js → QBOConnectionDialog-CJsIrEZq-Cv6iSpTz.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-C_fqHza_-B8WpC_yY.js → QBOSetupSection-C_fqHza_-DgpfNI-0.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BMZnKpsk-CX5NlTL7.js → ReimbursementApprovalRuleDetailPage-BMZnKpsk-C2eUzL_F.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-C2zNa8dT-CGtrNpR7.js → ReimbursementApprovalRulesPage-C2zNa8dT-BewT1FOV.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-B1o8ea57-BrBovHlf.js → ReimbursementDetailPage-B1o8ea57-DRCLvjWj.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-Df5QmXzC-CzrrekBH.js → ReimbursementPromoPage-Df5QmXzC-CiqDm3oM.js} +1 -1
  134. package/dist/assets/{ReimbursementSetUpPage-D450RVsP-BNS45RtV.js → ReimbursementSetUpPage-D450RVsP-CoGf8qvT.js} +1 -1
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-BYy6jU6w.js → ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-qH0UNUqD.js} +1 -1
  136. package/dist/assets/{ReloadCard-D5cvzWxe-BSJWwb6T.js → ReloadCard-D5cvzWxe-B3IyXnq9.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-Ig41fOPb-DyEm5Q02.js → ReportTableViewSelector-Ig41fOPb-CLRRGAhe.js} +1 -1
  138. package/dist/assets/{ReportsPage-CRAVAUTO-D_QRWGM1.js → ReportsPage-CRAVAUTO-Cw7xKvAS.js} +1 -1
  139. package/dist/assets/{RevenueChart-DtQu0KAn-DJYGsojB.js → RevenueChart-DtQu0KAn-D8weCECA.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-vui4TqeA-gjxKkEYH.js → ReviewDetailsPage-vui4TqeA-D-XziIJQ.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-CUnL7H-a-BjFaE0id.js → ReviewOverlay-CUnL7H-a-17YpOTAb.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-x2rnvWn9-BzchKu5T.js → RoleWithToolTip-x2rnvWn9-Decoe-vI.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D_Cls2jC-CNWyfY4t.js → ScheduleDetailsFixedAssetsPage-D_Cls2jC-BwmKM1Tl.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-DmSLuM8g-5vyMikmE.js → ScheduleDetailsPage-DmSLuM8g-DYOZWouJ.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-js9_P_Lo-CeLb4ONW.js → ScheduleSequenceTable-js9_P_Lo-CzCZ3H3Q.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-ziq-yiHW.js → ScreenRoutes-VDuiXW2A.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-DYRWWXcL-D3Lz2J4N.js → SetUpAccountSection-DYRWWXcL-CqyVY0zk.js} +1 -1
  148. package/dist/assets/{SignIn-CUJkZb3S-DEoVYbuM.js → SignIn-CUJkZb3S-BQ5cYlKz.js} +1 -1
  149. package/dist/assets/{SignInScreen-CMKiwyNN.js → SignInScreen-BxnvlP3D.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-BieufnDb-DWfo1rZv.js → SpendManagementListViewPage-BieufnDb-DsSgx26K.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-BmUp80QX-D3VMwaS-.js → SpendManagementPerTabPage-BmUp80QX-_fIZmx1n.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-DKZNTYXT-mbKmW3pW.js → SpendManagementSection-DKZNTYXT-Y5i2WptS.js} +1 -1
  153. package/dist/assets/{StatementItem-Dyt5Q0eR-DHmcaJ-e.js → StatementItem-Dyt5Q0eR-ge2odajX.js} +1 -1
  154. package/dist/assets/{StatementsPage-CbtnJM5y-COycJvfL.js → StatementsPage-CbtnJM5y-D7odQb22.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-BfQ9VbBH-DC0t3Flj.js → StatusSwitcher-BfQ9VbBH-B-KO1Buq.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-CzGiuhk3-DLbV8WBg.js → SubTabSwitcher-CzGiuhk3-BJdsqPl7.js} +1 -1
  157. package/dist/assets/{SummaryCard-D61xzK3a-DMSW9KNv.js → SummaryCard-D61xzK3a-D5OwtVH7.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-ucVAdv7x-AkXJlFwQ.js → TaskManagementPage-ucVAdv7x-DzPLVMfi.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-C3jXm39I-tjiVSjZN.js → TimeRangeSwitcher-C3jXm39I-pg9s0UqV.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcher-CcYg-YQJ-C2j1iPoK.js → TimeframeSwitcher-CcYg-YQJ-B8uZpFtx.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-w4YJno-p-Bi4h2wB2.js → TimeframeSwitcherWithToggle-w4YJno-p-B2pTF6KS.js} +1 -1
  162. package/dist/assets/{TopExCard-D2PRxvFc-DTkmCs_e.js → TopExCard-D2PRxvFc-jwp5OjNB.js} +1 -1
  163. package/dist/assets/{TopExDetailPage-C0uHdU7N-CkEVyz2B.js → TopExDetailPage-C0uHdU7N-D9KWDen5.js} +1 -1
  164. package/dist/assets/{TransactionActivityLogPage-CqYb19tY-v__opMvt.js → TransactionActivityLogPage-CqYb19tY-BvG_2MHQ.js} +1 -1
  165. package/dist/assets/{TransactionDetailPage-D-NR_yZG-DdONq5Tf.js → TransactionDetailPage-D-NR_yZG-DLNp0Ym3.js} +1 -1
  166. package/dist/assets/{TransactionList-f6yB-byH-Oxgdaak4.js → TransactionList-f6yB-byH-BeXigMDL.js} +1 -1
  167. package/dist/assets/{TransactionListBig-BrDWayQS-C0zQ3f5X.js → TransactionListBig-BrDWayQS-DsH6Jycs.js} +1 -1
  168. package/dist/assets/{TransactionListPage-C-Z62y2d-DnIWNXku.js → TransactionListPage-C-Z62y2d-BZTkx2mc.js} +1 -1
  169. package/dist/assets/{TransactionVendorDetailPage-CQQuAR6V-Dt6j0ppt.js → TransactionVendorDetailPage-CQQuAR6V-D21ZQKzj.js} +1 -1
  170. package/dist/assets/{TransferDrawerPage-DfFm-1-3-Dp1b_ezH.js → TransferDrawerPage-DfFm-1-3-DcsnoXjo.js} +1 -1
  171. package/dist/assets/{TreasuryOverviewPage-CKSanlUG-BJ3RsJkb.js → TreasuryOverviewPage-CKSanlUG-CsJ07wXK.js} +1 -1
  172. package/dist/assets/{TreasuryPromoPage-Dyip3H10-ClQVvPZy.js → TreasuryPromoPage-Dyip3H10-BFjPECcI.js} +1 -1
  173. package/dist/assets/{TreasuryStatementsPage-mljf2Van-DInZXjo_.js → TreasuryStatementsPage-mljf2Van-CKwUR6NQ.js} +1 -1
  174. package/dist/assets/{TreasuryTaxLetterPage-D3cV3a-8-CcMHT6vj.js → TreasuryTaxLetterPage-D3cV3a-8-L4BwstYA.js} +1 -1
  175. package/dist/assets/{TrendChart-fFlHCvNx-DADa9lxz.js → TrendChart-fFlHCvNx--8jxSfa_.js} +1 -1
  176. package/dist/assets/{TrendWithTransactions-It4KDov3-BNez-K-6.js → TrendWithTransactions-It4KDov3-uJUU6y8f.js} +1 -1
  177. package/dist/assets/{UncategorizedAccountsMappingPage-BxBz2Ce0-BSZYER7A.js → UncategorizedAccountsMappingPage-BxBz2Ce0-CNPxhzU9.js} +1 -1
  178. package/dist/assets/{UnitIntegrationPage-gVgsk2ji-Dz79ORBq.js → UnitIntegrationPage-gVgsk2ji-COCsJfhk.js} +1 -1
  179. package/dist/assets/{UploadAdditionalDocumentOverlay-C5m8jqup-5PpZVQjf.js → UploadAdditionalDocumentOverlay-C5m8jqup-S0ohEV34.js} +1 -1
  180. package/dist/assets/{Vendor2FAPopup-DRwBzOwn-C-SwMKWw.js → Vendor2FAPopup-DRwBzOwn-DhtM-fsI.js} +1 -1
  181. package/dist/assets/{VendorACHDetailsPage-By2Ya2bv-CjVBmCig.js → VendorACHDetailsPage-By2Ya2bv-q_tye6Vo.js} +1 -1
  182. package/dist/assets/{VendorDetailPage-jci1LqX3-QbESQx0s.js → VendorDetailPage-jci1LqX3-BiOnbd3f.js} +1 -1
  183. package/dist/assets/{VendorDomesticWireDetailsPage-uIDE-n5v-CEtT0uGT.js → VendorDomesticWireDetailsPage-uIDE-n5v-CXJb5J3y.js} +1 -1
  184. package/dist/assets/{VendorFiling1099EditablePage-8pYT3u-X-D-wgniGH.js → VendorFiling1099EditablePage-8pYT3u-X-D_UDyuhP.js} +1 -1
  185. package/dist/assets/{VendorFirstReviewPage-CafakxA1-CDJXyRr2.js → VendorFirstReviewPage-CafakxA1-DLht7hvz.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireDetailsPage-DJeI-ZFW-DlATitk5.js → VendorInternationalWireDetailsPage-DJeI-ZFW-Y_m9RvHt.js} +1 -1
  187. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Co-5nTam-Dq9Sjb3M.js → VendorInternationalWireSwiftDetailsPage-Co-5nTam-2AgQI36C.js} +1 -1
  188. package/dist/assets/{VendorsAccountsSection-YX2g8ETe-D60z7JWq.js → VendorsAccountsSection-YX2g8ETe-e-Ebd3i7.js} +1 -1
  189. package/dist/assets/{VerifyDevice-DeHW4GAi-COYWduJ8.js → VerifyDevice-DeHW4GAi-BrrxSvi2.js} +1 -1
  190. package/dist/assets/{VideoPlayer-DxIfGrPu-_quRL0IB.js → VideoPlayer-DxIfGrPu-DG9_29pb.js} +2 -2
  191. package/dist/assets/{VideoPopup-CUP7ctgS-CvuTwYjE.js → VideoPopup-CUP7ctgS-CnQZCBbO.js} +1 -1
  192. package/dist/assets/{WarningsDrawerPage--s6b380L-kLxITMYx.js → WarningsDrawerPage--s6b380L-BvzCi6Jk.js} +1 -1
  193. package/dist/assets/{ZeniAccountDetailPage-7NdkdSg3-DUqxr3Vg.js → ZeniAccountDetailPage-7NdkdSg3-CzyDTlLy.js} +1 -1
  194. package/dist/assets/{ZeniAccountListViewPage-B-cs_xnc-yymuGC8c.js → ZeniAccountListViewPage-B-cs_xnc-CitANkcs.js} +1 -1
  195. package/dist/assets/{ZeniAccountNavBarPieces-CjRip0v9-CWaUJ8t5.js → ZeniAccountNavBarPieces-CjRip0v9-fqy5uhYF.js} +1 -1
  196. package/dist/assets/{ZeniAccountPromoPage-BikXtkeH-CZNOzkma.js → ZeniAccountPromoPage-BikXtkeH-DjpOin1U.js} +1 -1
  197. package/dist/assets/{ZeniAccountSetupPage-BRBsijVt-4J2hs6F_.js → ZeniAccountSetupPage-BRBsijVt-CVgD2Uf6.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-DDGvdmLF-BbItEQ1K.js → ZeniCopyright-DDGvdmLF-447g6hlp.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-Cdg0TlHk-C5Juk6O6.js → ZeniTransferAmountSlider-Cdg0TlHk-DPnsENMy.js} +1 -1
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-BPAwAHT2.js → add-to-wallet-DgdBD8_G-Tvhq1Gb8.js} +1 -1
  201. package/dist/assets/{analytics-B3XlZNQ8.js → analytics-BSh5cBTM.js} +1 -1
  202. package/dist/assets/{analyticsHelper-D9xdJK4b-C8beHKtm.js → analyticsHelper-D9xdJK4b-DdFbzSx8.js} +1 -1
  203. package/dist/assets/{analyticsHelper-Bnej6boJ.js → analyticsHelper-DOE_CVQ_.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-DYcTfV8-.js → arrow-south-east-round-PEovUgvH-D9NhRqZJ.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-C0L9GopF.js → auto-transfer-rule-mbafm5D3-Bd8ltJD0.js} +1 -1
  206. package/dist/assets/{chartTypes-Dq3hUz_T-D0weDXco.js → chartTypes-Dq3hUz_T-CZIhQYGg.js} +1 -1
  207. package/dist/assets/{commonDimensions-CGHIQ2To-BXIDDuOd.js → commonDimensions-CGHIQ2To-ChTwXt2F.js} +1 -1
  208. package/dist/assets/{commonTypes-BAJPaPYg-BqOkop1Y.js → commonTypes-BAJPaPYg-ZRT2EIAq.js} +1 -1
  209. package/dist/assets/{constants-BcG8RJNm.js → constants-Ca2l-eSK.js} +1 -1
  210. package/dist/assets/{core-DTlL91ob.js → core-BBKQkJb7.js} +1 -1
  211. package/dist/assets/{dash.all.min-wCYxg1-F.js → dash.all.min-DzQe-Q97.js} +1 -1
  212. package/dist/assets/{downloadPdf-BI2Y41h2-DmQ3wa5x.js → downloadPdf-BI2Y41h2-CJxUrMkc.js} +1 -1
  213. package/dist/assets/{empty-DTLC6acq.js → empty-BAhHXN-J.js} +1 -1
  214. package/dist/assets/{empty-9h6tGMxX.js → empty-CvQ9mfdA.js} +1 -1
  215. package/dist/assets/{epic-CSBGbcOS.js → epic-DPl_yeEQ.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-CvfvQG3y.js → gift-box-Cmt9OgIZ-DeI78FXp.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-ChqWps-8.js → graphic-no-data-l-DU4J8fDt-l3Wpg2uF.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-1sZH3huZ.js → graphic-no-data-net-burn-l-CzmycA0m-Dyry9S3b.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-C8qC_oIS.js → handshake-BPg58FML-CAcdkk5J.js} +1 -1
  220. package/dist/assets/{helper-z5-P4a-y-DCqj7mqg.js → helper-z5-P4a-y-BjC38EFp.js} +1 -1
  221. package/dist/assets/{index-CTllXPEB.js → index-BSFE83ps.js} +1 -1
  222. package/dist/assets/{index-DA1Z8sqg.js → index-C2tYLV1-.js} +1 -1
  223. package/dist/assets/{index-CXoFWELS.js → index-CbQy18LL.js} +1 -1
  224. package/dist/assets/{index-BRlvHWYX.js → index-Co5CHcL-.js} +1 -1
  225. package/dist/assets/{index-DivE10Xm.js → index-D1n9iNXR.js} +1 -1
  226. package/dist/assets/{index-BTxAEBwp.js → index-Di0PzFTw.js} +1 -1
  227. package/dist/assets/{index-nssLOVFu.js → index-DmJDLobC.js} +6 -6
  228. package/dist/assets/{lexical-CoKvBbaA.js → lexical-CC2d_kE2.js} +1 -1
  229. package/dist/assets/{liveblocks-offUbtxr.js → liveblocks-D1Gf9COF.js} +1 -1
  230. package/dist/assets/{lottie-Cqel28AC.js → lottie-B-DVrXwa.js} +1 -1
  231. package/dist/assets/{mapLoadingInProgressToTreeNode-DrC2Zs2y-BuaBdgp1.js → mapLoadingInProgressToTreeNode-DrC2Zs2y-BjsjwyTG.js} +1 -1
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dsBogxKz-D78gQ4Dn.js → mapSectionWithAcOnlyToTreeNode-dsBogxKz-4f0Ul0l4.js} +1 -1
  233. package/dist/assets/{mapSpacerToTreeNode-DMDEaLzQ-ibbyX8vz.js → mapSpacerToTreeNode-DMDEaLzQ-V5HoG67-.js} +1 -1
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-CW_wzI5T-he6bfb8d.js → mapTimeframeBalancesToTreeNode-CW_wzI5T-DDDj-Taw.js} +1 -1
  235. package/dist/assets/{mapTimeframeBalancesToTreeNode-DvfKBCs5-GyIWCN5D.js → mapTimeframeBalancesToTreeNode-DvfKBCs5-BZ6MszHu.js} +1 -1
  236. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-DlA9TyjC.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-LJEHXizn.js} +1 -1
  237. package/dist/assets/{mui-BVCBQYdL.js → mui-Bgk_7_3h.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-D1vlmLcE.js → page-detail-CWX5S47F-DpTi0lr5.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-Cddsb26L-CSqoRxwG.js → panelSelectedMixin-Cddsb26L-BeWHMcNi.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-BGMZB5pj.js → radio-default-CiSgisfh-Dt6ezU-k.js} +1 -1
  241. package/dist/assets/{react-CSBaF2r0.js → react-0s0M_CAb.js} +1 -1
  242. package/dist/assets/{react-QuNdLWH0.js → react-8rwwNA9S.js} +1 -1
  243. package/dist/assets/{react-CLksnFSH.js → react-93CibPtS.js} +1 -1
  244. package/dist/assets/{react-BXvNRT2q.js → react-Cz3x_Ojh.js} +1 -1
  245. package/dist/assets/{react-C_JPVQ2C.js → react-Dfxv8P4v.js} +1 -1
  246. package/dist/assets/{react-DRddHEvz.js → react-DwGR9wjl.js} +1 -1
  247. package/dist/assets/{react-jkd7J1Kg.js → react-TtlD7S5U.js} +2 -2
  248. package/dist/assets/{react-BEal1Iuh.js → react-vKhkI9QX.js} +1 -1
  249. package/dist/assets/{recharts-DAsNs3BU.js → recharts-DQ94kkTy.js} +1 -1
  250. package/dist/assets/{sentry-Fca4mdIl.js → sentry-L3H0lnBS.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-CRgtaaqW.js → shield-DOlUxcFf-BeXfYuLC.js} +1 -1
  252. package/dist/assets/{toCOABalancesWithID-P7keEtAg-DZcYuHA-.js → toCOABalancesWithID-P7keEtAg-CKsrAJNb.js} +1 -1
  253. package/dist/assets/{toChartData-BUf5HHim-DGDFToOH.js → toChartData-BUf5HHim-DU5WiVJh.js} +1 -1
  254. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BVwF7gzx.js → upload-reimbursement-receipt-O2N8vcO7-N655yXJS.js} +1 -1
  255. package/dist/assets/{uploadAttachment-DJA30WSD-CHN4VO1K.js → uploadAttachment-DJA30WSD-Ce-ZEqY3.js} +1 -1
  256. package/dist/assets/{uploadReceipts-CqDftTRt-Bj47leio.js → uploadReceipts-CqDftTRt-DXWV7iem.js} +1 -1
  257. package/dist/assets/{url-DdD720VJ.js → url-3bnwMjsG.js} +1 -1
  258. package/dist/assets/{url-DkjikAwv.js → url-CVUNFFPg.js} +1 -1
  259. package/dist/assets/{useLongPress-GCK2COYQ-DXicXlES.js → useLongPress-GCK2COYQ-rqfVb6ME.js} +1 -1
  260. package/dist/assets/{usp-line-BBd1wKwW-BQlBhf7H.js → usp-line-BBd1wKwW-J8zgXRmN.js} +1 -1
  261. package/dist/assets/{utils-Cgs4R-d4.js → utils-WSIc2RtD.js} +1 -1
  262. package/dist/assets/{zeni-epic-state-BZv12Eez.js → zeni-epic-state-B9Z2lD6g.js} +3 -3
  263. package/dist/index.html +1 -1
  264. package/package.json +3 -3
  265. package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-Betf7XiO.js +0 -1
@@ -1,4 +1,4 @@
1
- import{y as F,X as N,O as j,V as t,bE as G,L as V,ac as m,o,x as r,an as E,aQ as P,c1 as k,cy as q,cz as O,cA as J,da as K,u as l,bb as Q,N as T,ba as X,p as z,d9 as Y,bv as Z,w as ee}from"./index-nssLOVFu.js";import{n as i}from"./mui-BVCBQYdL.js";import{a as te}from"./sentry-Fca4mdIl.js";import"./liveblocks-offUbtxr.js";import"./core-DTlL91ob.js";import"./zeni-epic-state-BZv12Eez.js";import"./lottie-Cqel28AC.js";import"./recharts-DAsNs3BU.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./utils-Cgs4R-d4.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]="c6c45563-6ac9-4f31-931c-8a8d86104d17",e._sentryDebugIdIdentifier="sentry-dbid-c6c45563-6ac9-4f31-931c-8a8d86104d17")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},M={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:w=!1,approvalRule:b,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[x,g]=te.useState(!1),n=N(),{range:h}=b.criteria[0],{steps:$,approvalRuleId:p}=b,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{g(!0)},U={onOkClick:()=>{g(!1),y?.(p)},onCancelClick:()=>{g(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(k,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(k,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},d.userId))]},H))})}),x?t.jsx(q,{titleComponent:t.jsx(J,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(O,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
1
+ import{y as F,X as N,O as j,V as t,bE as G,L as V,ac as m,o,x as r,an as E,aQ as P,c1 as k,cy as q,cz as O,cA as J,da as K,u as l,bb as Q,N as T,ba as X,p as z,d9 as Y,bv as Z,w as ee}from"./index-DmJDLobC.js";import{n as i}from"./mui-Bgk_7_3h.js";import{a as te}from"./sentry-L3H0lnBS.js";import"./liveblocks-D1Gf9COF.js";import"./core-BBKQkJb7.js";import"./zeni-epic-state-B9Z2lD6g.js";import"./lottie-B-DVrXwa.js";import"./recharts-DQ94kkTy.js";import"./analytics-BSh5cBTM.js";import"./lexical-CC2d_kE2.js";import"./utils-WSIc2RtD.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]="c6c45563-6ac9-4f31-931c-8a8d86104d17",e._sentryDebugIdIdentifier="sentry-dbid-c6c45563-6ac9-4f31-931c-8a8d86104d17")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},M={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:w=!1,approvalRule:b,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[x,g]=te.useState(!1),n=N(),{range:h}=b.criteria[0],{steps:$,approvalRuleId:p}=b,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{g(!0)},U={onOkClick:()=>{g(!1),y?.(p)},onCancelClick:()=>{g(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(k,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(k,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},d.userId))]},H))})}),x?t.jsx(q,{titleComponent:t.jsx(J,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(O,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ay as tt,V as t,e5 as Bt,a9 as Pt,X as Nt,y as _t,cl as Lt,x as m,O as it,bQ as Ot,e8 as Et,e9 as Wt,cy as Ae,cz as Me,cA as Re,bE as Be,ac as f,bq as Kt,dH as Ft,gF as Vt,gO as Pe,o as a,gG as Ne,dQ as b,gJ as g,dW as w,aQ as _e,fH as Le,w as H,gL as Oe,aT as Ut,aq as Gt,bU as Ht,gM as ne,bz as Yt,bV as qt,c as Jt,N as Qt,M as Xt,an as at,bb as rt,p as Y,ao as Zt,c3 as ei,ak as ti,h5 as ii,g$ as ai,u as c,cq as ri,d8 as oi}from"./index-nssLOVFu.js";import{a as u}from"./sentry-Fca4mdIl.js";import{n as r}from"./mui-BVCBQYdL.js";import{bI as ni,bY as li,GJ as si}from"./zeni-epic-state-BZv12Eez.js";import di from"./InvoiceUploadSection-Dg1-uunA-DejmnF3G.js";import{r as ci,h as x,u as mi}from"./types-DyvtCprH-NFPm5TaG.js";import"./liveblocks-offUbtxr.js";import"./core-DTlL91ob.js";import"./lottie-Cqel28AC.js";import"./recharts-DAsNs3BU.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./utils-Cgs4R-d4.js";import"./AttachmentView-CiYfninr-BohG7XjP.js";import"./uploadReceipts-CqDftTRt-Bj47leio.js";import"./upload-reimbursement-receipt-O2N8vcO7-BVwF7gzx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new e.Error().stack;v&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[v]="425a5792-c41c-4223-958f-23fc2361c6cf",e._sentryDebugIdIdentifier="sentry-dbid-425a5792-c41c-4223-958f-23fc2361c6cf")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},pi={formTitle:new Qt("h6Regular","h5Regular")},Ee=({remiDetails:e,uploadInvoiceEndPoint:v,authParams:z,isAdmin:_,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:p,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:ot,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:q,redirectToEditableReimbursementScreen:nt,onDuplicateLineClick:lt,approveOrRejectRemi:he,deleteReimbursement:st,cancelAndDeleteReport:ye,handleZeniLogoClick:dt,onAddNewRule:be,initialOpenThreadRequest:A})=>{const d=tt(),ct=Pt().analytics,n=Nt(),ge=_t(),[mt,M]=u.useState(!1),[J,Q]=u.useState(!1),[pt,X]=u.useState(!1),[Z,ee]=u.useState("approved"),L=u.useRef(null),[D,te]=u.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,ut]=u.useState(null),[ht,O]=u.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=u.useRef({}),xe=l=>{const o=we.current[l];o!=null&&setTimeout(()=>mi(o,L.current),100)};u.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&q()},[e,q]),u.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const o=l.substring(1);xe(o)}},[]);const yt=()=>{q()};Lt({componentName:"reimbursement.details"});const bt={onOkClick:()=>{M(!1),D.primaryButtonText===i.buttons.delete?st?.():D.title===i.cancelReportTitle?ye?.():D.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{M(!1)}},S=s.labelWidth.value(n),R=s.largeLabelWidth.value(n),fe=it.getLocalizedStrings(),{common:{texts:{comments:gt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:wt,replyAComment:xt},tooltip:{resolveComment:ft,unResolveComment:$t}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:E}=fe.spendManagement.reimbursement,ie=e.remiDetails?.reportTitle,I=e.remiDetails?.lines??[],W=e.remiDetails?.reimbursementInfo.stage,K=e.remiDetails?.reimbursementInfo.billStatus,F=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=W?.code==="paid",vt=Te?W:K?.code=="approved"&&F?.code?F:K,T=ui(e.remiDetails),B=K?.code=="approved"&&F?.code?F:K,V=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{te({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),M(!0)},Tt=()=>{te({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},jt=()=>{te({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},De=()=>{nt()},St={onOkClick:l=>{X(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{X(!1)}},It=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(ee("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},Dt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(ee("delete"),Ie()):(ee("rejected"),X(!0))},kt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ni(li(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ae=e.remiDetails?.reimbursementInfo.expectedDepositDate??kt,Ct=e.remiDetails?.lines?.some(l=>{const o=l.lineDetail;return o?.account?.isDeleted===!0&&o?.account?.isBillEditableCoaAccountType===!1})??!1,ke=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&ot&&!Ct,zt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",re=vt?.code,At=ci(e.duplicateLineByLineId),Ce=e.duplicateReimbursementStatus.fetchState==="Completed"&&At>0,{requestToOpenThread:oe,setRequestToOpenThread:U,setOpenThread:G}=u.useContext(Ot);u.useEffect(()=>{A?.threadId!=null&&A?.companyId!=null&&A?.entityType!=null&&U(A)},[A,U]);const{threads:P,isLoading:k}=Et(),Mt=u.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Wt)),[P]).length,Rt=u.useCallback((l,o)=>{G(o),O(!1)},[G,O]);u.useEffect(()=>{oe?.threadId!=null&&P.length>0&&!k&&(G(oe.threadId),U(null))},[oe,P,k,G,U]);const y={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},N=si(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ei,{windowSize:n,ref:L,children:[mt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:D.title}),descriptionComponent:t.jsx(Me,{children:D.description}),primaryButtonText:D.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:D.secondaryButtonText,action:bt}):null,pt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:St,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ri,{windowSize:n,"data-testid":f("reimbursement-detail-page-nav-bar-container"),children:[n!=="small"?t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Bi,{onClick:()=>dt?.(),"data-testid":f("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ge.colors.background,keepBackgroundOnScroll:!0,scrollableContent:L,source:"ReimbursementDetailPage"}):null,n!=="small"?t.jsx(zi,{}):null,t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-right"),title:ie??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:n!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ni,{children:[p?t.jsxs(_i,{isDisabled:k,onClick:k?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ut({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),O(!0),ct.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(o=>Ft(o)),void 0,void 0,"page icon")},"data-testid":f("remi-comments-section"),children:[t.jsx(Kt,{count:k?void 0:Mt,isLoading:k,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:n,onClick:()=>yt(),"data-testid":f("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:L,enableTitleOnScroll:n!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Je,{windowSize:n,children:t.jsx(Qe,{windowsSize:n,children:ie})}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null,B?.code!=null?n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Vt,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:V}),N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):Ce?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Ve,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:V})}):null]}):null,I.map((l,o)=>{const j=e.duplicateLineByLineId[l.lineId];return t.jsxs(et,{windowSize:n,children:[t.jsx(Vi,{windowSize:n,children:t.jsx(Ui,{bottomSeperator:I.length!==1,windowSize:n,children:t.jsx(di,{showAutofill:!1,uploadInvoiceEndPoint:v,authParams:z,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:I.length>1?`#${o+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:I.length-1===o||o===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:n,children:[o===0&&n!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Je,{windowSize:n,children:[t.jsx(Qe,{windowsSize:n,children:ie}),me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,B?.code!=null?t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:V})}):null,N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):Ce?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Ve,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:n,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[n!=="small"?t.jsx(wi,{children:t.jsx(fi,{children:I.length>1?`#${o+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs($i,{windowSize:n,children:[j?.duplicateLineId!=null?t.jsxs(bi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(j.isDuplicateWithinTransaction&&j.duplicateLineId!=null)return xe(`L${j.duplicateLineId}`);j.duplicateTransactionId!=null&&j.duplicateLineId!=null&&lt(j.duplicateTransactionId,j.duplicateLineId)},"data-testid":f("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${o}.mileage.reimbursementType`:`${o}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("reimbursementType",o,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(g,{label:{label:i.reimbursementType,width:R},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx($,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"mileage")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("distanceInMiles",o,"mileage")}`},children:t.jsx(g,{label:{label:i.distanceInMiles,width:R},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"mileage")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"mileage")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"mileage")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("merchant",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.merchant,width:R},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("account",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.category,width:S},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),I.length!==1&&I.length===o+1&&t.jsxs(Ki,{windowSize:n,children:[t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),I.length===1&&t.jsxs(et,{windowSize:n,children:[t.jsx(Ye,{}),t.jsxs(hi,{windowSize:n,children:[t.jsx(Wi,{windowSize:n,children:t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(yi,{windowSize:n,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Gi,{})]}),Te||V===!0?null:t.jsxs(Mi,{children:[n!=="small"?t.jsx(Ye,{}):null,t.jsx(Ti,{windowSize:n,"data-testid":f("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),J===!0&&Q(!1)},children:t.jsx(Ut,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.delete:i.buttons.deleteReport:n==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:Dt,style:{width:s.footerButtonWidth.value(n)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.edit:i.buttons.editAndResubmit:n==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:It,style:{width:s.footerButtonWidth.value(n)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(vi,{children:t.jsxs(Ai,{windowSize:n,children:[!N&&J?t.jsx(Gt,{onClickAway:()=>Q(!1),children:t.jsxs(Ci,{windowSize:n,children:[re!=="processing"?t.jsx(le,{onClick:Ie,"data-testid":f("remi-delete-action"),children:i.buttons.deleteReport}):null,re==="processing"?t.jsx(le,{onClick:Tt,"data-testid":f("remi-cancel-action"),children:i.buttons.cancel}):null,re==="processing"?t.jsx(le,{onClick:jt,"data-testid":f("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(ki,{windowSize:n,children:[!N&&ke?t.jsx(Di,{onClick:De,"data-testid":f("remi-edit-button"),children:t.jsx(Ii,{})}):null,!N&&zt===!0?t.jsx(Si,{windowSize:n,showEditIcon:ke,children:t.jsx(ji,{onClick:()=>Q(!J),"data-testid":f("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),p?t.jsx(Ht,{isDrawerOpen:ht,allowComposer:!0,drawerTitle:gt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:k,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:wt,replyComposerPlaceholder:xt,threadResolve:ft,threadUnResolve:$t},onThreadClick:(l,o)=>Rt(l,o),onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:"400px",backgroundColor:ge.colors.background}}):null]})},ca=e=>{const v=tt().currentTenant?.companyId,z=e.remiDetails.remiDetails?.id;if(!(e.isReimbursementCommentingEnabled&&z!=null&&v!=null))return t.jsx(Ee,{...e});const _=`dashboard_${v}`;return t.jsx(Bt,{roomId:_,filter:{application:"dashboard",companyId:v,entityId:z,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(Ee,{...e})})},ui=e=>{const v=it.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:v.tabsById.deleted,color:ne.deleted.color,bgColor:ne.deleted.bgColor,borderColor:ne.deleted.borderColor,code:"deleted"}},hi=r.div`
1
+ import{ay as tt,V as t,e5 as Bt,a9 as Pt,X as Nt,y as _t,cl as Lt,x as m,O as it,bQ as Ot,e8 as Et,e9 as Wt,cy as Ae,cz as Me,cA as Re,bE as Be,ac as f,bq as Kt,dH as Ft,gF as Vt,gO as Pe,o as a,gG as Ne,dQ as b,gJ as g,dW as w,aQ as _e,fH as Le,w as H,gL as Oe,aT as Ut,aq as Gt,bU as Ht,gM as ne,bz as Yt,bV as qt,c as Jt,N as Qt,M as Xt,an as at,bb as rt,p as Y,ao as Zt,c3 as ei,ak as ti,h5 as ii,g$ as ai,u as c,cq as ri,d8 as oi}from"./index-DmJDLobC.js";import{a as u}from"./sentry-L3H0lnBS.js";import{n as r}from"./mui-Bgk_7_3h.js";import{bI as ni,bY as li,GJ as si}from"./zeni-epic-state-B9Z2lD6g.js";import di from"./InvoiceUploadSection-Dg1-uunA-CW2z21hh.js";import{r as ci,h as x,u as mi}from"./types-DyvtCprH-NFPm5TaG.js";import"./liveblocks-D1Gf9COF.js";import"./core-BBKQkJb7.js";import"./lottie-B-DVrXwa.js";import"./recharts-DQ94kkTy.js";import"./analytics-BSh5cBTM.js";import"./lexical-CC2d_kE2.js";import"./utils-WSIc2RtD.js";import"./AttachmentView-CiYfninr-76W0iAd5.js";import"./uploadReceipts-CqDftTRt-DXWV7iem.js";import"./upload-reimbursement-receipt-O2N8vcO7-N655yXJS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new e.Error().stack;v&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[v]="425a5792-c41c-4223-958f-23fc2361c6cf",e._sentryDebugIdIdentifier="sentry-dbid-425a5792-c41c-4223-958f-23fc2361c6cf")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},pi={formTitle:new Qt("h6Regular","h5Regular")},Ee=({remiDetails:e,uploadInvoiceEndPoint:v,authParams:z,isAdmin:_,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:p,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:ot,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:q,redirectToEditableReimbursementScreen:nt,onDuplicateLineClick:lt,approveOrRejectRemi:he,deleteReimbursement:st,cancelAndDeleteReport:ye,handleZeniLogoClick:dt,onAddNewRule:be,initialOpenThreadRequest:A})=>{const d=tt(),ct=Pt().analytics,n=Nt(),ge=_t(),[mt,M]=u.useState(!1),[J,Q]=u.useState(!1),[pt,X]=u.useState(!1),[Z,ee]=u.useState("approved"),L=u.useRef(null),[D,te]=u.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,ut]=u.useState(null),[ht,O]=u.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=u.useRef({}),xe=l=>{const o=we.current[l];o!=null&&setTimeout(()=>mi(o,L.current),100)};u.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&q()},[e,q]),u.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const o=l.substring(1);xe(o)}},[]);const yt=()=>{q()};Lt({componentName:"reimbursement.details"});const bt={onOkClick:()=>{M(!1),D.primaryButtonText===i.buttons.delete?st?.():D.title===i.cancelReportTitle?ye?.():D.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{M(!1)}},S=s.labelWidth.value(n),R=s.largeLabelWidth.value(n),fe=it.getLocalizedStrings(),{common:{texts:{comments:gt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:wt,replyAComment:xt},tooltip:{resolveComment:ft,unResolveComment:$t}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:E}=fe.spendManagement.reimbursement,ie=e.remiDetails?.reportTitle,I=e.remiDetails?.lines??[],W=e.remiDetails?.reimbursementInfo.stage,K=e.remiDetails?.reimbursementInfo.billStatus,F=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=W?.code==="paid",vt=Te?W:K?.code=="approved"&&F?.code?F:K,T=ui(e.remiDetails),B=K?.code=="approved"&&F?.code?F:K,V=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{te({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),M(!0)},Tt=()=>{te({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},jt=()=>{te({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},De=()=>{nt()},St={onOkClick:l=>{X(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{X(!1)}},It=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(ee("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},Dt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(ee("delete"),Ie()):(ee("rejected"),X(!0))},kt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ni(li(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ae=e.remiDetails?.reimbursementInfo.expectedDepositDate??kt,Ct=e.remiDetails?.lines?.some(l=>{const o=l.lineDetail;return o?.account?.isDeleted===!0&&o?.account?.isBillEditableCoaAccountType===!1})??!1,ke=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&ot&&!Ct,zt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",re=vt?.code,At=ci(e.duplicateLineByLineId),Ce=e.duplicateReimbursementStatus.fetchState==="Completed"&&At>0,{requestToOpenThread:oe,setRequestToOpenThread:U,setOpenThread:G}=u.useContext(Ot);u.useEffect(()=>{A?.threadId!=null&&A?.companyId!=null&&A?.entityType!=null&&U(A)},[A,U]);const{threads:P,isLoading:k}=Et(),Mt=u.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Wt)),[P]).length,Rt=u.useCallback((l,o)=>{G(o),O(!1)},[G,O]);u.useEffect(()=>{oe?.threadId!=null&&P.length>0&&!k&&(G(oe.threadId),U(null))},[oe,P,k,G,U]);const y={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},N=si(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ei,{windowSize:n,ref:L,children:[mt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:D.title}),descriptionComponent:t.jsx(Me,{children:D.description}),primaryButtonText:D.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:D.secondaryButtonText,action:bt}):null,pt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:St,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ri,{windowSize:n,"data-testid":f("reimbursement-detail-page-nav-bar-container"),children:[n!=="small"?t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Bi,{onClick:()=>dt?.(),"data-testid":f("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ge.colors.background,keepBackgroundOnScroll:!0,scrollableContent:L,source:"ReimbursementDetailPage"}):null,n!=="small"?t.jsx(zi,{}):null,t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-right"),title:ie??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:n!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ni,{children:[p?t.jsxs(_i,{isDisabled:k,onClick:k?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ut({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),O(!0),ct.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(o=>Ft(o)),void 0,void 0,"page icon")},"data-testid":f("remi-comments-section"),children:[t.jsx(Kt,{count:k?void 0:Mt,isLoading:k,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:n,onClick:()=>yt(),"data-testid":f("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:L,enableTitleOnScroll:n!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Je,{windowSize:n,children:t.jsx(Qe,{windowsSize:n,children:ie})}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null,B?.code!=null?n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Vt,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:V}),N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):Ce?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Ve,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:V})}):null]}):null,I.map((l,o)=>{const j=e.duplicateLineByLineId[l.lineId];return t.jsxs(et,{windowSize:n,children:[t.jsx(Vi,{windowSize:n,children:t.jsx(Ui,{bottomSeperator:I.length!==1,windowSize:n,children:t.jsx(di,{showAutofill:!1,uploadInvoiceEndPoint:v,authParams:z,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:I.length>1?`#${o+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:I.length-1===o||o===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:n,children:[o===0&&n!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Je,{windowSize:n,children:[t.jsx(Qe,{windowsSize:n,children:ie}),me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,B?.code!=null?t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:V})}):null,N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):Ce?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Ve,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:n,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[n!=="small"?t.jsx(wi,{children:t.jsx(fi,{children:I.length>1?`#${o+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs($i,{windowSize:n,children:[j?.duplicateLineId!=null?t.jsxs(bi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(j.isDuplicateWithinTransaction&&j.duplicateLineId!=null)return xe(`L${j.duplicateLineId}`);j.duplicateTransactionId!=null&&j.duplicateLineId!=null&&lt(j.duplicateTransactionId,j.duplicateLineId)},"data-testid":f("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${o}.mileage.reimbursementType`:`${o}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("reimbursementType",o,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(g,{label:{label:i.reimbursementType,width:R},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx($,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"mileage")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("distanceInMiles",o,"mileage")}`},children:t.jsx(g,{label:{label:i.distanceInMiles,width:R},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"mileage")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"mileage")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"mileage")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("merchant",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.merchant,width:R},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("account",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.category,width:S},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),I.length!==1&&I.length===o+1&&t.jsxs(Ki,{windowSize:n,children:[t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),I.length===1&&t.jsxs(et,{windowSize:n,children:[t.jsx(Ye,{}),t.jsxs(hi,{windowSize:n,children:[t.jsx(Wi,{windowSize:n,children:t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(yi,{windowSize:n,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Gi,{})]}),Te||V===!0?null:t.jsxs(Mi,{children:[n!=="small"?t.jsx(Ye,{}):null,t.jsx(Ti,{windowSize:n,"data-testid":f("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),J===!0&&Q(!1)},children:t.jsx(Ut,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.delete:i.buttons.deleteReport:n==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:Dt,style:{width:s.footerButtonWidth.value(n)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.edit:i.buttons.editAndResubmit:n==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:It,style:{width:s.footerButtonWidth.value(n)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(vi,{children:t.jsxs(Ai,{windowSize:n,children:[!N&&J?t.jsx(Gt,{onClickAway:()=>Q(!1),children:t.jsxs(Ci,{windowSize:n,children:[re!=="processing"?t.jsx(le,{onClick:Ie,"data-testid":f("remi-delete-action"),children:i.buttons.deleteReport}):null,re==="processing"?t.jsx(le,{onClick:Tt,"data-testid":f("remi-cancel-action"),children:i.buttons.cancel}):null,re==="processing"?t.jsx(le,{onClick:jt,"data-testid":f("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(ki,{windowSize:n,children:[!N&&ke?t.jsx(Di,{onClick:De,"data-testid":f("remi-edit-button"),children:t.jsx(Ii,{})}):null,!N&&zt===!0?t.jsx(Si,{windowSize:n,showEditIcon:ke,children:t.jsx(ji,{onClick:()=>Q(!J),"data-testid":f("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),p?t.jsx(Ht,{isDrawerOpen:ht,allowComposer:!0,drawerTitle:gt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:k,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:wt,replyComposerPlaceholder:xt,threadResolve:ft,threadUnResolve:$t},onThreadClick:(l,o)=>Rt(l,o),onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:"400px",backgroundColor:ge.colors.background}}):null]})},ca=e=>{const v=tt().currentTenant?.companyId,z=e.remiDetails.remiDetails?.id;if(!(e.isReimbursementCommentingEnabled&&z!=null&&v!=null))return t.jsx(Ee,{...e});const _=`dashboard_${v}`;return t.jsx(Bt,{roomId:_,filter:{application:"dashboard",companyId:v,entityId:z,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(Ee,{...e})})},ui=e=>{const v=it.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:v.tabsById.deleted,color:ne.deleted.color,bgColor:ne.deleted.bgColor,borderColor:ne.deleted.borderColor,code:"deleted"}},hi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ay as ne,y as S,X as k,aS as le,V as e,ac as a,fR as ae,bE as de,b as u,ag as d,O as E,o as s,as as ce,d as me,aV as V,ao as pe,x as xe,p as z,cN as he,aW as ue,bc as ge,u as we}from"./index-nssLOVFu.js";import{a as j}from"./sentry-Fca4mdIl.js";import{n as r}from"./mui-BVCBQYdL.js";import{GI as je,bN as be}from"./zeni-epic-state-BZv12Eez.js";import{C as fe}from"./VideoPopup-CUP7ctgS-CvuTwYjE.js";import{M as v}from"./usp-line-BBd1wKwW-BQlBhf7H.js";import"./liveblocks-offUbtxr.js";import"./core-DTlL91ob.js";import"./lottie-Cqel28AC.js";import"./recharts-DAsNs3BU.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./utils-Cgs4R-d4.js";import"./VideoPlayer-DxIfGrPu-_quRL0IB.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]="8198c4d5-288f-46de-9705-6541d154c151",i._sentryDebugIdIdentifier="sentry-dbid-8198c4d5-288f-46de-9705-6541d154c151")}catch{}})();const N="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
1
+ import{ay as ne,y as S,X as k,aS as le,V as e,ac as a,fR as ae,bE as de,b as u,ag as d,O as E,o as s,as as ce,d as me,aV as V,ao as pe,x as xe,p as z,cN as he,aW as ue,bc as ge,u as we}from"./index-DmJDLobC.js";import{a as j}from"./sentry-L3H0lnBS.js";import{n as r}from"./mui-Bgk_7_3h.js";import{GI as je,bN as be}from"./zeni-epic-state-B9Z2lD6g.js";import{C as fe}from"./VideoPopup-CUP7ctgS-CnQZCBbO.js";import{M as v}from"./usp-line-BBd1wKwW-J8zgXRmN.js";import"./liveblocks-D1Gf9COF.js";import"./core-BBKQkJb7.js";import"./lottie-B-DVrXwa.js";import"./recharts-DQ94kkTy.js";import"./analytics-BSh5cBTM.js";import"./lexical-CC2d_kE2.js";import"./utils-WSIc2RtD.js";import"./VideoPlayer-DxIfGrPu-DG9_29pb.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]="8198c4d5-288f-46de-9705-6541d154c151",i._sentryDebugIdIdentifier="sentry-dbid-8198c4d5-288f-46de-9705-6541d154c151")}catch{}})();const N="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",O="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{y as Ee,X as Ve,aS as N,aa as qe,cQ as Ge,O as Te,aX as Ce,V as t,fB as Ze,p as Z,x as s,bE as Je,L as Qe,ae as Xe,fS as ve,e4 as Ke,fT as Ye,by as et,dV as tt,aT as it,o as a,fV as nt,u as n,cq as ot,cU as at,eT as lt,g2 as ke,g3 as $e,gE as st,b as rt,ac as Pe,N as Ae,bO as ct,ak as dt,bv as ut}from"./index-nssLOVFu.js";import{a as o}from"./sentry-Fca4mdIl.js";import{n as i}from"./mui-BVCBQYdL.js";import{bG as mt}from"./zeni-epic-state-BZv12Eez.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-C5m8jqup-5PpZVQjf.js";import"./liveblocks-offUbtxr.js";import"./core-DTlL91ob.js";import"./lottie-Cqel28AC.js";import"./recharts-DAsNs3BU.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./utils-Cgs4R-d4.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]="7a2cdb28-e8d9-4059-bf24-05fe31bfacf4",e._sentryDebugIdIdentifier="sentry-dbid-7a2cdb28-e8d9-4059-bf24-05fe31bfacf4")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:J}){const l=Ve(),D=Ee(),{formState:{errors:Q},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:U,mileageStatus:w}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:Y}=Te.getLocalizedStrings(),{reimbursement:ee}=Y,[S,V]=o.useState(F),[te,W]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!1||U.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&F&&!x&&J?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{y as Ee,X as Ve,aS as N,aa as qe,cQ as Ge,O as Te,aX as Ce,V as t,fB as Ze,p as Z,x as s,bE as Je,L as Qe,ae as Xe,fS as ve,e4 as Ke,fT as Ye,by as et,dV as tt,aT as it,o as a,fV as nt,u as n,cq as ot,cU as at,eT as lt,g2 as ke,g3 as $e,gE as st,b as rt,ac as Pe,N as Ae,bO as ct,ak as dt,bv as ut}from"./index-DmJDLobC.js";import{a as o}from"./sentry-L3H0lnBS.js";import{n as i}from"./mui-Bgk_7_3h.js";import{bG as mt}from"./zeni-epic-state-B9Z2lD6g.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-C5m8jqup-S0ohEV34.js";import"./liveblocks-D1Gf9COF.js";import"./core-BBKQkJb7.js";import"./lottie-B-DVrXwa.js";import"./recharts-DQ94kkTy.js";import"./analytics-BSh5cBTM.js";import"./lexical-CC2d_kE2.js";import"./utils-WSIc2RtD.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]="7a2cdb28-e8d9-4059-bf24-05fe31bfacf4",e._sentryDebugIdIdentifier="sentry-dbid-7a2cdb28-e8d9-4059-bf24-05fe31bfacf4")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:J}){const l=Ve(),D=Ee(),{formState:{errors:Q},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:U,mileageStatus:w}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:Y}=Te.getLocalizedStrings(),{reimbursement:ee}=Y,[S,V]=o.useState(F),[te,W]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!1||U.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&F&&!x&&J?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -1 +1 @@
1
- import{ay as q,gg as z,V as _,cy as W,cz as H,cA as J,ks as K,a_ as X,O as G}from"./index-nssLOVFu.js";import{a as f}from"./sentry-Fca4mdIl.js";import{Hg as Q}from"./zeni-epic-state-BZv12Eez.js";import{u as Y}from"./ReviewOverlay-CUnL7H-a-BjFaE0id.js";import"./liveblocks-offUbtxr.js";import"./core-DTlL91ob.js";import"./mui-BVCBQYdL.js";import"./recharts-DAsNs3BU.js";import"./lottie-Cqel28AC.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./utils-Cgs4R-d4.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]="5d7e4f23-d38e-4936-92fa-151fb13ac4cf",e._sentryDebugIdIdentifier="sentry-dbid-5d7e4f23-d38e-4936-92fa-151fb13ac4cf")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=G.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:u,onCloseOverlay:t})=>{const{fetchState:s,bulkSubmissionFetchState:p,bulkOperationTypeSelected:r,currentTab:b,currentSubTab:g}=e,y=!1,T=q(),l=z(T),[v,m]=f.useState(!1),[h,A]=f.useState(j(e,y,o,l)),[w,D]=f.useState(y),[P,te]=f.useState(0),[S,$]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(P===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(j(e,!1,o,l)),()=>{clearInterval(R)}),[h.length,P,w,e.fetchState,y,e,o,l]);const E=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,F=()=>{const{title:c,description:k}=Z(x);$({type:"reject",title:c,description:k,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(r,b,g),m(!0)},L={onOkClick:c=>{m(!1);const k=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(r,b,g,Q(k.map(I=>I?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{m(!1)}},{title:O,description:U}=ee(s,x,E,w),C=e.fetchState==="Completed"&&x===0,N=()=>{i.trackReimbursementBulkSubmit(r,b,g),d(r)},V=()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:s!=="Completed"||r==="reject"&&p==="In-Progress",isLoading:p==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:N,style:r==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&p==="In-Progress",isLoading:r==="reject"&&p==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:F,style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(J,{children:S.title}),descriptionComponent:_.jsx(H,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:L,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Y,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:u,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:V(),cancelButton:M,hideCancel:C}})]})},j=(e,o,i,d)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const s=K(i,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${a.by} ${s?.firstName} ${s?.lastName}`:a.strings.empty},rightSideText:{title:X("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:t.reviewStatus??""}}})},Z=e=>{const{this_:o,these:i,report:d,reports:u,payment:t,payments:s}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",s).replaceAll("__report__",u)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},ee=(e,o,i,d)=>{const{has:u,have:t,report:s,reports:p,are:r,is:b,do_:g,does:y}=a.texts,T=o>1,l=i>1;let v="",m="";return e==="Completed"&&!d?(v=n.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:n.report).replace("<_has_>",l?t:u),o===0?m=n.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?p:s).replace("<_do_>",l?g:y):m=`${o}/${i} ${n.reviewPage.reportsReviewed.description.replace("__report__",i>1?p:s).replace("<_is_>",T?r:b)}`):(v=n.reviewPage.reportsReviewing.title.replace("__report__",l?p:s),m=n.reviewPage.reportsReviewing.description.replace("__report__",l?p:s)),{title:v,description:m}};export{_e as default};
1
+ import{ay as q,gg as z,V as _,cy as W,cz as H,cA as J,ks as K,a_ as X,O as G}from"./index-DmJDLobC.js";import{a as f}from"./sentry-L3H0lnBS.js";import{Hg as Q}from"./zeni-epic-state-B9Z2lD6g.js";import{u as Y}from"./ReviewOverlay-CUnL7H-a-17YpOTAb.js";import"./liveblocks-D1Gf9COF.js";import"./core-BBKQkJb7.js";import"./mui-Bgk_7_3h.js";import"./recharts-DQ94kkTy.js";import"./lottie-B-DVrXwa.js";import"./analytics-BSh5cBTM.js";import"./lexical-CC2d_kE2.js";import"./utils-WSIc2RtD.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]="5d7e4f23-d38e-4936-92fa-151fb13ac4cf",e._sentryDebugIdIdentifier="sentry-dbid-5d7e4f23-d38e-4936-92fa-151fb13ac4cf")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=G.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:u,onCloseOverlay:t})=>{const{fetchState:s,bulkSubmissionFetchState:p,bulkOperationTypeSelected:r,currentTab:b,currentSubTab:g}=e,y=!1,T=q(),l=z(T),[v,m]=f.useState(!1),[h,A]=f.useState(j(e,y,o,l)),[w,D]=f.useState(y),[P,te]=f.useState(0),[S,$]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(P===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(j(e,!1,o,l)),()=>{clearInterval(R)}),[h.length,P,w,e.fetchState,y,e,o,l]);const E=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,F=()=>{const{title:c,description:k}=Z(x);$({type:"reject",title:c,description:k,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(r,b,g),m(!0)},L={onOkClick:c=>{m(!1);const k=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(r,b,g,Q(k.map(I=>I?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{m(!1)}},{title:O,description:U}=ee(s,x,E,w),C=e.fetchState==="Completed"&&x===0,N=()=>{i.trackReimbursementBulkSubmit(r,b,g),d(r)},V=()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:s!=="Completed"||r==="reject"&&p==="In-Progress",isLoading:p==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:N,style:r==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&p==="In-Progress",isLoading:r==="reject"&&p==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:F,style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(J,{children:S.title}),descriptionComponent:_.jsx(H,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:L,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Y,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:u,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:V(),cancelButton:M,hideCancel:C}})]})},j=(e,o,i,d)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const s=K(i,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${a.by} ${s?.firstName} ${s?.lastName}`:a.strings.empty},rightSideText:{title:X("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:t.reviewStatus??""}}})},Z=e=>{const{this_:o,these:i,report:d,reports:u,payment:t,payments:s}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",s).replaceAll("__report__",u)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},ee=(e,o,i,d)=>{const{has:u,have:t,report:s,reports:p,are:r,is:b,do_:g,does:y}=a.texts,T=o>1,l=i>1;let v="",m="";return e==="Completed"&&!d?(v=n.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:n.report).replace("<_has_>",l?t:u),o===0?m=n.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?p:s).replace("<_do_>",l?g:y):m=`${o}/${i} ${n.reviewPage.reportsReviewed.description.replace("__report__",i>1?p:s).replace("<_is_>",T?r:b)}`):(v=n.reviewPage.reportsReviewing.title.replace("__report__",l?p:s),m=n.reviewPage.reportsReviewing.description.replace("__report__",l?p:s)),{title:v,description:m}};export{_e as default};
@@ -1,4 +1,4 @@
1
- import{y as l,V as r,aP as a,b4 as f,O as y,ac as m,aU as h,bG as g,ak as u,o as c,b5 as b}from"./index-nssLOVFu.js";import{n as s}from"./mui-BVCBQYdL.js";import{a as d}from"./sentry-Fca4mdIl.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]="2e313a14-00a9-42c4-8b7a-dc90bb6c4e60",e._sentryDebugIdIdentifier="sentry-dbid-2e313a14-00a9-42c4-8b7a-dc90bb6c4e60")}catch{}})();function w({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=s(h)`
1
+ import{y as l,V as r,aP as a,b4 as f,O as y,ac as m,aU as h,bG as g,ak as u,o as c,b5 as b}from"./index-DmJDLobC.js";import{n as s}from"./mui-Bgk_7_3h.js";import{a as d}from"./sentry-L3H0lnBS.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]="2e313a14-00a9-42c4-8b7a-dc90bb6c4e60",e._sentryDebugIdIdentifier="sentry-dbid-2e313a14-00a9-42c4-8b7a-dc90bb6c4e60")}catch{}})();function w({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=s(h)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(b,{children:({height:n,width:i})=>r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=s(h)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{y as oe,X as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as S,aT as ve,o as r,O as te,cn as ke,co as Ce,cp as je,cq as Ne,cr as Ie,ao as ue,cs as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Ee}from"./index-nssLOVFu.js";import{a as u,P as pe}from"./sentry-Fca4mdIl.js";import{n as d}from"./mui-BVCBQYdL.js";import{t as P,n as Te}from"./CollapsableReportTable-h0vIfI8o-Bg2RfRDJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="b9125fcc-478c-4807-ab3d-8d464829cf86",e._sentryDebugIdIdentifier="sentry-dbid-b9125fcc-478c-4807-ab3d-8d464829cf86")}catch{}})();const R=te.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Le=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Me(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Le(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed,class_view_layout:e.accountViewMode==="classes"?e.classViewLayout:void 0}}async function uo(e,i,a){const t=te.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Me(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:i,fileType:a.statementFileType});if(h.ok){const y=Ce(h.headers,t.defaultFileName),_=await h.arrayBuffer();je(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
1
+ import{y as oe,X as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as S,aT as ve,o as r,O as te,cn as ke,co as Ce,cp as je,cq as Ne,cr as Ie,ao as ue,cs as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Ee}from"./index-DmJDLobC.js";import{a as u,P as pe}from"./sentry-L3H0lnBS.js";import{n as d}from"./mui-Bgk_7_3h.js";import{t as P,n as Te}from"./CollapsableReportTable-h0vIfI8o-D3Pt-4FZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="b9125fcc-478c-4807-ab3d-8d464829cf86",e._sentryDebugIdIdentifier="sentry-dbid-b9125fcc-478c-4807-ab3d-8d464829cf86")}catch{}})();const R=te.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Le=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Me(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Le(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed,class_view_layout:e.accountViewMode==="classes"?e.classViewLayout:void 0}}async function uo(e,i,a){const t=te.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Me(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:i,fileType:a.statementFileType});if(h.ok){const y=Ce(h.headers,t.defaultFileName),_=await h.arrayBuffer();je(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
2
2
  padding: 0 ${r.sp3} 0 ${r.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{X as le,y as ce,ay as Qe,bQ as et,bR as tt,bS as st,O as T,V as o,bT as ot,ac as F,bF as nt,bq as at,bE as it,bU as rt,o as _,aV as lt,L as ct,bV as dt,x as U,bW as pt,u as L,aq as me,I as D,bX as ge,bY as ut,ak as de,av as ht,bZ as ft,aG as Te,U as mt,aX as gt,an as Ae,au as bt,bN as _t}from"./index-nssLOVFu.js";import{a as C,P as Be}from"./sentry-Fca4mdIl.js";import{n as h}from"./mui-BVCBQYdL.js";import{a as yt}from"./liveblocks-offUbtxr.js";import{bg as be,FJ as xt,FS as wt,FT as St,FU as X,FV as Ct,FW as Rt,FX as Ot,FY as vt,FZ as Tt,F_ as pe,F$ as ue,G0 as ke}from"./zeni-epic-state-BZv12Eez.js";import{j as At,z as he}from"./mapTimeframeBalancesToTreeNode-CW_wzI5T-he6bfb8d.js";import{m as K,l as ae}from"./analyticsHelper-D9xdJK4b-C8beHKtm.js";import{b as Bt}from"./ReportTableViewSelector-Ig41fOPb-DyEm5Q02.js";import{S as Q,y as kt,M as $t,$ as Lt,v as Nt}from"./TimeRangeSwitcher-C3jXm39I-tjiVSjZN.js";import{X as jt}from"./TimeframeSwitcherWithToggle-w4YJno-p-Bi4h2wB2.js";import{DownloadOverlayButton as It}from"./DownloadOverlay-BpRKCn-0-GQtzMlpD.js";import{Z as Mt,n as Ft,t as V,j as $e}from"./CollapsableReportTable-h0vIfI8o-Bg2RfRDJ.js";import{D as Le,T as Ne,C as ee,L as Pt,g as je}from"./mapSectionWithAcOnlyToTreeNode-dsBogxKz-D78gQ4Dn.js";import{d as Vt,l as Et}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-DlA9TyjC.js";import{d as Dt}from"./mapLoadingInProgressToTreeNode-DrC2Zs2y-BuaBdgp1.js";import"./core-DTlL91ob.js";import"./lottie-Cqel28AC.js";import"./recharts-DAsNs3BU.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./utils-Cgs4R-d4.js";import"./TimeframeSwitcher-CcYg-YQJ-C2j1iPoK.js";import"./page-detail-CWX5S47F-D1vlmLcE.js";import"./AccountRow-BrW_eEjE-HoBl8v8H.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]="dfa07544-b3b9-4c77-a23e-14ece89caeb3",e._sentryDebugIdIdentifier="sentry-dbid-dfa07544-b3b9-4c77-a23e-14ece89caeb3")}catch{}})();const zt=h.div`
1
+ import{X as le,y as ce,ay as Qe,bQ as et,bR as tt,bS as st,O as T,V as o,bT as ot,ac as F,bF as nt,bq as at,bE as it,bU as rt,o as _,aV as lt,L as ct,bV as dt,x as U,bW as pt,u as L,aq as me,I as D,bX as ge,bY as ut,ak as de,av as ht,bZ as ft,aG as Te,U as mt,aX as gt,an as Ae,au as bt,bN as _t}from"./index-DmJDLobC.js";import{a as C,P as Be}from"./sentry-L3H0lnBS.js";import{n as h}from"./mui-Bgk_7_3h.js";import{a as yt}from"./liveblocks-D1Gf9COF.js";import{bg as be,FJ as xt,FS as wt,FT as St,FU as X,FV as Ct,FW as Rt,FX as Ot,FY as vt,FZ as Tt,F_ as pe,F$ as ue,G0 as ke}from"./zeni-epic-state-B9Z2lD6g.js";import{j as At,z as he}from"./mapTimeframeBalancesToTreeNode-CW_wzI5T-DDDj-Taw.js";import{m as K,l as ae}from"./analyticsHelper-D9xdJK4b-DdFbzSx8.js";import{b as Bt}from"./ReportTableViewSelector-Ig41fOPb-CLRRGAhe.js";import{S as Q,y as kt,M as $t,$ as Lt,v as Nt}from"./TimeRangeSwitcher-C3jXm39I-pg9s0UqV.js";import{X as jt}from"./TimeframeSwitcherWithToggle-w4YJno-p-B2pTF6KS.js";import{DownloadOverlayButton as It}from"./DownloadOverlay-BpRKCn-0-CHKRQCgV.js";import{Z as Mt,n as Ft,t as V,j as $e}from"./CollapsableReportTable-h0vIfI8o-D3Pt-4FZ.js";import{D as Le,T as Ne,C as ee,L as Pt,g as je}from"./mapSectionWithAcOnlyToTreeNode-dsBogxKz-4f0Ul0l4.js";import{d as Vt,l as Et}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-LJEHXizn.js";import{d as Dt}from"./mapLoadingInProgressToTreeNode-DrC2Zs2y-BjsjwyTG.js";import"./core-BBKQkJb7.js";import"./lottie-B-DVrXwa.js";import"./recharts-DQ94kkTy.js";import"./analytics-BSh5cBTM.js";import"./lexical-CC2d_kE2.js";import"./utils-WSIc2RtD.js";import"./TimeframeSwitcher-CcYg-YQJ-B8uZpFtx.js";import"./page-detail-CWX5S47F-DpTi0lr5.js";import"./AccountRow-BrW_eEjE-DlgTvuFF.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]="dfa07544-b3b9-4c77-a23e-14ece89caeb3",e._sentryDebugIdIdentifier="sentry-dbid-dfa07544-b3b9-4c77-a23e-14ece89caeb3")}catch{}})();const zt=h.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  `,Ut=h.div`
@@ -1,4 +1,4 @@
1
- import{y as A,V as a,O as D,X as de,b5 as Q,u as I,w as M,a_ as J,o as m,ac as Ae,p as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-nssLOVFu.js";import{a as P,P as ee}from"./sentry-Fca4mdIl.js";import{n as x}from"./mui-BVCBQYdL.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-Dq3hUz_T-D0weDXco.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-P7keEtAg-DZcYuHA-.js";import{V as Z}from"./toChartData-BUf5HHim-DGDFToOH.js";import{E as Te,F as te,X as le,Y as ne,G as se,L as pe,H as ce,I as me,J as fe}from"./recharts-DAsNs3BU.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]="01501f3f-10f1-4a3a-a799-e10fa022d402",e._sentryDebugIdIdentifier="sentry-dbid-01501f3f-10f1-4a3a-a799-e10fa022d402")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{y as A,V as a,O as D,X as de,b5 as Q,u as I,w as M,a_ as J,o as m,ac as Ae,p as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-DmJDLobC.js";import{a as P,P as ee}from"./sentry-L3H0lnBS.js";import{n as x}from"./mui-Bgk_7_3h.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-Dq3hUz_T-CZIhQYGg.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-P7keEtAg-CKsrAJNb.js";import{V as Z}from"./toChartData-BUf5HHim-DU5WiVJh.js";import{E as Te,F as te,X as le,Y as ne,G as se,L as pe,H as ce,I as me,J as fe}from"./recharts-DQ94kkTy.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]="01501f3f-10f1-4a3a-a799-e10fa022d402",e._sentryDebugIdIdentifier="sentry-dbid-01501f3f-10f1-4a3a-a799-e10fa022d402")}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{X as Tt,ay as Ct,x as u,fu as Dt,fv as It,fw as Pt,V as t,fx as kt,fy as le,fz as Mt,fA as At,fB as Bt,fC as Ft,aQ as M,fD as Lt,ac as v,fE as Rt,fF as Be,fG as Fe,fH as Le,w as q,dQ as O,p as j,fI as zt,fJ as E,dW as W,fK as Nt,fL as Ot,c1 as Re,o as n,aT as Et,u as d,O as Wt,ai as _t,cc as Vt,N as Gt,M as Zt,fM as Yt,cq as Ut,an as ce,ao as me,fN as qt,fO as Ht,bk as Kt,n as Qt,bb as Xt,fP as Jt,as as tt,bM as en,ak as nt,bv as tn,fQ as nn}from"./index-nssLOVFu.js";import{a as V}from"./sentry-Fca4mdIl.js";import{n as i}from"./mui-BVCBQYdL.js";import{bo as ze,bm as Ne,bE as I,bW as an,Gx as on,bI as re,bY as ln}from"./zeni-epic-state-BZv12Eez.js";import{t as rn,o as sn}from"./LowBalancePopup-C2vHKMNF-PKO6ElPE.js";import{S as _}from"./LabeledText-DGZ7hxY4-IuE8fmYf.js";import"./liveblocks-offUbtxr.js";import"./core-DTlL91ob.js";import"./lottie-Cqel28AC.js";import"./recharts-DAsNs3BU.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./utils-Cgs4R-d4.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]="e2e598be-124a-4bea-a1e2-8f9d0176e6f5",e._sentryDebugIdIdentifier="sentry-dbid-e2e598be-124a-4bea-a1e2-8f9d0176e6f5")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Gt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:We}=mn,_e=({attachment:e})=>{const[y,g]=V.useState(!1),A=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ht,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:X,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),P=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?Pt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=V.useState(!1),[te,be]=V.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):kt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(P?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),fe())},[P,J,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,G=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&G?.code?G:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&G?.code?G:N,ie=()=>{pe()},$e=()=>{pe()},Z=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ve(h,Y,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Jt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}},Te=()=>{Ce===!0&&U(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,U]=V.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{U(!1),ie()},onClickAway:()=>{U(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(T)??"",paymentType:ve,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ke,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(Zn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Rt(o);return o!=null?t.jsx(Gn,{children:it.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[o.attachments&&o.attachments.length>0?t.jsx(_e,{attachment:o.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Je,{windowSize:s,children:M("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(o.id,o.billPayInfo.stage.code),children:[t.jsxs(K,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(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(Ue,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(_e,{attachment:o.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(_n,{"data-testid":v("review-detail-info"),onClick:()=>X(o.id,o.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:M("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(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})]})},o.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(qe,{children:a.pay}),t.jsx(He,{children:t.jsx(Le,{amount:gt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(qe,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(H,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!x&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:Z.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(Z.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ze,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?We.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ze,{children:[t.jsx(de,{children:We.transactionFee}),t.jsx(se,{children:M("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Le,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ge(!1,C,h,Y,s)}},primaryBtn:{label:Ve(h,Y,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?U(!0):Te()},style:{width:Ge(!0,C,h,Y,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(Un,{windowSize:s,children:t.jsx(Re,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(qn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ve=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ge=(e,y,g,A,S)=>g?128:y&&!e&&S==="small"?"auto":A?165:m.footerButtonWidth.value(S),pn=i(en)`
1
+ import{X as Tt,ay as Ct,x as u,fu as Dt,fv as It,fw as Pt,V as t,fx as kt,fy as le,fz as Mt,fA as At,fB as Bt,fC as Ft,aQ as M,fD as Lt,ac as v,fE as Rt,fF as Be,fG as Fe,fH as Le,w as q,dQ as O,p as j,fI as zt,fJ as E,dW as W,fK as Nt,fL as Ot,c1 as Re,o as n,aT as Et,u as d,O as Wt,ai as _t,cc as Vt,N as Gt,M as Zt,fM as Yt,cq as Ut,an as ce,ao as me,fN as qt,fO as Ht,bk as Kt,n as Qt,bb as Xt,fP as Jt,as as tt,bM as en,ak as nt,bv as tn,fQ as nn}from"./index-DmJDLobC.js";import{a as V}from"./sentry-L3H0lnBS.js";import{n as i}from"./mui-Bgk_7_3h.js";import{bo as ze,bm as Ne,bE as I,bW as an,Gx as on,bI as re,bY as ln}from"./zeni-epic-state-B9Z2lD6g.js";import{t as rn,o as sn}from"./LowBalancePopup-C2vHKMNF-bdPNLfbg.js";import{S as _}from"./LabeledText-DGZ7hxY4-DsEkDfJy.js";import"./liveblocks-D1Gf9COF.js";import"./core-BBKQkJb7.js";import"./lottie-B-DVrXwa.js";import"./recharts-DQ94kkTy.js";import"./analytics-BSh5cBTM.js";import"./lexical-CC2d_kE2.js";import"./utils-WSIc2RtD.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]="e2e598be-124a-4bea-a1e2-8f9d0176e6f5",e._sentryDebugIdIdentifier="sentry-dbid-e2e598be-124a-4bea-a1e2-8f9d0176e6f5")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Gt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:We}=mn,_e=({attachment:e})=>{const[y,g]=V.useState(!1),A=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ht,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:X,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),P=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?Pt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=V.useState(!1),[te,be]=V.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):kt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(P?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),fe())},[P,J,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,G=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&G?.code?G:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&G?.code?G:N,ie=()=>{pe()},$e=()=>{pe()},Z=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ve(h,Y,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Jt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}},Te=()=>{Ce===!0&&U(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,U]=V.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{U(!1),ie()},onClickAway:()=>{U(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(T)??"",paymentType:ve,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ke,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(Zn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Rt(o);return o!=null?t.jsx(Gn,{children:it.includes(s)?t.jsxs(Ue,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[o.attachments&&o.attachments.length>0?t.jsx(_e,{attachment:o.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Je,{windowSize:s,children:M("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(o.id,o.billPayInfo.stage.code),children:[t.jsxs(K,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(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(Ue,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(_e,{attachment:o.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(_n,{"data-testid":v("review-detail-info"),onClick:()=>X(o.id,o.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:M("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(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})]})},o.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(qe,{children:a.pay}),t.jsx(He,{children:t.jsx(Le,{amount:gt,integerStyles:q.largeMedium.cssObject,decimalStyles:q.smallMedium.cssObject})}),t.jsx(qe,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(_,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(H,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(_,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!x&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(_,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:Z.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(Z.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(_,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(_,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ze,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?We.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ze,{children:[t.jsx(de,{children:We.transactionFee}),t.jsx(se,{children:M("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Le,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:q.h6Medium.cssObject,decimalStyles:q.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ge(!1,C,h,Y,s)}},primaryBtn:{label:Ve(h,Y,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?U(!0):Te()},style:{width:Ge(!0,C,h,Y,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(Un,{windowSize:s,children:t.jsx(Re,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(qn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ve=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ge=(e,y,g,A,S)=>g?128:y&&!e&&S==="small"?"auto":A?165:m.footerButtonWidth.value(S),pn=i(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{X as M,V as i,ac as m,o as r,aT as P,x as d,c as B,N as C,M as I,p as s,an as j,cL as W,L as D,ak as b,bj as R,u as n,eH as G,e as _,je as N,kr as A}from"./index-nssLOVFu.js";import{n as t}from"./mui-BVCBQYdL.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]="e4dd0ceb-c21d-4831-9ae6-d46e416f9dd8",e._sentryDebugIdIdentifier="sentry-dbid-e4dd0ceb-c21d-4831-9ae6-d46e416f9dd8")}catch{}})();const a={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:E},onCloseOverlay:k,onCloseReviewItem:L})=>{const l=M();return i.jsxs(V,{children:[i.jsx(U,{windowSize:l,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(X,{windowSize:l,children:[i.jsxs(J,{windowSize:l,children:[i.jsx(O,{children:i.jsx(q,{windowSize:l,children:e})}),i.jsx(K,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>L(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:H(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}),l!=="small"?i.jsxs(u,{windowSize:l,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]})]})]}),l==="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(P,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},H=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),V=t.div`
1
+ import{X as M,V as i,ac as m,o as r,aT as P,x as d,c as B,N as C,M as I,p as s,an as j,cL as W,L as D,ak as b,bj as R,u as n,eH as G,e as _,je as N,kr as A}from"./index-DmJDLobC.js";import{n as t}from"./mui-Bgk_7_3h.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]="e4dd0ceb-c21d-4831-9ae6-d46e416f9dd8",e._sentryDebugIdIdentifier="sentry-dbid-e4dd0ceb-c21d-4831-9ae6-d46e416f9dd8")}catch{}})();const a={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:E},onCloseOverlay:k,onCloseReviewItem:L})=>{const l=M();return i.jsxs(V,{children:[i.jsx(U,{windowSize:l,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(X,{windowSize:l,children:[i.jsxs(J,{windowSize:l,children:[i.jsx(O,{children:i.jsx(q,{windowSize:l,children:e})}),i.jsx(K,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>L(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:H(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}),l!=="small"?i.jsxs(u,{windowSize:l,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]})]})]}),l==="small"?i.jsxs(u,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(P,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},H=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),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{fd as f,fe as h,V as s,c1 as g,o,ac as n,O as x,ap as y,ak as c}from"./index-nssLOVFu.js";import{n as l}from"./mui-BVCBQYdL.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]="8f982fbc-13e2-4c09-98aa-73a91d06d779",e._sentryDebugIdIdentifier="sentry-dbid-8f982fbc-13e2-4c09-98aa-73a91d06d779")}catch{}})();const{hyphen:a}=x.getLocalizedStrings().common.strings,m=l.div``,b=l.div`
1
+ import{fd as f,fe as h,V as s,c1 as g,o,ac as n,O as x,ap as y,ak as c}from"./index-DmJDLobC.js";import{n as l}from"./mui-Bgk_7_3h.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]="8f982fbc-13e2-4c09-98aa-73a91d06d779",e._sentryDebugIdIdentifier="sentry-dbid-8f982fbc-13e2-4c09-98aa-73a91d06d779")}catch{}})();const{hyphen:a}=x.getLocalizedStrings().common.strings,m=l.div``,b=l.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aS as G,iH as te,gZ as me,e$ as Je,iI as Me,aa as _e,iJ as Ve,cQ as Pe,cR as Fe,V as a,ae as Ne,cy as Re,cz as qe,cA as $e,aT as ze,iK as Be,iL as Ue,O as ge,ab as pe,iM as Se,iN as We,cU as He,X as Ge,i_ as Ke,h2 as ue,u as $,p as De,x as ye,cV as Xe,iO as Qe,iP as Ye,iQ as Ze,o as V}from"./index-nssLOVFu.js";import{a as f}from"./sentry-Fca4mdIl.js";import{n as B}from"./mui-BVCBQYdL.js";import{H0 as et,H1 as tt}from"./zeni-epic-state-BZv12Eez.js";import{l as lt,a as at,s as st,r as ot}from"./ScheduleSequenceTable-js9_P_Lo-CeLb4ONW.js";import"./liveblocks-offUbtxr.js";import"./core-DTlL91ob.js";import"./lottie-Cqel28AC.js";import"./recharts-DAsNs3BU.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./utils-Cgs4R-d4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="6a38cdf7-0fdc-4940-9642-6f88bfd7eb4a",e._sentryDebugIdIdentifier="sentry-dbid-6a38cdf7-0fdc-4940-9642-6f88bfd7eb4a")}catch{}})();const z={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=B.div`
1
+ import{aS as G,iH as te,gZ as me,e$ as Je,iI as Me,aa as _e,iJ as Ve,cQ as Pe,cR as Fe,V as a,ae as Ne,cy as Re,cz as qe,cA as $e,aT as ze,iK as Be,iL as Ue,O as ge,ab as pe,iM as Se,iN as We,cU as He,X as Ge,i_ as Ke,h2 as ue,u as $,p as De,x as ye,cV as Xe,iO as Qe,iP as Ye,iQ as Ze,o as V}from"./index-DmJDLobC.js";import{a as f}from"./sentry-L3H0lnBS.js";import{n as B}from"./mui-Bgk_7_3h.js";import{H0 as et,H1 as tt}from"./zeni-epic-state-B9Z2lD6g.js";import{l as lt,a as at,s as st,r as ot}from"./ScheduleSequenceTable-js9_P_Lo-CzCZ3H3Q.js";import"./liveblocks-D1Gf9COF.js";import"./core-BBKQkJb7.js";import"./lottie-B-DVrXwa.js";import"./recharts-DQ94kkTy.js";import"./analytics-BSh5cBTM.js";import"./lexical-CC2d_kE2.js";import"./utils-WSIc2RtD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="6a38cdf7-0fdc-4940-9642-6f88bfd7eb4a",e._sentryDebugIdIdentifier="sentry-dbid-6a38cdf7-0fdc-4940-9642-6f88bfd7eb4a")}catch{}})();const z={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=B.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aS as F,iH as Y,gZ as Ie,e$ as Je,iI as we,aa as Le,iJ as Me,cQ as Ve,cR as Pe,V as a,ae as _e,cy as Fe,cz as $e,cA as Ne,aT as Re,iK as ze,iL as Ue,O as ye,ab as re,iM as pe,iN as Be,cU as We,X as qe,h2 as fe,u as Z,p as He,x as Ke,iO as Qe,iP as Ge,iQ as Xe,o as w}from"./index-nssLOVFu.js";import{a as y}from"./sentry-Fca4mdIl.js";import{n as P}from"./mui-BVCBQYdL.js";import{H0 as Ye,H1 as Ze,bI as et}from"./zeni-epic-state-BZv12Eez.js";import{l as tt,a as lt,s as at,r as st}from"./ScheduleSequenceTable-js9_P_Lo-CeLb4ONW.js";import"./liveblocks-offUbtxr.js";import"./core-DTlL91ob.js";import"./lottie-Cqel28AC.js";import"./recharts-DAsNs3BU.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./utils-Cgs4R-d4.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]="38263637-30cb-49d6-b790-51bfa01f09fe",e._sentryDebugIdIdentifier="sentry-dbid-38263637-30cb-49d6-b790-51bfa01f09fe")}catch{}})();const z={labelWidth:new Ke(160,160,160)},nt=P.div`
1
+ import{aS as F,iH as Y,gZ as Ie,e$ as Je,iI as we,aa as Le,iJ as Me,cQ as Ve,cR as Pe,V as a,ae as _e,cy as Fe,cz as $e,cA as Ne,aT as Re,iK as ze,iL as Ue,O as ye,ab as re,iM as pe,iN as Be,cU as We,X as qe,h2 as fe,u as Z,p as He,x as Ke,iO as Qe,iP as Ge,iQ as Xe,o as w}from"./index-DmJDLobC.js";import{a as y}from"./sentry-L3H0lnBS.js";import{n as P}from"./mui-Bgk_7_3h.js";import{H0 as Ye,H1 as Ze,bI as et}from"./zeni-epic-state-B9Z2lD6g.js";import{l as tt,a as lt,s as at,r as st}from"./ScheduleSequenceTable-js9_P_Lo-CzCZ3H3Q.js";import"./liveblocks-D1Gf9COF.js";import"./core-BBKQkJb7.js";import"./lottie-B-DVrXwa.js";import"./recharts-DQ94kkTy.js";import"./analytics-BSh5cBTM.js";import"./lexical-CC2d_kE2.js";import"./utils-WSIc2RtD.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]="38263637-30cb-49d6-b790-51bfa01f09fe",e._sentryDebugIdIdentifier="sentry-dbid-38263637-30cb-49d6-b790-51bfa01f09fe")}catch{}})();const z={labelWidth:new Ke(160,160,160)},nt=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{X as T,y as K,V as t,iR as oe,dU as ne,N as re,iS as ye,ea as we,fH as be,w as I,O as N,iT as $e,iQ as je,o as i,x as j,p as S,n as Se,ac as q,ab as se,e1 as ke,cy as ve,cA as De,cU as ee,eT as te,cZ as Ce,iU as G,iV as Me,b5 as ze,iW as Ee,cC as Oe,iX as Le,u as p,an as z,bb as Ie,cz as Te,aq as ge,f0 as Ae,b3 as ae,eM as Fe,aT as Ve,iY as F,gE as Je,aQ as Be,iZ as Pe,aX as Z,da as Re,bj as Ne}from"./index-nssLOVFu.js";import{n as o,c as P}from"./mui-BVCBQYdL.js";import{a as D}from"./sentry-Fca4mdIl.js";import{bh as U,H2 as We}from"./zeni-epic-state-BZv12Eez.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]="172465f5-d135-4506-bc16-21136f33702d",e._sentryDebugIdIdentifier="sentry-dbid-172465f5-d135-4506-bc16-21136f33702d")}catch{}})();const W=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:C},common:de}=N.getLocalizedStrings();function He({defaultValue:e,name:l,placeholder:r,alignLeft:n=!1,style:m,isDisabled:d,registerOptions:s,onSaveClick:c,onCancelClick:b}){const[y,u]=D.useState(!1),{control:f,formState:{errors:x},setValue:g}=ee(),k=()=>{$||(c(),u(!1))},w=()=>{b(),u(!1)},$=te(x,l),E=T(),a=K();return t.jsx(ge,{onClickAway:()=>{u(!1)},children:t.jsx(Ke,{style:m,isDisabled:d!=null,windowSize:E,onClick:()=>{!y&&d==null&&u(!0)},children:t.jsx(Ae,{name:W(l,"dayOfMonth"),control:f,rules:{...s},render:()=>t.jsxs(Ze,{children:[t.jsx(Ye,{placeholder:r,defaultValue:e,isDisabled:d}),y?t.jsxs(Ge,{alignLeft:n===!0,children:[t.jsx(it,{}),t.jsxs(ce,{isSelected:e.type==="day",children:[t.jsxs(tt,{isError:e.type==="day"&&$,children:[t.jsx(ae,{label:{label:C.pickDate},radioField:{id:"day",name:W(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&$?S.important:"inherit"}}),t.jsx(Fe,{name:W(l,"dayOfMonth"),type:"number",placeholder:C.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:h=>{h.key!=="Backspace"&&isNaN(parseInt(h.key))&&h.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&$?S.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Xe,{isSelected:e.type==="day",children:C.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:h=>{g(`${l}.dayOfMonth`,h),g(`${l}.type`,"day")}})]}),t.jsx(lt,{}),t.jsx(ce,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ae,{label:{label:C.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:W(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&$?S.important:"inherit"}})}),t.jsx(Ve,{primaryBtn:{label:de.footer.save,onClick:k,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:de.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Ye({placeholder:e,defaultValue:l,isDisabled:r}){return t.jsxs(Ue,{isDisabled:r!=null,children:[l?.type==null?t.jsx(Qe,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(ue,{children:[t.jsx(H,{children:C.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(H,{children:C.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(ue,{children:[t.jsx(H,{children:C.daysOfMonth.lastDayOfMonth}),t.jsx(H,{children:C.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:l}){return t.jsxs(et,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(r=>{const n=r+1;return t.jsx(_,{isSelected:n===e,onClick:()=>l(We(n)),children:n},n)})}),t.jsx(Y,{children:[...Array(7).keys()].map(r=>{const n=r+8;return t.jsx(_,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(Y,{children:[...Array(7).keys()].map(r=>{const n=r+15;return t.jsx(_,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(Y,{children:[...Array(7).keys()].map(r=>{const n=r+22;return t.jsx(_,{isSelected:n===e,onClick:()=>l(n),children:n},n)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ze=o.div`
1
+ import{X as T,y as K,V as t,iR as oe,dU as ne,N as re,iS as ye,ea as we,fH as be,w as I,O as N,iT as $e,iQ as je,o as i,x as j,p as S,n as Se,ac as q,ab as se,e1 as ke,cy as ve,cA as De,cU as ee,eT as te,cZ as Ce,iU as G,iV as Me,b5 as ze,iW as Ee,cC as Oe,iX as Le,u as p,an as z,bb as Ie,cz as Te,aq as ge,f0 as Ae,b3 as ae,eM as Fe,aT as Ve,iY as F,gE as Je,aQ as Be,iZ as Pe,aX as Z,da as Re,bj as Ne}from"./index-DmJDLobC.js";import{n as o,c as P}from"./mui-Bgk_7_3h.js";import{a as D}from"./sentry-L3H0lnBS.js";import{bh as U,H2 as We}from"./zeni-epic-state-B9Z2lD6g.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]="172465f5-d135-4506-bc16-21136f33702d",e._sentryDebugIdIdentifier="sentry-dbid-172465f5-d135-4506-bc16-21136f33702d")}catch{}})();const W=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:C},common:de}=N.getLocalizedStrings();function He({defaultValue:e,name:l,placeholder:r,alignLeft:n=!1,style:m,isDisabled:d,registerOptions:s,onSaveClick:c,onCancelClick:b}){const[y,u]=D.useState(!1),{control:f,formState:{errors:x},setValue:g}=ee(),k=()=>{$||(c(),u(!1))},w=()=>{b(),u(!1)},$=te(x,l),E=T(),a=K();return t.jsx(ge,{onClickAway:()=>{u(!1)},children:t.jsx(Ke,{style:m,isDisabled:d!=null,windowSize:E,onClick:()=>{!y&&d==null&&u(!0)},children:t.jsx(Ae,{name:W(l,"dayOfMonth"),control:f,rules:{...s},render:()=>t.jsxs(Ze,{children:[t.jsx(Ye,{placeholder:r,defaultValue:e,isDisabled:d}),y?t.jsxs(Ge,{alignLeft:n===!0,children:[t.jsx(it,{}),t.jsxs(ce,{isSelected:e.type==="day",children:[t.jsxs(tt,{isError:e.type==="day"&&$,children:[t.jsx(ae,{label:{label:C.pickDate},radioField:{id:"day",name:W(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&$?S.important:"inherit"}}),t.jsx(Fe,{name:W(l,"dayOfMonth"),type:"number",placeholder:C.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:h=>{h.key!=="Backspace"&&isNaN(parseInt(h.key))&&h.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&$?S.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Xe,{isSelected:e.type==="day",children:C.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:h=>{g(`${l}.dayOfMonth`,h),g(`${l}.type`,"day")}})]}),t.jsx(lt,{}),t.jsx(ce,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ae,{label:{label:C.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:W(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&$?S.important:"inherit"}})}),t.jsx(Ve,{primaryBtn:{label:de.footer.save,onClick:k,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:de.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Ye({placeholder:e,defaultValue:l,isDisabled:r}){return t.jsxs(Ue,{isDisabled:r!=null,children:[l?.type==null?t.jsx(Qe,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(ue,{children:[t.jsx(H,{children:C.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(H,{children:C.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(ue,{children:[t.jsx(H,{children:C.daysOfMonth.lastDayOfMonth}),t.jsx(H,{children:C.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:l}){return t.jsxs(et,{children:[t.jsx(Y,{children:[...Array(7).keys()].map(r=>{const n=r+1;return t.jsx(_,{isSelected:n===e,onClick:()=>l(We(n)),children:n},n)})}),t.jsx(Y,{children:[...Array(7).keys()].map(r=>{const n=r+8;return t.jsx(_,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(Y,{children:[...Array(7).keys()].map(r=>{const n=r+15;return t.jsx(_,{isSelected:n===e,onClick:()=>l(n),children:n},n)})}),t.jsx(Y,{children:[...Array(7).keys()].map(r=>{const n=r+22;return t.jsx(_,{isSelected:n===e,onClick:()=>l(n),children:n},n)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ze=o.div`
2
2
  position: relative;
3
3
  `,Ue=o.div`
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{EQ as Xf,ER as Lt,ES as Qf,iP as ot,hx as ql,iR as Ye,hu as eh,hB as Ll,ET as Pa,hD as th,hE as rh,EU as Gt,EV as kt,h1 as nh,EW as xr,EX as ta,cP as ih,f3 as ra,f0 as Ir,f8 as rt,f6 as oh,EY as kl,EZ as Nl,hS as ah,hP as sh,E_ as uh,i1 as ch,hY as ja,hV as lh,hK as fh,E$ as hh,dK as dh,cV as ph,j1 as Dl,F0 as mh,bI as Tr,hH as xa,hM as gh,pC as Ml,iQ as qr,F1 as Ne,id as na,F2 as yh,j7 as vh,B as Re,F3 as ia,F4 as bh,g_ as wh,F5 as Eh,F6 as Fl,F7 as Sh,oa as qa,nH as _h,F8 as Rh,nN as Zr,F9 as Oh,nP as Th,Fa as Ze,nE as Ih,cC as Ah,iU as Ul,iV as Bl,iT as oa,iS as aa,iW as Ch,Fb as Ph,od as jh,Fc as xh,nW as qh,o7 as Lh,Fd as kh,n_ as Nh,Fe as Dh,Ff as _t,Fg as sa,Fh as Mh,Fi as Fh,mI as Uh,mO as $l,Fj as Vl,gv as Bh,DW as Gl,Fk as $h,DQ as Vh,Fl as Gh,Fm as Hh,mR as zh,Fn as Zh,D$ as Wh,DP as Yh,r7 as Hl,Fo as Wr,Fp as zl,AZ as ua,AL as Jh,B0 as Zl,AO as Kh,Fq as Xh,AT as Qh,AF as ed,AI as td,Fr as rd,B4 as nd,AW as id,c3 as od,bd as ad,Fs as sd,Ft as ft,Fu as ud,Fv as cd,Fw as ld,i5 as Ko,ba as fd}from"./zeni-epic-state-BZv12Eez.js";import{j as N}from"./liveblocks-offUbtxr.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-Fca4mdIl.js";import{g as dd,y as dt,X as Lr,h as pd,i as pe,j as be,k as md,l as gd,x as Pe,m as kr,q as yd,R as Je,O as Nt,r as pt,s as at,L as Nr,o as tt,C as vd,t as bd,v as nt,W as ca,A as it,B as wd,D as Ed,u as Yr,E as Sd,F as Jl,G as _d,H as Kl,U as Xl,I as Xo,J as Rd,Z as Od,K as Td,P as Ql,Q as Id,S as Ad,T as Cd,Y as Pd,_ as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md,a6 as Fd}from"./index-nssLOVFu.js";import{f as Ud}from"./analyticsHelper-Bnej6boJ.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-DTlL91ob.js";import{D as Dr,n as Te,S as mt}from"./mui-BVCBQYdL.js";import{a as ve,b as Bd,c as $d,d as Vd,e as fa,f as Gd,g as Hd,h as zd,i as gt,j as Zd,k as xt,l as Mr,m as Wd,n as Dt,o as Yd}from"./utils-Cgs4R-d4.js";import{r as ha}from"./empty-DTLC6acq.js";import{r as Jd,a as Kd,b as Xd,c as Qd}from"./constants-BcG8RJNm.js";import{r as Mt,a as ep}from"./index-CXoFWELS.js";import{r as tp}from"./index-DivE10Xm.js";import"./lottie-Cqel28AC.js";import"./recharts-DAsNs3BU.js";import"./analytics-B3XlZNQ8.js";import"./lexical-CoKvBbaA.js";import"./url-DkjikAwv.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]="0be3e8ba-c92d-4f8a-a99d-da8e86300a0f",e._sentryDebugIdIdentifier="sentry-dbid-0be3e8ba-c92d-4f8a-a99d-da8e86300a0f")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},rp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function np(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function ip(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const op=ge(ip,np)(yd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pd(),pe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(!0),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:rp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(md,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(gd,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(op,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},ap=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},sp=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function up(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const cp={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??cp.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const lp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(fp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,fp=Te.div`
1
+ import{EQ as Xf,ER as Lt,ES as Qf,iP as ot,hx as ql,iR as Ye,hu as eh,hB as Ll,ET as Pa,hD as th,hE as rh,EU as Gt,EV as kt,h1 as nh,EW as xr,EX as ta,cP as ih,f3 as ra,f0 as Ir,f8 as rt,f6 as oh,EY as kl,EZ as Nl,hS as ah,hP as sh,E_ as uh,i1 as ch,hY as ja,hV as lh,hK as fh,E$ as hh,dK as dh,cV as ph,j1 as Dl,F0 as mh,bI as Tr,hH as xa,hM as gh,pC as Ml,iQ as qr,F1 as Ne,id as na,F2 as yh,j7 as vh,B as Re,F3 as ia,F4 as bh,g_ as wh,F5 as Eh,F6 as Fl,F7 as Sh,oa as qa,nH as _h,F8 as Rh,nN as Zr,F9 as Oh,nP as Th,Fa as Ze,nE as Ih,cC as Ah,iU as Ul,iV as Bl,iT as oa,iS as aa,iW as Ch,Fb as Ph,od as jh,Fc as xh,nW as qh,o7 as Lh,Fd as kh,n_ as Nh,Fe as Dh,Ff as _t,Fg as sa,Fh as Mh,Fi as Fh,mI as Uh,mO as $l,Fj as Vl,gv as Bh,DW as Gl,Fk as $h,DQ as Vh,Fl as Gh,Fm as Hh,mR as zh,Fn as Zh,D$ as Wh,DP as Yh,r7 as Hl,Fo as Wr,Fp as zl,AZ as ua,AL as Jh,B0 as Zl,AO as Kh,Fq as Xh,AT as Qh,AF as ed,AI as td,Fr as rd,B4 as nd,AW as id,c3 as od,bd as ad,Fs as sd,Ft as ft,Fu as ud,Fv as cd,Fw as ld,i5 as Ko,ba as fd}from"./zeni-epic-state-B9Z2lD6g.js";import{j as N}from"./liveblocks-D1Gf9COF.js";import{a as Y,p as X,d as Wl,c as Yl,g as hd}from"./sentry-L3H0lnBS.js";import{g as dd,y as dt,X as Lr,h as pd,i as pe,j as be,k as md,l as gd,x as Pe,m as kr,q as yd,R as Je,O as Nt,r as pt,s as at,L as Nr,o as tt,C as vd,t as bd,v as nt,W as ca,A as it,B as wd,D as Ed,u as Yr,E as Sd,F as Jl,G as _d,H as Kl,U as Xl,I as Xo,J as Rd,Z as Od,K as Td,P as Ql,Q as Id,S as Ad,T as Cd,Y as Pd,_ as jd,$ as xd,a0 as qd,a1 as Ld,a2 as kd,a3 as Nd,a4 as Dd,a5 as Md,a6 as Fd}from"./index-DmJDLobC.js";import{f as Ud}from"./analyticsHelper-DOE_CVQ_.js";import{n as ef,i as me,m as Ee,o as je,g as re,h as ge,N as Pt,R as Ve,k as se,u as la,j as Qo}from"./core-BBKQkJb7.js";import{D as Dr,n as Te,S as mt}from"./mui-Bgk_7_3h.js";import{a as ve,b as Bd,c as $d,d as Vd,e as fa,f as Gd,g as Hd,h as zd,i as gt,j as Zd,k as xt,l as Mr,m as Wd,n as Dt,o as Yd}from"./utils-WSIc2RtD.js";import{r as ha}from"./empty-BAhHXN-J.js";import{r as Jd,a as Kd,b as Xd,c as Qd}from"./constants-Ca2l-eSK.js";import{r as Mt,a as ep}from"./index-CbQy18LL.js";import{r as tp}from"./index-D1n9iNXR.js";import"./lottie-B-DVrXwa.js";import"./recharts-DQ94kkTy.js";import"./analytics-BSh5cBTM.js";import"./lexical-CC2d_kE2.js";import"./url-CVUNFFPg.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]="0be3e8ba-c92d-4f8a-a99d-da8e86300a0f",e._sentryDebugIdIdentifier="sentry-dbid-0be3e8ba-c92d-4f8a-a99d-da8e86300a0f")}catch{}})();const st=()=>{const[e,n]=ef(),[a,o]=Y.useState(),i=Y.useRef(!1);return Y.useEffect(()=>{if(i.current===!0||!(e.has("thread_id")||e.has("entity_type")||e.has("company_id")))return;const r=dd(e);r!=null&&o(r);const s=new URLSearchParams(e);s.delete("thread_id"),s.delete("entity_type"),s.delete("company_id"),n(s,{replace:!0}),i.current=!0},[e,n]),a},rp={overlayWidth:new Pe(100,100,50)},{common:{strings:La}}=Nt.getLocalizedStrings();function np(e,n){return{headerActions:{onTabChange:a=>{const o=at(a),i=pt(a);pe.trackCockpitTabClicked(i),n.navigate(`../../${o}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,o)=>{e(Gt({uiState:{filterText:o}}))},onFiltersChange:(a,o)=>{o.categories!=null&&o.categoryCombinationOperator!=null&&pe.trackHealthMonitorFiltersApplied({filterSelection:{condition:o.categories.map(i=>i.matchingOperator).join(La.comma),logic:o.categoryCombinationOperator,parameter:o.categories.map(i=>i.field).join(La.comma)}}),e(Gt({uiState:{filters:o}}))}}},healthPageActions:{onRowClick:a=>{e(Ll(a))},onColumnSortConfigChanged:(a,o)=>{e(Gt({uiState:{sortKey:a,sortOrder:o}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(ql())},onFiltersChange:a=>{e(Gt({uiState:{filters:a}}))}}}}function ip(e,n){return{headerData:{selectedTabOption:Je("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const op=ge(ip,np)(yd);function Jr({isDrawerOpen:e}){const n=me(),a=Ee(),o=dt(),i=Lr(),{companyId:t}=je(),[r,s]=ef(),[d,c]=Y.useState(!1),h=st(),f=re(m=>Xf(m)),l=re(m=>Lt(m)),{additionalChurnFactors:b}=re(m=>Qf(m)),{selectedCompanyDetail:p,selectedCompanyId:y,localFormDataAndStatusByCompanyId:g}=f,u=re(m=>m.companyViewState.zeniUsers.fetchState),v=re(m=>m.companyHealthMetricConfigViewState);if(Y.useEffect(()=>{const m=E=>E==="Not-Started"||E==="Error";f.fetchState==="Completed"?a(ot(!1)):m(f.fetchState)&&(a(ql()),m(u)&&a(Ye()),m(v.fetchState)&&a(eh()))},[f.fetchState,v.fetchState]),Y.useEffect(()=>{t!=null&&f.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Ll(t)),p!=null&&(pd(),pe.trackCockpitHealthMonitorNotificationAlertClicked({companyId:p.companyInfo.companyId,companyName:p.companyInfo.name,churnProbability:p.companyHealthMetric.churnProbabilityPercentage??null}),c(!0),r.delete("utm_source"),s(r)))},[f.fetchState,p?.companyInfo.companyId,p?.companyInfo.name]),be.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return N.jsxs(N.Fragment,{children:[e===!0||y!=null&&p!=null?N.jsx(Dr,{anchor:"right",open:y!=null,PaperProps:{style:{width:rp.overlayWidth.valuePercentage(i),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:o.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Pa()),children:N.jsx(md,{roomId:`cockpit_${y}`,autoConnect:!0,children:N.jsx(gd,{onSaveClick:()=>{y!=null&&a(rh(y))},onSaveChangesToLocalStore:m=>{f.selectedCompanyId!=null&&a(th({companyId:f.selectedCompanyId,updatedLocalData:m}))},localData:g?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:f,onCloseDrawer:()=>a(Pa()),analytics:pe,urlSource:d,additionalChurnFactorsOptions:b})})}):null,N.jsx(op,{initialOpenThreadRequest:h??void 0,healthView:f,managementView:l,navigate:n,mixpanelHMUrl:kr.mixpanelHMUrl})]})}const tf=(e,n)=>{const a=[...e??[]];return a.push(n),a},ap=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},sp=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},le=({state:e,element:n})=>be.isSignedIn()===!0?N.jsx(N.Fragment,{children:n}):N.jsx(Pt,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function up(){return N.jsxs(Ve,{children:[N.jsx(se,{path:"/companies/:companyId",element:N.jsx(le,{element:N.jsx(Jr,{isDrawerOpen:!0})})}),N.jsx(se,{path:"/",element:N.jsx(le,{element:N.jsx(Jr,{})})}),N.jsx(se,{path:"/*",element:N.jsx(le,{element:N.jsx(Jr,{})})})]})}const cp={drawerLeftMargin:new Pe(0,0,240)};function Ft(e){const{isOpen:n,drawerLeftMargin:a,children:o,onClose:i}=e,t=Lr(),r=a?.valuePx(t)??cp.drawerLeftMargin.valuePx(t),s=dt();return N.jsx(Dr,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:i,children:o})}const lp=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?N.jsx(fp,{children:N.jsx(Nr,{size:"ExtraLarge",start:!0})}):null,fp=Te.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;