@zeniai/web-cockpit-ui 1.15.64-dev → 1.15.64-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-fOu5grd7-BdSVzP6f.js → ACHDetailsPage-fOu5grd7-BQab31-r.js} +1 -1
- package/dist/assets/{AIPerformancePage-Da3gFo8A-CckgxOO_.js → AIPerformancePage-Da3gFo8A-AGsO9Ers.js} +1 -1
- package/dist/assets/{AccountInfoPage-o7hTXtgZ-zH78FLFW.js → AccountInfoPage-o7hTXtgZ-BSIFU5Fg.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DqErO8FH-Dmzn6pIA.js → AccountInfoPageContent-DqErO8FH-BFY7yIc6.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BJjCuLHa-DrT3dsPq.js → AccountLockedInfoModal-BJjCuLHa-ff0C6rDz.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CVjH1p0d-BxBrHwo0.js → AccountReconDetailsDrawerPage-CVjH1p0d-CfggfK0B.js} +1 -1
- package/dist/assets/{AccountRow-CpftykFx-oOdBXU8G.js → AccountRow-CpftykFx-Cp2fNiFY.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-D7xvgmOH-D3-ZzkOb.js → AccountsPromoCardStack-D7xvgmOH-DkN_s0TJ.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-vecchYEf-CGSqzhVX.js → AddAddressForCardDrawer-vecchYEf-BJS49st-.js} +1 -1
- package/dist/assets/{AddToWalletPage-zJy9QCjx-C_qfE17G.js → AddToWalletPage-zJy9QCjx-DvT1ndmW.js} +1 -1
- package/dist/assets/{AgingReportsPage-wAvQb1d8-C15jlpMU.js → AgingReportsPage-wAvQb1d8-LwL5jfUq.js} +1 -1
- package/dist/assets/{AllUserItems-DEv_CXOA-B5fCEIiV.js → AllUserItems-DEv_CXOA-C8j7eaFo.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BOV1WFVF-Dp8s2FuX.js → ApAgingDetailPage-BOV1WFVF-Cnw1CTR7.js} +1 -1
- package/dist/assets/{AppBasePage-DMlomvFS-CGojLnOO.js → AppBasePage-DMlomvFS-wPlg6lOd.js} +1 -1
- package/dist/assets/{AppDrawerContent-Dc2sHnR3--YF7Xqpp.js → AppDrawerContent-Dc2sHnR3-Gwm120QU.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-BnbPSy4U-qsIqsWa1.js → ApprovalRulesSettingsPage-BnbPSy4U-SABeAeOS.js} +1 -1
- package/dist/assets/{ArAgingChart-m-Xp3HAW-NCxV7iBs.js → ArAgingChart-m-Xp3HAW-BuTyfmOy.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-b_NpDpWj-z4UOMnMu.js → ArAgingDetailPage-b_NpDpWj-Dx8gxQBv.js} +1 -1
- package/dist/assets/{AttachmentView-DB_V1qT1-BBS5lFy5.js → AttachmentView-DB_V1qT1-DmTJ6caW.js} +1 -1
- package/dist/assets/{BankAccountSection-BabhrBM7-AYC21fpT.js → BankAccountSection-BabhrBM7-DTSnwq_E.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-yT2UAd12-C1lPi6To.js → BankAccountWarningSection-yT2UAd12-CjcTHtd0.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CbxXykMM-C4x6xhVH.js → BankConnectionsSettingsPage-CbxXykMM-BlJAlfmg.js} +1 -1
- package/dist/assets/{BillDetailPage-7TMkWo3V-CAz7q8si.js → BillDetailPage-7TMkWo3V-0TjWgo-F.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-COyDRpaF-DAcMEAnT.js → BillPayApprovalRuleDetailPage-COyDRpaF-BpX5R4Io.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-9pxkgFAT-DPJx3hcv.js → BillPayApprovalRulesPage-9pxkgFAT-DFcRaLCp.js} +1 -1
- package/dist/assets/{BillPayPromoPage-AGffhbY3-C_QscQuJ.js → BillPayPromoPage-AGffhbY3-DZsatXbJ.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-Cs5rkWBu-GrPc_Ghq.js → BillPaySetUpPage-Cs5rkWBu-CDMzpJwT.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CQ117tT9-czyNT2CA.js → BillingSettingsPage-CQ117tT9-EcBteyo6.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DRkGQQAe-B4jJeKlF.js → BillsBulkReviewDrawerPage-DRkGQQAe-DzSowwfK.js} +1 -1
- package/dist/assets/{BoxItem-DRwx0M5a-DCS0EEq5.js → BoxItem-DRwx0M5a-BOzUW4AC.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-1h0z3N9u-Bz-00d77.js → BusinessVerificationPage-1h0z3N9u-C_i-ZzsM.js} +1 -1
- package/dist/assets/{CardNumberSubText-DqtLT1w5-DO6jyw3h.js → CardNumberSubText-DqtLT1w5-DXiQdLzK.js} +1 -1
- package/dist/assets/{CashbackDetailPage-ChdQcvkC-C57bRmfy.js → CashbackDetailPage-ChdQcvkC-sphqjShk.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DFOKlPNG-xcGq1wRM.js → ChargeCardDetailPage-DFOKlPNG-J3dpN26k.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DhLUsUhd-DuclyBke.js → ChargeCardListPage-DhLUsUhd-BzeGjwLv.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DE72YU_i-DcBJaKK3.js → ChargeCardListTable-DE72YU_i-Dx1EFTdQ.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-CbGR18s--BFbYhOSS.js → ChargeCardPaymentHistoryPage-CbGR18s--BqsZ0OiY.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CPpNh89o-CBfHtaX_.js → ChargeCardPromoPage-CPpNh89o-Bqb3Zf4F.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-ITi25kUD-DfzvZRO7.js → ChargeCardSetupPage-ITi25kUD-DbGoc5xW.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CTJc1BCc-DxoD4bYi.js → ChargeCardStatementsPage-CTJc1BCc-BJ8dr7Ba.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BrzeSj-3-DtRI-uAH.js → CheckDepositDrawerPage-BrzeSj-3-gtc5gaOJ.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CDEe9s_E-CMF0RoW1.js → CollapsableReportTable-CDEe9s_E-DOTF-z0w.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BaPhFsLx-B9Snu63L.js → CompanyOfficerDetailsSection-BaPhFsLx-DACmvtur.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B9ymV6Az-38EEl60M.js → CompanyPassportCard-B9ymV6Az--KXXOq-a.js} +1 -1
- package/dist/assets/{CompanyPassportPage-BQ68t7oK-Co1NqIiB.js → CompanyPassportPage-BQ68t7oK--AZrIypI.js} +1 -1
- package/dist/assets/{CompleteProfile-C5n9b8gQ-DwcNt9_I.js → CompleteProfile-C5n9b8gQ-BWmO39ov.js} +1 -1
- package/dist/assets/{ConfettiBurst-BizTW0hz-CvR9oZ5e.js → ConfettiBurst-BizTW0hz-rPhXMLuR.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-XtnsGBeT.js → ConstrainedInnerElement-BeIpAPjB-BRsKF_vB.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BIfOA5Nr-Dlpym0z2.js → CreateOrEditVendorPage-BIfOA5Nr-66b-35V8.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CCpS-31h-C4-ObiYa.js → CreditCardPaymentDrawerPage-CCpS-31h-DOtvW_B8.js} +1 -1
- package/dist/assets/{CurrencySelectField-KvKyemY6-CmY2_QR6.js → CurrencySelectField-KvKyemY6-DZW5Vt4H.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-6VlMI4oY-DDFamjuz.js → CustomerOnboardingActivationPage-6VlMI4oY-DkrHUI-t.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-v0SSOg30.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BzbZb27J-sEi6CC-2.js → CustomerOnboardingDetailPageSkeleton-BzbZb27J-BT61tRti.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CWF_00EM-BRYus2iF.js → CustomerOnboardingNoStepsPage-CWF_00EM-C_pTT5nd.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DkW66A-p-GBHzS2sL.js → CustomerOnboardingPage-DkW66A-p-Bc2VAZJX.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-Ba0yotpP-kvF0C_U3.js → CustomerOnboardingProductSuitePage-Ba0yotpP-B5KgGs_h.js} +1 -1
- package/dist/assets/{Dashboard-bX3cWkmP-CshB3AQ6.js → Dashboard-bX3cWkmP-B5foEyDy.js} +1 -1
- package/dist/assets/{DashboardReportPage-DuZ4d4CE-WPRTD4S1.js → DashboardReportPage-DuZ4d4CE-D4SKwhCI.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-UV2CZToG-4yePe-Xl.js → DashboardSidebarBackgroundAnimation-UV2CZToG-Cm-dk7mX.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BY_OvuKg-1GMqn4-W.js → DepositAccTransactionItem-BY_OvuKg-GhjooDh7.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-a__bpCOB-CMJCJXrJ.js → DepositAccTransactionListPage-a__bpCOB-BTl2X2NF.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BumMT4QM-9o5TrTj8.js → DomesticWireDetailsPage-BumMT4QM-Dhr8FdDC.js} +1 -1
- package/dist/assets/{DownloadOverlay-DqiL3-FB-D2yDQ3WD.js → DownloadOverlay-DqiL3-FB-DY3M1Nto.js} +1 -1
- package/dist/assets/{DrawerPage-CaG-xx5d-D9_lXenJ.js → DrawerPage-CaG-xx5d-DwUvyUAE.js} +1 -1
- package/dist/assets/{EditPeoplePage-BcsdEp_d-IwV_edCq.js → EditPeoplePage-BcsdEp_d-yP6vi9Hq.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DNUmwdsH-B0QXso1w.js → EditReimbursementDetailPage-DNUmwdsH-DNViLobE.js} +1 -1
- package/dist/assets/{EntityDetailPage-DtX5TjBc-YkJZ_Dja.js → EntityDetailPage-DtX5TjBc-BPIrnsMs.js} +1 -1
- package/dist/assets/{EntitySummarySection-LEA5m6mN-CLLkbTp6.js → EntitySummarySection-LEA5m6mN-C7LdKIU1.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Dmhn7gfp-BnYLctJS.js → ExpenseAutomationOverviewPage-Dmhn7gfp-kaoOgHKC.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-B8C4BxoV-DWGhFpVk.js → ExpenseAutomationPage-B8C4BxoV-D4w-pFzd.js} +1 -1
- package/dist/assets/{ExpressPayPage-C-nqret2-CxxwTtu9.js → ExpressPayPage-C-nqret2-CHwg5U2p.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BHjUZ7s6-_5C6_vtm.js → FeaturePreviewPage-BHjUZ7s6-CbvC-1qc.js} +1 -1
- package/dist/assets/{FollowStepsSection-0eFMS0c5-DiNXhybo.js → FollowStepsSection-0eFMS0c5-Crvq3nzf.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-4eiopkzw-DKMz-KY4.js → GlobalReviewListPage-4eiopkzw-DCnZhWv9.js} +1 -1
- package/dist/assets/{InformationCardStack-C7XJCUlh-CHYlGlZV.js → InformationCardStack-C7XJCUlh-Bf1LM9M7.js} +1 -1
- package/dist/assets/{InsightsCardStack-fBAbQwhK-GOQwmuqO.js → InsightsCardStack-fBAbQwhK-BFspUDtp.js} +1 -1
- package/dist/assets/{InsightsSection-De9zu_me-VPfN5Xo7.js → InsightsSection-De9zu_me-fO_n1ybi.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BD5jqAv8-BskPS73Y.js → IntegrationsSettingsPage-BD5jqAv8-Blr9q62G.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-BftrE612-CKiFI9UY.js → InternationalWireSwiftDetailsPage-BftrE612-yMFm1uB9.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CDf7equc-1WYEjkVV.js → InternationalWireVerificationPage-CDf7equc-C3LL-yPm.js} +1 -1
- package/dist/assets/{InviteFormPage-E2igwKEh-BzkLo-m1.js → InviteFormPage-E2igwKEh-BcmmvUgr.js} +1 -1
- package/dist/assets/{InvitePageListView-Cuq9dlgu-BNjoQI0P.js → InvitePageListView-Cuq9dlgu-Dx4gs81g.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Db4P4ZEq-B9OMfSrr.js → InvitePeoplePage-Db4P4ZEq--FjJZSjn.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DYCjz9CI-DkR29XTT.js → InvoiceUploadSection-DYCjz9CI-BSjPAfa8.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CK6fnO24-bch7HeIs.js → IssueChargeCardPage-CK6fnO24-DUq4AU8i.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Ma1WURjK-BjRcNAyc.js → LabeledAddressValue-Ma1WURjK-A51Osu_c.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C6-hVsPb-Bfrq1uTa.js → LabeledAddressValueField-C6-hVsPb-SvnkQYGO.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CgZg0uOW-CjFLwRIN.js → LabeledControlledCheckBoxField-CgZg0uOW-oAjjici4.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-sj8p7Rne-DmVlXwHY.js → LabeledCountryMultiSelectField-sj8p7Rne-BNt9Egt1.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DUTQh416-DtIYGO-z.js → LabeledCreatableSingleSelectField-DUTQh416-D_eDy0tz.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Bp9m-OrP-Di2DVQR8.js → LabeledDocumentField-Bp9m-OrP-Cv3EwCa5.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-3-KekP79-CBuG_XHQ.js → LabeledDropDownFormattedTextField-3-KekP79-CouvwkJK.js} +1 -1
- package/dist/assets/{LabeledText-DvzVOku6-CI8IYs0J.js → LabeledText-DvzVOku6-vd2SPUTM.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-BoHfD7aR.js → LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-DN2oxMXA.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-kWC0ShEy-rvx0SYJG.js → LabeledZeniRolesDropDownField-kWC0ShEy-DMRhcOHr.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-WufhDGDQ-B3rjsU0T.js → LinkJETransactionPage-WufhDGDQ-C3tow9fn.js} +1 -1
- package/dist/assets/{LockCardPage-BBIVLYVD-B0YOZXXr.js → LockCardPage-BBIVLYVD-Bc1P2GXi.js} +1 -1
- package/dist/assets/{LowBalancePopup-ScEqPY9J-CQJroj6z.js → LowBalancePopup-ScEqPY9J-HnxUWV1P.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-C494txw0-BXL5Oo5F.js → MagicLinkACHDetailsPage-C494txw0-DPDy6NMP.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CONBCbOQ-CLIxJIug.js → MagicLinkDomesticWireDetailsPage-CONBCbOQ-DHhQe6wD.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-fSY3JGpz-f3s55HDr.js → MagicLinkInternationalWireDetailsPage-fSY3JGpz-BBMr0CKi.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BDRXSAO4-BVQIDzU9.js → MagicLinkSuccessPage-BDRXSAO4-G8dM7SaL.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-ZnbKPIvJ-BSqgRJcf.js → MagicLinkTitleSection-ZnbKPIvJ-cupADejE.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DZT7JPlI-C6Z2pagF.js → MailingDetailsSection-DZT7JPlI-O0oExSnL.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-aQDVaEG1-DhCXDcNN.js → MyBankConnectionsSettingsPage-aQDVaEG1-Ddq_N56W.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BJrk56oA-8UK9qZGK.js → MyPendingActivationChargeCardListPage-BJrk56oA-IaygRYZd.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-L9WuP6HZ-4YifN_2G.js → MyProfileSettingsPage-L9WuP6HZ-BLt401c3.js} +1 -1
- package/dist/assets/{NavBarWithPicker-zmvBmWS1-A5yL3hW1.js → NavBarWithPicker-zmvBmWS1-DSbxLUgY.js} +1 -1
- package/dist/assets/{NavigationArrow-D26UG3p--DAuEEyBJ.js → NavigationArrow-D26UG3p--vCmsij62.js} +1 -1
- package/dist/assets/{NavigationDots-Bv4tBDN3-Dko875eO.js → NavigationDots-Bv4tBDN3-oYD3IjEb.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-vOn2O6B9-DskrKIYE.js → NewGlobalMerchantPage-vOn2O6B9-lsphEfwv.js} +1 -1
- package/dist/assets/{NoDataChart-CgT19fV7-Dq-PS5iw.js → NoDataChart-CgT19fV7-CT6v85pw.js} +1 -1
- package/dist/assets/{NoDataTable-CPjJmo4s-B0gXcJxM.js → NoDataTable-CPjJmo4s-BNfLJH7M.js} +1 -1
- package/dist/assets/{NotFoundPage-CP2i3FTm-B2Tx_Zo3.js → NotFoundPage-CP2i3FTm-MukSPW3w.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CT9Dnb03-CqwjgM73.js → NotificationSettingsPage-CT9Dnb03-ByWCh6xZ.js} +1 -1
- package/dist/assets/{NotificationsListConfig-Bn1zmx6b-xLvRbIc5.js → NotificationsListConfig-Bn1zmx6b-TJ9FCC7G.js} +1 -1
- package/dist/assets/{NotificationsPage-DDwdR_Jq-CdZxB2zM.js → NotificationsPage-DDwdR_Jq-Bpv74c3q.js} +1 -1
- package/dist/assets/{OpExByVendorPage-DukFYlqO-CuXBR-rW.js → OpExByVendorPage-DukFYlqO-CSLbsErY.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-CVPkUlN6.js → OverlayContainerPage-D4QU0p4o-5ned2q-a.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Bgflh9Om-Dmxi28fl.js → PandLWithForecastPage-Bgflh9Om-RLnpQEEK.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-JPO-rPAd-CHgpZYyo.js → PaymentAccountSetupBillingAddressSection-JPO-rPAd-DFTRFu_Q.js} +1 -1
- package/dist/assets/{PeoplePage-CDvKreQl-CRlr1EmV.js → PeoplePage-CDvKreQl-DOPpfMq2.js} +1 -1
- package/dist/assets/{Preview-spWMBI70.js → Preview-Bh08QQ8y.js} +1 -1
- package/dist/assets/{ProductsCarousel-7R3cvGiS-DlBhSe7D.js → ProductsCarousel-7R3cvGiS-DsY73mkv.js} +1 -1
- package/dist/assets/{PromoBaseCards-DdCMZIc7-B6Z1nEXM.js → PromoBaseCards-DdCMZIc7-DdtdHqeM.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Ca36jKz2-CfdvU0-0.js → QBOConnectionDialog-Ca36jKz2-l23L4X-G.js} +1 -1
- package/dist/assets/{QBOSetupSection-CzBfIVqR-B4kKrGkW.js → QBOSetupSection-CzBfIVqR-ABeN4Ojo.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DUVSGQJ6-C7yuUziG.js → ReimbursementApprovalRuleDetailPage-DUVSGQJ6-ChQV3W0o.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-B48x1gPM-Bmxf9Hlc.js → ReimbursementApprovalRulesPage-B48x1gPM-BWeiV7Xt.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-oIC9QEyF-CRxw2XKK.js → ReimbursementDetailPage-oIC9QEyF-BOkR0rbh.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BKgsJieE-D41M31h1.js → ReimbursementPromoPage-BKgsJieE-KiKGlGxT.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-B_c-ZgFT-nyStFOEL.js → ReimbursementSetUpPage-B_c-ZgFT-CPGog1JW.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CPHh3h5l.js → ReimbursementsBulkReviewDrawerPage-CeyGWbKR-DCDDfYMK.js} +1 -1
- package/dist/assets/{ReloadCard-DKGn1uxF-CHnWO982.js → ReloadCard-DKGn1uxF-DbH-tW4Z.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CXDvZEbR-DVKFHMpg.js → ReportTableViewSelector-CXDvZEbR-CRuUG9gx.js} +1 -1
- package/dist/assets/{ReportsPage-BoUyXSBC-DqEgIltZ.js → ReportsPage-BoUyXSBC-BiB0Kt2s.js} +1 -1
- package/dist/assets/{RevenueChart-SvdhwBcE-CclStxKG.js → RevenueChart-SvdhwBcE-BQ6Hnznt.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-tT1l4R2r-D31xag1Q.js → ReviewDetailsPage-tT1l4R2r-CyC_3RSM.js} +1 -1
- package/dist/assets/{ReviewOverlay-BoM41t8W-B3q95pxr.js → ReviewOverlay-BoM41t8W-BKsrsvnb.js} +1 -1
- package/dist/assets/{RoleWithToolTip-C8x5yXaK-Dbq6YNZJ.js → RoleWithToolTip-C8x5yXaK-Dm9Z_ANT.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bkp0mCOn-CXNO-V0F.js → ScheduleDetailsFixedAssetsPage-Bkp0mCOn-ClEuRXwo.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-Dg9rYJbn-DX2cGcR8.js → ScheduleDetailsPage-Dg9rYJbn-JZfz5BmP.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-J6Eja8XA-C4pj46PF.js → ScheduleSequenceTable-J6Eja8XA-DK2nJCvd.js} +1 -1
- package/dist/assets/{ScreenRoutes-Djen5Qso.js → ScreenRoutes-Dh9_9GMd.js} +1 -1
- package/dist/assets/{SetUpAccountSection-sfIB1h4i-ChZ6V5QM.js → SetUpAccountSection-sfIB1h4i-Bo3cXG50.js} +1 -1
- package/dist/assets/{SignIn-Cu2nzuEC-CMzKn_tC.js → SignIn-Cu2nzuEC-udO1onRl.js} +1 -1
- package/dist/assets/{SignInScreen-OAq50V8E.js → SignInScreen-C_a3tcP8.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-9V9u1jPF-CmDrIGYQ.js → SpendManagementListViewPage-9V9u1jPF-5A_NOo7G.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-COvEPq7V-Do4O10gl.js → SpendManagementPerTabPage-COvEPq7V-CWqwTqKd.js} +1 -1
- package/dist/assets/{SpendManagementSection-dT-N4bSQ-BiovZfwW.js → SpendManagementSection-dT-N4bSQ-DyiRwDlk.js} +1 -1
- package/dist/assets/{StatementItem-g5tfNBjV-C9Hg8CS4.js → StatementItem-g5tfNBjV-Uz8eUgvJ.js} +1 -1
- package/dist/assets/{StatementsPage-DaFrVUeK-DSTw3UAU.js → StatementsPage-DaFrVUeK-C3pjTwJV.js} +1 -1
- package/dist/assets/{StatusSwitcher-CaoFw0cf-C3lxp9pU.js → StatusSwitcher-CaoFw0cf-CFPUWOAP.js} +1 -1
- package/dist/assets/{SubTabSwitcher-zrkVj1aP-_xN0-uG5.js → SubTabSwitcher-zrkVj1aP-_Y-lGR4O.js} +1 -1
- package/dist/assets/{SummaryCard-B9wqNSwM-n1ImzaFb.js → SummaryCard-B9wqNSwM-BEKfBuq9.js} +1 -1
- package/dist/assets/{TaskManagementPage-dAK9tl2b-CTG2_KMv.js → TaskManagementPage-dAK9tl2b-DgNthxRd.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-r1TNqVRb-DCJluex4.js → TimeRangeSwitcher-r1TNqVRb-DkOKBWjv.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-DHfHCTa4-B2FI2qD3.js → TimeframeSwitcher-DHfHCTa4-Bxq8Hftv.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DvBvguRl-DxV9Vm6A.js → TimeframeSwitcherWithToggle-DvBvguRl-DV_tJyVz.js} +1 -1
- package/dist/assets/{TopExCard-BUjnGDUB-ILeRndVt.js → TopExCard-BUjnGDUB-DDOVH94X.js} +1 -1
- package/dist/assets/{TopExDetailPage-CNDkfc3u-BPGQHHhh.js → TopExDetailPage-CNDkfc3u-B2fX7zYK.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-kSQqJVpX-CN_Bd6XL.js → TransactionActivityLogPage-kSQqJVpX-CgGnvC5t.js} +1 -1
- package/dist/assets/{TransactionDetailPage-f7vWtXWL-B6Z3KQcQ.js → TransactionDetailPage-f7vWtXWL-Bh_Q7Ml2.js} +1 -1
- package/dist/assets/{TransactionList-3-mUZOsw-BOqEjROc.js → TransactionList-3-mUZOsw-Bjo6uOYk.js} +1 -1
- package/dist/assets/{TransactionListBig-Bx_Rm9ho-B9vgR37B.js → TransactionListBig-Bx_Rm9ho-CtCz2Lyh.js} +1 -1
- package/dist/assets/{TransactionListPage-q6x4_jni-ByWLrriF.js → TransactionListPage-q6x4_jni-DpY58IiZ.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-MjSH5hfq-BauD225P.js → TransactionVendorDetailPage-MjSH5hfq-C3IDSQwc.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BayVa6po-DOmgo5bD.js → TransferDrawerPage-BayVa6po-DwrUwkcR.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CuqWmrO5-WjxiYw-Z.js → TreasuryOverviewPage-CuqWmrO5-xWjYlFCm.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BCjz1EKX-B5KDWi07.js → TreasuryPromoPage-BCjz1EKX-Dgtwfoud.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CGr00SXF-C60wRmKc.js → TreasuryStatementsPage-CGr00SXF-DaeYu6qK.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-D9_qnlK4-DjBNSdh0.js → TreasuryTaxLetterPage-D9_qnlK4-CR3XJwj5.js} +1 -1
- package/dist/assets/{TrendChart-JTOG0a7B-DpgA2voA.js → TrendChart-JTOG0a7B-BPCPEjor.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CTJhTpAM-BQk6HV-p.js → TrendWithTransactions-CTJhTpAM-Bv1UqYxB.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-TGKYpC5A-RvK9bcxw.js → UncategorizedAccountsMappingPage-TGKYpC5A-B1sGC0BQ.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-mt2IjA5X-sxJ5WITz.js → UnitIntegrationPage-mt2IjA5X-BIw1k3_j.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DZfpwE5J-DW-djX7x.js → UploadAdditionalDocumentOverlay-DZfpwE5J-rLD7Y7JG.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DAOf5cJD-BPBPmB6-.js → Vendor2FAPopup-DAOf5cJD-C4NPPJZt.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CCOupiSZ-CBSNIh8C.js → VendorACHDetailsPage-CCOupiSZ-VkKL9cse.js} +1 -1
- package/dist/assets/{VendorDetailPage-DufNphGD-CYmhQiv4.js → VendorDetailPage-DufNphGD-BpKUNlD8.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-BayV34Rt-Bv9GXuwg.js → VendorDomesticWireDetailsPage-BayV34Rt-b6OkYMHi.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CRnO7Ubw-D8TJzbQY.js → VendorFiling1099EditablePage-CRnO7Ubw-CN7VgWdB.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-DA0EL4RJ-B1EJ16cd.js → VendorFirstReviewPage-DA0EL4RJ-iVupFwLM.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-HUtNyn9Z-DME8KQvf.js → VendorInternationalWireDetailsPage-HUtNyn9Z-Bepuipax.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DRVMUeXi-WaJ_bb27.js → VendorInternationalWireSwiftDetailsPage-DRVMUeXi-2YV2vBHu.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D6Qa1zf9-uVFUNuqq.js → VendorsAccountsSection-D6Qa1zf9-BOpjhiGE.js} +1 -1
- package/dist/assets/{VerifyDevice-B6B_nk3v-Bdkrxio0.js → VerifyDevice-B6B_nk3v-B5i8fKIX.js} +1 -1
- package/dist/assets/{VideoPlayer-BRAgZThr-DjmJcTCC.js → VideoPlayer-BRAgZThr-D2qPsCHw.js} +2 -2
- package/dist/assets/{VideoPopup-C_SkBI9U-BcIEWeMW.js → VideoPopup-C_SkBI9U-BTwHqW0E.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-B3gB3wW7-D2GIDjbZ.js → WarningsDrawerPage-B3gB3wW7-CvBkHLSl.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Dp-eo-Vq-Bhjoyj-p.js → ZeniAccountDetailPage-Dp-eo-Vq-ByIjykDL.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-S-XmAYqD-DifvzT-q.js → ZeniAccountListViewPage-S-XmAYqD-RzlWcBha.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DhjBxfEr-Cs_0mVt4.js → ZeniAccountNavBarPieces-DhjBxfEr-NUqiiuuD.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BgYCHYLO-Cw7mPD8B.js → ZeniAccountPromoPage-BgYCHYLO-WViSdc2S.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CvnIMdcY-UG3h63JG.js → ZeniAccountSetupPage-CvnIMdcY-Cj37yJbf.js} +1 -1
- package/dist/assets/{ZeniCopyright-BlLvlGZV-oWH5-_QG.js → ZeniCopyright-BlLvlGZV-CrVJLfj_.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BNYgPwHs-BkFdMOqg.js → ZeniTransferAmountSlider-BNYgPwHs-CcASxOZt.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CQY6YDIS.js → add-to-wallet-DgdBD8_G-CEUXmLLB.js} +1 -1
- package/dist/assets/{analytics-Bkw5onLf.js → analytics-CkM8lXFl.js} +1 -1
- package/dist/assets/{analyticsHelper-CYr5V2MV-D117boEZ.js → analyticsHelper-CYr5V2MV-CkRNnCUV.js} +1 -1
- package/dist/assets/{analyticsHelper-BrCWxqsP.js → analyticsHelper-gGnU4EeF.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-Bjmr6TY7.js → arrow-south-east-round-PEovUgvH-1rW0zoS2.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CNNhiF_u.js → auto-transfer-rule-mbafm5D3-CFQdrDeA.js} +1 -1
- package/dist/assets/{chartTypes-40RenddT-C3e8npm6.js → chartTypes-40RenddT-C5cIBfKP.js} +1 -1
- package/dist/assets/{commonDimensions-BMnB1-xU-BEplFlGz.js → commonDimensions-BMnB1-xU-DiUddsI8.js} +1 -1
- package/dist/assets/{commonTypes-DsWS6Ccc-DEEa_Sk5.js → commonTypes-DsWS6Ccc-CwodQQco.js} +1 -1
- package/dist/assets/{constants-BjwuG-sL.js → constants-CTjR4H-o.js} +1 -1
- package/dist/assets/{core-ChNxRm0V.js → core-C2ocMdpX.js} +1 -1
- package/dist/assets/{dash.all.min-CPWXIJa3.js → dash.all.min-BCNwafZn.js} +1 -1
- package/dist/assets/{detailCommon-CrcyqWtZ-Y-btcKvT.js → detailCommon-CrcyqWtZ-rWotQtvr.js} +1 -1
- package/dist/assets/{downloadPdf-CUUx8PWn-CpeF1exC.js → downloadPdf-CUUx8PWn-BdEKPRoV.js} +1 -1
- package/dist/assets/{empty-CbUW6a7c.js → empty-D1vxKoTb.js} +1 -1
- package/dist/assets/{empty-DB2fqLbL.js → empty-V8XS4YR7.js} +1 -1
- package/dist/assets/{epic-D8ilA7L4.js → epic-DauDmjnX.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-CAEsBxF-.js → gift-box-Cmt9OgIZ-D3iw0yyB.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-5QBY0UXm.js → graphic-no-data-l-DU4J8fDt-Dy3KHs8N.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-hdaFlp9y.js → graphic-no-data-net-burn-l-CzmycA0m-BZpKWoe8.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-ChCbIa55.js → handshake-BPg58FML-oAGcRw5Y.js} +1 -1
- package/dist/assets/{helper-BMiMbXMj-Dmh6E349.js → helper-BMiMbXMj-3yg_EAWe.js} +1 -1
- package/dist/assets/{index-DlObXRGr.js → index-BIVWVvnU.js} +1 -1
- package/dist/assets/{index-B7L93Ji9.js → index-CgqMT29q.js} +1 -1
- package/dist/assets/{index-DqZ19at7.js → index-DMtzVMbw.js} +7 -7
- package/dist/assets/{index-DVyniIKO.js → index-PQV-Jugy.js} +1 -1
- package/dist/assets/{index-ioI1xYoQ.js → index-S8MS3O9i.js} +1 -1
- package/dist/assets/{index-cdfRDhK8.js → index-VGNYvjLY.js} +1 -1
- package/dist/assets/{index-Dpyv5L0j.js → index-yaAnolck.js} +1 -1
- package/dist/assets/{lexical-1Ygrq4RW.js → lexical-DGY0EwD1.js} +1 -1
- package/dist/assets/{liveblocks-BTMi-6jm.js → liveblocks-BP-9wBvW.js} +1 -1
- package/dist/assets/{lottie-DePu4yCn.js → lottie-CH4Au8OK.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DGnyXKBT-BYse0ozL.js → mapLoadingInProgressToTreeNode-DGnyXKBT-Diz2jPsG.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BkPRWtaj-hihXzy98.js → mapSectionWithAcOnlyToTreeNode-BkPRWtaj-BgcXUMpE.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CvGdU9Ma-DeFN34g2.js → mapSpacerToTreeNode-CvGdU9Ma-99-38wUs.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BCOsOvxo-CSygkCSn.js → mapTimeframeBalancesToTreeNode-BCOsOvxo-D1JEqmHt.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DIqYP3NK-R-95BHOA.js → mapTimeframeBalancesToTreeNode-DIqYP3NK-CzEZLVGT.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-27M6rUwe.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-CQMmf8Vi.js} +1 -1
- package/dist/assets/{mui-ZYC_cKE8.js → mui-CoYz3n28.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DC8jxm5B.js → page-detail-CWX5S47F-y8p1z9Ov.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-D6-xSZhW.js → panelSelectedMixin-CzfD5-Zs-BhQovnBD.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-BxCWoZze.js → radio-default-CiSgisfh-CcppOTnL.js} +1 -1
- package/dist/assets/{react-BKZXD5Oc.js → react-BV0JbFK9.js} +1 -1
- package/dist/assets/{react-IIMWUaFV.js → react-CDgvvYzw.js} +1 -1
- package/dist/assets/{react-d6rMgZIK.js → react-D4lAziVQ.js} +1 -1
- package/dist/assets/{react-BYslFEBJ.js → react-DDKwoBWl.js} +1 -1
- package/dist/assets/{react-BwmLfOl6.js → react-DKpRtEcT.js} +1 -1
- package/dist/assets/{react--xqujLHa.js → react-GnwsG-Kr.js} +1 -1
- package/dist/assets/{react-Z0_odY1k.js → react-cAXirknQ.js} +1 -1
- package/dist/assets/{react-C9KgujEQ.js → react-kevoc5vo.js} +2 -2
- package/dist/assets/{recharts-CPKKNFMD.js → recharts-BDU9Jttg.js} +1 -1
- package/dist/assets/{sentry-DO9J0OD9.js → sentry-oySuCz2z.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-K7yJVGAq.js → shield-DOlUxcFf-C7HWEBos.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DkMGvlEt-BttuYM2L.js → toCOABalancesWithID-DkMGvlEt-CjweDPd3.js} +1 -1
- package/dist/assets/{toChartData-C6s-eBzE-DfNWG1EA.js → toChartData-C6s-eBzE-DQEzIUE9.js} +1 -1
- package/dist/assets/{uploadAttachment-BlLqRIXe-BrI0Dxy9.js → uploadAttachment-BlLqRIXe-CMo80ZkF.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-C53BLsXO.js → uploadReceipts-Dge0cNF1-Dvyi-9oH.js} +1 -1
- package/dist/assets/{url-VhWKyQz6.js → url-BgqPEja_.js} +1 -1
- package/dist/assets/{url-Brmd3733.js → url-CxTzQh6W.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BBNJdZmN.js → useLongPress-GCK2COYQ-DAOTd3ww.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BjY16bQv.js → usp-line-BBd1wKwW-CGF9yi5W.js} +1 -1
- package/dist/assets/{utils-CXoyjNuY.js → utils-lCkIh4TY.js} +1 -1
- package/dist/assets/{zeni-epic-state-C5Hzx540.js → zeni-epic-state-C253RwnE.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-BpoLCE54.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as W,u as L,d as M,J as G,O as U,aa as H,aS as J,aL as X,cH as Y,V as r,bE as K,ad as Q,aT as Z,o as b,gb as ee}from"./index-
|
|
1
|
+
import{y as W,u as L,d as M,J as G,O as U,aa as H,aS as J,aL as X,cH as Y,V as r,bE as K,ad as Q,aT as Z,o as b,gb as ee}from"./index-DMtzVMbw.js";import{a as T}from"./sentry-oySuCz2z.js";import{n as c}from"./mui-CoYz3n28.js";import{b as te,f as le,o as B,l as _}from"./FollowStepsSection-0eFMS0c5-Crvq3nzf.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./zeni-epic-state-C253RwnE.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="ac1d38cb-6ab4-43be-9483-9ce76d1c8232",e._sentryDebugIdIdentifier="sentry-dbid-ac1d38cb-6ab4-43be-9483-9ce76d1c8232")}catch{}})();const k="reimbursementApprovalRuleDetailPage",$="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",ae={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:l,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:i=!1,onBackClick:s,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:w}){const V=M(),A=G(),a=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,l==="approval_create"&&!t),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=J(u?.fetchState),{upperBound:P}=x,{allApprovalRules:d,allAccountingClasses:O,remiSetupApproverViewUpdateData:m}=e;let f=d.length>1?d.length-1:0,v=d.length>0?d[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=d.findIndex(p=>p.approvalRuleId===n),v=f>0?d[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,p)=>{g(p)};return T.useEffect(()=>{const n=y.watch((p,{name:D})=>{if(D!=null&&p!=null){const F=X(p);Y(()=>z(D,F))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&w()},[R,u?.fetchState,w]),r.jsxs(ie,{children:[r.jsx(K,{title:l==="approval_create"?a.newApproval:a.editApproval,backgroundColor:V.colors.grey4,style:{zIndex:4},onBackClick:()=>{s()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Q,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:C(k),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(te,{label:{label:i?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:$,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:n=>t?!0:n!=null&&n>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:i,additionalInfoLabel:a.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(le,{sectionId:I,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:O,stepsInfo:x[I],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:C(k),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&d.length===0?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:a.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:A==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(A)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,l)=>{const{criteria:t,steps:o}=e.remiSetupApproverViewUpdateData?.data??{},i=e.allApprovalRules.length===0;return{[h]:i?[]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),B(e.allAttributes),B(e.filteredAttributes),o??[])??[],[$]:l?void 0:t!=null?t.range.min.amount??0:0,[j]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},oe=(e,l,t,o,i)=>i&&i.length>0?i.map((s,g)=>({stepIndex:g,stepType:{selectedOption:s.action,allOptions:_},actors:{allUsers:l,selectedUsers:se(e,s.actors),allNonUsers:o,selectedNonUsers:ne(t,s.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:_},actors:{allUsers:l,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,l)=>e.filter(t=>t.userId!=null&&l.findIndex(o=>o.userId===t.userId)>-1),ne=(e,l)=>e.filter(t=>l.findIndex(o=>o.subType===t.value)>-1),C=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as V,J as N,O as j,V as t,bE as G,T as F,aR as m,o,y as r,am as E,aP as P,bV as T,cr as O,cs as q,ct as K,d1 as J,u as l,bb as Q,H as k,ba as X,p as z,d0 as Y,bv as Z,b as ee}from"./index-
|
|
1
|
+
import{d as V,J as N,O as j,V as t,bE as G,T as F,aR as m,o,y as r,am as E,aP as P,bV as T,cr as O,cs as q,ct as K,d1 as J,u as l,bb as Q,H as k,ba as X,p as z,d0 as Y,bv as Z,b as ee}from"./index-DMtzVMbw.js";import{n as i}from"./mui-CoYz3n28.js";import{a as te}from"./sentry-oySuCz2z.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./zeni-epic-state-C253RwnE.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="4fbb6f89-610f-42af-a270-6690c8a10872",e._sentryDebugIdIdentifier="sentry-dbid-4fbb6f89-610f-42af-a270-6690c8a10872")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},H={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:x=!1,approvalRule:b,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[g,w]=te.useState(!1),n=N(),{range:h}=b.criteria[0],{steps:$,approvalRuleId:p}=b,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},M={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,U)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(L,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(L,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(A,{className:"operator",children:u.operator}):null]},d.userId))]},U))})}),g?t.jsx(O,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:M}):null]})},ie=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ax as Mt,a9 as Rt,J as Pt,d as Bt,cf as Nt,y as m,O as et,gl as Lt,gn as Ot,go as _t,V as t,cr as Ae,cs as Me,ct as Re,bE as Pe,aR as y,bq as Et,dx as Wt,gp as Kt,gA as Be,o as a,gq as Ne,fm as b,gt as x,fp as w,aP as Le,fl as Oe,b as V,gv as _e,aT as Ft,ap as Ut,gw as Vt,gx as re,bz as Ht,gy as Gt,x as Yt,H as qt,B as Jt,am as tt,bb as it,p as H,an as Zt,bX as Qt,aj as Xt,gS as ei,gO as ti,u as c,ck as ii,c$ as ai}from"./index-DqZ19at7.js";import{a as p}from"./sentry-DO9J0OD9.js";import{n as r}from"./mui-ZYC_cKE8.js";import{a as ri}from"./liveblocks-BTMi-6jm.js";import{bL as oi,bP as ni,FS as li}from"./zeni-epic-state-C5Hzx540.js";import si from"./InvoiceUploadSection-DYCjz9CI-DkR29XTT.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-ChNxRm0V.js";import"./lottie-DePu4yCn.js";import"./recharts-CPKKNFMD.js";import"./analytics-Bkw5onLf.js";import"./lexical-1Ygrq4RW.js";import"./utils-CXoyjNuY.js";import"./AttachmentView-DB_V1qT1-BBS5lFy5.js";import"./uploadReceipts-Dge0cNF1-C53BLsXO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="c4b51a42-3cf1-458e-aceb-10d0897e76e5",e._sentryDebugIdIdentifier="sentry-dbid-c4b51a42-3cf1-458e-aceb-10d0897e76e5")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new qt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:G,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,q]=p.useState(!1),[ct,J]=p.useState(!1),[Z,Q]=p.useState("approved"),N=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,xe=p.useRef({}),we=l=>{const n=xe.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&G()},[e,G]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);we(n)}},[]);const ut=()=>{G()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ye?.():j.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:O}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,E=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=_?.code==="paid",ft=Te?_:E?.code=="approved"&&W?.code?W:E,$=pi(e.remiDetails),R=E?.code=="approved"&&W?.code?W:E,K=e.remiDetails?.isDeleted??!1,Se=e.remiDetails?.amount,je=e.remiDetails?.amount.amount??0,Ie=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Q("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Ie()):(Q("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:F,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&F(z)},[z,F]);const{threads:P,isLoading:D}=Ot({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),F(null))},[ae,P,D,U,F]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:j.title}),descriptionComponent:t.jsx(Me,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Et,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(qe,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Kt,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:O.duplicateWarning.title,description:O.duplicateWarning.description}):ke?t.jsxs(Ee,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Ke,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ki,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:O.duplicateWarning.title,description:O.duplicateWarning.description}):ke?t.jsxs(Ee,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Ke,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:o,ref:ze=>{ze!=null&&(xe.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return we(`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:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey: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:M},text:l.transactionDate?.format(ve.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:M},text:l.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:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.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:l.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:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey: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:M},text:l.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:M},text:l.transactionDate?.format(ve.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:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.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:l.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:l.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:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Oe,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:je,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Ei,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Oe,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(_e,{amount:je,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||K===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&q(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>q(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&Ct===!0?t.jsx(Si,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>q(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:xt,threadUnResolve:wt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
1
|
+
import{ax as Mt,a9 as Rt,J as Pt,d as Bt,cf as Nt,y as m,O as et,gl as Lt,gn as Ot,go as _t,V as t,cr as Ae,cs as Me,ct as Re,bE as Pe,aR as y,bq as Et,dx as Wt,gp as Kt,gA as Be,o as a,gq as Ne,fm as b,gt as x,fp as w,aP as Le,fl as Oe,b as V,gv as _e,aT as Ft,ap as Ut,gw as Vt,gx as re,bz as Ht,gy as Gt,x as Yt,H as qt,B as Jt,am as tt,bb as it,p as H,an as Zt,bX as Qt,aj as Xt,gS as ei,gO as ti,u as c,ck as ii,c$ as ai}from"./index-DMtzVMbw.js";import{a as p}from"./sentry-oySuCz2z.js";import{n as r}from"./mui-CoYz3n28.js";import{a as ri}from"./liveblocks-BP-9wBvW.js";import{bL as oi,bP as ni,FS as li}from"./zeni-epic-state-C253RwnE.js";import si from"./InvoiceUploadSection-DYCjz9CI-BSjPAfa8.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-C2ocMdpX.js";import"./lottie-CH4Au8OK.js";import"./recharts-BDU9Jttg.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";import"./AttachmentView-DB_V1qT1-DmTJ6caW.js";import"./uploadReceipts-Dge0cNF1-Dvyi-9oH.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="c4b51a42-3cf1-458e-aceb-10d0897e76e5",e._sentryDebugIdIdentifier="sentry-dbid-c4b51a42-3cf1-458e-aceb-10d0897e76e5")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new qt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:G,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,q]=p.useState(!1),[ct,J]=p.useState(!1),[Z,Q]=p.useState("approved"),N=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,xe=p.useRef({}),we=l=>{const n=xe.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&G()},[e,G]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);we(n)}},[]);const ut=()=>{G()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ye?.():j.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:O}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,E=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=_?.code==="paid",ft=Te?_:E?.code=="approved"&&W?.code?W:E,$=pi(e.remiDetails),R=E?.code=="approved"&&W?.code?W:E,K=e.remiDetails?.isDeleted??!1,Se=e.remiDetails?.amount,je=e.remiDetails?.amount.amount??0,Ie=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Q("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Ie()):(Q("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:F,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&F(z)},[z,F]);const{threads:P,isLoading:D}=Ot({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),F(null))},[ae,P,D,U,F]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:j.title}),descriptionComponent:t.jsx(Me,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Et,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(qe,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Kt,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:O.duplicateWarning.title,description:O.duplicateWarning.description}):ke?t.jsxs(Ee,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Ke,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ki,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(He,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:K})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:O.duplicateWarning.title,description:O.duplicateWarning.description}):ke?t.jsxs(Ee,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Ke,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:o,ref:ze=>{ze!=null&&(xe.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return we(`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:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey: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:M},text:l.transactionDate?.format(ve.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:M},text:l.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:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.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:l.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:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey: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:M},text:l.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:M},text:l.transactionDate?.format(ve.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:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.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:l.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:l.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:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Oe,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:je,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Ei,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Oe,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(_e,{amount:je,activities:e.remiActivities,stage:_?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||K===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&q(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>q(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&Ct===!0?t.jsx(Si,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>q(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:xt,threadUnResolve:wt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ax as ne,d as S,J as k,aS as le,V as e,aR as a,fx as ae,bE as de,i as u,af as d,O as V,o as r,ar as me,R as ce,aV as E,an as pe,y as xe,p as z,cG as he,aW as ue,bc as ge,u as we}from"./index-
|
|
1
|
+
import{ax as ne,d as S,J as k,aS as le,V as e,aR as a,fx as ae,bE as de,i as u,af as d,O as V,o as r,ar as me,R as ce,aV as E,an as pe,y as xe,p as z,cG as he,aW as ue,bc as ge,u as we}from"./index-DMtzVMbw.js";import{a as j}from"./sentry-oySuCz2z.js";import{n as s}from"./mui-CoYz3n28.js";import{FR as je,bT as be}from"./zeni-epic-state-C253RwnE.js";import{C as fe}from"./VideoPopup-C_SkBI9U-BTwHqW0E.js";import{M as v}from"./usp-line-BBd1wKwW-CGF9yi5W.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";import"./VideoPlayer-BRAgZThr-D2qPsCHw.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="62a502e8-27f1-42a8-9196-373bb71e2307",i._sentryDebugIdIdentifier="sentry-dbid-62a502e8-27f1-42a8-9196-373bb71e2307")}catch{}})();const F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Ee,J as Te,aS as N,aa as qe,cH as Ge,O as Ve,aX as Ce,V as t,ff as Je,p as J,y as s,bE as Ze,T as Ye,ad as Xe,fy as ve,dS as Ke,fz as Qe,by as et,dI as tt,aT as it,o as a,fB as nt,u as n,ck as ot,cL as at,ex as lt,fK as ke,fL as $e,gk as st,i as rt,aR as Pe,H as Ae,bO as dt,aj as ct,bv as ut}from"./index-
|
|
1
|
+
import{d as Ee,J as Te,aS as N,aa as qe,cH as Ge,O as Ve,aX as Ce,V as t,ff as Je,p as J,y as s,bE as Ze,T as Ye,ad as Xe,fy as ve,dS as Ke,fz as Qe,by as et,dI as tt,aT as it,o as a,fB as nt,u as n,ck as ot,cL as at,ex as lt,fK as ke,fL as $e,gk as st,i as rt,aR as Pe,H as Ae,bO as dt,aj as ct,bv as ut}from"./index-DMtzVMbw.js";import{a as o}from"./sentry-oySuCz2z.js";import{n as i}from"./mui-CoYz3n28.js";import{bJ as mt}from"./zeni-epic-state-C253RwnE.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DZfpwE5J-rLD7Y7JG.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="bfd0bd4c-3837-4e85-8f81-cba7ad90eb98",e._sentryDebugIdIdentifier="sentry-dbid-bfd0bd4c-3837-4e85-8f81-cba7ad90eb98")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Te(),D=Ee(),{formState:{errors:Y},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:U,mileageStatus:w}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[S,T]=o.useState(F),[te,H]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!1||U.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&F&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Vt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,cr as V,cs as M,ct as K,ke as W,a_ as q,O as z}from"./index-
|
|
1
|
+
import{V as f,cr as V,cs as M,ct as K,ke as W,a_ as q,O as z}from"./index-DMtzVMbw.js";import{a as b}from"./sentry-oySuCz2z.js";import{Gp as G}from"./zeni-epic-state-C253RwnE.js";import{u as X}from"./ReviewOverlay-BoM41t8W-BKsrsvnb.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./mui-CoYz3n28.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="2366a228-1f68-44b5-8aa8-1aed94f114e2",e._sentryDebugIdIdentifier="sentry-dbid-2366a228-1f68-44b5-8aa8-1aed94f114e2")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=z.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=b.useState(!1),[m,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===m.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[m.length,B,h,e.fetchState,v,e,o]);const D=m.length,S=m.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:C}=Y(S);A({type:"reject",title:d,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:d=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,G(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",d)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},O=()=>{let d=a.footer.approve;return T?d=a.texts.close:t==="send_for_approval"&&(d=a.footer.submit),{label:d,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(V,{titleComponent:f.jsx(K,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(X,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:O(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:q("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let m="",_="";return e==="Completed"&&!u?(m=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(m=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as l,V as r,aO as a,b4 as f,O as y,aR as m,aU as h,bG as g,aj as u,o as c,b5 as w}from"./index-
|
|
1
|
+
import{d as l,V as r,aO as a,b4 as f,O as y,aR as m,aU as h,bG as g,aj as u,o as c,b5 as w}from"./index-DMtzVMbw.js";import{n as d}from"./mui-CoYz3n28.js";import{a as s}from"./sentry-oySuCz2z.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="6f18c949-9689-4ee3-ab1d-702c078fdcad",e._sentryDebugIdIdentifier="sentry-dbid-6f18c949-9689-4ee3-ab1d-702c078fdcad")}catch{}})();function j({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=d(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(j,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const b=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ee,J as de,cf as be,aa as ye,V as o,ap as _e,cg as te,ad as we,y as P,aT as $e,o as n,O as oe,ch as ve,ci as ke,cj as Ce,ck as je,cl as Ie,an as he,cm as Se,aj as Ne,aF as X,bG as Pe,u as f,aX as Oe,am as De,au as Fe}from"./index-
|
|
1
|
+
import{d as ee,J as de,cf as be,aa as ye,V as o,ap as _e,cg as te,ad as we,y as P,aT as $e,o as n,O as oe,ch as ve,ci as ke,cj as Ce,ck as je,cl as Ie,an as he,cm as Se,aj as Ne,aF as X,bG as Pe,u as f,aX as Oe,am as De,au as Fe}from"./index-DMtzVMbw.js";import{a as u,P as ue}from"./sentry-oySuCz2z.js";import{n as d}from"./mui-CoYz3n28.js";import{R as O,I as Be}from"./CollapsableReportTable-CDEe9s_E-DOTF-z0w.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d2e7a77e-2945-4894-aeaf-92341ad62973",e._sentryDebugIdIdentifier="sentry-dbid-d2e7a77e-2945-4894-aeaf-92341ad62973")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ae=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Te(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ae(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ee(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
|
|
2
2
|
padding: 0 ${n.sp3} 0 ${n.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,d as G,O as y,ax as ge,V as r,bQ as _e,aR as P,bF as be,bE as Se,o as w,aV as we,T as ye,y as B,bR as Ce,u as S,w as A,aF as X,$ as xe,aX as Oe,at as Re,bN as Ae}from"./index-DqZ19at7.js";import{a as L,P as K}from"./sentry-DO9J0OD9.js";import{n as _}from"./mui-ZYC_cKE8.js";import{bg as Z,ES as Be,E$ as ve,F0 as $,F1 as Te,F2 as Le,F3 as Pe,F4 as Ne,F5 as Ie,F6 as ee,F7 as te}from"./zeni-epic-state-C5Hzx540.js";import{m as z,l as q}from"./analyticsHelper-CYr5V2MV-D117boEZ.js";import{x as ke}from"./ReportTableViewSelector-CXDvZEbR-DVKFHMpg.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-r1TNqVRb-DCJluex4.js";import{M as Me}from"./TimeframeSwitcherWithToggle-DvBvguRl-DxV9Vm6A.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-DqiL3-FB-D2yDQ3WD.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-CDEe9s_E-CMF0RoW1.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BkPRWtaj-hihXzy98.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BCOsOvxo-CSygkCSn.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-27M6rUwe.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-DGnyXKBT-BYse0ozL.js";import"./liveblocks-BTMi-6jm.js";import"./core-ChNxRm0V.js";import"./recharts-CPKKNFMD.js";import"./lottie-DePu4yCn.js";import"./analytics-Bkw5onLf.js";import"./lexical-1Ygrq4RW.js";import"./utils-CXoyjNuY.js";import"./TimeframeSwitcher-DHfHCTa4-B2FI2qD3.js";import"./page-detail-CWX5S47F-DC8jxm5B.js";import"./AccountRow-CpftykFx-oOdBXU8G.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9301a30b-4640-4c55-8094-64b5e5331bf1",e._sentryDebugIdIdentifier="sentry-dbid-9301a30b-4640-4c55-8094-64b5e5331bf1")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),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(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
1
|
+
import{J as W,d as G,O as y,ax as ge,V as r,bQ as _e,aR as P,bF as be,bE as Se,o as w,aV as we,T as ye,y as B,bR as Ce,u as S,w as A,aF as X,$ as xe,aX as Oe,at as Re,bN as Ae}from"./index-DMtzVMbw.js";import{a as L,P as K}from"./sentry-oySuCz2z.js";import{n as _}from"./mui-CoYz3n28.js";import{bg as Z,ES as Be,E$ as ve,F0 as $,F1 as Te,F2 as Le,F3 as Pe,F4 as Ne,F5 as Ie,F6 as ee,F7 as te}from"./zeni-epic-state-C253RwnE.js";import{m as z,l as q}from"./analyticsHelper-CYr5V2MV-CkRNnCUV.js";import{x as ke}from"./ReportTableViewSelector-CXDvZEbR-CRuUG9gx.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-r1TNqVRb-DkOKBWjv.js";import{M as Me}from"./TimeframeSwitcherWithToggle-DvBvguRl-DV_tJyVz.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-DqiL3-FB-DY3M1Nto.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-CDEe9s_E-DOTF-z0w.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BkPRWtaj-BgcXUMpE.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BCOsOvxo-D1JEqmHt.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-CQMmf8Vi.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-DGnyXKBT-Diz2jPsG.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";import"./TimeframeSwitcher-DHfHCTa4-Bxq8Hftv.js";import"./page-detail-CWX5S47F-y8p1z9Ov.js";import"./AccountRow-CpftykFx-Cp2fNiFY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9301a30b-4640-4c55-8094-64b5e5331bf1",e._sentryDebugIdIdentifier="sentry-dbid-9301a30b-4640-4c55-8094-64b5e5331bf1")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),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(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ne(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):Ie(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
|
|
2
2
|
height: ${e=>e.height}px;
|
|
3
3
|
width: 99.9%;
|
|
4
4
|
margin-top: ${w.sp2};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as A,V as a,O as D,J as de,b5 as J,u as I,b as M,a_ as Q,o as m,aR as Ae,p as g,aF as Ve,y as xe,bO as ge,am as R,bP as V,bc as F}from"./index-
|
|
1
|
+
import{d as A,V as a,O as D,J as de,b5 as J,u as I,b as M,a_ as Q,o as m,aR as Ae,p as g,aF as Ve,y as xe,bO as ge,am as R,bP as V,bc as F}from"./index-DMtzVMbw.js";import{a as P,P as ee}from"./sentry-oySuCz2z.js";import{n as x}from"./mui-CoYz3n28.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-40RenddT-C5cIBfKP.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-DkMGvlEt-CjweDPd3.js";import{V as Z}from"./toChartData-C6s-eBzE-DQEzIUE9.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-BDU9Jttg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="04d49598-50f3-4c7e-becd-b8e9ff7df687",e._sentryDebugIdIdentifier="sentry-dbid-04d49598-50f3-4c7e-becd-b8e9ff7df687")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Tt,ax as Ct,y as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as le,fd as At,fe as Mt,ff as Bt,fg as Ft,aP as A,fh as Rt,aR as v,fi as Lt,fj as Be,fk as Fe,fl as Re,b as K,fm as O,p as j,fn as zt,fo as E,fp as W,fq as Nt,fr as Ot,bV as Le,o as n,aT as Et,u as d,O as Wt,ah as Vt,c4 as _t,H as Yt,B as Zt,fs as Gt,ck as Ht,am as ce,an as me,ft as Kt,fu as qt,bk as Ut,a as Xt,bb as Jt,fv as Qt,ar as tt,bM as en,aj as nt,bv as tn,fw as nn}from"./index-DqZ19at7.js";import{a as _}from"./sentry-DO9J0OD9.js";import{n as i}from"./mui-ZYC_cKE8.js";import{bo as ze,bm as Ne,bH as I,bN as an,FG as on,bL as re,bP as ln}from"./zeni-epic-state-C5Hzx540.js";import{t as rn,o as sn}from"./LowBalancePopup-ScEqPY9J-CQJroj6z.js";import{S as V}from"./LabeledText-DvzVOku6-CI8IYs0J.js";import"./liveblocks-BTMi-6jm.js";import"./core-ChNxRm0V.js";import"./recharts-CPKKNFMD.js";import"./lottie-DePu4yCn.js";import"./analytics-Bkw5onLf.js";import"./lexical-1Ygrq4RW.js";import"./utils-CXoyjNuY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="c88788c9-632e-405a-9806-a2b8fbfdaff3",e._sentryDebugIdIdentifier="sentry-dbid-c88788c9-632e-405a-9806-a2b8fbfdaff3")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Yt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:We}=mn,Ve=({attachment:e})=>{const[y,g]=_.useState(!1),M=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(qt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:J,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),P=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?Pt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=_.useState(!1),[te,be]=_.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);_.useEffect(()=>{(P?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[P,Q,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&Y?.code?Y:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&Y?.code?Y:N,ie=()=>{pe()},$e=()=>{pe()},Z=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=_e(h,G,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Ae=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Ae,Me):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Ae,Me)}}},Te=()=>{Ce===!0&&H(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,H]=_.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{H(!1),ie()},onClickAway:()=>{H(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(T)??"",paymentType:ve,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ue,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(_n,{children:[t.jsx(Zn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Lt(o);return o!=null?t.jsx(Yn,{children:it.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[o.attachments&&o.attachments.length>0?t.jsx(Ve,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:A("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsxs(U,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(He,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(Ve,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsxs(Vn,{"data-testid":v("review-detail-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},o.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ke,{children:a.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ke,{children:a.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(V,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(V,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(q,{}),!x&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(V,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Z.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(Z.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(V,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(V,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ze,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?We.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ze,{children:[t.jsx(de,{children:We.transactionFee}),t.jsx(se,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ye(!1,C,h,G,s)}},primaryBtn:{label:_e(h,G,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?H(!0):Te()},style:{width:Ye(!0,C,h,G,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(Hn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(qn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ye=(e,y,g,M,S)=>g?128:y&&!e&&S==="small"?"auto":M?165:m.footerButtonWidth.value(S),pn=i(en)`
|
|
1
|
+
import{J as Tt,ax as Ct,y as u,f8 as Dt,f9 as It,fa as Pt,V as t,fb as kt,fc as le,fd as At,fe as Mt,ff as Bt,fg as Ft,aP as A,fh as Rt,aR as v,fi as Lt,fj as Be,fk as Fe,fl as Re,b as K,fm as O,p as j,fn as zt,fo as E,fp as W,fq as Nt,fr as Ot,bV as Le,o as n,aT as Et,u as d,O as Wt,ah as Vt,c4 as _t,H as Yt,B as Zt,fs as Gt,ck as Ht,am as ce,an as me,ft as Kt,fu as qt,bk as Ut,a as Xt,bb as Jt,fv as Qt,ar as tt,bM as en,aj as nt,bv as tn,fw as nn}from"./index-DMtzVMbw.js";import{a as _}from"./sentry-oySuCz2z.js";import{n as i}from"./mui-CoYz3n28.js";import{bo as ze,bm as Ne,bH as I,bN as an,FG as on,bL as re,bP as ln}from"./zeni-epic-state-C253RwnE.js";import{t as rn,o as sn}from"./LowBalancePopup-ScEqPY9J-HnxUWV1P.js";import{S as V}from"./LabeledText-DvzVOku6-vd2SPUTM.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="c88788c9-632e-405a-9806-a2b8fbfdaff3",e._sentryDebugIdIdentifier="sentry-dbid-c88788c9-632e-405a-9806-a2b8fbfdaff3")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Yt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=Wt.getLocalizedStrings(),{billDetails:a,paymentDetails:We}=mn,Ve=({attachment:e})=>{const[y,g]=_.useState(!1),M=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Kt,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(qt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:J,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),P=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?Pt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=_.useState(!1),[te,be]=_.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);_.useEffect(()=>{(P?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(ue(),he(),fe())},[P,Q,fe,ue,he]);const k=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Y=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=k?.code==="paid"?k:N?.code=="approved"&&Y?.code?Y:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&Y?.code?Y:N,ie=()=>{pe()},$e=()=>{pe()},Z=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,G=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",k?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(k?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=_e(h,G,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=k?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Ae=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Ae,Me):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Ae,Me)}}},Te=()=>{Ce===!0&&H(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",k?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,H]=_.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:P?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{H(!1),ie()},onClickAway:()=>{H(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Z?.format(T)??"",paymentType:ve,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ue,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ge,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ge,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Gn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(_n,{children:[t.jsx(Zn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Lt(o);return o!=null?t.jsx(Yn,{children:it.includes(s)?t.jsxs(He,{windowSize:s,children:[t.jsxs(kn,{children:[t.jsxs(An,{children:[o.attachments&&o.attachments.length>0?t.jsx(Ve,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsx(U,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Qe,{windowSize:s,children:A("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(Wn,{"data-testid":v("review-detail-mobile-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsxs(U,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(He,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(Ve,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Je,{})}),t.jsxs(Vn,{"data-testid":v("review-detail-info"),onClick:()=>J(o.id,o.billPayInfo.stage.code),children:[t.jsx(U,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(U,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Qe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},o.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(Ke,{children:a.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:K.largeMedium.cssObject,decimalStyles:K.smallMedium.cssObject})}),t.jsx(Ke,{children:a.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(V,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(V,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(q,{}),!x&&Z!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(V,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Z.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(Z.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(q,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(V,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:W({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(V,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ze,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?We.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ze,{children:[t.jsx(de,{children:We.transactionFee}),t.jsx(se,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:K.h6Medium.cssObject,decimalStyles:K.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&P?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ye(!1,C,h,G,s)}},primaryBtn:{label:_e(h,G,e.isBillMarkedForRetry),isLoading:P?.fetchState==="In-Progress"&&(h||!te)||Q?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?H(!0):Te()},style:{width:Ye(!0,C,h,G,s)}},rightSideComponent:C&&!h&&P.fetchState!=="In-Progress"?t.jsx(Hn,{windowSize:s,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(qn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Kn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},_e=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ye=(e,y,g,M,S)=>g?128:y&&!e&&S==="small"?"auto":M?165:m.footerButtonWidth.value(S),pn=i(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-BoM41t8W-B3q95pxr.js → ReviewOverlay-BoM41t8W-BKsrsvnb.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as P,V as i,aR as m,o as r,aT as L,y as d,x as M,H as I,B as C,p as s,am as j,cE as W,T as R,aj as b,bj as D,u as n,eo as G,h as _,j0 as H,kd as J}from"./index-
|
|
1
|
+
import{J as P,V as i,aR as m,o as r,aT as L,y as d,x as M,H as I,B as C,p as s,am as j,cE as W,T as R,aj as b,bj as D,u as n,eo as G,h as _,j0 as H,kd as J}from"./index-DMtzVMbw.js";import{n as t}from"./mui-CoYz3n28.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="4b40e475-f58a-41d9-a685-938ba4a788b7",e._sentryDebugIdIdentifier="sentry-dbid-4b40e475-f58a-41d9-a685-938ba4a788b7")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},A={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=P();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(O,{windowSize:a,children:[i.jsxs(q,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:F(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},F=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),V=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-C8x5yXaK-Dbq6YNZJ.js → RoleWithToolTip-C8x5yXaK-Dm9Z_ANT.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{eT as h,eU as f,V as s,bV as g,o as d,aR as n,O as x,ao as y,aj as c}from"./index-
|
|
1
|
+
import{eT as h,eU as f,V as s,bV as g,o as d,aR as n,O as x,ao as y,aj as c}from"./index-DMtzVMbw.js";import{n as l}from"./mui-CoYz3n28.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e201b4f1-0173-4752-a00f-ac3ad0e319b3",e._sentryDebugIdIdentifier="sentry-dbid-e201b4f1-0173-4752-a00f-ac3ad0e319b3")}catch{}})();const{hyphen:a}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aS as K,is as te,gL as me,eF as Je,it as Me,aa as _e,iu as Ve,cH as Pe,cI as Fe,V as a,ad as Ne,cr as qe,cs as Be,ct as Re,aT as Ue,iv as We,iw as ze,O as be,ab as pe,ix as Se,iy as $e,cL as Ge,J as Ke,iM as He,gQ as ue,u as R,p as De,y as ye,cM as Ze,iz as Qe,iA as Xe,iB as Ye,o as V}from"./index-
|
|
1
|
+
import{aS as K,is as te,gL as me,eF as Je,it as Me,aa as _e,iu as Ve,cH as Pe,cI as Fe,V as a,ad as Ne,cr as qe,cs as Be,ct as Re,aT as Ue,iv as We,iw as ze,O as be,ab as pe,ix as Se,iy as $e,cL as Ge,J as Ke,iM as He,gQ as ue,u as R,p as De,y as ye,cM as Ze,iz as Qe,iA as Xe,iB as Ye,o as V}from"./index-DMtzVMbw.js";import{a as f}from"./sentry-oySuCz2z.js";import{n as W}from"./mui-CoYz3n28.js";import{G9 as et,Ga as tt}from"./zeni-epic-state-C253RwnE.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-J6Eja8XA-DK2nJCvd.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="c7f83d06-d59f-4139-9ded-83d8dca11d78",e._sentryDebugIdIdentifier="sentry-dbid-c7f83d06-d59f-4139-9ded-83d8dca11d78")}catch{}})();const U={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=W.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aS as F,is as X,gL as Ie,eF as Je,it as we,aa as Le,iu as Me,cH as Ve,cI as Pe,V as a,ad as _e,cr as Fe,cs as $e,ct as Be,aT as Ne,iv as Ue,iw as ze,O as ye,ab as re,ix as pe,iy as We,cL as Re,J as qe,gQ as fe,u as Z,p as Ge,y as Ke,iz as He,iA as Ye,iB as Qe,o as w}from"./index-
|
|
1
|
+
import{aS as F,is as X,gL as Ie,eF as Je,it as we,aa as Le,iu as Me,cH as Ve,cI as Pe,V as a,ad as _e,cr as Fe,cs as $e,ct as Be,aT as Ne,iv as Ue,iw as ze,O as ye,ab as re,ix as pe,iy as We,cL as Re,J as qe,gQ as fe,u as Z,p as Ge,y as Ke,iz as He,iA as Ye,iB as Qe,o as w}from"./index-DMtzVMbw.js";import{a as y}from"./sentry-oySuCz2z.js";import{n as P}from"./mui-CoYz3n28.js";import{G9 as Xe,Ga as Ze,bL as et}from"./zeni-epic-state-C253RwnE.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-J6Eja8XA-DK2nJCvd.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="3cf6c370-24e5-4fd4-a150-130cb31e52fb",e._sentryDebugIdIdentifier="sentry-dbid-3cf6c370-24e5-4fd4-a150-130cb31e52fb")}catch{}})();const U={labelWidth:new Ke(160,160,160)},nt=P.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as F,d as Z,V as t,iC as ie,iD as le,H as oe,iE as xe,dU as fe,fl as we,b as I,O as R,iF as ye,iB as be,o as i,y as b,p as j,a as $e,ab as re,dP as je,cr as Se,ct as ke,cL as Q,ex as ee,cQ as ve,iG as K,iH as De,b5 as Ce,iI as ze,cv as Me,iJ as Le,u as h,am as L,bb as Ee,cs as Oe,ap as pe,eG as Ie,b3 as ne,es as Fe,aT as Ae,iK as A,gk as Te,aP as Ve,iL as Je,aX as q,d1 as Be,bj as Pe}from"./index-
|
|
1
|
+
import{J as F,d as Z,V as t,iC as ie,iD as le,H as oe,iE as xe,dU as fe,fl as we,b as I,O as R,iF as ye,iB as be,o as i,y as b,p as j,a as $e,ab as re,dP as je,cr as Se,ct as ke,cL as Q,ex as ee,cQ as ve,iG as K,iH as De,b5 as Ce,iI as ze,cv as Me,iJ as Le,u as h,am as L,bb as Ee,cs as Oe,ap as pe,eG as Ie,b3 as ne,es as Fe,aT as Ae,iK as A,gk as Te,aP as Ve,iL as Je,aX as q,d1 as Be,bj as Pe}from"./index-DMtzVMbw.js";import{n as o,c as B}from"./mui-CoYz3n28.js";import{a as C}from"./sentry-oySuCz2z.js";import{bh as G,Gb as Re}from"./zeni-epic-state-C253RwnE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="111a0d4f-7853-426a-a88e-e65c64dd7214",e._sentryDebugIdIdentifier="sentry-dbid-111a0d4f-7853-426a-a88e-e65c64dd7214")}catch{}})();const N=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:z},common:se}=R.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]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},w=()=>{y(),u(!1)},k=ee(x,l),g=F(),a=Z();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Xe,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:N(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(Ye,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:z.pickDate},radioField:{id:"day",name:N(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Fe,{name:N(l,"dayOfMonth"),type:"number",placeholder:z.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:z.ofEveryMonth})]}),t.jsx(He,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:z.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:N(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ae,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:_e(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:w,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:z.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:z.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:z.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:z.ofEveryMonth})]}):null]})}function He({defaultValue:e,onClick:l}){return t.jsxs(Ze,{children:[t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(_,{isSelected:r===e,onClick:()=>l(Re(r)),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(H,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(_,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const _e=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=o.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
`,qe=o.div`
|
|
4
4
|
display: flex;
|