@zeniai/web-cockpit-ui 1.14.60-qa → 1.14.61-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.
- package/dist/assets/{ACHDetailsPage-CMtJmLWB-DufQTQrW.js → ACHDetailsPage-DRTKGZRg-QbkUudLU.js} +1 -1
- package/dist/assets/{AIPerformancePage-B4K4X8Cn-BGJDmmSs.js → AIPerformancePage-BiJJjrhT-Cob0Krvt.js} +1 -1
- package/dist/assets/{AccountInfoPage-g8J8r2CO-CDLJ3CcM.js → AccountInfoPage-vGRLLjSJ-CRwZkbUY.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BTkkbk49-Dp9zNAHz.js → AccountInfoPageContent-97TAUxBk-D4bWcKct.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-B1gvhmCC-5CwfRV_A.js → AccountLockedInfoModal-CkxVn3nI-DwyCv7lx.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BA3wJm2M-BHXn2h7U.js → AccountReconDetailsDrawerPage-CTU_OscW-BCXYktG1.js} +1 -1
- package/dist/assets/{AccountRow-BwLd4zoq-ZDzzlrC7.js → AccountRow-B2VWoEkH-ByxmU3Bt.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-7iMhZxTm-B05wr1hu.js → AccountsPromoCardStack-D8NIRk_P-D70tG8Aa.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CKdlqnIU-DZaG36zo.js → AddAddressForCardDrawer-C6N0d3LK-CPegtJDN.js} +1 -1
- package/dist/assets/{AddToWalletPage-CZ7I0vFD-B9QfA2i7.js → AddToWalletPage-SSr5sRrt-DiJ9WtS2.js} +1 -1
- package/dist/assets/{AgingReportsPage-AIa3Cz-h-TUAOLU8v.js → AgingReportsPage-fTLucZvY-DnKQ48vG.js} +1 -1
- package/dist/assets/{AllUserItems-DhY8SHjT-BBOWANm6.js → AllUserItems-BBtoXNrS-v1jyMp4A.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-Ckw9fZle-CV-rlBEt.js → ApAgingDetailPage-De7fdEYM-8k569hFA.js} +1 -1
- package/dist/assets/{AppBasePage-C1hmvWyj-Bqxe2LIw.js → AppBasePage-COIvXPv--NF7xV7xI.js} +1 -1
- package/dist/assets/{AppDrawerContent-DiNGglLb-nYA2BDki.js → AppDrawerContent-DPN9fgfF-D4jpUrAe.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-CzWAjh1M-D6nBZP2N.js → ApprovalRulesSettingsPage-DouiWyKl-CEEq_Vm6.js} +1 -1
- package/dist/assets/{ArAgingChart-DrNoSF9D-BMHcmd6x.js → ArAgingChart-DmgIO4SI-CCEDFcLT.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-b2PAWlZI-vRPeYNa9.js → ArAgingDetailPage-BcRw1SMk-CSG9MPSI.js} +1 -1
- package/dist/assets/{AttachmentView-BHnVquLu-6hZ55twC.js → AttachmentView-Dvac1N-l-Ct4TLIoD.js} +1 -1
- package/dist/assets/{BankAccountSection-FoTrxLuO-BqORj6XR.js → BankAccountSection-BsXTBaXq-CuiD9KLK.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CESdMQAp-Dvr6IBQT.js → BankAccountWarningSection-D-HBbAL2-DCpeghKs.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BbgFwEOu-CI-sjhMe.js → BankConnectionsSettingsPage-D0Y6qZ_2-DbN-Moy8.js} +1 -1
- package/dist/assets/{BillDetailPage-BUMvIc_J-DH-orRQg.js → BillDetailPage-dx30mbdz-B2GKf5Qz.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CmTYtfyR-BD7oLrOg.js → BillPayApprovalRuleDetailPage-Dw8W_Luw-6REXzb3H.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B324GvTg-D0U7LzE6.js → BillPayApprovalRulesPage-D_4JPSqH-BOrOF31w.js} +1 -1
- package/dist/assets/{BillPayPromoPage-C9d-WjPg-C57VPMAK.js → BillPayPromoPage-C9GnqQma-DpBOB7Bo.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BGuFqMMd-BgQjW6z_.js → BillPaySetUpPage-DcOcEzGu-flrCw1AA.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CF682rr6-D0Pbh6y3.js → BillingSettingsPage-1DO-gpJ3-VtOGofjm.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-ByQlaRw8-CpVP7Bo9.js → BillsBulkReviewDrawerPage-D2_xZy5W-p6szfuBj.js} +1 -1
- package/dist/assets/{BoxItem-T-wRQ6H--CXeEcx6r.js → BoxItem-DCpL-Qsv-VISaQtNr.js} +1 -1
- package/dist/assets/BusinessVerificationPage-BbF4Vnda-CcBwNKHx.js +138 -0
- package/dist/assets/{CardNumberSubText-BjKu7YKY-jR-gP-EZ.js → CardNumberSubText-CPjMRY-i-BnZZjfBd.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DtSnBiJ8-ZJXHgARm.js → CashbackDetailPage-DRs48lki-BldQdW75.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-C2a33ffW-BPlobT4a.js → ChargeCardDetailPage-DyukbgmU-Db50OKLx.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BLnfVs2i-BYYQsrhu.js → ChargeCardListPage-FW6iIwGV-DGzfJYxm.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DOhn3tAQ-C29o3Bmc.js → ChargeCardListTable-Di_JUGvM-BL58u9To.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DJPvD2XN-UgTcQjN9.js → ChargeCardPromoPage-V5I32kB7-BVAKIAqJ.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-BrLtSKZL-DYRwZUoG.js → ChargeCardSetupPage-bCTtavZY-BoeXpKWo.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CVNsePU1-DaKopCj3.js → ChargeCardStatementsPage-taKmW351-eLzF145p.js} +1 -1
- package/dist/assets/{ChargeCardUtils-DJmy0Cev-DpywgBWY.js → ChargeCardUtils-CuCE8WUR-DNJas3Pu.js} +1 -1
- package/dist/assets/{ChaseOverlay-rri8XLPh-Ce609WI1.js → ChaseOverlay-CxZiC1U_-z2MQXKrY.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BbVV-iey-CjNbfTfO.js → CheckDepositDrawerPage-apQH1q1L-DKyFVVf-.js} +1 -1
- package/dist/assets/{CollapsableReportTable-C1EUOKF0-BNL-lwFO.js → CollapsableReportTable-DBbtedVp-BGENwkQK.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Dgb-zu3S-Coo-VoVI.js → CompanyOfficerDetailsSection-DlrJ7APF-58sMSXCv.js} +1 -1
- package/dist/assets/{CompanyPassportCard-CzrOdaKP-BLsdx4RO.js → CompanyPassportCard-CSXq3o27-BP_cp5a1.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DflzhkM3-DiFUsOgP.js → CompanyPassportPage-Do_5vOYt-BSMeY0z4.js} +1 -1
- package/dist/assets/{CompleteProfile-C3oZl1r8-CgtY9yON.js → CompleteProfile-Obmdzvii-D3oUeeHu.js} +1 -1
- package/dist/assets/{ConfettiBurst-BEsxeRGY-NQZmqBo9.js → ConfettiBurst-DJ042kFU-DPw6t_M8.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-B_-4ElTt-DNsq3bMV.js → CreateOrEditVendorPage-BFvLEKuD-DSN51I--.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BGQ6V3r7-CIMSA6fH.js → CreditCardPaymentDrawerPage-DjUsTinZ-CGFW1HjR.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-DhdW49G9-ARxRUbiI.js → CreditCardPaymentPlgSection-aSz8bfzl-CvtLlfud.js} +1 -1
- package/dist/assets/{CurrencySelectField-gfHhmXUP-sgeYQo3A.js → CurrencySelectField-Bwc9lmJi-CjjAdWyi.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BUxy6VWQ-BTh1ko--.js → CustomerOnboardingActivationPage-DRV0g2L1-C5TTZb3y.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BYR2xHSk-D9IJoj6E.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CE6fU0CC-DGUSU9Qb.js → CustomerOnboardingDetailPageSkeleton-CE_5Hnb9-BEGT_j-O.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-lYXlJE6O-CTDL4dkj.js → CustomerOnboardingNoStepsPage-CXtEfJVc-BTXX0Zlv.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-BOxVLi_7-CxBKz-tb.js → CustomerOnboardingPage-BzBZ9Qpg-DZLLxSJW.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-tFWnWf80-BO1DZhCb.js → CustomerOnboardingProductSuitePage-B07wnsTN-CNwPZLdN.js} +1 -1
- package/dist/assets/{Dashboard-CFylpdvX-BO1rfT4j.js → Dashboard-Dj1cTLEk-B8Q_ufiX.js} +262 -262
- package/dist/assets/{DashboardReportPage-CVX19wiC-CebE1nks.js → DashboardReportPage-DyVFKDvv-Cas95L4b.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-DUDUA9AZ-D-zpYINh.js → DashboardSidebarBackgroundAnimation-DNj32SjF-BSxg3L3_.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CxfgDISi-44BRhsYv.js → DepositAccTransactionItem-XKpj9eEZ-DF1nnEyp.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DRqc04U8-CE1VC7HT.js → DepositAccTransactionListPage-BFTtix6Q--kU_Y3eH.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C6bslILa-BQEqN4Se.js → DomesticWireDetailsPage-CLKK8sNe-BwGSz_kD.js} +1 -1
- package/dist/assets/{DownloadOverlay-DA4eiUda--qrkecKD.js → DownloadOverlay-B4GX4TFb-DpCeCVBA.js} +1 -1
- package/dist/assets/{DrawerPage-CSD0D3x1-1v_n4sH_.js → DrawerPage-DgPyM_vI-DzQngNI3.js} +1 -1
- package/dist/assets/{EditPeoplePage-GdNNwE7E-Bj0gM6YA.js → EditPeoplePage-DSjAt1nK-C0t1E7c9.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-rwql32yU-C1JgYIYI.js → EditReimbursementDetailPage-Cs1Au5CN-B1N1fUSH.js} +1 -1
- package/dist/assets/{EntityDetailPage-D8H8sU7_-BKfugH_5.js → EntityDetailPage-D-4lZ0Qr-Bc3-OnQV.js} +1 -1
- package/dist/assets/{EntitySummarySection-Dxz5sy7--DiMkjhXV.js → EntitySummarySection-Q7GVe951-rrtgcCD0.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CsQp9uKU-CQzTcRJH.js → ExpenseAutomationOverviewPage-BmCkHHAt-CJVYVY9i.js} +24 -24
- package/dist/assets/{ExpenseAutomationPage-DBKdtY0f-BkFMwu1n.js → ExpenseAutomationPage-CefPPbut-CccftClp.js} +1 -1
- package/dist/assets/{ExpressPayPage-gRjIRDdU-C1wPwf-b.js → ExpressPayPage-DFg_BAq9-DLfi_6yy.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BPoobhW5-BNut5LE3.js → FeaturePreviewPage-C9cuVphN-ynUlG36T.js} +1 -1
- package/dist/assets/{FollowStepsSection-DL-HmGt4-C9a7p1zc.js → FollowStepsSection-DYyRp5PN-CeZ5yfyW.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BwayoUqk-zNgij7XG.js → GlobalReviewListPage-BeHSST5R-BWL2N0mX.js} +1 -1
- package/dist/assets/{HelpButton-DHSxcuGA-BWZnqsL1.js → HelpButton-D15CWyoU-D2RNsBLz.js} +1 -1
- package/dist/assets/{InformationCardStack-CQrbuPaI-DD7lHSUO.js → InformationCardStack-rUHWngrM-he738NkA.js} +1 -1
- package/dist/assets/{InsightsCardStack--Yd4NJyO-BuOs653N.js → InsightsCardStack-CFJ4Jvat-B-ox6Atv.js} +1 -1
- package/dist/assets/{InsightsSection-RhbVJwLe-DAe2Ld9i.js → InsightsSection-DID-lCow-DkB8Gyxt.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-TuhwrYKO-dvnT80Dt.js → IntegrationsSettingsPage-Dr-ydIs2-yv45Gb1-.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DUbugoej-BMHbf8S7.js → InternationalWireSwiftDetailsPage-CaPXbVZ8-B_64DxaV.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-9iKYrH3T-CXMChPWn.js → InternationalWireVerificationPage-s6Zgl1Hf-CoBKjy9v.js} +1 -1
- package/dist/assets/{InviteFormPage-BFt8joSd-DiMwTEIt.js → InviteFormPage-usETKZTN-C_xLr_8Z.js} +1 -1
- package/dist/assets/{InvitePageListView-BL430ipu-B4gviswJ.js → InvitePageListView-B1cv1VUM-CM5I2J5o.js} +1 -1
- package/dist/assets/{InvitePeoplePage-zZKd7NJ2-DQg8k2k1.js → InvitePeoplePage-Bd35FUiF-BJrUUsbz.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-kF1uvItW-C4PGeuCJ.js → InvoiceUploadSection-CEZ4nNnj-MT5bhKG7.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CsjlMV2S-CEdkGzhT.js → IssueChargeCardPage-BFdbMIkR-BxRKfCdZ.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Bz9cBuQ1-B9_4mOjB.js → LabeledAddressValue-BBFgWhG5-uqko4-bP.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DqETahiQ-BC9x39T7.js → LabeledAddressValueField-IiXXbZHV-Nxtbx1fP.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-v1rfkkSG-BObZavW7.js → LabeledControlledCheckBoxField-B4Jzs1P3-CqvHOJTE.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-C12MwmYB-BaqV3sSs.js → LabeledCreatableSingleSelectField-DSYo_hqM-Du6ICaKz.js} +1 -1
- package/dist/assets/{LabeledDocumentField-C-VgKiqN-Czu-AYcW.js → LabeledDocumentField-BL3SiwZn-BYLAv-bv.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CTTY6aaV-DjzAdVnl.js → LabeledDropDownFormattedTextField-D0-BQcsg-DHekyXda.js} +1 -1
- package/dist/assets/{LabeledText-D-L9n7c9-BFHVyn0b.js → LabeledText-BnxMOmt2-B7-XWWm6.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DL77o5I--18aBl5Eb.js → LabeledUserSingleSelectWithSubtitlesField-Cam-U7V6-0xrR7HZn.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CkfPFUqd-oBon4BIk.js → LabeledZeniRolesDropDownField-D6qcibh_-0xBfeHve.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-34_mfubF-CUsmKesx.js → LinkJETransactionPage-DbgShBVx-hzAjAvpe.js} +1 -1
- package/dist/assets/{LockCardPage-CXs-4wlr-desKVP17.js → LockCardPage-Cxo2om5_-CKHN2OvU.js} +1 -1
- package/dist/assets/{LowBalancePopup-BoD3u5NM-PiOYTtaJ.js → LowBalancePopup-BkgfL9m6-BKolyB9M.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-DePsU3gl-F30KOfI1.js → MagicLinkACHDetailsPage-B8wcch8z-YieoMEWp.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B0yVENRv-piusdIak.js → MagicLinkDomesticWireDetailsPage-CHAb9ZFh-Z1iu3Mw2.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-ytzbIbXw-9_gIHnA6.js → MagicLinkInternationalWireDetailsPage-Nq-r1QYD-COMCILna.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CSvQZH6r-B92L3oYw.js → MagicLinkSuccessPage-D44nl1gY-QhpeRhR0.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Cnrm36NH-7TV-1BiC.js → MagicLinkTitleSection-C2v2uxKO-xXf43PEA.js} +1 -1
- package/dist/assets/{MailingDetailsSection-Dzn5nqaX-Bkn5jBHQ.js → MailingDetailsSection-BwvXwj_0-BQyY09as.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-DiUZr6zF-CdrWRN0c.js → MeetingCalenderPopup-B2BtdHWQ-BMcSB5xW.js} +1 -1
- package/dist/assets/{Menu-DoA95Zgg-B8GzMRyk.js → Menu-BTNO1N-S-DarsFvLf.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-1CPR2Cj5-CRdXV6cE.js → MyBankConnectionsSettingsPage-j_LG9Fpe-8bTaQuEv.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CVAe_sKo-Cs___OmZ.js → MyPendingActivationChargeCardListPage-WZ3ppUZo-Mel9mh-o.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CnBDaKZL-Bq3AQ_z0.js → MyProfileSettingsPage-DI9uhnIs-CN7oxkd2.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Cog2dcVl-Dv8SC5L_.js → NavBarWithPicker-C5fjaG1x-Dtfm0tfi.js} +1 -1
- package/dist/assets/{NavigationArrow-CWZwBLy9-C5dkj6_D.js → NavigationArrow-DDTODvpX-9wzkhdV7.js} +1 -1
- package/dist/assets/{NavigationDots-6Ixjpa6J-CeZVAIRN.js → NavigationDots-tnEUZ7xP-DlkUyxGf.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DPXnZqzi-BhNDxMDh.js → NewGlobalMerchantPage-BPQYmWJ--BC-yalLq.js} +1 -1
- package/dist/assets/{NoDataChart-BkLCPOZ6-DmEAsi9M.js → NoDataChart-DBTNZsVI-BzKcuy7g.js} +1 -1
- package/dist/assets/{NoDataTable-C-orsWSF-yHb287vS.js → NoDataTable-BFlVzpML-BVC1LelS.js} +1 -1
- package/dist/assets/{NotFoundPage-jz8rTMJa-DgC6CHIU.js → NotFoundPage-BasDE0gN-YO01xBj8.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CFs30Z22-QurUjUDW.js → NotificationSettingsPage-7axENLlk-Cwp9iV5B.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BPvFpp5h-a-m6bOnC.js → NotificationsListConfig-y7FmH6TQ-DY4eb9yN.js} +1 -1
- package/dist/assets/{NotificationsPage-BITESfjg-upKSZa3m.js → NotificationsPage-RI6hGPlC-wlBEz8S-.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CIaWVhkG-C-OAXFIK.js → OpExByVendorPage-CGue0TWc-gmTAlmzL.js} +1 -1
- package/dist/assets/{OverlayContainerPage-CU1AAMcq-3EXKmEhu.js → OverlayContainerPage-CU1AAMcq-CT-f74FY.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-IbhECxqR-RdFygmNf.js → PandLWithForecastPage-DnATiuw8-D5GN8PvN.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BFys0cfh-7KTptf4o.js → PaymentAccountSetupBillingAddressSection-Cr96MmoG-BGySQi_b.js} +1 -1
- package/dist/assets/{PeoplePage-Cogb6Wuv-BG2Us4L9.js → PeoplePage-8AcvEzig-BA82hEDH.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-C_NMSzqM-wKnRhIQ2.js → PortfolioAllocationFormPage-Cz8BzeZO-CRD2J1Pv.js} +1 -1
- package/dist/assets/{PortfolioDetails-EDVhj1-e-ZuSCgqZx.js → PortfolioDetails-NRVc1Lc9-DjdlOeVo.js} +1 -1
- package/dist/assets/{ProductsCarousel-CfzrTdFH-IAVdBFFD.js → ProductsCarousel-CRrVr2Rv-DBIa_bg_.js} +1 -1
- package/dist/assets/{PromoBaseCards-JDelrKuJ-BevTB8Ip.js → PromoBaseCards-D-C0emey-B8JISnP7.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Cvpg0V58-DUNtqQT0.js → QBOConnectionDialog-9YDCkzlw-BgSeu02F.js} +1 -1
- package/dist/assets/{QBOSetupSection-DKDJtl_2-BPctqIki.js → QBOSetupSection-rgJXipJM-BAk7UqoW.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DRa1CYuZ-pnB-5An7.js → ReimbursementApprovalRuleDetailPage-oBzjhPEJ-CkbwBD3a.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-_wqSm81c-DjgggwJh.js → ReimbursementApprovalRulesPage-C5IO5W4m-CNVfHRJy.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BTvHvmBX-D3-S1jFm.js → ReimbursementDetailPage-C8DQeaua-BqrEybWY.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DgPJx42_-Ca2Fb5DS.js → ReimbursementPromoPage-cWdwGvJb-Dnq1ZZxH.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Cl348yZJ-BPE9Hoy5.js → ReimbursementSetUpPage-CjPLHA2M-D8yWitLy.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CD-1v386-B0wtbhkt.js → ReimbursementsBulkReviewDrawerPage-CwnJAIis-DdLBhEbc.js} +1 -1
- package/dist/assets/{ReloadCard-BVvfO1lw-DC0Q52Hm.js → ReloadCard-Bo_mLUCB-B4O-SyDj.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-p_eRZlsB-DNe8cwSz.js → ReportTableViewSelector-CcLxXexl-CKFr9bK3.js} +1 -1
- package/dist/assets/{ReportsPage-UcoYOomm-C65WxI5W.js → ReportsPage-BRqtxAbM-DAkhTPE3.js} +1 -1
- package/dist/assets/{RevenueChart-BW6a8XWu-Bw_jr0b6.js → RevenueChart-BMqM38-O-DArnmhOz.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DPxC8SFc-JxntF7Iq.js → ReviewDetailsPage-BeXgVGy_-DLm6FT3b.js} +1 -1
- package/dist/assets/{ReviewOverlay-Bv5Irg0L-BkYNNXiY.js → ReviewOverlay-DBaDP1Pp-C71gH-ox.js} +1 -1
- package/dist/assets/{RoleWithToolTip-Osazfeks-DCHE9_6V.js → RoleWithToolTip-CBBWeNSt-BdFNJyHE.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BEGBiN_c-C_TjdMkm.js → ScheduleDetailsFixedAssetsPage-w5m2s-gk-DEe2meYt.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BWIeHAy7-B3J0Hrt4.js → ScheduleDetailsPage-BjCcNbAn-CdV_0MaV.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-CCK6C4Iy-C4gK-k4-.js → ScheduleSequenceTable-DwBjIGGI-CnLAIxTe.js} +1 -1
- package/dist/assets/{ScreenRoutes-D_07GGCw.js → ScreenRoutes-BTPKwJLL.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DRbmb31r-Bq51bzJC.js → SetUpAccountSection-B5SNk0uE-Bavk2270.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-DbtQYgwc-BVO9cmWh.js → SetUpDefaultSection-CEdPofhe-CgbVxoH_.js} +1 -1
- package/dist/assets/{SignIn-DDUIL7qL-C1zbknqk.js → SignIn-CDL-ObqR-6j1vOaDu.js} +1 -1
- package/dist/assets/{SignInScreen-xj2RG_oe.js → SignInScreen-Bp5NhlB4.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CIPAJ1BF-CTTDJ3LM.js → SpendManagementListViewPage-CA8k5wTt-CzUHjE94.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-gimZmZnB-DEDSLFNg.js → SpendManagementPerTabPage-BuDeB-05-DxK9vSI1.js} +1 -1
- package/dist/assets/{SpendManagementSection-DbEnKD37-CZgqSgVX.js → SpendManagementSection-BiERXt9F-BcKf_bWA.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-BLE0FTOw-CKynjFMX.js → SpendMgmtSetupAccountSection-Baz3sHbZ-C9cP6DRA.js} +1 -1
- package/dist/assets/{StatementItem-_ivyNbtm-BMh1gnhf.js → StatementItem-BQs62QbA-DHZ9OJUY.js} +1 -1
- package/dist/assets/{StatementsPage-P_PaSJNK-C00Xvrzi.js → StatementsPage-C_hWVaO6-CGJMAHHq.js} +1 -1
- package/dist/assets/{StatusSwitcher-CZrLZEsV-BQUFAppu.js → StatusSwitcher-BJFf2Nkh-DzsbHpKF.js} +1 -1
- package/dist/assets/{SubTabSwitcher-ByWS379C-BK7xaIln.js → SubTabSwitcher-BjhIngs3-DwWnoJ-f.js} +1 -1
- package/dist/assets/{SummaryCard-DFB5JUd1-AXpcXHjV.js → SummaryCard-BkRL0ye6-C3iSt0g0.js} +1 -1
- package/dist/assets/{TaskManagementPage-Bp51h7Qf-buTVD3Fj.js → TaskManagementPage-LiP5i_NP-CiGdp52b.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-CVPfQvjp-D4TOPSSO.js → TimeRangeSwitcher-DUj6iFnl-CRs6VjII.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-Cfj1snkW-DixlMb-P.js → TimeframeSwitcher-DjhuUk0r-BnJ74328.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Bebc4mZ3-mGDCVzBY.js → TimeframeSwitcherWithToggle-qS-VH4U7-lA8DXlzT.js} +1 -1
- package/dist/assets/{TopExCard-CV_d5hzX-_qQPbljz.js → TopExCard-Ds0ub5YB-DUxyKKcl.js} +1 -1
- package/dist/assets/{TopExDetailPage-Cq7SRFbp-MuFo1h8Y.js → TopExDetailPage-C1NZZ2fo-MEWuN1WE.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DhjS0VRm-CfFmr-Ml.js → TransactionDetailPage-ScbXmUz9-BMbspBgq.js} +1 -1
- package/dist/assets/{TransactionList-DTcqsbBX-CuiZVxsz.js → TransactionList-uCQJm816-Dhs1FWmE.js} +1 -1
- package/dist/assets/{TransactionListBig-BGSeGI-E-CRtx_CYo.js → TransactionListBig-9_HEm5CO-BTIGh7x0.js} +1 -1
- package/dist/assets/{TransactionListPage-YrVNWthX-CT6iqmFB.js → TransactionListPage-1Zkephm9-D5RM5qcJ.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BeRLL6S1-QNgs3sUm.js → TransactionVendorDetailPage-Bl1XCZGJ-D2qnuKgx.js} +1 -1
- package/dist/assets/{TransferDrawerPage-xSWwONN8-Bi4fzk-H.js → TransferDrawerPage-DPA8KVO6-vDxijZxi.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DoXpiI5l-FieLawVj.js → TreasuryOverviewPage-mPpfPA7Z-D1mzGUb9.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DT46komD-DRJ08iDj.js → TreasuryPromoPage-PiF6acWi-RgCgmTE_.js} +1 -1
- package/dist/assets/TreasurySetupPage-ta9rUN1_-C-EOT_yE.js +144 -0
- package/dist/assets/{TreasuryStatementsPage-Bd5jXQJ6-BGWk-1W2.js → TreasuryStatementsPage-BRE6jD-v-BFia827q.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-Bn0t319k-CzVjWu15.js → TreasuryTaxLetterPage-5oC3f6qJ-DvcLbbKX.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-sQWSirfd-B3KxIxbb.js → TreasuryTransferOrReviewPage-DEo3yKVs-DV8veNpW.js} +1 -1
- package/dist/assets/{TrendChart-DnngoaGI-kvneFiRf.js → TrendChart-B0NeWV-Q-DQPpbrcu.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CSVAwWZG-B0lIYtXX.js → TrendWithTransactions-gjzB97Tt-DvmFmrcw.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DRoVuN8B-A6chnXbs.js → UncategorizedAccountsMappingPage-DnYGTz8z-ctfOEjq4.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-gBerS5Lo-Ch-fQUrw.js → UnitIntegrationPage-CvxupJIq-CbVxZf65.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BbGSc0rv-DT8hhHus.js → UploadAdditionalDocumentOverlay-DUmoex5M-DKbqd7SM.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DdTF16bh-BwGr7l3l.js → Vendor2FAPopup-CebhGkPb-CoFDd5EI.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DppYqvS2-DEpWdj_g.js → VendorACHDetailsPage-4YGo6l5M-BHcSjCdr.js} +1 -1
- package/dist/assets/{VendorDetailPage-DZanWRgZ-DyKdKPXk.js → VendorDetailPage-D06byQE2-Xq5A_i3p.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-CypHVGiD-B_tp4y8t.js → VendorDomesticWireDetailsPage-jRbIT9Kr-C7wYc060.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DjVaMEC7-B7YEorVz.js → VendorFiling1099EditablePage-DxnN_R-C-B3HK2p3-.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-BD3qiOkE-WltMZY5K.js → VendorFirstReviewPage-aZ5f1AbI-DGtTHg2t.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DGCD7pSj-DIdiNE3u.js → VendorInternationalWireDetailsPage-DyFkJUEt-C_U_qGRI.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-cTBSMjI1-ivh3C4r6.js → VendorInternationalWireSwiftDetailsPage-BJLjmJTG-DA4HGPWM.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BbmjtLxL-CqzBxDbv.js → VendorsAccountsSection-CrjEjuBq-CpjgZTqK.js} +1 -1
- package/dist/assets/{VerifyDevice-D_2LpAmp-bxCpau_T.js → VerifyDevice-BzYrDLyF-DfdlqbjX.js} +1 -1
- package/dist/assets/{VideoPlayer-C19SquYF-Do1HF2Iq.js → VideoPlayer-DlAz8P4k-C4veLQbD.js} +1 -1
- package/dist/assets/{VideoPopup-BYi-pZ8z-pFqmhIpM.js → VideoPopup-1jecjRVb-yRogRIhj.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-otaNkmPb-DA-wH8k_.js → WarningsDrawerPage-t0t6HBEt-C64L8EJ4.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CaaJpWIC-DYCoqSob.js → ZeniAccountDetailPage-DRMYlE37-mj-Ao40f.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-DrluYQZ2-CxSUansk.js → ZeniAccountListViewPage-DhYgrHPh-B_eszj6M.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Ctkjc2V5-R8x4dgr4.js → ZeniAccountNavBarPieces-CXK-KO3W-Cl1IFEuu.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-9aI8Hfz9-DhpvFG5i.js → ZeniAccountPromoPage-CoxXYrbJ-CkTCS1ow.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-gCHBWfoD-BrirFpg5.js → ZeniAccountSetupPage-B4G8vJle-DXZSQrSd.js} +1 -1
- package/dist/assets/{ZeniCopyright-DEwETqZx-Xh1OAm4U.js → ZeniCopyright-BurjfYg0-0KFpmyXb.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DwTQpL8f-twAvj5wm.js → ZeniTransferAmountSlider--Ygv3Lhx-XJXffKpg.js} +1 -1
- package/dist/assets/{analyticsHelper-CZsBsQ5Y-C4eAlMZk.js → analyticsHelper-C3CI4FAW-DkHwgGlB.js} +1 -1
- package/dist/assets/{analyticsHelper-BQUL7_j1.js → analyticsHelper-CzfkZ7Am.js} +1 -1
- package/dist/assets/{chartTypes-v6rDvpfo-CwEf2KU_.js → chartTypes-WMAN0IBH-BKlLTV6L.js} +1 -1
- package/dist/assets/{commonDimensions-fd7W42ZQ-IMrtE93m.js → commonDimensions-hj9DIV8r-CXuojSfc.js} +1 -1
- package/dist/assets/{detailCommon-BmFZfzJ0-DFRzzxCh.js → detailCommon-DGcQj4tn-DVKW2YFI.js} +1 -1
- package/dist/assets/{downloadPdf-Dq-pmQ1D-BmXHYOaz.js → downloadPdf-B5Oarutk-DnSwsp-T.js} +1 -1
- package/dist/assets/{index-DpnPgK1j.js → index-CVlrVcg1.js} +35 -35
- package/dist/assets/{mapLoadingInProgressToTreeNode-Opz0Hl1o-U1qR-z5m.js → mapLoadingInProgressToTreeNode-dXbGenu--Bpd1eMMP.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Buw1b32D-XTeNc9_9.js → mapSectionWithAcOnlyToTreeNode-BhMuMA7u-D1AWGiQl.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-DNzI-qNX-D022s8DR.js → mapSpacerToTreeNode-BetfRxYq-ACmWB_Gl.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-qpLQhbq5-D-lJsXzi.js → mapTimeframeBalancesToTreeNode-C4HoGcMZ-BeG3Gb7x.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-9eZANFDj-D4aGK3LV.js → mapTimeframeBalancesToTreeNode-tSFoZ7PC-DAbiO9QW.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BmWHdrva-NsxlU_Y4.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CSYTwkbz-on2wMQVM.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CpC1h4-g-B2F9qpyN.js → toCOABalancesWithID-D4-TzjBp-CbGAAR4M.js} +1 -1
- package/dist/assets/{toChartData-IftQ0lN3-abBzju1Z.js → toChartData-Bp_yJ7Xu-BkoIWr8s.js} +1 -1
- package/dist/assets/{treasuryColorHelper-jY8WJQsk-RT6XAcVf.js → treasuryColorHelper-D6dEtjUK-DYNOj4g5.js} +1 -1
- package/dist/assets/{uploadAttachment-0jQBH4Wu-SEjTDxUD.js → uploadAttachment-DTxp6Nd5-DD9pA2I5.js} +1 -1
- package/dist/assets/{uploadReceipts-9DTOr0BG-CSOfXWAP.js → uploadReceipts-9DTOr0BG-B15rGeOY.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/BusinessVerificationPage-ueN5uvGI-CFi0yTlP.js +0 -138
- package/dist/assets/CustomerOnboardingContainerPage-DbMON4x7-BriViCwh.js +0 -1
- package/dist/assets/TreasurySetupPage-CjqyWJWl-YhuDOKTA.js +0 -144
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ax as At,a9 as Mt,q as Rt,b as Pt,cr as Bt,y as m,F as Ze,l as ie,gr as Nt,gt as Lt,gu as Ot,j as t,cD as ke,cE as Ae,cF as Me,aM as y,bF as Re,bs as _t,dN as Wt,gv as Et,gG as Pe,o as a,gw as Be,fu as b,fw as w,gz as x,aN as Ne,ft as Le,C as F,gB as Oe,aQ as Ft,ap as Kt,gC as Ut,gD as ae,bB as Vt,gE as Yt,A as Gt,O as Ht,H as qt,am as et,b8 as tt,h as K,an as Jt,c7 as Qt,ai as Xt,gV as Zt,gR as ei,u as c,cw as ti,d8 as ii}from"./index-DpnPgK1j.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ai}from"./liveblocks-8ht9CoL5.js";import ri from"./InvoiceUploadSection-kF1uvItW-C4PGeuCJ.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";import"./AttachmentView-BHnVquLu-6hZ55twC.js";import"./uploadReceipts-9DTOr0BG-CSOfXWAP.js";const l={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])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,z]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ue?.():S.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=l.labelWidth.value(o),k=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,je=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},Se=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),je()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,kt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:S.title}),descriptionComponent:t.jsx(Ae,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Si,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(ki,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,j.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${s.lineId}`]=ze)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:k},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:k},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:k},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),j.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(ji,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:je,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,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:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>kt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
1
|
+
import{ax as At,a9 as Mt,q as Rt,b as Pt,cr as Bt,y as m,F as Ze,l as ie,gr as Nt,gt as Lt,gu as Ot,j as t,cD as ke,cE as Ae,cF as Me,aM as y,bF as Re,bs as _t,dN as Wt,gv as Et,gG as Pe,o as a,gw as Be,fu as b,fw as w,gz as x,aN as Ne,ft as Le,C as F,gB as Oe,aQ as Ft,ap as Kt,gC as Ut,gD as ae,bB as Vt,gE as Yt,A as Gt,O as Ht,H as qt,am as et,b8 as tt,h as K,an as Jt,c7 as Qt,ai as Xt,gV as Zt,gR as ei,u as c,cw as ti,d8 as ii}from"./index-CVlrVcg1.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ai}from"./liveblocks-8ht9CoL5.js";import ri from"./InvoiceUploadSection-CEZ4nNnj-MT5bhKG7.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";import"./AttachmentView-Dvac1N-l-Ct4TLIoD.js";import"./uploadReceipts-9DTOr0BG-B15rGeOY.js";const l={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])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,z]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ue?.():S.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=l.labelWidth.value(o),k=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,je=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},Se=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),je()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,kt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:S.title}),descriptionComponent:t.jsx(Ae,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Si,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(ki,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,j.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${s.lineId}`]=ze)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:k},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:k},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:k},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),j.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(ji,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:je,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,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:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>kt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ax as le,b as $,q as k,aP as ae,l as L,F as D,j as e,aM as a,bF as me,n as u,af as m,o as s,ar as ce,_ as de,aS as E,an as pe,y as xe,h as z,cR as he,aT as ue,b9 as ge,u as we}from"./index-
|
|
1
|
+
import{ax as le,b as $,q as k,aP as ae,l as L,F as D,j as e,aM as a,bF as me,n as u,af as m,o as s,ar as ce,_ as de,aS as E,an as pe,y as xe,h as z,cR as he,aT as ue,b9 as ge,u as we}from"./index-CVlrVcg1.js";import{b as j,n as t}from"./vendor-Bs1fkIUX.js";import{x as je}from"./MeetingCalenderPopup-B2BtdHWQ-BMcSB5xW.js";import{f as be}from"./VideoPopup-1jecjRVb-yRogRIhj.js";import{M as v}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./VideoPlayer-DlAz8P4k-C4veLQbD.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new xe(we[5],44)},ye=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as De,q as Te,aP as N,aa as qe,cS as Ge,F as Ve,l as Je,aU as be,j as t,fn as Ke,h as J,y as r,bF as Ze,P as Ye,ad as Xe,e6 as Qe,bA as et,dY as tt,aQ as it,o as a,u as n,cw as nt,d3 as ot,db as at,fH as ve,fI as ke,gq as lt,n as rt,aM as $e,O as Pe,bX as st,ai as ct,bx as dt}from"./index-
|
|
1
|
+
import{b as De,q as Te,aP as N,aa as qe,cS as Ge,F as Ve,l as Je,aU as be,j as t,fn as Ke,h as J,y as r,bF as Ze,P as Ye,ad as Xe,e6 as Qe,bA as et,dY as tt,aQ as it,o as a,u as n,cw as nt,d3 as ot,db as at,fH as ve,fI as ke,gq as lt,n as rt,aM as $e,O as Pe,bX as st,ai as ct,bx as dt}from"./index-CVlrVcg1.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{D as ut}from"./HelpButton-D15CWyoU-D2RNsBLz.js";import{K as je}from"./SetUpDefaultSection-CEdPofhe-CgbVxoH_.js";import{f as mt}from"./SpendMgmtSetupAccountSection-Baz3sHbZ-C9cP6DRA.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DUmoex5M-DKbqd7SM.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-B2BtdHWQ-BMcSB5xW.js";import"./ChargeCardUtils-CuCE8WUR-DNJas3Pu.js";import"./CreditCardPaymentPlgSection-aSz8bfzl-CvtLlfud.js";import"./ChaseOverlay-CxZiC1U_-z2MQXKrY.js";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 r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:K}){const l=Te(),E=De(),{formState:{errors:Z},trigger:Y}=ot(),D=ft($,"mileageAmountInDenomination"),f=at(Z,D),{localData:c,updateStatus:R,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[C,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Y(D)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=C===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Et,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:E.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:ke(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:S.name,textColor:ke(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Dt,{children:[t.jsxs(Tt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:E.colors.background,color:C||f?void 0:E.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:D,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:C?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,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{F as M,j as b,cD as X,cE as V,cF as W,k0 as q,aX as z,l as Y}from"./index-
|
|
1
|
+
import{F as M,j as b,cD as X,cE as V,cF as W,k0 as q,aX as z,l as Y}from"./index-CVlrVcg1.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as Z}from"./ReviewOverlay-DBaDP1Pp-C71gH-ox.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=G(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},U={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,Y.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=H(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},N=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(X,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:U,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Z,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},G=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as h,j as r,aL as a,aM as m,b2 as j,F as C,aR as l,bI as x,ai as g,o as c,b3 as f}from"./index-
|
|
1
|
+
import{b as h,j as r,aL as a,aM as m,b2 as j,F as C,aR as l,bI as x,ai as g,o as c,b3 as f}from"./index-CVlrVcg1.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function z({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function I({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:i,width:n})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=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"})),k=s(l)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Q,q as ie,cr as me,aa as fe,j as o,ap as ge,F as X,cs as ee,ad as xe,y as O,aQ as be,o as n,ct as ye,cu as we,cv as _e,cw as $e,cx as ve,an as ce,cy as Ce,u as p,ai as ke,aC as K,bI as je,aU as Se,am as Ie,av as Ne}from"./index-
|
|
1
|
+
import{b as Q,q as ie,cr as me,aa as fe,j as o,ap as ge,F as X,cs as ee,ad as xe,y as O,aQ as be,o as n,ct as ye,cu as we,cv as _e,cw as $e,cx as ve,an as ce,cy as Ce,u as p,ai as ke,aC as K,bI as je,aU as Se,am as Ie,av as Ne}from"./index-CVlrVcg1.js";import{b as f,w as de,n as d}from"./vendor-Bs1fkIUX.js";import{R as P,I as Oe}from"./CollapsableReportTable-DBbtedVp-BGENwkQK.js";const W=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}:void 0;function De(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(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Fe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as W,b as G,F as y,ax as he,l as _,j as r,aM as k,bZ as fe,bH as me,bF as ge,y as v,o as C,aS as _e,P as be,b_ as Se,u as w,w as B,aC as Q,v as we,aU as Ce,au as ye,bK as xe}from"./index-DpnPgK1j.js";import{b as P,w as J,n as b}from"./vendor-Bs1fkIUX.js";import{m as z,l as Z}from"./analyticsHelper-CZsBsQ5Y-C4eAlMZk.js";import{u as Oe}from"./ReportTableViewSelector-p_eRZlsB-DNe8cwSz.js";import{a as X,p as Re}from"./TimeRangeSwitcher-CVPfQvjp-D4TOPSSO.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-Bebc4mZ3-mGDCVzBY.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-DA4eiUda--qrkecKD.js";import{I as ve,R as F,x as ee}from"./CollapsableReportTable-C1EUOKF0-BNL-lwFO.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-Buw1b32D-XTeNc9_9.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-9eZANFDj-D4aGK3LV.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-BmWHdrva-NsxlU_Y4.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-Opz0Hl1o-U1qR-z5m.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./TimeframeSwitcher-Cfj1snkW-DixlMb-P.js";import"./page-detail-CWX5S47F-lMo0MYzU.js";import"./AccountRow-BwLd4zoq-ZDzzlrC7.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=H({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
1
|
+
import{q as W,b as G,F as y,ax as he,l as _,j as r,aM as k,bZ as fe,bH as me,bF as ge,y as v,o as C,aS as _e,P as be,b_ as Se,u as w,w as B,aC as Q,v as we,aU as Ce,au as ye,bK as xe}from"./index-CVlrVcg1.js";import{b as P,w as J,n as b}from"./vendor-Bs1fkIUX.js";import{m as z,l as Z}from"./analyticsHelper-C3CI4FAW-DkHwgGlB.js";import{u as Oe}from"./ReportTableViewSelector-CcLxXexl-CKFr9bK3.js";import{a as X,p as Re}from"./TimeRangeSwitcher-DUj6iFnl-CRs6VjII.js";import{M as Ae}from"./TimeframeSwitcherWithToggle-qS-VH4U7-lA8DXlzT.js";import{DownloadOverlayButton as Be}from"./DownloadOverlay-B4GX4TFb-DpCeCVBA.js";import{I as ve,R as F,x as ee}from"./CollapsableReportTable-DBbtedVp-BGENwkQK.js";import{T as te,I as se,L as j,D as Te,g as ne}from"./mapSectionWithAcOnlyToTreeNode-BhMuMA7u-D1AWGiQl.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-tSFoZ7PC-DAbiO9QW.js";import{d as Le,l as Pe}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CSYTwkbz-on2wMQVM.js";import{d as ke}from"./mapLoadingInProgressToTreeNode-dXbGenu--Bpd1eMMP.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./TimeframeSwitcher-DjhuUk0r-BnJ74328.js";import"./page-detail-CWX5S47F-lMo0MYzU.js";import"./AccountRow-B2VWoEkH-ByxmU3Bt.js";function oe({section:e,sectionId:t,numOfBalances:o,config:a}){return ee("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ie({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ie({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ee("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ne({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function ae({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ne({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function ie({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function Ne(e,t,o,a=!0){Object.assign(e.config,t);const n=ce(o),d=H({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const ce=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Me(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=ce(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isBalanceSheetReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(te({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(se({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else _.isBalanceSheetReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Fe({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function $e(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=ie({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(_.isCashFlowReportViewSectionID(s)===!0)if(e.sections[s].accountGroups.length>0){const c=oe({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=ae({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else _.isCashFlowReportViewCalculatedSectionType1ID(s)===!0?i.push(Fe({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):_.isCashFlowReportViewCalculatedSectionID(s)===!0&&i.push(j({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function je(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Le({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=Pe[s];const x=ke({title:`${h}+${c}`,balances:p,config:t});x.reportElementData.element.numOfBalances=6,l.push(x)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=H({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(_.isPandLReportViewSectionID(s)===!0){const c=e.sections[s];c!=null&&l.push(Te({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(_.isPandLReportViewCalculatedSectionID(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(j({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function Ee(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=H({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(_.isPandLReportViewSectionID(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(te({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(se({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),_.isPandLReportViewCalculatedSectionID(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const q={contentPaddingLeft:new v(w[0],w[0],w[0]),contentPaddingRight:new v(w[3],w[3],w[8])},Ve=b.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${C.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as A,j as a,F as S,q as de,aM as Ae,b3 as Z,bQ as Te,u as E,bR as J,bh as ee,C as M,bg as ae,aX as re,bS as oe,bT as ge,o as m,bU as te,h as g,aC as Fe,bV as pe,bW as me,y as xe,bX as fe,am as P,bY as F,b9 as V}from"./index-
|
|
1
|
+
import{b as A,j as a,F as S,q as de,aM as Ae,b3 as Z,bQ as Te,u as E,bR as J,bh as ee,C as M,bg as ae,aX as re,bS as oe,bT as ge,o as m,bU as te,h as g,aC as Fe,bV as pe,bW as me,y as xe,bX as fe,am as P,bY as F,b9 as V}from"./index-CVlrVcg1.js";import{b as R,w as le,n as x}from"./vendor-Bs1fkIUX.js";import{p as b,d as ne,y as W,b as N,g as ce,u as T}from"./chartTypes-WMAN0IBH-BKlLTV6L.js";import{i as K,h as se,c as I}from"./toCOABalancesWithID-D4-TzjBp-CbGAAR4M.js";import{V as Q}from"./toChartData-Bp_yJ7Xu-BkoIWr8s.js";const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(E[3],E[4])},Ve=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as Tt,ax as jt,y,fg as vt,F as St,fh as Ct,fi as Dt,j as t,fj as It,fk as le,fl as At,l as d,fm as Pt,fn as kt,aM as v,fo as Mt,aN as k,fp as Bt,fq as Nt,fr as ke,fs as Me,ft as Be,C as Y,fu as O,fv as z,fw as _,h as S,fx as Et,fy as Ft,fz as Rt,fA as Lt,c5 as Ne,o as n,aQ as Ot,u as c,aj as zt,cg as _t,O as Wt,H as Ht,fB as Ut,cw as Zt,am as se,an as de,fC as qt,fD as Vt,bm as Yt,s as Kt,b8 as Gt,ar as Xe,bP as Xt,ai as Qe,bx as Qt,fE as Jt}from"./index-DpnPgK1j.js";import{b as H,n as i}from"./vendor-Bs1fkIUX.js";import{t as en,o as tn}from"./LowBalancePopup-BoD3u5NM-PiOYTtaJ.js";import{S as W}from"./LabeledText-D-L9n7c9-BFHVyn0b.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Ee,common:{currency:j,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Re}=ln,Le=({attachment:e})=>{const[w,x]=H.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=jt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,E=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),R=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=vt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Ee.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},[rt,ge]=H.useState(!1),[st,xe]=H.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);H.useEffect(()=>{(R?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[R,J,ye,me,ue]);const T=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,U=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:A?.code=="approved"&&U?.code?U:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&U?.code?U:A,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,q=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(T?.code!=null?T.code==="draft"||A?.code==="approved":!0),b=P&&!it,Te=Oe(b,q,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===j.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Ee.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=A?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Ae=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Ae,Pe):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Ae,Pe)}}},je=()=>{ve===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[ve,V]=H.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:R?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,ve?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:je,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(qe,{onClick:be,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(qe,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(jn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Rn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(vn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ye,{})}),t.jsx(G,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ke,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(En,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(G,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(He,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ye,{})}),t.jsxs(Fn,{"data-testid":v("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(G,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(G,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ge,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:Y.largeMedium.cssObject,decimalStyles:Y.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:E,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Et(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:E,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(K,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:E,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:E,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:E,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Rt(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==j.currencyCode?Re.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Re.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:Y.h6Medium.cssObject,decimalStyles:Y.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,q,s)}},primaryBtn:{label:Oe(b,q,e.isBillMarkedForRetry),isLoading:R?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):je()},style:{width:ze(!0,P,b,q,s)}},rightSideComponent:P&&!b&&R.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Hn,{onClick:ne,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
1
|
+
import{q as Tt,ax as jt,y,fg as vt,F as St,fh as Ct,fi as Dt,j as t,fj as It,fk as le,fl as At,l as d,fm as Pt,fn as kt,aM as v,fo as Mt,aN as k,fp as Bt,fq as Nt,fr as ke,fs as Me,ft as Be,C as Y,fu as O,fv as z,fw as _,h as S,fx as Et,fy as Ft,fz as Rt,fA as Lt,c5 as Ne,o as n,aQ as Ot,u as c,aj as zt,cg as _t,O as Wt,H as Ht,fB as Ut,cw as Zt,am as se,an as de,fC as qt,fD as Vt,bm as Yt,s as Kt,b8 as Gt,ar as Xe,bP as Xt,ai as Qe,bx as Qt,fE as Jt}from"./index-CVlrVcg1.js";import{b as H,n as i}from"./vendor-Bs1fkIUX.js";import{t as en,o as tn}from"./LowBalancePopup-BkgfL9m6-BKolyB9M.js";import{S as W}from"./LabeledText-BnxMOmt2-B7-XWWm6.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const Je=["small","medium-compact","medium-regular"],p={largeLabelWidth:new y(150,215,215),infoMinWidth:new y(0,0,0,142,142),infoMarginRight:new y(0,0,0,c[2],c[2]),footerButtonWidth:new y(120,165),iconContainerMarginTop:new y(6,c[1]),navBarContainerPaddingTop:new y(10,c[3]),sectionTitleMarginLeft:new y(c[3],c[0]),reviewContainerMarginLeft:new y(c[3],c[6]),reviewContainerMarginRight:new y(c[3],c[8]),footerRightIconMarginRight:new y(c[0],c[0],c[7]),infoLabelPaddingRight:new y(c[0],c[3]),infoLabelMarginTop:new y(c[1],c[0])},nn={sectionTitle:new Wt("h6Medium","h5Medium")},{dateFormat:Ee,common:{currency:j,labels:Fe,edit:an,strings:{empty:h}},spendManagement:{billPay:ln}}=St.getLocalizedStrings(),{billDetails:a,paymentDetails:Re}=ln,Le=({attachment:e})=>{const[w,x]=H.useState(!1),M=()=>{x(!1)},C=e.fileId?.length===0;return t.jsxs(Bn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>C===!1?x(!0):null,children:[w&&e?.fileDownloadUrl!=null?t.jsx(qt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:x}):null,t.jsx(Nn,{children:t.jsx(Vt,{contentType:e.contentType})})]})},ti=({billDetails:e,billpayApprovalView:w,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:C,isLocalCurrencyEnabled:et,style:tt,analytics:$,isRecurringBillsFeatureEnabled:nt,isApprovalRequiredForMarkAsPaid:it,isDetectInsufficientFundsEnabled:at,billId:f,onClickEdit:ce,discardBillDetailsFromLocalStore:me,saveBillDetails:pe,discardOutsideZeniPaymentData:lt,updateBillDetailSaveBillCode:ue,redirectToBillsScreen:ye,onAttachmentClick:Q,retryPayment:ot})=>{const s=Tt(),m=jt(),B={application:"dashboard",companyId:m.currentTenant?.companyId,tab:"bill",entityId:f},N=x&&f!=null,E=`dashboard_${m.currentTenant?.companyId}`,F=p.largeLabelWidth.value(s),R=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=vt(C,et,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),D=Ee.visual.MMMDCommaYYYYformat,he={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},u={amount:o?.method.includes("international")===!0?Ct(he,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},L={amount:o?.method.includes("international")===!0?Dt(he,o):o?.fee.amount??0,currencyCode:j.currencyCode,currencySymbol:j.currencySymbol},[rt,ge]=H.useState(!1),[st,xe]=H.useState(!1),fe=()=>ge(!1),dt=()=>{$.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ct=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Pn,{size:s,children:t.jsx(An,{})})]}):It(e.paymentDetailsSection?.paymentTo);H.useEffect(()=>{(R?.fetchState==="Completed"||J?.fetchState==="Completed")&&(me(),ue(),ye())},[R,J,ye,me,ue]);const T=e.billPayInfo?.stage,A=e.billPayInfo?.billStatus,U=e.billPayInfo?.billPaymentStatus,mt=e.billPayInfo?.billPaymentRefundStatus,te=T?.code==="paid"?T:A?.code=="approved"&&U?.code?U:A,pt=e.billPayInfo?.isRefundInitiated===!0?mt:A?.code=="approved"&&U?.code?U:A,ne=()=>{ce()},be=()=>{ce()},Z=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),we=ie.replace("Same Day",""),ut=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:we,onClick:dt}):a.addedByZeni,q=w.allApprovalRules.length>0,yt=d.toAmount(o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?u.amount-L.amount:u.amount,o?.fee.currencyCode??d.defaultVendorCurrency.currencyCode,o?.fee.currencySymbol??d.defaultVendorCurrency.currencySymbol),g=d.isPaymentMethodOutsideZeni(e.paymentDetailsSection?.paymentType?.method),ht=l=>{$.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",T?.code??"draft",te?.code??""),pe(!0,l)},$e=()=>{xe(!0),$.trackBillPayMarkAsPaid(T?.code??"draft",te?.code??"")},gt=()=>{lt(),xe(!1)},P=g&&(T?.code!=null?T.code==="draft"||A?.code==="approved":!0),b=P&&!it,Te=Oe(b,q,e.isBillMarkedForRetry),xt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&C&&ee===j.currencyCode?Ft(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=at&&e.paymentDetailsSection!=null?Pt(u,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,ft=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,I=e.recurringConfig,wt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&$.trackBillPayAutoDateChange(f??"new_bill"),o?.method!=null&&l!=null){const $t=g?a.paymentOutsideZeni.offline:le(o.method);if($.trackBillPaySendForApproval($t,l.format(Ee.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,f,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:d.zeniDate(I?.startDate?.toString()??"").format(D),endDate:d.zeniDate(I?.endDate?.toString()??"").format(D),frequency:I?.frequency??"monthly",totalAmount:wt.amount,totalPaymentCycles:I?.totalPaymentCycles??0,isApprovalRequired:I?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?I?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?I?.updateRecurringBills==="all":void 0}),ae!=null){const Se=T?.code??"draft",Ce=A?.code??"",De=e.isRecurring?["Recurring"]:["One-Time"],Ie=e.invoiceNumber??"",Ae=Jt(m.loggedInUser),Pe=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Te===a.scheduleBill?$.trackLowBalanceAccountSchedule(Se,Ce,De,Ie,Ae,Pe):Te===a.sendForApproval&&$.trackLowBalanceAccountSentForApproval(Se,Ce,De,Ie,Ae,Pe)}}},je=()=>{ve===!0&&V(!1),e.isBillMarkedForRetry===!0?(ot(),$.trackRetryConfirmClick(te?.code??"",T?.code??"",pt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&(ft(),pe(!1,{}))},bt=d.checkIfCreatorIsApprover(u.amount,w.allApprovalRules,m.loggedInUser),[ve,V]=H.useState(!1);return t.jsxs(hn,{children:[st?t.jsx(en,{onCancel:gt,onProceedForMarkAsPaid:ht,saveDetailsFetchState:R?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,ve?t.jsx(tn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:je,onCancelClick:()=>{V(!1),ne()},onClickAway:()=>{V(!1)}}):null,t.jsx(kt,{anchor:"right",open:rt,onClose:fe,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Mt,{companyName:Bt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(D)??"",paymentType:we,amount:k("0,0[.]00",u),isInvoiceAttached:!!e.file,onClose:fe})}),t.jsxs(gn,{windowSize:s,style:tt,children:[s==="small"?t.jsxs(In,{windowSize:s,children:[t.jsx(qe,{onClick:be,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(We,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Dn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(qe,{onClick:be})}),s!=="small"?t.jsx(fn,{children:t.jsx(We,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(bn,{children:[t.jsxs(wn,{children:[t.jsx(zn,{}),t.jsxs($n,{children:[t.jsx(jn,{children:a.duplicateBillPayWarning}),t.jsxs(Tn,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Rn,{children:[t.jsx(On,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Nt(l);return l!=null?t.jsx(Ln,{children:Je.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(vn,{children:[t.jsxs(Sn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ye,{})}),t.jsx(G,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Ke,{windowSize:s,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(En,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsxs(G,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ge,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(He,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(Le,{attachment:l.attachments[0]}):t.jsx(Ve,{children:t.jsx(Ye,{})}),t.jsxs(Fn,{"data-testid":v("review-detail-info"),onClick:()=>Q(l.id,l.billPayInfo.stage.code),children:[t.jsx(G,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(G,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(D)]}),t.jsx(Ke,{style:{width:"25%"},windowSize:s,children:k("0,0[.]00",l.amount)})]}),t.jsx(Ge,{children:r!=null?ke.includes(r.code)?t.jsx(Me,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Cn,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(Ze,{children:t.jsx(Be,{amount:yt,integerStyles:Y.largeMedium.cssObject,decimalStyles:Y.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(Ze,{children:e.vendor?.name})]}),t.jsxs(xn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:E,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:F},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Et(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(s),marginTop:p.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(K,{})]}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:E,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:F},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:xt()})}),t.jsx(K,{}),!g&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:E,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:F},style:{width:"auto"},value:Z.format(D),additionalInfoLabel:`${a.estimatedArrival}${d.zeniDate(d.getNextNthWorkingDay(Z.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(D)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(K,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:E,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:F},style:{width:"auto"},value:ct??"",additionalInfoLabel:ut})}),g||nt?t.jsxs(t.Fragment,{children:[t.jsx(K,{}),t.jsx(O,{isThreadAllowed:N,entityId:f,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:E,companyId:m.currentTenant?.companyId??h,companyName:m.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${z("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:F},style:{width:"auto"},value:Lt(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Rt(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(mn,{children:t.jsxs(pn,{windowSize:s,children:[t.jsxs(un,{children:[t.jsx(sn,{children:a.total}),t.jsx(Ne,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(cn,{children:[t.jsxs(_e,{children:[t.jsx(re,{children:o.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&ee!==j.currencyCode?Re.conversionAmountColon:Fe.invoiceAmount}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount-L.amount,currencySymbol:L.currencySymbol})})]}),t.jsxs(_e,{children:[t.jsx(re,{children:Re.transactionFee}),t.jsx(oe,{children:k("0,0[.]00",{amount:L.amount,currencySymbol:L.currencySymbol})})]}),t.jsx(dn,{}),t.jsxs(rn,{children:[t.jsx(re,{children:Fe.total}),t.jsx(oe,{children:k("0,0[.]00",{amount:u.amount,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(on,{})})]}),t.jsx(yn,{children:t.jsx(Be,{amount:d.toAmount(u.amount,u.currencyCode,u.currencySymbol),integerStyles:Y.h6Medium.cssObject,decimalStyles:Y.standardMedium.cssObject})})]})}):null]}),t.jsx(Ot,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?$e:ne,style:{width:ze(!1,P,b,q,s)}},primaryBtn:{label:Oe(b,q,e.isBillMarkedForRetry),isLoading:R?.fetchState==="In-Progress"||J?.fetchState==="In-Progress",onClick:b?$e:()=>{bt&&ae!=null?V(!0):je()},style:{width:ze(!0,P,b,q,s)}},rightSideComponent:P&&!b&&R.fetchState!=="In-Progress"?t.jsx(_n,{windowSize:s,children:t.jsx(Ne,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:an,placement:"top",children:t.jsx(Hn,{onClick:ne,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Wn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(d.NEW_INTERNATIONAL_METHOD_SUBTEXT)?t.jsxs(kn,{children:[a.internationalText1,t.jsx(Mn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Oe=(e,w,x)=>e?a.paymentOutsideZeni.markAsPaid:x===!0?a.retryPayment:w?a.sendForApproval:a.scheduleBill,ze=(e,w,x,M,C)=>x?128:w&&!e&&C==="small"?"auto":M?165:p.footerButtonWidth.value(C),on=i(Xt)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-Bv5Irg0L-BkYNNXiY.js → ReviewOverlay-DBaDP1Pp-C71gH-ox.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as k,j as e,aM as x,o as r,aQ as B,y as d,A as L,O as C,H as W,h as s,am as $,cP as R,P as I,ai as j,bl as D,u as n,eC as G,M as A,iV as H,j$ as O}from"./index-
|
|
1
|
+
import{q as k,j as e,aM as x,o as r,aQ as B,y as d,A as L,O as C,H as W,h as s,am as $,cP as R,P as I,ai as j,bl as D,u as n,eC as G,M as A,iV as H,j$ as O}from"./index-CVlrVcg1.js";import{n as t}from"./vendor-Bs1fkIUX.js";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])},q={title:new C("h6Regular","h5Regular")},xi=({title:i,description:p,reviewItems:S,showFooter:b,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:P,onCloseReviewItem:M})=>{const l=k();return e.jsxs(J,{children:[e.jsx(Y,{windowSize:l,children:e.jsx(Z,{children:e.jsx(_,{windowSize:l,children:e.jsx(ii,{children:e.jsx(ei,{onClick:P,"data-testid":x("review-overlay-close",i)})})})})}),e.jsxs(Q,{windowSize:l,children:[e.jsxs(V,{windowSize:l,children:[e.jsx(K,{children:e.jsx(N,{windowSize:l,children:i})}),e.jsx(U,{isError:p.isError,windowSize:l,children:p.content})]}),e.jsx(X,{windowSize:l,children:S.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return e.jsxs(ri,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?e.jsx(ci,{onClick:()=>M(o.id),"data-testid":x("review-close",o.id)}):null,e.jsxs(ti,{children:[e.jsxs(ni,{children:[e.jsx(di,{children:F(o)}),e.jsxs(oi,{children:[e.jsxs(m,{children:[e.jsx(u,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),e.jsx(u,{isWarning:c,isError:h,children:o.rightSideText.title})]}),e.jsxs(m,{children:[e.jsx(si,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),l!=="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?e.jsxs(w,{windowSize:l,children:[e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:e.jsxs(e.Fragment,{children:[o.rightSideText.showThunderIcon===!0?e.jsx(f,{children:e.jsx(y,{})}):null,o.rightSideText.subTitle]})}),e.jsx(g,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),b?e.jsx(B,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=i=>i.reviewStatus.isLoading?e.jsx(I,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):i.reviewStatus.code==="error"?e.jsx(v,{isError:!0}):i.reviewStatus.code==="warning"?e.jsx(v,{isError:!1}):i.reviewStatus.code==="valid"?e.jsx(li,{}):i.reviewStatus.code==="low-balance"?e.jsx(hi,{}):e.jsx(ai,{}),J=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${i=>i.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-Osazfeks-DCHE9_6V.js → RoleWithToolTip-CBBWeNSt-BdFNJyHE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f4 as h,f5 as x,j as t,c5 as m,o as n,aM as i,F as g,ao as j,ai as p}from"./index-
|
|
1
|
+
import{f4 as h,f5 as x,j as t,c5 as m,o as n,aM as i,F as g,ao as j,ai as p}from"./index-CVlrVcg1.js";import{n as s}from"./vendor-Bs1fkIUX.js";const{hyphen:a}=g.getLocalizedStrings().common.strings,f=s.div``,y=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aP as H,l as me,im as ee,gO as fe,eR as we,io as Je,aa as Me,ip as Ve,cS as _e,cT as Pe,j as a,F as be,ad as Fe,cD as $e,cE as Ne,cF as qe,aQ as Re,iq as We,ir as Be,ab as he,is as Se,it as Ue,d3 as ze,q as Ge,iH as He,gT as re,u as R,h as De,y as Ce,cV as Ye,iu as Ke,iv as Ze,iw as Qe,o as _}from"./index-
|
|
1
|
+
import{aP as H,l as me,im as ee,gO as fe,eR as we,io as Je,aa as Me,ip as Ve,cS as _e,cT as Pe,j as a,F as be,ad as Fe,cD as $e,cE as Ne,cF as qe,aQ as Re,iq as We,ir as Be,ab as he,is as Se,it as Ue,d3 as ze,q as Ge,iH as He,gT as re,u as R,h as De,y as Ce,cV as Ye,iu as Ke,iv as Ze,iw as Qe,o as _}from"./index-CVlrVcg1.js";import{b as m,n as B}from"./vendor-Bs1fkIUX.js";import{i as Xe,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-DwBjIGGI-CnLAIxTe.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const W={labelWidth:new Ce(160,160,160),depCategoryLabelWidth:new Ce(200,280,280)},at=B.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aP as $,l as ie,im as Q,gO as ke,eR as Ie,io as Je,aa as Le,ip as we,cS as Me,cT as Ve,j as a,F as De,ad as Pe,cD as Fe,cE as $e,cF as _e,aQ as Ne,iq as qe,ir as We,ab as re,is as pe,it as ze,d3 as Be,q as Re,gT as me,u as X,h as Ue,y as Ke,iu as Ye,iv as Ge,iw as He,o as L}from"./index-
|
|
1
|
+
import{aP as $,l as ie,im as Q,gO as ke,eR as Ie,io as Je,aa as Le,ip as we,cS as Me,cT as Ve,j as a,F as De,ad as Pe,cD as Fe,cE as $e,cF as _e,aQ as Ne,iq as qe,ir as We,ab as re,is as pe,it as ze,d3 as Be,q as Re,gT as me,u as X,h as Ue,y as Ke,iu as Ye,iv as Ge,iw as He,o as L}from"./index-CVlrVcg1.js";import{b as D,n as P}from"./vendor-Bs1fkIUX.js";import{i as Qe,r as Xe,n as Ze,o as et}from"./ScheduleSequenceTable-DwBjIGGI-CnLAIxTe.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const W={labelWidth:new Ke(160,160,160)},tt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as F,b as X,j as t,ix as ie,F as N,iy as le,O as oe,iz as ge,e7 as fe,ft as we,C as A,iA as ye,iw as be,o as i,y as b,h as j,s as $e,ab as re,e3 as je,cD as Se,cF as ke,d3 as Z,db as ee,d9 as ve,iB as U,iC as Ce,b3 as De,iD as Me,cH as ze,iE as Oe,u as h,am as O,b8 as Ee,cE as Le,ap as pe,dc as Ae,b1 as ne,dn as Fe,aQ as Ie,l as Y,iF as I,gq as Te,aN as Ve,iG as Je,aU as G,dd as Be,bl as Pe}from"./index-
|
|
1
|
+
import{q as F,b as X,j as t,ix as ie,F as N,iy as le,O as oe,iz as ge,e7 as fe,ft as we,C as A,iA as ye,iw as be,o as i,y as b,h as j,s as $e,ab as re,e3 as je,cD as Se,cF as ke,d3 as Z,db as ee,d9 as ve,iB as U,iC as Ce,b3 as De,iD as Me,cH as ze,iE as Oe,u as h,am as O,b8 as Ee,cE as Le,ap as pe,dc as Ae,b1 as ne,dn as Fe,aQ as Ie,l as Y,iF as I,gq as Te,aN as Ve,iG as Je,aU as G,dd as Be,bl as Pe}from"./index-CVlrVcg1.js";import{b as D,n as o,i as B}from"./vendor-Bs1fkIUX.js";const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Ne({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:y}){const[f,u]=D.useState(!1),{control:m,formState:{errors:g},setValue:S}=Z(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(g,l),x=F(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ke,{style:p,isDisabled:n!=null,windowSize:x,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ae,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(He,{children:[t.jsx(Re,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(_e,{alignLeft:r===!0,children:[t.jsx(Ze,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Xe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Fe,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...A.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(We,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(et,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...A.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ie,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:qe(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function Re({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(Ye,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ge,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function We({defaultValue:e,onClick:l}){return t.jsxs(Qe,{children:[t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Y.toScheduleDaysOfMonth(r)),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(q,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const qe=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},He=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,Ye=o.div`
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Ut,q as en,l as Y,c as Ke,z as tt,y as dt,U as cd,d as fd,e as tn,f as ld,N as Tt,F as ir,g as Bt,i as qt,P as rn,o as kt,Y as hd,W as dd,Q as Ft,G as Kl,k as Lt,m as pd,p as md,u as yn,r as gd,D as Yl,R as vd,t as Jl,v as Xl,w as zo,x as yd,B as _d,K as bd,E as Ql,J as wd,V as Sd,L as Ed,S as Rd,T as Od,Z as Td,$ as xd,a0 as Cd,a1 as Ad,a2 as Id,a3 as Pd,a4 as kd,a5 as Ld,a6 as qd}from"./index-
|
|
1
|
+
import{b as Ut,q as en,l as Y,c as Ke,z as tt,y as dt,U as cd,d as fd,e as tn,f as ld,N as Tt,F as ir,g as Bt,i as qt,P as rn,o as kt,Y as hd,W as dd,Q as Ft,G as Kl,k as Lt,m as pd,p as md,u as yn,r as gd,D as Yl,R as vd,t as Jl,v as Xl,w as zo,x as yd,B as _d,K as bd,E as Ql,J as wd,V as Sd,L as Ed,S as Rd,T as Od,Z as Td,$ as xd,a0 as Cd,a1 as Ad,a2 as Id,a3 as Pd,a4 as kd,a5 as Ld,a6 as qd}from"./index-CVlrVcg1.js";import{j as X,D as nn,S as Vt}from"./mui-Ty75qFQF.js";import{b as Se,n as ut,c as Ve,f as eh,g as jd}from"./vendor-Bs1fkIUX.js";import{f as Dd}from"./analyticsHelper-CzfkZ7Am.js";import{g as rt,u as Ie,f as Ye}from"./redux-CEhZD0hA.js";import{a as Je,d as pt,e as Nd,N as er,R as wt,c as qe,u as Zo,b as Go}from"./routing-Dk1A2KYI.js";import{B as ze}from"./analytics-CcevxdRy.js";import{p as Oe}from"./sentry-BE5FTzpq.js";import{a as Qe,b as $d,c as Wo,d as Md,e as Ko,f as Yo,g as Fd,h as Ud,i as zt,j as th,k as rr,l as an,m as Bd,n as Vd,o as zd,p as Gd,q as Hd,s as Zd,t as Wd,u as rh,v as on,w as ar}from"./crypto-cQYYQPTZ.js";import{r as Kd}from"./lodash-D52QloPU.js";import"./liveblocks-8ht9CoL5.js";const Yd={overlayWidth:new dt(100,100,50)},{common:{strings:vs}}=ir.getLocalizedStrings();function Jd(e,n){return{headerActions:{onTabChange:a=>{const i=qt(a),o=Bt(a);Ke.trackCockpitTabClicked(o),n.navigate(`../../${i}`,{replace:!0})},filterActions:{onFilterTextChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{filterText:i}}))},onFiltersChange:(a,i)=>{i.categories!=null&&i.categoryCombinationOperator!=null&&Ke.trackHealthMonitorFiltersApplied({filterSelection:{condition:i.categories.map(o=>o.matchingOperator).join(vs.comma),logic:i.categoryCombinationOperator,parameter:i.categories.map(o=>o.field).join(vs.comma)}}),e(Y.updateCompanyHealthViewUIState({uiState:{filters:i}}))}}},healthPageActions:{onRowClick:a=>{e(Y.initializeCompanyHealthMetricViewLocalData(a))},onColumnSortConfigChanged:(a,i)=>{e(Y.updateCompanyHealthViewUIState({uiState:{sortKey:a,sortOrder:i}}))},onCockpitReloadData:a=>{a==="healthMonitor"&&e(Y.fetchCompanyHealthMetricView())},onFiltersChange:a=>{e(Y.updateCompanyHealthViewUIState({uiState:{filters:a}}))}}}}function Xd(e,n){return{headerData:{selectedTabOption:Tt("healthMonitor")},healthPageData:{healthView:n.healthView,managementView:n.managementView,mixpanelUrl:n.mixpanelHMUrl}}}const Qd=Ye(Xd,Jd)(ld);function _n({isDrawerOpen:e}){const n=Je(),a=rt(),i=Ut(),o=en(),{companyId:t}=pt(),[r,s]=Nd(),[p,l]=Se.useState(!1),u=Ie(b=>Y.getCompanyHealthMetricView(b)),f=Ie(b=>Y.getCompanyManagementView(b)),{additionalChurnFactors:d}=Ie(b=>Y.getCompanyHealthMetricConfig(b)),{selectedCompanyDetail:w,selectedCompanyId:h,localFormDataAndStatusByCompanyId:v}=u,m=Ie(b=>b.companyViewState.zeniUsers.fetchState),c=Ie(b=>b.companyHealthMetricConfigViewState);if(Se.useEffect(()=>{const b=y=>y==="Not-Started"||y==="Error";u.fetchState==="Completed"?a(Y.fetchAllCockpitViews(!1)):b(u.fetchState)&&(a(Y.fetchCompanyHealthMetricView()),b(m)&&a(Y.fetchZeniUsers()),b(c.fetchState)&&a(Y.fetchCompanyHealthMetricConfig()))},[u.fetchState,c.fetchState]),Se.useEffect(()=>{t!=null&&u.fetchState==="Completed"&&r.has("utm_source")===!0&&(a(Y.initializeCompanyHealthMetricViewLocalData(t)),w!=null&&(Ke.trackCockpitHealthMonitorNotificationAlertClicked(r.get("utm_source"),{companyId:w.companyInfo.companyId,companyName:w.companyInfo.name,churnProbability:w.companyHealthMetric.churnProbabilityPercentage??null}),l(r.has("utm_source")),r.delete("utm_source"),s(r)))},[u.fetchState,w?.companyInfo.companyId,w?.companyInfo.name]),tt.getSignedInUser()==null)throw Error("Can't access Health Monitor page without signing in...");return X.jsxs(X.Fragment,{children:[e===!0||h!=null&&w!=null?X.jsx(nn,{anchor:"right",open:h!=null,PaperProps:{style:{width:Yd.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:i.colors.black,opacity:.75,cursor:"pointer"}}},onClose:()=>a(Y.removeSelectedCompanyId()),children:X.jsx(cd,{roomId:`cockpit_${h}`,autoConnect:!0,children:X.jsx(fd,{onSaveClick:()=>{h!=null&&a(Y.saveCompanyHealthMetricById(h))},onSaveChangesToLocalStore:b=>{u.selectedCompanyId!=null&&a(Y.updateCompanyHealthMetricLocalStore({companyId:u.selectedCompanyId,updatedLocalData:b}))},localData:v?.companyHealthMetricLocalData??{netPromoterScore:void 0,externalProductServiceExposure:void 0,additionalChurnFactors:{increasingChurnProbability:[],decreasingChurnProbability:[]}},companyHealthMetricViewSelector:u,onCloseDrawer:()=>a(Y.removeSelectedCompanyId()),analytics:Ke,urlSource:p,additionalChurnFactorsOptions:d})})}):null,X.jsx(Qd,{healthView:u,managementView:f,navigate:n,mixpanelHMUrl:tn.mixpanelHMUrl})]})}const nh=(e,n)=>{const a=[...e??[]];return a.push(n),a},ep=e=>{const n=[...e??[]];return{poppedPathname:n.pop(),newStack:n}},tp=(e=2)=>{let n="../";for(let a=0;a<e;a++)n=`${n}../`;return n},Fe=({state:e,element:n})=>tt.isSignedIn()===!0?X.jsx(X.Fragment,{children:n}):X.jsx(er,{to:"/signin/auth",replace:!0,state:{...e,message:"...",origin:window.location.pathname}});function rp(){return X.jsxs(wt,{children:[X.jsx(qe,{path:"/companies/:companyId",element:X.jsx(Fe,{element:X.jsx(_n,{isDrawerOpen:!0})})}),X.jsx(qe,{path:"/",element:X.jsx(Fe,{element:X.jsx(_n,{})})}),X.jsx(qe,{path:"/*",element:X.jsx(Fe,{element:X.jsx(_n,{})})})]})}const np={drawerLeftMargin:new dt(0,0,240)};function or(e){const{isOpen:n,drawerLeftMargin:a,children:i,onClose:o}=e,t=en(),r=a?.valuePx(t)??np.drawerLeftMargin.valuePx(t),s=Ut();return X.jsx(nn,{anchor:"right",open:n,PaperProps:{style:{width:`calc(100% - ${r})`}},slotProps:{backdrop:{style:{backgroundColor:s.colors.black,opacity:.8,cursor:"pointer"}}},onClose:o,children:i})}const ip=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?X.jsx(ap,{children:X.jsx(rn,{size:"ExtraLarge",start:!0})}):null,ap=ut.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|