@zeniai/web-cockpit-ui 1.14.41-qa → 1.14.42-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ACHDetailsPage-C0Ys2JJm-CSmQeh3x.js +21 -0
- package/dist/assets/{AIPerformancePage-DUz4HfZ1-Dw16_h1i.js → AIPerformancePage-CsR8PRb9-DlWAPyY5.js} +32 -32
- package/dist/assets/{AccountInfoPage-YaZUNWd--C7mX1TUK.js → AccountInfoPage-GuppZ3vX-ybOuy1Kd.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CMDfYWOh-2t3Y-Tgi.js → AccountInfoPageContent-BLKO0eIw-B7kvUMt5.js} +30 -30
- package/dist/assets/{AccountLockedInfoModal-DVLQ0FPH-B5gNUsGD.js → AccountLockedInfoModal-DxcSHNgE-BkMfAWj6.js} +3 -3
- package/dist/assets/{AccountReconDetailsDrawerPage-D15tKD4N-wdhiO3so.js → AccountReconDetailsDrawerPage-BoS3J4pw-C7qNHT6H.js} +15 -15
- package/dist/assets/{AccountRow-D-CPGejv-C0MkYOn9.js → AccountRow-Dj74AzIh-BbDAUA8T.js} +22 -22
- package/dist/assets/{AccountsPromoCardStack-BP_NIYH9-CknZDmQk.js → AccountsPromoCardStack-MQ_e8aZu-DokMp7Fc.js} +28 -28
- package/dist/assets/{AddAddressForCardDrawer-CgUhQtxS-ZERwnczq.js → AddAddressForCardDrawer-LpGynQhq-BiZdAWgh.js} +1 -1
- package/dist/assets/{AddToWalletPage-BJ1zD8Fp-DS4otSje.js → AddToWalletPage-wtm2Oua5-x0zhdZBl.js} +14 -14
- package/dist/assets/{AgingReportsPage-BC3a8enN-CH94puRQ.js → AgingReportsPage-e98Qmrut-DEPFVdEb.js} +14 -14
- package/dist/assets/{AllUserItems-vM-R7kC6-dC4XnH-i.js → AllUserItems-Cyr74U6h-DLHOl5bM.js} +10 -10
- package/dist/assets/{ApAgingDetailPage-C0soj3QL-CIKu7KMh.js → ApAgingDetailPage-Kjz7NPLx-Bf3lvNxo.js} +4 -4
- package/dist/assets/{AppBasePage-vYi6vqB3-CUCnltWx.js → AppBasePage-DrR3bM5Z-CWPfvLBQ.js} +17 -17
- package/dist/assets/{AppDrawerContent-4OWU2TFD-hU4F7Wlo.js → AppDrawerContent-C2GlTktJ-DMFov52N.js} +8 -8
- package/dist/assets/{ApprovalRulesSettingsPage-D9sYwLt_-eXBjf9wx.js → ApprovalRulesSettingsPage-Cy9uHg-R-Lb5cY5kU.js} +1 -1
- package/dist/assets/{ArAgingChart-B_o6w4NZ-eMi5HTRp.js → ArAgingChart-CtxyhI9X-mEADLb4-.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-CBVZytB--DpqLoVCo.js → ArAgingDetailPage-GX7S1gNm-CGPsvsX3.js} +1 -1
- package/dist/assets/{AttachmentView-B-4i3ruL-Coezd-6G.js → AttachmentView-C8CksG-9-RpLYPFoP.js} +6 -6
- package/dist/assets/{BankAccountSection-BSpqPLea-DnHvULrV.js → BankAccountSection-8JPKANMP-DuTpIyau.js} +4 -4
- package/dist/assets/BankAccountWarningSection-HW7t6lPN-CXdJbZl-.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-Bb8Ug1B7-BrJkpQBD.js → BankConnectionsSettingsPage-C_jyBPLn-CLp_uRqW.js} +31 -31
- package/dist/assets/BillDetailPage-BwuHMPBb-CWwzJCXe.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-zgj-w04l-DlkJNyRo.js → BillPayApprovalRuleDetailPage-9RqkaWf2-BU5jdCnL.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-8Yu9sjNN-CP9d39U-.js → BillPayApprovalRulesPage-CZmACduz-93oNGY5M.js} +9 -9
- package/dist/assets/{BillPayPromoPage-DwiZ7BtU-fiyE_zkg.js → BillPayPromoPage-C2m0GTw3-CZokQfrc.js} +4 -4
- package/dist/assets/{BillPaySetUpPage-qkDjDwA2-BVCc21N3.js → BillPaySetUpPage-C71BRWUw-VI3bvPN6.js} +2 -2
- package/dist/assets/{BillingSettingsPage-CcAIOY2J-REyIPWiq.js → BillingSettingsPage-Gc3cUKmE-DleW0m9X.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-BONjbFFw-qDHExLn5.js → BillsBulkReviewDrawerPage-CO1oJuvH-DO4MY9I-.js} +1 -1
- package/dist/assets/{BoxItem-BebxqupW-BdoD_mmi.js → BoxItem-D09XMKDc-dcEB3ro9.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DB134_1e-CZY_8hSF.js → BusinessVerificationPage-Ef4KSPWc-CGQqBH2S.js} +9 -9
- package/dist/assets/CardNumberSubText-Chba_z2--BgVxGcnT.js +21 -0
- package/dist/assets/{CashbackDetailPage-CCb57-3P-p_PVDcq5.js → CashbackDetailPage-DAM-IJ8V-GMcbY1v3.js} +20 -20
- package/dist/assets/{ChargeCardDetailPage-DZ53kEgD-CVscm9WX.js → ChargeCardDetailPage-U_ZuntGp-Bifm6uRw.js} +1 -1
- package/dist/assets/{ChargeCardListPage-67dSFsMj-BER-SYIw.js → ChargeCardListPage-DJ5TbLO--IUEMfPwT.js} +23 -23
- package/dist/assets/{ChargeCardListTable-Czriruk3-DeRl2C1o.js → ChargeCardListTable-D7BV3Iv9-CvArKgFC.js} +13 -13
- package/dist/assets/{ChargeCardPromoPage-DvMyjHD_-Dd7MlnjV.js → ChargeCardPromoPage-CMqzRnza-BLyUSFwI.js} +26 -26
- package/dist/assets/{ChargeCardSetupPage-D6o-evfw-2pOurEiq.js → ChargeCardSetupPage-dOz2soLF-Bc9pTyfy.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-vmEZp2Gc-k4U6YJ8h.js → ChargeCardStatementsPage-S2JH9s6i-BXX6utVL.js} +11 -11
- package/dist/assets/ChargeCardUtils-Bv0OpE88-D5Y-HOpD.js +1 -0
- package/dist/assets/{ChaseOverlay-DU98sRYz-NBdZIJp3.js → ChaseOverlay-4Rv__bdV-G7KHiWVk.js} +7 -7
- package/dist/assets/{CheckDepositDrawerPage-D559Iqfg-2Xs20KLS.js → CheckDepositDrawerPage-BKogbkJv-CWQTz4_P.js} +15 -15
- package/dist/assets/{CollapsableReportTable-C3JrOMbA-C8RANxS5.js → CollapsableReportTable-B_qvVX0p-B7sAIIqY.js} +85 -85
- package/dist/assets/{CompanyOfficerDetailsSection-ByPjcDhp-UGnVN2eW.js → CompanyOfficerDetailsSection-aAwv9WfC-B4p0BPWe.js} +22 -22
- package/dist/assets/{CompanyPassportCard-DtaT5LBX-sjzIwivo.js → CompanyPassportCard-DchSKG4l-bx1QGbPl.js} +4 -4
- package/dist/assets/{CompanyPassportPage-CYqtLLPi-BZvETxjP.js → CompanyPassportPage-DLIJn7Fp-oxmh8Pcm.js} +14 -14
- package/dist/assets/{CompleteProfile-bz1Sx_Ks-eJUFer6h.js → CompleteProfile-Bf5sNhdg-Bo2AvDlJ.js} +1 -1
- package/dist/assets/{ConfettiBurst-DmQRRfzl-CENtoeqN.js → ConfettiBurst-BPWFB4Ty-0v38oqti.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-R5xXzTyF-B9baa0jh.js → CreateOrEditVendorPage-BTWihvJ--DUStbYOW.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-CxFF-ITI-WcUeJ00Z.js → CreditCardPaymentDrawerPage-B5p_onzw-DCjutv5C.js} +11 -11
- package/dist/assets/{CreditCardPaymentPlgSection-D5M15mry-CMaSHERV.js → CreditCardPaymentPlgSection-CTpwe7CS-BcL1YjIs.js} +5 -5
- package/dist/assets/{CurrencySelectField-DdtldGsv-C812lF_Y.js → CurrencySelectField-Dn9EcyiE-BQIfFGfi.js} +7 -7
- package/dist/assets/{CustomerOnboardingActivationPage-S5ljEjEE-Jb-LTm9b.js → CustomerOnboardingActivationPage--C7Nj5oq-JR3YGMUS.js} +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-BDHp6tYk-BLNEL0qV.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B-aHwtTV-FqYSR0lJ.js → CustomerOnboardingDetailPageSkeleton-BEldzNUC-BEL3C00x.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-D_WXGOKQ-DBupGUX6.js → CustomerOnboardingNoStepsPage-BWPx0oGa-CDRjdq54.js} +4 -4
- package/dist/assets/{CustomerOnboardingPage-D3GUyy20-COjJdfeN.js → CustomerOnboardingPage-CQsXgrSi-DMAOHFB2.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-BcpIczxe-GA6RVDjg.js → CustomerOnboardingProductSuitePage-Ba-hBJDr-D6bzZxGx.js} +4 -4
- package/dist/assets/{Dashboard-D19IvfgJ--DOQVvlB.js → Dashboard-D9a8ZSVk-r42V_isI.js} +1 -1
- package/dist/assets/{DashboardReportPage-DucQv3ZE-CMnuoHmh.js → DashboardReportPage-DC7almyE-DPo9kVmb.js} +18 -18
- package/dist/assets/{DashboardSidebarBackgroundAnimation-zEtk_8x9-CJFT1DkV.js → DashboardSidebarBackgroundAnimation-BZPfkv0W-C5DTnalV.js} +3 -3
- package/dist/assets/{DepositAccTransactionItem-DG7JaTJY-BCT3hCg7.js → DepositAccTransactionItem-D6Pxnskx-DNWsx-r8.js} +5 -5
- package/dist/assets/{DepositAccTransactionListPage-DEDzaAaX-DzTp8c-j.js → DepositAccTransactionListPage-RPv15wO3-g2ti0qw6.js} +2 -2
- package/dist/assets/{DomesticWireDetailsPage-DH4keptD-D01iyx2r.js → DomesticWireDetailsPage-C7SMSdym-4FSz7OmR.js} +1 -1
- package/dist/assets/{DownloadOverlay-DQZd_zyi-B9VMhe_d.js → DownloadOverlay-DSuuIFd2-BOmkiO4Q.js} +18 -18
- package/dist/assets/{DrawerPage-CtDNbXHp-C2cmEeEY.js → DrawerPage-G3indLUm-BloVVmDh.js} +12 -12
- package/dist/assets/EditPeoplePage-B3OUzvId-mGEO8i8C.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-BxzB9b4R-COHPUQv7.js → EditReimbursementDetailPage-BDtXtGDU-C7db0ozx.js} +51 -51
- package/dist/assets/{EntityDetailPage-CuPr64cj-DyxVHR3_.js → EntityDetailPage-Duk7QFjU-4fI6-YD5.js} +3 -3
- package/dist/assets/{EntitySummarySection-CX-KbVbj-CNqoxowU.js → EntitySummarySection-Cr7WMJ8D-CxAoWGpH.js} +7 -7
- package/dist/assets/{ExpenseAutomationOverviewPage-DRFk1z66-B4CXhi6d.js → ExpenseAutomationOverviewPage-hpARiJiY-Cl3fyuZ_.js} +55 -55
- package/dist/assets/{ExpenseAutomationPage-ugq4J-e3-Cq8XKeSo.js → ExpenseAutomationPage-BC5qS_i3-B_dfKUDn.js} +1 -1
- package/dist/assets/{ExpressPayPage-DWFyq0OM-Xap9PWuy.js → ExpressPayPage-I-QL4uh--CR8ltLbL.js} +9 -9
- package/dist/assets/{FeaturePreviewPage-Bdostf75-Co3kb8i2.js → FeaturePreviewPage-BHb59Q7j-BMGHbQAr.js} +2 -2
- package/dist/assets/{FollowStepsSection-CFs_c9UA-C2ivxTgB.js → FollowStepsSection-DONqc9yn-DTdIc25n.js} +9 -9
- package/dist/assets/{GlobalReviewListPage-Cw8nJl7r-ucxhv7FU.js → GlobalReviewListPage-BFAgZIJv-pSG93cS5.js} +11 -11
- package/dist/assets/{HelpButton-DJeoop_B-BbsNSnSE.js → HelpButton-DoSu6q8h-w0fElDGQ.js} +1 -1
- package/dist/assets/{InformationCardStack-DXqbwonQ-D-8qMtbR.js → InformationCardStack-JtvRODJe-BAk9iE1O.js} +4 -4
- package/dist/assets/{InsightsCardStack-7JsHAYeW-ug-71Tgc.js → InsightsCardStack-BEceNZZE-_pfKOcnL.js} +9 -9
- package/dist/assets/{InsightsSection-BkKqEnbT-p9XkPAwR.js → InsightsSection-KsnkYRQw-CjzvB6rM.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-DQ_GH1NV-DceBqihU.js → IntegrationsSettingsPage-D4cEY5iJ-Ct8U8ddA.js} +5 -5
- package/dist/assets/{InternationalWireSwiftDetailsPage-B6ER7qfQ-Cn8QyFOw.js → InternationalWireSwiftDetailsPage-Tf_vaD2v-Bx9cBAe-.js} +15 -15
- package/dist/assets/{InternationalWireVerificationPage-hb0w0-FP-CjYCUXS4.js → InternationalWireVerificationPage-qIIqh0iv-Dla3dOLs.js} +15 -15
- package/dist/assets/{InviteFormPage-1dBkKRKs-DciMQTpm.js → InviteFormPage-ByA4uyh2-CUZJDn4x.js} +22 -22
- package/dist/assets/{InvitePageListView-DhpXrg6S-iVD2f3Qa.js → InvitePageListView-0_dBCqFt-HjR3qPdd.js} +44 -44
- package/dist/assets/{InvitePeoplePage-DrHGaYn6-cG76tknZ.js → InvitePeoplePage-C4d-Ov5z-CPj8BOmp.js} +3 -3
- package/dist/assets/InvoiceUploadSection-MEPQPiCt-C4G2s06g.js +140 -0
- package/dist/assets/{IssueChargeCardPage-B_O7rJSC-DBAUNHK1.js → IssueChargeCardPage-C77SyJR9-CUKH1f59.js} +21 -21
- package/dist/assets/{LabeledAddressValue-DWpOvFnM-MVu54lHC.js → LabeledAddressValue-DKKL0jnt-DbFZZVFw.js} +1 -1
- package/dist/assets/LabeledAddressValueField-Ca10mEAm-D8rcZ6WA.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-tNAjM4hM-BvgQqmxU.js → LabeledControlledCheckBoxField-BYk2-ixd-B_p740LF.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-yMTUEfLS-toELldV7.js → LabeledCreatableSingleSelectField-DMhTj1GM-Cqe5AURU.js} +2 -2
- package/dist/assets/LabeledDocumentField-DX4zVKkz-CS1LiAul.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-Dm1etnU5-C8--qfVi.js → LabeledDropDownFormattedTextField-BoizuD7H-Ce48u3nd.js} +5 -5
- package/dist/assets/{LabeledText-BRS0e-dG-BZq4VrX9.js → LabeledText-4NNrEynJ-BDzeNgnU.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Bml1bcSK-BC3kyZqP.js → LabeledUserSingleSelectWithSubtitlesField-DaXDpM0N-DYtP0MFC.js} +10 -10
- package/dist/assets/{LabeledZeniRolesDropDownField-l2veUn4k-CULldLpx.js → LabeledZeniRolesDropDownField-zRamZWIQ-oWeJ0wbt.js} +10 -10
- package/dist/assets/{LinkJETransactionPage-VtgdRNhL-D7ndfEzz.js → LinkJETransactionPage-FMYLsvT_-IUHBR-RO.js} +5 -5
- package/dist/assets/{LowBalancePopup-Dg43FP8p-BLvbua8r.js → LowBalancePopup-Ig5iJGIg-BisR1D9G.js} +4 -4
- package/dist/assets/{MagicLinkACHDetailsPage-UfT8yCmX-DOK_VceA.js → MagicLinkACHDetailsPage-Cf-TvH4n-BBkkCR2W.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Bgwf3qMA-BfpKCTOv.js → MagicLinkDomesticWireDetailsPage-CLJo-rez-MDjP3aI7.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B9QWmf9B-Dk7a13qP.js → MagicLinkInternationalWireDetailsPage-C-cD6L4u-Z9qBkl5z.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-SjBCvTm5-8jc-eo0M.js → MagicLinkSuccessPage-cJ0PjYEe-DY9yZh-d.js} +1 -1
- package/dist/assets/MagicLinkTitleSection-Dc8RKV1p-VRc37nwk.js +17 -0
- package/dist/assets/{MailingDetailsSection-Dk8tP8LP-YFImgirq.js → MailingDetailsSection-BD9QWumq-Bo7ZhKA-.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-gebcIIpu-DuyM5Ce0.js → MeetingCalenderPopup-D10SioCO-Sv9k3aJ6.js} +1 -1
- package/dist/assets/{Menu-BeDBbRH8-NbbFIuDT.js → Menu-DV3oFAip-BjpENrFA.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Bp6o9Mts-4X9R_NQE.js → MyBankConnectionsSettingsPage-jrPeCDe3-C_FxZh14.js} +11 -11
- package/dist/assets/{MyPendingActivationChargeCardListPage-CEWRTVvz-CijMZlz_.js → MyPendingActivationChargeCardListPage-CpaPeIYq-Ckzf1YTL.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-Dvgp3Ycy-DSUbYEGm.js → MyProfileSettingsPage-DLj2PeG9-d2LNa8rI.js} +10 -10
- package/dist/assets/{NavBarWithPicker-XmGu6RQR-C9BXxiKA.js → NavBarWithPicker-CilKdL1D-Z1krBpRG.js} +4 -4
- package/dist/assets/{NavigationArrow-DuEUVDwX-DfD0NIdE.js → NavigationArrow-DvGjNVsn-C-QNklxa.js} +1 -1
- package/dist/assets/{NavigationDots-BcP-rh-K-DS8oU4Qg.js → NavigationDots-BZNvrGBo-CvNSDZNv.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CI0ohS8I-DWKnTzMp.js → NewGlobalMerchantPage-D5ESBBO5-CiqJ8Tsp.js} +7 -7
- package/dist/assets/{NoDataChart-Cu34Y6fv-CDediDtZ.js → NoDataChart-D9tQhnyu-C94gJNvj.js} +3 -3
- package/dist/assets/{NoDataTable-CPWzH0PE-DkDzGQpn.js → NoDataTable-8FGbkVty-RgNhnWfj.js} +1 -1
- package/dist/assets/{NotFoundPage-yZOAgP9f-BvtMauqa.js → NotFoundPage-D8qvMFgl-BJxrGtQd.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-5bXbyP0i-Dn4CCfRt.js → NotificationSettingsPage-BSJTBlX6-Dh8E-2JN.js} +14 -14
- package/dist/assets/{NotificationsListConfig-DINVh9-P-Cr5z8nJ2.js → NotificationsListConfig-EynMAcn9-B66CEzXh.js} +1 -1
- package/dist/assets/{NotificationsPage-CKcEU-jy-D9LjSHYu.js → NotificationsPage-d4HJEE7S-DignNo6N.js} +21 -21
- package/dist/assets/{OpExByVendorPage-3oQc7n37-ie-HlsGj.js → OpExByVendorPage-CmuEz33W-DHZbqMQl.js} +4 -4
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-c3kkjLHu.js → OverlayContainerPage-Bmu909Fo-BEKpfYXF.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BPcWHQXd-CtN-h80b.js → PandLWithForecastPage-C7WaIZ8e-AKi0ejYh.js} +11 -11
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-D7JHebDo-BRRsi8Cn.js → PaymentAccountSetupBillingAddressSection-B3m8zs_b-ShdTy6dm.js} +9 -9
- package/dist/assets/{PeoplePage-AdCHl8Rj-GGNGd1tU.js → PeoplePage-BN8tiBew-SMy3y22T.js} +33 -33
- package/dist/assets/PortfolioAllocationFormPage-BD1u1-Or-BP5X7l75.js +207 -0
- package/dist/assets/{PortfolioDetails-DaiiBOps-RHi4PLpn.js → PortfolioDetails-fLO6-kOh-CadDK_zj.js} +14 -14
- package/dist/assets/{ProductsCarousel--PIp0Wwx-1HYPMREY.js → ProductsCarousel-RHO5BWU--BaB4l4pQ.js} +3 -3
- package/dist/assets/{PromoBaseCards-hEn7m0Ea-Dc9Lc6Jd.js → PromoBaseCards-Bm6GGzhn-7qUEmgGZ.js} +2 -2
- package/dist/assets/{QBOConnectionDialog-DByNCCyR-xe7LeSrJ.js → QBOConnectionDialog-Dp_Zkpup-B6ThY6EF.js} +7 -7
- package/dist/assets/{QBOSetupSection-NdDTo0GG-op77rVCs.js → QBOSetupSection-C1hBKDG3-D4_IOTse.js} +13 -13
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DFUyL8tS-CjazMZUR.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-D13xg5lU-zFGSLUlG.js → ReimbursementApprovalRulesPage-CGb7oMjB-DRxFMpGG.js} +11 -11
- package/dist/assets/{ReimbursementDetailPage-1S7-fp6x-Hi7ghCPV.js → ReimbursementDetailPage-ByD43ffh-CS-2jIxA.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-TwSf4vIh-CMdRmwjh.js → ReimbursementPromoPage-CPFAYaW8-Tc6w3wrG.js} +20 -20
- package/dist/assets/{ReimbursementSetUpPage-D-g1h8Z7-DKvqAEBO.js → ReimbursementSetUpPage-B_jUtf6N-CH4GgWXW.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-nsM0DGyC-BKjafGKk.js → ReimbursementsBulkReviewDrawerPage-DU-QA2n3-CKhaAS5r.js} +1 -1
- package/dist/assets/{ReloadCard-K9SGlmus-DZ7vYKCw.js → ReloadCard-HsDGbgTn-BsloOU08.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BVw08xMR-S2k8-vyd.js → ReportTableViewSelector-BzFUam8T-BhACNwXr.js} +6 -6
- package/dist/assets/{ReportsPage-DrbFSYgn-Dhzyn189.js → ReportsPage-MQSNDA98-DYJWfk_K.js} +10 -10
- package/dist/assets/{RevenueChart-mib92BSo-vb-0BYYz.js → RevenueChart-BzYEiXeP-CL_U7QVF.js} +29 -29
- package/dist/assets/{ReviewDetailsPage-C5f_GAjv-rA6jgu-n.js → ReviewDetailsPage-w2tTvIFQ-DFmBHsAk.js} +5 -5
- package/dist/assets/ReviewOverlay-DbYrvPld-BPButrhP.js +152 -0
- package/dist/assets/{RoleWithToolTip-C5grx1DM-Bhnk8KKY.js → RoleWithToolTip-B_Ivheco-R8i0Qg5c.js} +6 -6
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BfqQFFiq-CwYQjSQh.js → ScheduleDetailsFixedAssetsPage-CSiXckiF-snYrLXiT.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-DkNwuZzq-Dw4BBNuN.js → ScheduleDetailsPage-BUprw9Sk-CY06UcmD.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-CviQlsxi-BixaGSYy.js → ScheduleSequenceTable-DnIgU9m6-CTOQUShp.js} +18 -18
- package/dist/assets/{ScreenRoutes-BOEZc6DS.js → ScreenRoutes-Df5fPQoi.js} +1 -1
- package/dist/assets/{SetUpAccountSection-d5HPps92-DZbUJeeo.js → SetUpAccountSection-DDxjcjeg-CBwjkDjl.js} +10 -10
- package/dist/assets/{SetUpDefaultSection-D1OXPM9M-2zaSn3KY.js → SetUpDefaultSection-BSWh5Hvi-BrKOFekt.js} +14 -14
- package/dist/assets/{SignIn-tpfovElQ-C4991EnD.js → SignIn-CImCEnZS-CTfoa2RW.js} +23 -23
- package/dist/assets/{SignInScreen-DgNycLfV.js → SignInScreen-DOATVkIe.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-B3t2U-Lq-GWfzNKhc.js → SpendManagementListViewPage-B61K65wh-DBswKLKE.js} +6 -6
- package/dist/assets/{SpendManagementPerTabPage-vATAr6zx-sNIcyb2f.js → SpendManagementPerTabPage-Bxo7BTP3-BTpFLD01.js} +11 -11
- package/dist/assets/{SpendManagementSection-C8S1zv_Z-D1UddAHC.js → SpendManagementSection-Ddoo9sSg-BrfWcTur.js} +11 -11
- package/dist/assets/{SpendMgmtSetupAccountSection-C3n3CKZp-DgPqGmio.js → SpendMgmtSetupAccountSection-GjJmiN01-CfomDHm3.js} +19 -19
- package/dist/assets/{StatementItem-C2VaQMdB-GityFkee.js → StatementItem-D_ctLWr0-D0j_MHXQ.js} +5 -5
- package/dist/assets/StatementsPage-D1M95WeY-CnAx-9oR.js +58 -0
- package/dist/assets/{StatusSwitcher-CI_4NJc0-D3kMd2Ls.js → StatusSwitcher-ZC7lyTov-GCiWQPGY.js} +4 -4
- package/dist/assets/{SubTabSwitcher-CKh0fbAL-CZyzUbuM.js → SubTabSwitcher-BNFnbB_T-DaWGnnx_.js} +1 -1
- package/dist/assets/{SummaryCard-56XeB7PA-B87JqDih.js → SummaryCard-CSo1L2R4-Biw8Izdi.js} +1 -1
- package/dist/assets/{TaskManagementPage-el6vudQA-DkYDl2e-.js → TaskManagementPage-CAcMcS83-D_9dscfp.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-X1sd0HJo-D3i-wisc.js → TimeRangeSwitcher-CNdJhUPl-Lk4TfGUR.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-TLcNg_CN-98HiGYj7.js → TimeframeSwitcher-B7t79hiQ-DXBKb0F7.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Cnlgngu_-BVr6cN7Q.js → TimeframeSwitcherWithToggle-gywVFoaK-CKJ0rtbC.js} +1 -1
- package/dist/assets/{TopExCard-BuCdMdGn-DzugoAzP.js → TopExCard-D_LHVo5q-kM42LZ8h.js} +4 -4
- package/dist/assets/{TopExDetailPage-DJwK85mY-BLlAa0Mx.js → TopExDetailPage-DuiVBT_3--4JswmJo.js} +13 -13
- package/dist/assets/{TransactionDetailPage-fKLOaC53-B4PLnewq.js → TransactionDetailPage-BWbWafDA-BA5tAQ-_.js} +33 -33
- package/dist/assets/{TransactionList-vNVcmGH2-B0OTKj50.js → TransactionList-Xd2JupaK-ME3jRgkK.js} +7 -7
- package/dist/assets/{TransactionListBig-C_1iHb-m-7xzK-ehO.js → TransactionListBig-CnJaFkxR-rlrfsVcy.js} +19 -19
- package/dist/assets/{TransactionListPage-vE1jowuA-CVyTABcH.js → TransactionListPage-DJXFQaro-6w510avL.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-C9wGiyJs-DnpJgf-D.js → TransactionVendorDetailPage-Yd_VuyUP-3bCwp_zG.js} +4 -4
- package/dist/assets/{TransferDrawerPage-6AaaV1fR-CcXij2fb.js → TransferDrawerPage-DAQ23FUW-Zp14Y_jD.js} +27 -27
- package/dist/assets/{TreasuryOverviewPage-8z3dgsQ--0GGyt5L1.js → TreasuryOverviewPage-D7PkIffG-CctuefA8.js} +26 -26
- package/dist/assets/{TreasuryPromoPage-BRZCU7u0-YXB-IJNp.js → TreasuryPromoPage-BjVUBF-M-CeyEfLuA.js} +33 -33
- package/dist/assets/{TreasurySetupPage-BietgoUm-DuvVLyjQ.js → TreasurySetupPage-CTwhrB6V-Bbh2Nemp.js} +5 -5
- package/dist/assets/{TreasuryStatementsPage-BrTZ2Tc9-CuYVtjaG.js → TreasuryStatementsPage-jvmgqTxl-bbGSjEnB.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-Bm8Kh9ci-D-bqdUc-.js → TreasuryTaxLetterPage-CtKw-_Ab-DpqHDLut.js} +2 -2
- package/dist/assets/{TreasuryTransferOrReviewPage-DAsCB5hY-CGMzbTrq.js → TreasuryTransferOrReviewPage-HDfVKjSA-D8yPiIy_.js} +37 -37
- package/dist/assets/{TrendChart-CDuKYDbr-Bn9DvEcA.js → TrendChart-BqU6zv7L-wkRyWRpL.js} +4 -4
- package/dist/assets/{TrendWithTransactions-CXFGBD3a-COfDIjjP.js → TrendWithTransactions-CbzZEtLk-CdMXYj1c.js} +4 -4
- package/dist/assets/{UncategorizedAccountsMappingPage-CZp60Srt-CzRmIywg.js → UncategorizedAccountsMappingPage-BqfWXEzv-Cz9H5I4W.js} +11 -11
- package/dist/assets/{UnitIntegrationPage-Bt3BsIP--CS7__SGc.js → UnitIntegrationPage-DOt0PQxi-x_I9Vs5M.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-CiKy5Nj7-B-MuYA3T.js → UploadAdditionalDocumentOverlay-DCG_biA8-DwZNYXuq.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-mpeQ7vp6-drhI-HQb.js → Vendor2FAPopup-AFJ4ji6z-DAWxFDI5.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DaH6D39U-CWjco5Dp.js → VendorACHDetailsPage-CMZezqhj-omVFdTVD.js} +1 -1
- package/dist/assets/{VendorDetailPage--NEui4cR-CjVNfg_w.js → VendorDetailPage-iMWNwLtE-B5NQ34jt.js} +16 -16
- package/dist/assets/{VendorDomesticWireDetailsPage-ZpWio-lR-C61aUqHr.js → VendorDomesticWireDetailsPage-LLQSi6rq-JFMiqG0a.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-BH50orlv-D4s1kmxT.js → VendorFiling1099EditablePage-BFWuxMl8-CXYevD1L.js} +16 -16
- package/dist/assets/{VendorFirstReviewPage-F3ufon8s-De09Hv60.js → VendorFirstReviewPage-G_Cr6q5s-qjW-FU9s.js} +18 -18
- package/dist/assets/{VendorInternationalWireDetailsPage-BFCRIyx4-lseeqNrB.js → VendorInternationalWireDetailsPage-DReuPGpX-J63QxGJH.js} +10 -10
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Bsw5XWc5-Cxyk29cs.js → VendorInternationalWireSwiftDetailsPage-CmAzQ-7v-D44Jz7aO.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DyEqMESi-D9e9kicf.js → VendorsAccountsSection-Cjwpb7Ej-Cx7NEKJj.js} +2 -2
- package/dist/assets/{VerifyDevice-Cghi40l4-ThU6PIgT.js → VerifyDevice-CvJ2zJdk-DMGMblcz.js} +10 -10
- package/dist/assets/{VideoPlayer-BqxR2aZr-C4HSzI7g.js → VideoPlayer-9UKbocWs-CskDssHe.js} +1 -1
- package/dist/assets/{VideoPopup-RZCI8_Gx-CwtDMYFf.js → VideoPopup-DfQxE-EQ-DMlN8l45.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-ChJqfUoo-C8vzQoCW.js → WarningsDrawerPage-2QsB6DYE-SQ5KLE5P.js} +9 -9
- package/dist/assets/{ZeniAccountDetailPage-BVl5QTX2-DcQoIUQu.js → ZeniAccountDetailPage-gFXGgRzS-DY2FypIA.js} +18 -18
- package/dist/assets/{ZeniAccountListViewPage-CsAF1Cyb-D_F8pojL.js → ZeniAccountListViewPage-Daboqhbe-C9ys4A5t.js} +12 -12
- package/dist/assets/ZeniAccountNavBarPieces-DhpbtWHu-gWttgZ20.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-Bdx-nwJO-CAY8oVsD.js → ZeniAccountPromoPage-Df5MahOc-B26r14Mi.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-vZ7vjnBw-63QHHhU4.js → ZeniAccountSetupPage-DLlRCOCj-ChweJElI.js} +1 -1
- package/dist/assets/{ZeniCopyright-CpkvfVwM-CpIzcf5N.js → ZeniCopyright-D-Z193Re-BzgSGNSq.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-D8dT_-Hq-BM5AfJxY.js +63 -0
- package/dist/assets/{analytics-Dr_Q0qi5.js → analytics-CcevxdRy.js} +19 -19
- package/dist/assets/{analyticsHelper-B29pAXmB.js → analyticsHelper-HFa4L7zM.js} +1 -1
- package/dist/assets/{analyticsHelper-nzXGHX-f-DDF_mzG5.js → analyticsHelper-c9SRwhe3-rKFHsE9O.js} +1 -1
- package/dist/assets/{chartTypes-DJwqK5Pl-BjORIfWQ.js → chartTypes-C2jC2nzT-B64Jl2-O.js} +1 -1
- package/dist/assets/{commonDimensions-BI8wHGzb-vF0LFeSK.js → commonDimensions-CtVQ1dPI-BWfVCzLH.js} +1 -1
- package/dist/assets/{crypto-Ccg-ICil.js → crypto-CK3r1iTV.js} +1 -1
- package/dist/assets/{detailCommon-BqVKB773-C2U67xrp.js → detailCommon-BBImn49A-BK4c1Pxj.js} +6 -6
- package/dist/assets/{downloadPdf-BET_DSP9-DmgSWYo3.js → downloadPdf-BvdzZp_S-DQnizCwq.js} +1 -1
- package/dist/assets/{index-IgYBqF_x.js → index-DESjn-8d.js} +3503 -3503
- package/dist/assets/{mapLoadingInProgressToTreeNode-BrrNGuAc-CqsUk4Uv.js → mapLoadingInProgressToTreeNode-CKsE235C-BIU8Mfd7.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Dwov7nU5-BqLpmvIL.js → mapSectionWithAcOnlyToTreeNode-D1DheCOl-DwSkrZHk.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CgMaqSi_-CjubQCh8.js → mapSpacerToTreeNode-DkIeEOlL-Pn1zCywK.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BrNgTlbp-CrsNT2yx.js → mapTimeframeBalancesToTreeNode-BhmM7oKt-BQL5w7UJ.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Brqz18bN-TNhDDil7.js → mapTimeframeBalancesToTreeNode-Vy-w7j2m-DzRWaem3.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-UT-UQHkH-D9cTp9HM.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CGrrLYwc-B0qlbSf3.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CAwHN54Z-Dl4_Ib5c.js → toCOABalancesWithID-BdeWiors-BqeL9v71.js} +1 -1
- package/dist/assets/{toChartData-pW2XLZo--pfboHwjV.js → toChartData-BCFss2y_-DT7ekoOJ.js} +1 -1
- package/dist/assets/{treasuryColorHelper-CdOoL_vC-BdLikaU-.js → treasuryColorHelper-BJcGoSGt-CBJKPFpW.js} +1 -1
- package/dist/assets/{uploadAttachment-nqQ-JycC-9pV7MrnE.js → uploadAttachment-PMsRrXUz-BBJRkZzC.js} +20 -20
- package/dist/assets/{uploadReceipts-dxsKhm9I-2_GAIK6m.js → uploadReceipts-dxsKhm9I-Bda3Op9y.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-DZnFgkJZ-DDsy2m6t.js +0 -21
- package/dist/assets/BankAccountWarningSection-BS0dlrJ3-BaiUaE4V.js +0 -51
- package/dist/assets/BillDetailPage-CuVdQqQW-IOfqi65V.js +0 -266
- package/dist/assets/CardNumberSubText-uxqTFnFX--LrYHxfC.js +0 -21
- package/dist/assets/ChargeCardUtils-Bptae9Pt-CYq-MsYY.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-B8_LR61d-DZh0ZsS1.js +0 -1
- package/dist/assets/EditPeoplePage-ZzjDJoTQ-DidkWXNI.js +0 -55
- package/dist/assets/InvoiceUploadSection-D79UFJii-FhgETgPb.js +0 -140
- package/dist/assets/LabeledAddressValueField-DxW5wUY3-fZGEKDYY.js +0 -45
- package/dist/assets/LabeledDocumentField-BQDoGQsy-DjCrwjKi.js +0 -41
- package/dist/assets/MagicLinkTitleSection-b4t7XGb8-Bc_IiT_b.js +0 -17
- package/dist/assets/PortfolioAllocationFormPage-DJVrByWQ-MfVlBQJr.js +0 -207
- package/dist/assets/ReimbursementApprovalRuleDetailPage-CCTo6kvJ-BhsLlWsu.js +0 -26
- package/dist/assets/ReviewOverlay-CFgWwm-p-BrjMlpfM.js +0 -152
- package/dist/assets/StatementsPage-DD2PvuDv-CJO0D7Zd.js +0 -58
- package/dist/assets/ZeniAccountNavBarPieces-BlVvO8S4-Bu0wNDog.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-H-uhh5z4-DVStaopp.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as ai,u as bt,Y as ft,a as en,
|
|
1
|
+
import{a2 as ai,u as bt,Y as ft,a as en,D as Ci,l as ee,R as me,J as tn,e as Ie,fP as Zn,fR as Qn,fS as eo,j as t,g9 as to,F as nn,bV as li,bX as on,bY as an,W as q,o as i,C as c,aX as ki,aK as io,dt as no,fT as oo,g2 as rn,fZ as Ii,a4 as ln,p as sn,f_ as ao,ey as _e,ga as At,e$ as si,m as xt,gb as ro,f as j,a3 as cn,r as ci,q as a,aT as lo,g0 as so,cb as co,eF as di,gc as zt,cW as fe,cY as xe,cd as ui,cn as ct,ek as uo,cV as dn,v as Pt,cg as un,cf as Qe,cv as st,w as mi,gd as mo,f2 as po,ca as ho,a8 as Di,aS as go,ap as mn,az as yo,ej as bo,am as Bt,fU as fo,br as pn,X as pi,g as hn,cx as gn,bO as Mt,eV as xo,ao as wo,cB as So,d1 as $o,y as hi,Q as Ti,bp as yn,ah as ji,cu as vo,n as Co,cj as bn,a0 as ko,ge as fn,gf as ri,fK as Ri,gg as Ot,ct as Io,fO as Do,b6 as To,cs as jo}from"./index-DESjn-8d.js";import{b as v,n,f as vt}from"./vendor-rkTZJa59.js";import{_ as Ro}from"./liveblocks-CP09Cz-7.js";import xn from"./InvoiceUploadSection-MEPQPiCt-C4G2s06g.js";import{r as Po,f as Lt,d as yt,p as gi,u as Pi,h as ve}from"./types-DyvtCprH-BcZYcgaq.js";import{T as Oo}from"./LabeledCreatableSingleSelectField-DMhTj1GM-Cqe5AURU.js";import{S as Lo}from"./CurrencySelectField-Dn9EcyiE-BQIfFGfi.js";import{q as Ao}from"./SetUpDefaultSection-BSWh5Hvi-BrKOFekt.js";import{e as zo}from"./BankAccountSection-8JPKANMP-DuTpIyau.js";import{W as Bo,A as Mo}from"./BankAccountWarningSection-HW7t6lPN-CXdJbZl-.js";import{o as Fo}from"./radio-default-CiSgisfh-Z5w0WcFM.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-CK3r1iTV.js";import"./AttachmentView-C8CksG-9-RpLYPFoP.js";import"./uploadReceipts-dxsKhm9I-Bda3Op9y.js";const Je=(e,o)=>`${e}.${o}`,Oi={largeLabelWidth:new c(120,120,160),paddingBottom:new c(a[3],a[2])},{spendManagement:{reimbursement:{reimbursementDetail:Re}},dateFormat:Eo,common:No}=me.getLocalizedStrings(),Wo=({lineIndex:e,mileage:o,classList:r,defaultCurrency:u,sectionId:p,isReimbursementCommentingEnabled:C,isDisabled:m,isAddReimbursementDisabled:S,companyMileageConfigInfo:b,reimbursementId:l,classHierarchyList:k})=>{const f=Ie(),s=ft(),g=zt(),w=`dashboard_${s.currentTenant?.companyId}`,R=bt(),{getValues:T}=ct(),$=No.strings.empty,K=T(Je(p,"distanceInMiles")),L=Oi.largeLabelWidth.value(f),I={application:"dashboard",companyId:s.currentTenant?.companyId,tab:"reimbursement",entityId:l},E=A=>r.filter(_=>_.classId===A)[0]?.accountingClassNumber,te=r.find(A=>A.classId===o.class),pe={valueContainer:A=>({...A,padding:`2px ${i.sp3} !important`,overflow:"unset"}),singleValue:()=>({margin:0})};return t.jsxs(t.Fragment,{children:[t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.transactionDate`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("transactionDate",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(bn,{isDisabled:m,label:{label:Re.transactionDate,width:L},style:{paddingBottom:Oi.paddingBottom.valuePx(f),width:"auto"},dateField:{name:Je(p,"transactionDate"),placeholder:Re.datePlaceholder,defaultValue:o?.transactionDate,dateFormat:Eo.visual.defaultInput,autoComplete:"off",maxDate:ee.dateNow(),registerOptions:{required:!0,validate:A=>!!A}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.distanceInMiles`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("distanceInMiles",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:S?"disabled":void 0,style:{width:"auto"},label:{label:Re.distanceInMiles,width:L},formattedTextField:{type:"number",name:Je(p,"distanceInMiles"),placeholder:Re.addMiles,defaultValue:o.distanceInMiles,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0,min:.01},returnValueType:"floatValue",allowNegative:!1,isNumericString:!1,decimalScale:2}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.amount`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("amount",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(Ri,{isDisabled:"disabled",label:{label:Re.amount,width:L},formattedTextField:{type:"number",name:Je(`${p}.amount`,"amount"),defaultValue:o.amount?.amount,placeholder:Qe(Re.amount),returnValueType:"floatValue",prefix:o.amount?.currencySymbol,allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:A=>A!=null?A>0:!0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},additionalInfoLabel:K!=null&&b?.mileageUnitAmount!=null?`${u.currencySymbol}${b?.mileageUnitAmount} per mile x ${K}`:void 0})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.memo`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("memo",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,children:t.jsx(ui,{isDisabled:m,label:{label:Re.memo,width:L},style:{width:"auto"},text:{type:"text",name:Je(p,"memo"),placeholder:Qe(Re.memo),defaultValue:o.memo,autoComplete:"off",options:{pattern:fn}}})}),t.jsx(Ct,{}),t.jsx(fe,{isThreadAllowed:C&&l!=null,dashboardTabKey:xe({type:"details",key:`${e}.mileage.class`}),roomId:w,companyId:s.currentTenant?.companyId??$,companyName:s.currentTenant?.companyName??$,entityId:l,dashboardOptionType:"reimbursement",filterMetaData:{...I,entityType:`reimbursement.details.${ve("class",e,"mileage")}`},fieldThreadTargetElement:g?.sharedRef?.contentWrapperRef,style:{borderRadius:`0 0 ${i.sp2} ${i.sp2}`},children:t.jsx(ri,{isLoading:!1,label:{label:Re.department,width:L},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:Je(p,"class"),placeholder:Qe(Re.department),valueToId:A=>E(A),defaultValue:{selectedOption:te?.classId,allOptions:_e(k,[])},style:{width:"100%"},customStyleConfig:pe,registerOptions:{required:!0,validate:A=>!!A.selectedOption}},style:{borderBottom:`1px solid ${R.colors.grey3}`,borderBottomLeftRadius:i.sp2,borderBottomRightRadius:i.sp2},fullWidthSelect:!0},Je(p,"class"))})]})},Ct=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey3};
|
|
@@ -37,7 +37,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
37
37
|
&.amount-placeholder {
|
|
38
38
|
color: ${e=>e.theme.colors.grey1};
|
|
39
39
|
}
|
|
40
|
-
`,Fe={width:new c(343,580,726),height:new c(a[6],a[6]),controlHeight:new c(a[6],a[6]),paddingTopBottom:new c(a[2],a[2]),marginRight:new c(a[2],a[2]),labelMarginLeft:new c(a[3],a[4]),labelMarginRight:new c(a[3],a[4]),labelMarginTop:new c(a[2],a[2])},wn={infoLabel:new pi("extraSmallRegular","smallRegular")};function qo({isDisabled:e,label:o,currencyAmountField:r,style:u,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:S,additionalInfoLabel:b,showAdditionalInfoLabel:l=!0}){const k=Ie(),{formState:{errors:f}}=ct(),s=st(f,r.name)&&Ot(f,`${r.name}.amount`)!=null,g=st(f,r.name)&&Ot(f,`${r.name}.currency`)!=null,w=r.showAmountCurrencyError===!0?s||g:!1,R=s||g||w,T=()=>{if(C===!0)return t.jsx(
|
|
40
|
+
`,Fe={width:new c(343,580,726),height:new c(a[6],a[6]),controlHeight:new c(a[6],a[6]),paddingTopBottom:new c(a[2],a[2]),marginRight:new c(a[2],a[2]),labelMarginLeft:new c(a[3],a[4]),labelMarginRight:new c(a[3],a[4]),labelMarginTop:new c(a[2],a[2])},wn={infoLabel:new pi("extraSmallRegular","smallRegular")};function qo({isDisabled:e,label:o,currencyAmountField:r,style:u,errorInfoLabel:p,isAdditionalInfoLabelLoading:C,showAdditionalLabelTooltip:m=!1,additionalLabelTooltip:S,additionalInfoLabel:b,showAdditionalInfoLabel:l=!0}){const k=Ie(),{formState:{errors:f}}=ct(),s=st(f,r.name)&&Ot(f,`${r.name}.amount`)!=null,g=st(f,r.name)&&Ot(f,`${r.name}.currency`)!=null,w=r.showAmountCurrencyError===!0?s||g:!1,R=s||g||w,T=()=>{if(C===!0)return t.jsx(Xo,{children:t.jsx(xt,{size:"Small",start:!0})});if(l&&b||w){let $=null;return m===!0&&l&&b&&($=t.jsx(yn,{placement:k==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Jo,{children:S??""}),children:t.jsx(Qo,{children:t.jsx(ea,{})})})),t.jsxs(Zo,{size:k,isError:w,hasToolTip:m,children:[$,b]})}};return t.jsxs(Ko,{size:k,style:u,isDisabled:e!=null,isAmountError:s,isCurrencyError:g,"data-testid":q("labeled-currency-amount-field",r.name),children:[t.jsx(Io,{isDisabled:e,label:o.label,htmlFor:r.name,style:{marginLeft:Fe.labelMarginLeft.value(k),marginRight:Fe.labelMarginRight.value(k),marginTop:Fe.labelMarginTop.value(k),width:o.width??"auto"}}),t.jsxs(Yo,{labelWidth:o.width,children:[t.jsx(Uo,{...r,isDisabled:e,style:{flexGrow:1,height:Fe.controlHeight.value(k)}}),R?t.jsx(Go,{size:k,hasError:R,children:p}):null,T()]})]})}const Ko=n.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: row;
|
|
43
43
|
align-items: flex-start;
|
|
@@ -121,12 +121,12 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
121
121
|
color: ${e=>e.theme.colors.grey1};
|
|
122
122
|
background: ${e=>e.theme.colors.overlayColor};
|
|
123
123
|
border-radius: ${i.sp1};
|
|
124
|
-
`,
|
|
124
|
+
`,Xo=n.div`
|
|
125
125
|
padding-right: ${i.sp3};
|
|
126
126
|
padding-top: ${i.sp1};
|
|
127
127
|
display: flex;
|
|
128
128
|
justify-content: flex-end;
|
|
129
|
-
`,
|
|
129
|
+
`,Zo=n.label`
|
|
130
130
|
display: flex;
|
|
131
131
|
justify-content: flex-end;
|
|
132
132
|
color: ${e=>e.isError?j.important:e.theme.colors.hero};
|
|
@@ -163,7 +163,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
163
163
|
background-color: ${e=>e.theme.colors.grey3};
|
|
164
164
|
min-height: 1px;
|
|
165
165
|
max-height: 1px;
|
|
166
|
-
`,
|
|
166
|
+
`,Xe=(e,o)=>`${e}.${o}`,Ee={paddingTop:new c(a[5],a[4]),marginBottom:new c(a[3],a[3]),labelPaddingLeft:new c(a[3],a[4]),buttonWidth:new c(70,70),containerRightMargin:new c(a[3],a[8]),containerLeftMargin:new c(a[3],a[6]),deleteConfirmationTextMarginBottom:new c(a[2],a[0])},G=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,aa=({lineData:e,currencyConversionState:o,recommendationFetchState:r,remiStage:u,lineIndex:p,accountList:C,classList:m,merchantList:S,hasFile:b,defaultCurrency:l,hasMultipleLineItems:k,fileRequiredLineIds:f,duplicateLineDetails:s,remiStatus:g,sectionId:w,isDisabled:R,isReimbursementCommentingEnabled:T,isAddReimbursementDisabled:$,style:K,autoFields:L=[],analytics:I,reimbursementId:E,tentativeMerchantName:te,companyMileageConfigInfo:pe,uncategorizedAccounts:A,removeDuplicateReimbursementForLine:_,scrollToSection:Y,onDuplicateLineClick:H,onRemoveReimbursement:ie,clearTentativeNameForLine:Q,allCurrencies:we,accountsHierarchyList:he,classHierarchyList:re})=>{const J=Ie(),le=ft(),Oe=zt(),P=me.getLocalizedStrings().common.strings.empty,ge={application:"dashboard",companyId:le.currentTenant?.companyId,tab:"reimbursement",entityId:E},se=`dashboard_${le.currentTenant?.companyId}`,{getValues:Ne}=ct(),[Le,Ae]=v.useState(!1),Se=Ne(Xe(w,"reimbursementType"));return t.jsxs(ma,{style:K,windowSize:J,children:[t.jsxs(la,{hasFile:b,windowSize:J,showDeleteConfirmation:Le,children:[t.jsx(ha,{windowSize:J,children:k?`#${p+1} ${G.reimbursement}`:G.reimbursement}),Le?t.jsxs(ua,{windowSize:J,children:[t.jsx(da,{windowSize:J,children:G.deleteConfirmation}),t.jsxs(ra,{children:[t.jsx(Ti,{label:G.buttons.cancel,onClick:()=>Ae(!1),style:{width:Ee.buttonWidth.value(J),marginLeft:J==="small"?i.sp0:i.sp4,marginRight:i.sp3},size:"small",variant:"secondary","data-testid":q("delete-remi-button",G.buttons.cancel)}),t.jsx(Ti,{label:G.buttons.remove,onClick:()=>{I?.trackReimbursementDeleteReimbursementLine(e.lineId,E),Q?.(e.lineId??"1"),Ae(!1),_(e.lineId),ie(p)},style:{width:Ee.buttonWidth.value(J)},size:"small",variant:"danger","data-testid":q("delete-remi-button",G.buttons.remove)})]})]}):k&&(u==="draft"||g==="rejected")?t.jsx(sa,{className:"deleteIconWrapper",windowSize:J,onClick:()=>Ae(!0),"data-testid":q("delete-remi-button",e.lineId),children:t.jsx(yn,{enterDelay:600,title:G.deleteReimbursement,placement:"top-end",children:t.jsx(ca,{})})}):null]}),f.includes(e.lineId)?t.jsx(rn,{title:G.missingReceipt,description:G.missingReceiptDescription,style:{marginBottom:i.sp3}}):null,t.jsxs(ga,{windowSize:J,children:[s?.duplicateLineId!=null?t.jsxs(pa,{children:[G.thisExpense," ",s.isDuplicateWithinTransaction?t.jsx(zi,{"data-testid":q("view-duplicate-transaction-expense"),onClick:()=>(I?.trackReimbursementViewDuplicateExpense(!0,E),Y(s.duplicateLineId)),children:G.viewOriginalExpense}):t.jsx(zi,{"data-testid":q("view-duplicate-expense"),onClick:()=>{s.duplicateTransactionId!=null&&s.duplicateLineId!=null&&(I?.trackReimbursementViewDuplicateExpense(!1,E),H(s.duplicateTransactionId,s.duplicateLineId))},children:G.viewOriginalExpense})]}):null,t.jsx(fe,{isThreadAllowed:T&&E!=null,dashboardTabKey:xe({type:"details",key:Se===G.mileageKey?`${p}.mileage.reimbursementType`:`${p}.out_of_pocket.reimbursementType`}),roomId:se,companyId:le.currentTenant?.companyId??P,companyName:le.currentTenant?.companyName??P,entityId:E,dashboardOptionType:"reimbursement",filterMetaData:{...ge,entityType:`reimbursement.details.${ve("reimbursementType",p,Se===G.mileageKey?"mileage":"out_of_pocket")}`},fieldThreadTargetElement:Oe?.sharedRef?.contentWrapperRef,style:{borderRadius:s?.duplicateLineId!=null?"0 0 0 0":`${i.sp2} ${i.sp2} 0 0`},children:t.jsxs(ba,{isDisabled:R!=null,haveBorderRadius:s?.duplicateLineId==null,children:[t.jsx(ji,{isDisabled:R!=null||$?"disabled":void 0,isContainerClickable:!0,label:{label:G.outOfPocket},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ee.labelPaddingLeft.value(J),borderTopLeftRadius:"inherit"},showOutline:!(T&&E!=null),radioField:{name:Xe(w,"reimbursementType"),id:`${Xe(w,"reimbursementType")}.${G.outOfPocketKey}`,value:G.outOfPocketKey}}),t.jsx(ya,{}),t.jsx(ji,{isDisabled:R!=null||$?"disabled":void 0,isContainerClickable:!0,label:{label:G.mileage},style:{padding:`${i.sp3} ${i.sp0}`,paddingLeft:Ee.labelPaddingLeft.value(J),borderTopRightRadius:"inherit"},showOutline:!(T&&E!=null),radioField:{name:Xe(w,"reimbursementType"),id:`${Xe(w,"reimbursementType")}.${G.mileageKey}`,value:G.mileageKey}})]})}),t.jsx(fa,{}),Se===G.outOfPocketKey?t.jsx(oa,{lineIndex:p,reimbursementId:E,uncategorizedAccounts:A,isReimbursementCommentingEnabled:T,isDisabled:R,outOfPocket:{transactionDate:e.outOfPocket.transactionDate!=null?ee.zeniDate(e.outOfPocket.transactionDate.toDateString()):void 0,account:e.outOfPocket.account.selectedOption,isConvertedCurrencyLoading:o?.fetchState==="In-Progress",isRecommendationLoading:r==="In-Progress",homeCurrencyDetails:e.homeCurrencyConversions,class:e.outOfPocket.class.selectedOption,amount:{amount:e.outOfPocket.amount?.amount??0,currencyCode:e.outOfPocket.amount?.currencyCode??"USD",currencySymbol:e.outOfPocket.amount?.currencySymbol??"$"},memo:e.outOfPocket.memo,merchant:e.outOfPocket.merchant.selectedOption,recommendations:e.outOfPocket.recommendations,recommendedAccount:e.outOfPocket.recommendedAccount,isCategoryUpdateSelected:e.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:e.outOfPocket.isCategoryFirstTimeAutofilled,retainedAccount:e.outOfPocket.retainedAccount,isRetainedCategorySelected:e.outOfPocket.isRetainedCategorySelected},sectionId:Xe(w,"outOfPocket"),accountList:C,classList:m,autoFields:L,merchantList:S,tentativeMerchantName:te,allCurrencies:we,isAddReimbursementDisabled:$,accountsHierarchyList:he,classHierarchyList:re}):t.jsx(Wo,{lineIndex:p,reimbursementId:E,isReimbursementCommentingEnabled:T,isDisabled:R,mileage:{transactionDate:e.mileage.transactionDate!=null?ee.zeniDate(e.mileage.transactionDate.toDateString()):void 0,class:e.mileage.class.selectedOption,distanceInMiles:e.mileage.distanceInMiles,amount:{amount:e.mileage.amount?.amount??0,currencyCode:e.mileage.amount?.currencyCode??"USD",currencySymbol:e.mileage.amount?.currencySymbol??"$"},memo:e.mileage.memo},classList:m,sectionId:Xe(w,"mileage"),companyMileageConfigInfo:pe,defaultCurrency:l,isAddReimbursementDisabled:$,classHierarchyList:re})]})]})},ra=n.div``,la=n.div`
|
|
167
167
|
//when file is present and it's a small window, we don't have to show the title and delete icon. Delete icon will be displayed inside the invoice title, next to replace
|
|
168
168
|
//https://www.figma.com/file/ERKhHKvXKZSfIUruWfHqwU/New-Reimbursement-Mobile-Ver-1.0?type=design&node-id=419%3A6356&mode=design&t=upxphJ6HQRaue6wK-1
|
|
169
169
|
display: ${e=>e.hasFile&&e.windowSize==="small"?"none":"flex"};
|
|
@@ -407,10 +407,10 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
407
407
|
margin-top: ${e=>M.marginTop.valuePx(e.windowSize)};
|
|
408
408
|
`,Ha=n.div`
|
|
409
409
|
padding: ${i.sp2} ${i.sp8} ${i.sp0} ${i.sp6};
|
|
410
|
-
`,qa={total:new pi("largeMedium","h6Medium")},
|
|
411
|
-
margin-left: ${e=>
|
|
412
|
-
margin-right: ${e=>
|
|
413
|
-
margin-bottom: ${e=>
|
|
410
|
+
`,qa={total:new pi("largeMedium","h6Medium")},X={largeLabelWidth:new c(120,120,220),marginBottom:new c(a[5],a[4]),addBankAccountMarginBottom:new c(a[5],a[5]),marginTop:new c(a[0],78),paymentToMarginTop:new c(0,a[4]),totalMarginBottom:new c(a[3],a[3]),rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),paymentToMarginBottom:new c(12,a[3])},Ze=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail,Ka=({remiDetails:e,isUserAdmin:o,authParams:r,uploadInvoiceEndPoint:u,showSkipAutoFill:p,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,totalAmount:S,defaultCurrency:b,hasDuplicateLine:l,bankAccounts:k,fileRequiredLineIds:f,companyMileageConfigInfo:s,analytics:g,reimbursementId:w,currencyConversionStatus:R,setShowSkipAutoFill:T,setShowBankAccountPage:$,removeDuplicateReimbursementForLine:K,onReceiptsUpload:L,setCurrentLineIdForUpload:I,onDuplicateLineClick:E,setUploadedReceiptPayload:te,removeFileFromLine:pe,onReplaceClick:A,updateInvoiceUploadFetchState:_,clearTentativeNameForLine:Y,onDeleteBankAccount:H,uncategorizedAccounts:ie,isSignedInUserReimbursementCreator:Q,duplicateLineByLineId:we,showTotalAmountLoader:he,scrollContainerRef:re})=>{const{control:J,formState:{errors:le}}=ct(),{fields:Oe,append:P,remove:ge}=uo({name:gi,control:J}),se=Oe,Ne=v.useRef(null),Le=F=>{setTimeout(()=>{ge(F)})},{tentativeMerchantNameByLineId:Ae,remiStage:Se,remiStatus:ze}=e,ye=!Q||Se==="pending_approval"&&ze!=="rejected"&&o||Se==="pending_approval"&&ze==="rejected",De=ye?e.paymentToBankAccountDetail!=null?[e.paymentToBankAccountDetail]:[]:k,dt=De.map(F=>F.bankAccountId),W=Ie(),et=X.largeLabelWidth.value(W),tt=e.whatForSection.reportTitle,We=e.accountList.accounts,ke=e.accountsHierarchyList,He=e.classHierarchyList,Te=e.classList.classes,Ue=e.merchantList.merchants,Ve=e.addRemiAutoFieldsByLineId,qe=Math.max(...Object.keys(e.editRemiInitialDetails?.lineDetailSection??{}).map(F=>Number(F)),0),Ke=()=>{const F=se[se.length-1],ae=Dn(se.length,Number(F.lineId)>qe?String(Number(F.lineId)+1):String(qe+1),ke,He,Ue,b,e.allCurrencies,e.loggedInUserDepartmentId);setTimeout(()=>{P(ae,{shouldFocus:!1})}),I(Number(ae.lineId)),T(!0),setTimeout(()=>Pi(Ne.current,re?.current),50)},[ne,it]=v.useState({}),ut=v.useCallback(F=>{const ae=ne[`L${F}`];ae!=null&&Pi(ae,re?.current)},[ne,re]),Ge=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,U=e.reimbursementInfo?.paymentDate!=null?ee.zeniDate(ee.getNextNthWorkingDay(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,mt=e.reimbursementInfo?.expectedDepositDate??U;return t.jsxs(Xa,{windowSize:W,showSkipAutoFill:p,children:[se.map((F,ae)=>t.jsx(Ca,{removeDuplicateReimbursementForLine:K,onDuplicateLineClick:E,scrollToSection:ut,setRefByLineId:it,duplicateLineByLineId:we,reimbursementId:w,remiUploadStatus:e.uploadStatus,uncategorizedAccounts:ie,progressSectionObj:Ge,createDate:e.createTime,paymentDate:mt,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isFirstOrLastListItem:se.length-1===ae||ae===0,index:ae,reimbursementSectionRef:Ne,remiStage:Se,remiStatus:ze,authParams:r,file:F.file,uploadInvoiceEndPoint:u,showSkipAutoFill:p,lineData:F,currencyConversionState:R[F.lineId],recommendationFetchState:e.lineDetailSection[F.lineId]?.recommendationFetchState,setCurrentLineIdForUpload:I,setUploadedReceiptPayload:te,onReplaceClick:A,onReceiptsUpload:L,removeFileFromLine:pe,isReimbursementCommentingEnabled:C,isAutoFieldsExist:m,reportTitle:tt,accountList:We,classList:Te,merchantList:Ue,autoFieldsByLineId:Ve,onRemoveReimbursement:Le,onAddReimbursement:Ke,totalAmount:S,showTotalAmountLoader:he,hasDuplicateLine:l,totalNumberOfLines:se.length,updateInvoiceUploadFetchState:_,clearTentativeNameForLine:Y,tentativeMerchantName:Ae[F.lineId],companyMileageConfigInfo:s,defaultCurrency:b,setShowBankAccountPage:$,paymentTo:e.paymentTo,bankAccounts:De,onDeleteBankAccount:H,analytics:g,fileRequiredLineIds:f,allCurrencies:e.allCurrencies,loggedInUserDepartmentId:e.loggedInUserDepartmentId,isAddReimbursementDisabled:ye,accountsHierarchyList:ke,classHierarchyList:He,isSignedInUserReimbursementCreator:Q},F.lineId)),se.length===1&&t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{children:[W!=="small"?t.jsx(Gt,{windowSize:W}):null,t.jsx(Yt,{windowSize:W,children:t.jsxs(Za,{windowSize:W,children:[t.jsx(Qa,{children:Ze.total}),he?t.jsx(tr,{windowSize:W,children:t.jsx(ir,{children:t.jsx(xt,{size:"Standard",start:!0,style:{display:"flex"}})})}):t.jsx(dn,{amount:ee.toAmount(S,ee.defaultVendorCurrency.currencyCode,ee.defaultVendorCurrency.currencySymbol),integerStyles:Pt.h6Regular.cssObject,decimalStyles:Pt.standardRegular.cssObject})]})})]}),t.jsxs(Jt,{children:[W!=="small"?t.jsx(Gt,{windowSize:W}):null,t.jsx(Yt,{windowSize:W,children:t.jsxs(nr,{windowSize:W,onClick:()=>{ye===!1&&Ke()},isDisabled:ye,"data-testid":q("add-reimbursement-container"),children:[t.jsx(Ei,{}),t.jsx(Fi,{children:Ze.addReimbursement})]})})]}),t.jsxs(Jt,{children:[W!=="small"?t.jsx(Gt,{windowSize:W}):null,Q?t.jsxs(Yt,{windowSize:W,children:[t.jsx(er,{windowSize:W,children:Ze.receivePaymentTo}),t.jsx(Ja,{windowSize:W,shouldDisplay:De.length>0,children:t.jsx(un,{label:{label:Ze.yourBankAccount,width:et},style:{width:"auto"},singleSelectField:{singleSelect:{name:yt,placeholder:Qe(Ze.yourBankAccount),showValueEyeIcon:!ye,menuPlacement:"top",maxMenuHeight:308,showEyeIconOnSelect:!1,onDelete:H,getTooltipInfo:F=>Cn(De,F),onClickCreateBankAccount:()=>$(!0),getLabelForId:F=>In(De,F),isOptionRemovable:!1,showDeleteIcon:!0,showAddBankAccountOption:!0,isDisabled:ye?"readonly":void 0,showTickMark:!1,alwaysShowEyeTooltip:!0},defaultValue:{selectedOption:e.paymentTo,allOptions:dt},registerOptions:{required:!0,validate:F=>!!F.selectedOption}},isFunctional:!0})}),t.jsxs(or,{shouldDisplay:De.length===0,windowSize:W,onClick:()=>{ye===!1&&$(!0)},hasError:st(le,yt),isDisabled:ye,"data-testid":q("remi-add-bank-account-container"),children:[t.jsx(Ei,{}),t.jsx(Fi,{children:Ze.addBankAccount})]})]}):null]})]})]})},Dn=(e,o,r,u,p,C,m,S)=>{const b=Ga(r,u,p,C,m,S);return{lineIndex:e,lineId:o,reimbursementType:Ze.outOfPocketKey,file:void 0,outOfPocket:b,mileage:Ya(u,C,S)}},Ga=(e,o,r,u,p,C)=>({transactionDate:void 0,class:{allOptions:_e(o,[]),selectedOption:C},account:{allOptions:At(e,[]),selectedOption:void 0},amount:{amount:0,currencyCode:u.currencyCode,currencySymbol:u.currencySymbol,currency:{allOptions:p.map(m=>({label:`${m.currencyCode} - ${m.currency}`,value:m.currencyCode,countryCode:si(m.countryCode)})),selectedOption:u.currencyCode??me.getLocalizedStrings().common.currency.currencyCode}},memo:void 0,merchant:{allOptions:r.map(m=>m.id).filter(m=>!!m),selectedOption:void 0},recommendations:[],isCategoryUpdateSelected:!1,isCategoryFirstTimeAutofilled:!1,isRetainedCategorySelected:!1}),Ya=(e,o,r)=>({transactionDate:void 0,class:{allOptions:_e(e,[]),selectedOption:r},distanceInMiles:void 0,amount:{amount:0,currencyCode:o.currencyCode,currencySymbol:o.currencySymbol},memo:void 0}),Ja=n.div`
|
|
411
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
412
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
413
|
+
margin-bottom: ${e=>X.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
414
414
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
415
415
|
border-radius: ${i.sp2};
|
|
416
416
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
@@ -419,11 +419,11 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
419
419
|
width: ${e=>e.windowSize==="small"?"100%":"42%"};
|
|
420
420
|
`,Yt=n.div`
|
|
421
421
|
width: ${e=>e.windowSize==="small"?"100%":"58%"};
|
|
422
|
-
`,
|
|
422
|
+
`,Xa=n.div`
|
|
423
423
|
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
424
424
|
flex-direction: column;
|
|
425
|
-
margin-top: ${e=>
|
|
426
|
-
`,
|
|
425
|
+
margin-top: ${e=>X.marginTop.valuePx(e.windowSize)};
|
|
426
|
+
`,Za=n.div`
|
|
427
427
|
padding: ${i.sp3};
|
|
428
428
|
display: flex;
|
|
429
429
|
align-items: center;
|
|
@@ -432,20 +432,20 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
432
432
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
433
433
|
border-radius: ${i.sp2};
|
|
434
434
|
color: ${e=>e.theme.colors.hero};
|
|
435
|
-
margin-top: ${e=>
|
|
436
|
-
margin-left: ${e=>
|
|
437
|
-
margin-right: ${e=>
|
|
438
|
-
margin-bottom: ${e=>
|
|
435
|
+
margin-top: ${e=>X.totalMarginBottom.valuePx(e.windowSize)};
|
|
436
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
437
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
438
|
+
margin-bottom: ${e=>X.totalMarginBottom.valuePx(e.windowSize)};
|
|
439
439
|
`,Qa=n(pn)`
|
|
440
440
|
display: flex;
|
|
441
441
|
width: 176px;
|
|
442
442
|
color: ${e=>e.theme.colors.primary};
|
|
443
443
|
`,er=n(Bt)`
|
|
444
444
|
color: ${e=>e.theme.colors.primary};
|
|
445
|
-
margin-top: ${e=>
|
|
446
|
-
margin-bottom: ${e=>
|
|
447
|
-
margin-left: ${e=>
|
|
448
|
-
margin-right: ${e=>
|
|
445
|
+
margin-top: ${e=>X.paymentToMarginTop.valuePx(e.windowSize)};
|
|
446
|
+
margin-bottom: ${e=>X.paymentToMarginBottom.valuePx(e.windowSize)};
|
|
447
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
448
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
449
449
|
`,tr=n(hn)`
|
|
450
450
|
display: flex;
|
|
451
451
|
width: calc(100% - 176px);
|
|
@@ -473,10 +473,10 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
473
473
|
border: 1px solid
|
|
474
474
|
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
475
475
|
}
|
|
476
|
-
margin-top: ${e=>
|
|
477
|
-
margin-left: ${e=>
|
|
478
|
-
margin-right: ${e=>
|
|
479
|
-
margin-bottom: ${e=>
|
|
476
|
+
margin-top: ${e=>X.totalMarginBottom.valuePx(e.windowSize)};
|
|
477
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
478
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
479
|
+
margin-bottom: ${e=>X.marginBottom.valuePx(e.windowSize)};
|
|
480
480
|
`,or=n.div`
|
|
481
481
|
padding: ${i.sp3};
|
|
482
482
|
display: ${e=>e.shouldDisplay?"flex":"none"};
|
|
@@ -492,9 +492,9 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
492
492
|
border: 1px solid
|
|
493
493
|
${e=>e.isDisabled?e.theme.colors.grey3:e.hasError===!0?j.important:e.theme.colors.primary};
|
|
494
494
|
}
|
|
495
|
-
margin-left: ${e=>
|
|
496
|
-
margin-right: ${e=>
|
|
497
|
-
margin-bottom: ${e=>
|
|
495
|
+
margin-left: ${e=>X.leftMargin.valuePx(e.windowSize)};
|
|
496
|
+
margin-right: ${e=>X.rightMargin.valuePx(e.windowSize)};
|
|
497
|
+
margin-bottom: ${e=>X.addBankAccountMarginBottom.valuePx(e.windowSize)};
|
|
498
498
|
`,Fi=n(Mt)`
|
|
499
499
|
color: inherit;
|
|
500
500
|
`,Ei=n(gn)`
|
|
@@ -547,7 +547,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
547
547
|
padding-left: ${e=>Pe.paddingLeft.valuePx(e.size)};
|
|
548
548
|
padding-right: ${e=>Pe.paddingRight.valuePx(e.size)};
|
|
549
549
|
padding-bottom: ${i.sp3};
|
|
550
|
-
`,Ce={containerWidth:new c(343,544),confirmationPopUpTitleMarginTop:new c(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new c(a[5],a[8]),submitButtonWidth:new c(145,156),cancelButtonWidth:new c(121,121),errorLineItemGap:new c(a[2],12),styledCloseIconRight:new c(a[3],a[8])},{footer:Ui}=me.getLocalizedStrings().common,ue=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Vi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Hi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(Tn,{});default:return t.jsx(Hi,{})}},br=e=>{switch(e){case"Not-Started":return ue.detectDuplicates;case"In-Progress":return ue.detectingDuplicates;case"Completed":return ue.noDuplicatesFound;default:return ue.detectDuplicates}},fr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:u,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:S,fetchDuplicateReimbursement:b,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const f=Ie(),[s,g]=vt.useState(!0),w=ai(e),R=ai(o);vt.useEffect(()=>{setTimeout(()=>{s&&(g(!1),o==="Not-Started"&&b())},2e3)},[o,b,s]),vt.useEffect(()=>{w==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,w,p,l]),vt.useEffect(()=>{R==="In-Progress"&&o==="Completed"&&!r&&S()},[R,o,r,S]);const T=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[T?t.jsx(xr,{size:f}):null,t.jsx(li,{action:{onOkClick:()=>{T?(l(),e==="Error"&&k(),g(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(u,m),p(!1),ro())},onCancelClick:()=>{T?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(u,m),S())}},shouldClickAway:T,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:T?Ui.resubmit:ue.primaryButtonText,secondaryButtonText:T?Ui.cancel:ue.secondaryButtonText,primaryButtonWidth:T?Ce.cancelButtonWidth.value(f):Ce.submitButtonWidth.value(f),secondaryButtonWidth:T?Ce.cancelButtonWidth.value(f):Ce.submitButtonWidth.value(f),descriptionComponent:t.jsx($r,{size:f,children:t.jsxs(wr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(
|
|
550
|
+
`,Ce={containerWidth:new c(343,544),confirmationPopUpTitleMarginTop:new c(a[6],a[7]),confirmationPopUpTitlePaddingLeftRight:new c(a[5],a[8]),submitButtonWidth:new c(145,156),cancelButtonWidth:new c(121,121),errorLineItemGap:new c(a[2],12),styledCloseIconRight:new c(a[3],a[8])},{footer:Ui}=me.getLocalizedStrings().common,ue=me.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail.duplicatePopUpInfo,Vi=({fetchState:e})=>{switch(e){case"Not-Started":return t.jsx(Hi,{});case"In-Progress":return t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}});case"Completed":return t.jsx(Tn,{});default:return t.jsx(Hi,{})}},br=e=>{switch(e){case"Not-Started":return ue.detectDuplicates;case"In-Progress":return ue.detectingDuplicates;case"Completed":return ue.noDuplicatesFound;default:return ue.detectDuplicates}},fr=({submitFetchState:e,duplicateReimbursementStatus:o,hasDuplicateLine:r,numberOfDuplicateLines:u,setShowDuplicatePopup:p,analytics:C,reimbursementId:m,submitReport:S,fetchDuplicateReimbursement:b,clearDuplicateReimbursementDetail:l,clearRemiSaveStatus:k})=>{const f=Ie(),[s,g]=vt.useState(!0),w=ai(e),R=ai(o);vt.useEffect(()=>{setTimeout(()=>{s&&(g(!1),o==="Not-Started"&&b())},2e3)},[o,b,s]),vt.useEffect(()=>{w==="In-Progress"&&e==="Completed"&&(l(),p(!1))},[e,w,p,l]),vt.useEffect(()=>{R==="In-Progress"&&o==="Completed"&&!r&&S()},[R,o,r,S]);const T=o==="Error"||e==="Error";return t.jsxs(t.Fragment,{children:[T?t.jsx(xr,{size:f}):null,t.jsx(li,{action:{onOkClick:()=>{T?(l(),e==="Error"&&k(),g(!0)):(C?.trackReimbursementReviewDuplicateReportReimbursement(u,m),p(!1),ro())},onCancelClick:()=>{T?(l(),e==="Error"&&k(),p(!1)):(C?.trackReimbursementSubmitAnywayDuplicateReimbursement(u,m),S())}},shouldClickAway:T,isSecondaryLoading:e==="In-Progress",secondaryButtonVariant:"secondary",primaryButtonText:T?Ui.resubmit:ue.primaryButtonText,secondaryButtonText:T?Ui.cancel:ue.secondaryButtonText,primaryButtonWidth:T?Ce.cancelButtonWidth.value(f):Ce.submitButtonWidth.value(f),secondaryButtonWidth:T?Ce.cancelButtonWidth.value(f):Ce.submitButtonWidth.value(f),descriptionComponent:t.jsx($r,{size:f,children:t.jsxs(wr,{hasDuplicate:r,duplicateReimbursementStatus:o,children:[t.jsxs(Zt,{isDisabled:!1,isSuccess:!s,children:[s?t.jsx(xt,{size:"Small",start:!0,style:{alignItems:"center",display:"flex"}}):t.jsx(Tn,{}),t.jsx(Xt,{isDisabled:!1,children:s?ue.reviewingExpenses:ue.reviewedAllExpenses})]}),r||o==="Error"?t.jsxs(Ki,{size:f,children:[t.jsx(_i,{}),t.jsx(qi,{children:o==="Error"?ue.failedToDetect:`${u} ${ue.duplicateExpensesFound}`})]}):t.jsxs(Zt,{isDisabled:o==="Not-Started",isSuccess:o==="Completed"&&u===0,children:[t.jsx(Vi,{fetchState:o}),t.jsx(Xt,{isDisabled:o==="Not-Started",children:br(o)})]}),e==="Error"?t.jsxs(Ki,{size:f,children:[t.jsx(_i,{}),t.jsx(qi,{children:ue.failedToSubmit})]}):r||o==="Error"?null:t.jsxs(Zt,{isDisabled:e==="Not-Started",isSuccess:e==="Completed",children:[t.jsx(Vi,{fetchState:e}),t.jsx(Xt,{isDisabled:e==="Not-Started",children:e==="Not-Started"?ue.submitReport:ue.submittingReport})]})]})}),titleComponent:t.jsx(Sr,{size:f,children:ue.title}),showFooter:r||T,containerStyle:{width:Ce.containerWidth.value(f),maxWidth:"unset"}})]})},xr=n(cn)`
|
|
551
551
|
width: ${i.sp4};
|
|
552
552
|
height: ${i.sp4};
|
|
553
553
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -569,12 +569,12 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
569
569
|
height: ${i.sp3};
|
|
570
570
|
min-width: ${i.sp3};
|
|
571
571
|
color: ${e=>e.theme.colors.grey3};
|
|
572
|
-
`,
|
|
572
|
+
`,Xt=n.div`
|
|
573
573
|
color: ${e=>e.isDisabled?e.theme.colors.grey2:e.theme.colors.primary};
|
|
574
574
|
text-align: left;
|
|
575
575
|
`,qi=n.div`
|
|
576
576
|
color: ${j.brandColorGoldDark};
|
|
577
|
-
`,
|
|
577
|
+
`,Zt=n.div`
|
|
578
578
|
display: flex;
|
|
579
579
|
align-items: center;
|
|
580
580
|
gap: ${e=>e.isSuccess?i.sp2:i.sp3};
|
|
@@ -616,7 +616,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
616
616
|
height: ${i.sp4};
|
|
617
617
|
min-width: ${i.sp4};
|
|
618
618
|
color: ${j.success};
|
|
619
|
-
`,X={rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),bottomMargin:new c(56,56),closeMarginTop:new c(0,19),closeMarginRight:new c(a[3],a[8]),rightSectionWidth:new c(100,58),leftSectionWidth:new c(100,42),footerButtonWidth:new c(120,165),right:new c(a[3],a[0]),actionsContainerRight:new c(a[0],a[6]),otherActionsContainerBottom:new c(58,44),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6]),navBarWidth:new c(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:y,bulkActions:Gi}},common:{currency:{currencyCode:Me,currencySymbol:Tt},texts:{comments:vr},strings:{empty:Cr}},collaboration:{threads:{placeholder:{addANewComment:kr,replyAComment:Ir},tooltip:{resolveComment:Dr,unResolveComment:Tr}}},dateFormat:Yi}=me.getLocalizedStrings(),Ji="editReimbursementDetailPage",Zi=e=>`${e}_form`,jr=(e,o,r,u,p,C,m,S,b)=>{const l=e.outOfPocket,k=e.mileage,f=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??y.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:_e(r,[]),selectedOption:l?.lineDetail?.class?.classId??b},account:{allOptions:At(o,s),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:S.map(g=>({label:`${g.currencyCode} - ${g.currency}`,value:g.currencyCode,countryCode:si(g.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??Me}},memo:l?.description??void 0,merchant:{allOptions:u.map(g=>g.id).filter(g=>!!g),selectedOption:f?.id?f?.id:f?.name?f?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:_e(r,[]),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},Qt=(e,o,r)=>{const u=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&u.push(jr(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),u.length===0&&u.push(Dn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[Lt]:{reportTitle:e.whatForSection.reportTitle},[gi]:u,[yt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ei=(e,o)=>{const r=u=>u.lineId==null||o[u.lineId]?.fetchState==="In-Progress"?0:(o[u.lineId]?.fetchState,u.type===y.mileageKey?u?.mileage?.amount??0:u?.outOfPocket?.currencyCode!==Me&&u.homeCurrencyConversions?.amount!==u?.outOfPocket?.amount?u.homeCurrencyConversions?.amount??0:u?.outOfPocket?.amount??0);return Object.values(e).reduce((u,p)=>u+r(p),0)},ti=(e,o,r,u,p,C,m,S)=>{const b={};return e.lineInfo.forEach(l=>{const k=S.find(R=>R.classId===l.mileage.class.selectedOption),f=m.find(R=>R.qboId===l.outOfPocket.account.selectedOption||R.accountId===l.outOfPocket.account.selectedOption),s=S.find(R=>R.classId===l.outOfPocket.class.selectedOption),g=o.find(R=>R.id===l.outOfPocket.merchant.selectedOption),w=C.find(R=>R.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;b[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?ee.zeniDate(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??w,currencySymbol:l.mileage.amount?.currencySymbol??w,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:f},transactionDate:l.outOfPocket.transactionDate!=null?ee.zeniDate(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??w,currencySymbol:w,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:g?.id??"",name:g?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:b,totalAmount:{amount:u,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Rl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:u,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:S,reimbursementId:b,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:f,bankAccounts:s,isSignedInUserReimbursementCreator:g,uncategorizedAccounts:w,bankAccountToCreate:R,fetchBankNameByRoutingStatus:T,onUserBankDetailsUpdated:$,onFetchBankName:K,onSaveBankAccount:L,fetchDuplicateReimbursement:I,clearDuplicateReimbursementDetail:E,clearRemiSaveStatus:te,removeDuplicateReimbursementForLine:pe,onDuplicateLineClick:A,onExistingMerchantChange:_,onNewMerchantChange:Y,onReceiptsUpload:H,saveRemiDetails:ie,submitRemiDetails:Q,discardReimbursementDetailsFromLocalStore:we,onReimbursementDetailsChanged:he,updateReimbursementType:re,onHomeCurrencyConversionUpdate:J,redirectToReimbursementListScreen:le,redirectToReimbursementDetailScreen:Oe,deleteReimbursement:P,removeFileFromLine:ge,onZeniLogoClick:se,onAmountChanged:Ne,updateInvoiceUploadFetchState:Le,clearTentativeNameForLine:Ae,onAddNewRule:Se,onFetchLinkTokenClick:ze,onEstablishConnectionClick:ye,deleteBankAccount:De,onBackClickFromBankAccountPage:dt})=>{const W=v.useRef(null),et=v.useRef(null),tt=ai(e.uploadStatus),We=bt(),ke=ft(),[He,Te]=v.useState(!1),[Ue,Ve]=v.useState(!1),[qe,Ke]=v.useState("save"),[ne,it]=v.useState(ei(e.lineDetailSection,e.currencyConversionStatus)),[ut,Ge]=v.useState(!1),[U,mt]=v.useState(null),[F,ae]=v.useState(!1),wt=`dashboard_${ke.currentTenant?.companyId}`,$e=en({mode:"all",reValidateMode:"onChange",defaultValues:v.useMemo(()=>Qt(e,r,s),[e,r,s]),values:v.useMemo(()=>Qt(e,r,s),[e,r,s])}),{isDirty:z,dirtyFields:jn}=$e.formState,Rn=async(h,D)=>{const{lineInfo:d}=D,x=Number(h.split(".")[1]);if(h.includes("reportTitle")||h.includes("memo"))return;if(h.includes("reimbursementType")){const B=d[x].mileage,N=d[x].outOfPocket;d[x]={...d[x],outOfPocket:{transactionDate:N.transactionDate??void 0,class:{allOptions:N.class.allOptions??_e(e.classHierarchyList,[]),selectedOption:N.class.selectedOption??void 0},account:{allOptions:N.account.allOptions??At(e.accountsHierarchyList,[]),selectedOption:N.account.selectedOption??void 0},amount:N.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(be=>({label:`${be.currencyCode} - ${be.currency}`,value:be.currencyCode,countryCode:si(be.countryCode)})),selectedOption:r.currencyCode??Me}},memo:N.memo??void 0,merchant:N.merchant??void 0,recommendations:N.recommendations??[],recommendedAccount:N.recommendedAccount??void 0,isCategoryUpdateSelected:N.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:N.isCategoryFirstTimeAutofilled??!1,retainedAccount:N.retainedAccount??void 0,isRetainedCategorySelected:N.isRetainedCategorySelected??!1},mileage:{transactionDate:B.transactionDate??void 0,class:{allOptions:B.class.allOptions??_e(e.classHierarchyList,[]),selectedOption:B.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:B.distanceInMiles,amount:{amount:B?.amount?.amount??0,currencyCode:B?.amount?.currencyCode??Me,currencySymbol:B?.amount?.currencySymbol??Tt},memo:B.memo??void 0}}}else if(h.includes("mileage.distanceInMiles")){const{distanceInMiles:B}=d[x].mileage,N=u?.mileageUnitAmount??0;d[x].mileage={...d[x].mileage,amount:{amount:B!=null?B*N:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(h.includes("outOfPocket.amount")&&d[x].lineId){const B=d[x].outOfPocket.amount,N=e.allCurrencies.find(be=>be.currencyCode===B?.currency.selectedOption)?.currencySymbol;if(B?.currencyCode!==B?.currency.selectedOption){const be=B?.currency?.allOptions||[];d[x].outOfPocket.amount={currency:{allOptions:be,selectedOption:B?.currency?.selectedOption},amount:d[x].outOfPocket?.amount?.amount??0,currencyCode:B?.currency.selectedOption??Me,currencySymbol:N??Tt}}if(B?.currency.selectedOption!==Me)Ge(!0),Fn(d[x].lineId,Me);else{const be={};d.forEach(Kt=>{be[Kt.lineId]={lineId:Kt.lineId,homeCurrencyConversions:Kt.homeCurrencyConversions}}),d[x].homeCurrencyConversions={amount:B.amount??0,currencyCode:B?.currency.selectedOption??Me,currencySymbol:N??Tt};const vi=ei(be,e.currencyConversionStatus);ne!==vi&&it(vi)}}else if(h.includes("outOfPocket.isRetainedCategorySelected"))d[x].outOfPocket.isRetainedCategorySelected===!0&&(d[x].outOfPocket.isCategoryUpdateSelected=!1,d[x].outOfPocket.account.selectedOption=d[x].outOfPocket.retainedAccount?.qboId);else if(h.includes("outOfPocket.isCategoryUpdateSelected"))if(d[x].outOfPocket.isCategoryUpdateSelected===!0)d[x].outOfPocket.account.selectedOption=d[x].outOfPocket.recommendedAccount?.qboId,d[x].outOfPocket.isRetainedCategorySelected=!1;else{const B=d[x].lineId,N=e.editRemiInitialDetails.lineDetailSection[B]?.lineDetail?.account?.qboId;d[x].outOfPocket.account.selectedOption=N,d[x].outOfPocket.isRetainedCategorySelected=!1}else h.includes("outOfPocket.account")&&(d[x].outOfPocket.recommendations.length>0&&(d[x].outOfPocket.recommendedAccount=d[x].outOfPocket.recommendations[0].account),d[x].outOfPocket.recommendedAccount?.qboId!=null&&d[x].outOfPocket.account.selectedOption===d[x].outOfPocket.recommendedAccount?.qboId?d[x].outOfPocket.isCategoryUpdateSelected=!0:d[x].outOfPocket.isCategoryUpdateSelected=!1,d[x].outOfPocket.retainedAccount?.qboId!=null&&d[x].outOfPocket.account.selectedOption===d[x].outOfPocket.retainedAccount?.qboId?d[x].outOfPocket.isRetainedCategorySelected=!0:d[x].outOfPocket.isRetainedCategorySelected=!1,d[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const $t=ti({...D,lineInfo:d},e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(he?.($t),h.includes("outOfPocket.merchant")){const B=d[x].lineId,N=d[x].outOfPocket.merchant.selectedOption??"";d[x].outOfPocket.merchant.allOptions.find(be=>be===N)!=null?_(N,B):Y(N,B)}},yi=v.useMemo(()=>Ci((h,D)=>Rn(h,D),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);v.useEffect(()=>{const h=$e.watch((D,{name:d})=>{d!=null&&D!=null&&yi(d,D)});return()=>{h.unsubscribe()}},[yi,$e]),v.useEffect(()=>{const h=ee.reduceAnyFetchState(Object.values(e.currencyConversionStatus)),D=h.fetchState==="In-Progress"||h.fetchState==="Error";Ge(D)},[e.currencyConversionStatus]),v.useEffect(()=>{for(const D in e.currencyConversionStatus){const d=e.lineDetailSection[D],x=e.lineDetailSection[D];e.currencyConversionStatus[D].fetchState==="Completed"&&x!=null&&d.type!==y.mileageKey&&!tn(d?.homeCurrencyConversions,x.homeCurrencyConversions)&&J({amount:d?.homeCurrencyConversions?.amount??0,currencyCode:d?.homeCurrencyConversions?.currencyCode??Me,currencySymbol:d?.homeCurrencyConversions?.currencySymbol??Tt},D,b)}const h=ei(e.lineDetailSection,e.currencyConversionStatus);ne!==h&&it(h)},[e.currencyConversionStatus,e.lineDetailSection]),v.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(we(b),le?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,b,we,le]);const O=Ie(),[je,pt]=v.useState(b==null),[ht,Pn]=v.useState(1),[On,Ft]=v.useState(!1),[Ln,An]=v.useState(""),[Et,zn]=v.useState(null),[Bn,nt]=v.useState(!1),[Mn,bi]=v.useState(!1),[Nt,Wt]=v.useState([]),[ce,St]=v.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Fn=v.useRef(Ci((h,D)=>Ne(h,D),500,{trailing:!0})).current;v.useEffect(()=>{tt==="In-Progress"&&(e.uploadStatus==="Completed"?($e.reset(Qt(e,r,s),{keepDefaultValues:!0}),Te(!1),pt(!1)):e.uploadStatus==="Error"&&Te(!1))},[tt,e.uploadStatus,$e,e,He,Te,je,r,s,S]),v.useEffect(()=>{e.uploadStatus==="In-Progress"&&je===!1&&Te(!0)},[e.uploadStatus,Te,je]);const Ut=e.remiStage==="draft"?y.newReimbursementTitle:y.editReimbursementTitle,En={onOkClick:()=>{if(nt(!1),ce.primaryButtonText===y.buttons.discard)we(b),e.remiStage==="draft"?le?.():Oe?.();else if(ce.primaryButtonText===y.buttons.delete)ce.title===y.deleteBankAccountTitle?De?.(Ln):P?.();else if(ce.primaryButtonText===y.buttons.yes&&Et!=null){const h=Nt.filter(D=>D!==ht.toString());Wt(h),H(Et,ht,!0)}},onCancelClick:()=>{if(nt(!1),ce.secondaryButtonText===y.buttons.no){const h=Nt.filter(D=>D!==ht.toString());Wt(h),H(Et,ht,!1)}}},fi=()=>{z||co(jn)?(St({title:y.discardTitle,description:y.discardDescription,primaryButtonText:y.buttons.discard,secondaryButtonText:y.buttons.cancel}),nt(!0)):(we(b),le?.())},Nn=()=>{St({title:e.remiStage==="draft"?y.deleteDraftTitle:y.deleteReportTitle,description:y.deleteAlertDescription,primaryButtonText:y.buttons.delete,secondaryButtonText:y.buttons.cancel}),nt(!0)},Wn=h=>{An(h),St({title:y.deleteBankAccountTitle,description:y.deleteBankAccountDescription,primaryButtonText:y.buttons.delete,secondaryButtonText:y.buttons.cancel}),nt(!0)},Un=()=>{St({title:y.overwriteTitle,description:y.overwriteDescription,primaryButtonText:y.buttons.yes,secondaryButtonText:y.buttons.no}),nt(!0)},Vn=()=>{let h=!0;const D=[];return Object.values(e.lineDetailSection).forEach((d,x)=>{d.type===y.outOfPocketKey&&vn(d)>=75&&d.file==null&&(D.push(d.lineId),h=!1)}),Wt(D),h},xi=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")fi();else{Ke("save");const h=$e.getValues(),D=ti(h,e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);he?.(D);const d=D.whatForSection?.reportTitle;d!=null&&d.length>0?ie(e.remiStatus==="rejected"?"pending_approval":"draft"):$e.trigger(`${Lt}.reportTitle`,{shouldFocus:!0})}};let Vt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(h=>{h.length>0&&(Vt=!0)});let wi=[];if(e.remiId==null){const h=ne??0;h>0&&(wi=e.approvalRules.allApprovalRules?.filter(D=>{const d=D.criteria[0].range;if(d.max!=null){if(d.min.amount<h&&d.max.amount>=h)return D}else if(d.min.amount<h)return D;return null}).map(D=>({...D,stepsWithStatus:D.steps.map(d=>({...d,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const _n=h=>{const D=Vn();return $e.handleSubmit(()=>{D&&(Ke("submit"),S?.trackReimbursementSubmitReimbursement(e.createTime?.format(Yi.analytics.MMMDashDDDashYYYYFormat)??ee.dateNow().format(Yi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ne,b),E(),bi(!0))})(h)},Hn=()=>{const h=$e.getValues(),D=ti(h,e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);he?.(D),Q()},qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Kn=e.reimbursementInfo?.paymentDate!=null?ee.zeniDate(ee.getNextNthWorkingDay(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Gn=e.reimbursementInfo?.expectedDepositDate??Kn,Yn=b!=null&&e.remiStage==="draft",Si=Po(e.duplicateLineByLineId),_t=e.duplicateReimbursementStatus.fetchState==="Completed"&&Si>0,{requestToOpenThread:Ht,setRequestToOpenThread:$i,setOpenThread:qt}=v.useContext(Xn),{threads:gt,isLoading:Ye}=Qn({application:"dashboard",companyId:ke.currentTenant?.companyId,tab:"reimbursement",entityId:b,isGlobalComment:!1},"both",!1);v.useEffect(()=>{Ht?.threadId!=null&>.length>0&&!Ye&&(qt(Ht.threadId),$i(null))},[Ht,gt,Ye,qt,$i]);const Jn=v.useMemo(()=>b==null?[]:gt.filter(h=>h.resolved===!1&&!h.id.includes(eo)),[gt,b]).length,Zn=(h,D)=>{qt(D);const d=h.entityType.split("."),x=parseInt(d[2]);if(isNaN(x)){ae(!1);return}const $t=`${x+1}`,B=e.lineDetailSection[x+1].type;d.includes(y.mileageKey)&&B===y.outOfPocketKey?re(ee.toReimbursementTypeCode(y.mileageKey),$t,b):d.includes(y.outOfPocketKey)&&B===y.mileageKey&&re(ee.toReimbursementTypeCode(y.outOfPocketKey),$t,b),ae(!1)};return t.jsx(Pr,{ref:W,children:t.jsx(to,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:et.current??null}},children:t.jsxs(nn,{...$e,children:[t.jsx("form",{id:Zi(Ji),onSubmit:h=>_n(h),children:t.jsxs(rl,{windowSize:O,ref:et,children:[Bn?t.jsx(li,{titleComponent:t.jsx(an,{children:ce.title}),descriptionComponent:t.jsx(on,{children:ce.description}),primaryButtonText:ce.primaryButtonText,secondaryButtonText:ce.secondaryButtonText,action:En,proceedButtonVariant:ce.title===y.deleteBankAccountTitle||ce.title===y.deleteDraftTitle||ce.title===y.deleteReportTitle||ce.title===y.discardTitle?"danger":"primary",isEditPopup:ce.title===y.deleteBankAccountTitle}):null,Mn?t.jsx(fr,{reimbursementId:b,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:_t,numberOfDuplicateLines:Si,setShowDuplicatePopup:bi,submitReport:Hn,fetchDuplicateReimbursement:I,clearDuplicateReimbursementDetail:E,clearRemiSaveStatus:te,analytics:S}):null,He?t.jsx(Qi,{windowSize:O}):null,je?t.jsxs(Qi,{windowSize:O,"data-testid":q("skip-autofill-section"),children:[O==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Vr,{children:t.jsx(oi,{partOfSkipAutoFill:!0,size:O,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ni,{withOverlay:!0,children:t.jsx(ii,{})})})}),t.jsx(Hr,{children:Ut})]}):null,t.jsx(xn,{showAutofill:je,analytics:S,onSkipAutofill:()=>{S?.trackReimbursementSkipAutofill(),pt(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:X.leftSectionWidth.valuePercentage(O),boxSizing:"border-box",backgroundColor:O==="small"?We.colors.grey4:"unset",padding:O==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:O==="small"?i.sp0:void 0},onInvoiceUpload:h=>H(h,ht,!0),dropFilePlaceholder:{upload:y.dropReceipt.upload,single:y.dropReceipt.single,or:y.dropReceipt.or,multiple:y.dropReceipt.multiple,receipts:y.dropReceipt.receipts},updateInvoiceUploadFetchState:Le,showInfoText:!1,allowMultiFiles:je,type:"receipt"}),O!=="small"?t.jsx(_r,{children:t.jsx(oi,{partOfSkipAutoFill:!0,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ni,{withOverlay:!0,children:t.jsx(ii,{})})})}):null]}):null,t.jsxs(tl,{windowSize:O,"data-testid":q("edit-reimbursement-detail-page-nav-bar-container"),children:[O!=="small"?t.jsx(ki,{style:{width:"42%"},"data-testid":q("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(il,{"data-testid":q("zeni-logo-spend-management-reimbursement-detail-page"),onClick:se}),enableTitleOnScroll:!1,scrollableContent:W,backgroundColor:We.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,O!=="small"?t.jsx(Or,{}):null,t.jsx(ki,{style:{width:X.navBarWidth.valuePercentage(O)},"data-testid":q("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Ut,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:je!=!0?t.jsxs(nl,{children:[C&&b!=null?t.jsxs(ol,{isDisabled:Ye,"data-testid":q("remi-comment-button"),onClick:Ye?()=>null:h=>{h.preventDefault(),h.stopPropagation(),mt({roomId:wt,companyId:ke.currentTenant?.companyId??"",companyName:ke.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:b}),ae(!0),S?.trackCommentActivity("reimbursement","clicked",ke.currentTenant?.companyName??"",ke.controllersList.controllers.map(D=>no(D)),void 0,void 0,"page icon")},children:[t.jsx(io,{count:Ye?void 0:Jn,isLoading:Ye,style:{left:"12px"}}),t.jsx(al,{})]}):null,t.jsx(oi,{size:O,onClick:()=>fi(),"data-testid":q("close-nav-bar"),children:t.jsx(ni,{withOverlay:!1,children:t.jsx(ii,{})})})]}):null,enableTitleOnScroll:O!=="small",scrollThreshold:64,scrollableContent:W,backgroundColor:We.colors.grey4})]}),O==="small"?t.jsxs(t.Fragment,{children:[t.jsx(el,{children:Ut}),t.jsx(oo,{progressSectionObj:qn,createDate:e.createTime,paymentDate:Gn,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:b!=null?!0:e.uploadStatus==="Completed"}),Vt&&t.jsxs(Gr,{children:[t.jsx(Kr,{}),t.jsx(Yr,{children:y.banner})]}),e.isProcessing?t.jsx(rn,{variant:"warning",style:{margin:O==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Gi.duplicateWarning.title,description:Gi.duplicateWarning.description}):_t?t.jsxs(Jr,{size:O,children:[t.jsx(Br,{}),t.jsxs(Xr,{children:[t.jsx(Zr,{children:y.thereSeems}),t.jsx(Qr,{children:y.pleaseFind})]})]}):null,t.jsx($n,{isReimbursementCommentingEnabled:C,sectionId:Lt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(Ka,{onDuplicateLineClick:A,reimbursementId:b,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:je,setShowSkipAutoFill:pt,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Vt,totalAmount:ne,removeFileFromLine:ge,onReplaceClick:Un,onReceiptsUpload:H,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Pn,setUploadedReceiptPayload:zn,updateInvoiceUploadFetchState:Le,clearTentativeNameForLine:Ae,defaultCurrency:r,companyMileageConfigInfo:u,isUserAdmin:m,setShowBankAccountPage:Ft,bankAccounts:s,onDeleteBankAccount:Wn,analytics:S,fileRequiredLineIds:Nt,isSignedInUserReimbursementCreator:g,uncategorizedAccounts:w,showTotalAmountLoader:ut,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:_t,removeDuplicateReimbursementForLine:pe,scrollContainerRef:W}),t.jsxs(ll,{showSkipAutoFill:je,windowSize:O,children:[O!=="small"?t.jsx(Xi,{}):null,t.jsx(sl,{windowSize:O,children:t.jsxs(cl,{windowSize:O,children:[e.remiId!==void 0&&t.jsx(Ii,{amount:ne??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:Se,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ne!=null&&ne>0?t.jsx(Ii,{amount:ne??0,activities:wi,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(dl,{}),t.jsxs(qr,{showSkipAutoFill:je,windowSize:O,children:[O!=="small"?t.jsx(Xi,{}):null,t.jsx(Lr,{windowSize:O,onClick:h=>{h.stopPropagation(),Ue===!0&&Ve(!1)},children:t.jsx(ln,{formId:Zi(Ji),separatorStyle:{marginRight:i.sp4},showCancel:g,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?O==="small"?y.buttons.discard:y.buttons.discardChanges:O==="small"?y.buttons.save:y.buttons.saveChanges,isLoading:qe==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:xi,style:{width:X.footerButtonWidth.value(O)},reverseSpinnerColor:!1},primaryBtn:{label:Rr(g,m,e,O),isDisabled:!g,style:{width:g?X.footerButtonWidth.value(O):"auto"},type:g?"submit":"button",onClick:g?()=>null:xi,isLoading:!g&&qe==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Ar,{children:t.jsxs(Nr,{windowSize:O,children:[Ue?t.jsx(sn,{onClickAway:()=>Ve(!1),children:t.jsx(Er,{windowSize:O,"data-testid":q("remi-other-actions-container"),children:t.jsx(Wr,{onClick:Nn,"data-testid":q("delete-report-action"),children:y.buttons.deleteReport})})}):null,t.jsx(Fr,{windowSize:O,children:Yn===!0?t.jsx(Mr,{windowSize:O,"data-testid":q("more-details-button"),children:t.jsx(zr,{onClick:()=>Ve(!Ue)})}):null})]})}),style:{minHeight:62}})})]}),C&&b!=null?t.jsx(Ro,{id:wt,children:t.jsx(ao,{isDrawerOpen:F,allowComposer:!0,drawerTitle:vr,threads:gt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:U?.companyId??Cr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Ye,threadMetadata:U?{companyName:U.companyName,companyId:U.companyId,entityId:U.entityId,entityType:U.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:kr,replyComposerPlaceholder:Ir,threadResolve:Dr,threadUnResolve:Tr},onThreadClick:(h,D)=>Zn(h,D),onCloseAllThreadsDrawer:()=>ae(!1),drawerSectionStyle:{width:"400px",backgroundColor:We.colors.background}})}):null]})}),On?t.jsx(Ur,{windowSize:O,children:t.jsx(rr,{bankAccountCreationState:k,setShowBankAccountPage:Ft,plaidConnectionDetails:l,onFetchLinkTokenClick:ze,onEstablishConnectionClick:ye,onSaveHandler:L,bankAccountToCreate:R,bankNameByRouting:f,fetchBankNameByRoutingStatus:T,onUserBankDetailsUpdated:$,onFetchBankName:K,onBackClick:()=>{dt(),Ft(!1)}})}):null]})})})},Rr=(e,o,r,u)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?y.buttons.resubmit:y.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?u==="small"?y.buttons.discard:y.buttons.discardChanges:u==="small"?y.buttons.save:y.buttons.saveChanges,Pr=n.div`
|
|
619
|
+
`,Z={rightMargin:new c(a[3],a[8]),leftMargin:new c(a[3],a[6]),bottomMargin:new c(56,56),closeMarginTop:new c(0,19),closeMarginRight:new c(a[3],a[8]),rightSectionWidth:new c(100,58),leftSectionWidth:new c(100,42),footerButtonWidth:new c(120,165),right:new c(a[3],a[0]),actionsContainerRight:new c(a[0],a[6]),otherActionsContainerBottom:new c(58,44),duplicateBannerWrapperMarginTop:new c(a[5],a[3]),duplicateBannerWrapperMarginRight:new c(a[3],a[8]),duplicateBannerWrapperMarginBottom:new c(a[5],a[3]),duplicateBannerWrapperMarginLeft:new c(a[3],a[6]),navBarWidth:new c(100,58)},{spendManagement:{reimbursement:{reimbursementDetail:y,bulkActions:Gi}},common:{currency:{currencyCode:Me,currencySymbol:Tt},texts:{comments:vr},strings:{empty:Cr}},collaboration:{threads:{placeholder:{addANewComment:kr,replyAComment:Ir},tooltip:{resolveComment:Dr,unResolveComment:Tr}}},dateFormat:Yi}=me.getLocalizedStrings(),Ji="editReimbursementDetailPage",Xi=e=>`${e}_form`,jr=(e,o,r,u,p,C,m,S,b)=>{const l=e.outOfPocket,k=e.mileage,f=l.merchant,s=l.recommendations;return{lineIndex:C,lineId:e?.lineId??String(C+1),reimbursementType:e?.type??y.outOfPocketKey,file:e?.file,homeCurrencyConversions:{amount:e?.homeCurrencyConversions?.amount??0,currencyCode:e?.homeCurrencyConversions?.currencyCode??m.currencyCode,currencySymbol:e?.homeCurrencyConversions?.currencySymbol??m.currencySymbol},outOfPocket:{recommendedAccount:l.recommendedAccount,isCategoryUpdateSelected:l.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:l.isCategoryFirstTimeAutofilled??!1,retainedAccount:l.retainedAccount,isRetainedCategorySelected:l.isRetainedCategorySelected??!1,recommendations:s??[],transactionDate:l?.transactionDate?.toDate()??void 0,class:{allOptions:_e(r,[]),selectedOption:l?.lineDetail?.class?.classId??b},account:{allOptions:At(o,s),selectedOption:l.lineDetail?.account?.qboId??l.lineDetail?.account?.accountId},amount:{amount:l?.amount??0,currencyCode:l?.currencyCode??m.currencyCode,currencySymbol:l?.currencySymbol??m.currencySymbol,currency:{allOptions:S.map(g=>({label:`${g.currencyCode} - ${g.currency}`,value:g.currencyCode,countryCode:si(g.countryCode)})),selectedOption:l?.currencyCode??m.currencyCode??Me}},memo:l?.description??void 0,merchant:{allOptions:u.map(g=>g.id).filter(g=>!!g),selectedOption:f?.id?f?.id:f?.name?f?.name:e?.lineId!=null?p[e?.lineId]:void 0}},mileage:{transactionDate:k?.transactionDate?.toDate(),class:{allOptions:_e(r,[]),selectedOption:k?.lineDetail?.class?.classId},distanceInMiles:k?.distanceMileage?.value,amount:{amount:k?.amount??0,currencyCode:k?.currencyCode??m.currencyCode,currencySymbol:k?.currencySymbol??m.currencySymbol},memo:k?.description}}},Qt=(e,o,r)=>{const u=[];return Object.values(e.lineDetailSection).forEach((p,C)=>{p?.lineId!=null&&u.push(jr(p,e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,e.tentativeMerchantNameByLineId,C,o,e.allCurrencies,e.loggedInUserDepartmentId))}),u.length===0&&u.push(Dn(0,"1",e.accountsHierarchyList,e.classHierarchyList,e.merchantList.merchants,o,e.allCurrencies,e.loggedInUserDepartmentId)),{[Lt]:{reportTitle:e.whatForSection.reportTitle},[gi]:u,[yt]:{selectedOption:e.paymentTo,allOptions:r.map(p=>p.bankAccountId)}}},ei=(e,o)=>{const r=u=>u.lineId==null||o[u.lineId]?.fetchState==="In-Progress"?0:(o[u.lineId]?.fetchState,u.type===y.mileageKey?u?.mileage?.amount??0:u?.outOfPocket?.currencyCode!==Me&&u.homeCurrencyConversions?.amount!==u?.outOfPocket?.amount?u.homeCurrencyConversions?.amount??0:u?.outOfPocket?.amount??0);return Object.values(e).reduce((u,p)=>u+r(p),0)},ti=(e,o,r,u,p,C,m,S)=>{const b={};return e.lineInfo.forEach(l=>{const k=S.find(R=>R.classId===l.mileage.class.selectedOption),f=m.find(R=>R.qboId===l.outOfPocket.account.selectedOption||R.accountId===l.outOfPocket.account.selectedOption),s=S.find(R=>R.classId===l.outOfPocket.class.selectedOption),g=o.find(R=>R.id===l.outOfPocket.merchant.selectedOption),w=C.find(R=>R.currencyCode===l.outOfPocket.amount?.currency.selectedOption)?.currencySymbol;b[l.lineId]={fileId:l.file?.fileId,lineId:l.lineId,type:l.reimbursementType,homeCurrencyConversions:l.homeCurrencyConversions??{amount:0,currencyCode:"USD",currencySymbol:"$"},mileage:{description:l.mileage.memo??"",lineDetail:{class:k},transactionDate:l.mileage.transactionDate!=null?ee.zeniDate(l.mileage.transactionDate.toDateString()):void 0,amount:l.mileage.amount?.amount??0,currencyCode:l.mileage.amount?.currencyCode??w,currencySymbol:l.mileage.amount?.currencySymbol??w,distanceMileage:{unit:"miles",value:l.mileage.distanceInMiles??0}},outOfPocket:{description:l.outOfPocket.memo??"",lineDetail:{class:s,account:f},transactionDate:l.outOfPocket.transactionDate!=null?ee.zeniDate(l.outOfPocket.transactionDate.toDateString()):void 0,amount:l.outOfPocket.amount?.amount??0,currencyCode:l.outOfPocket.amount?.currency.selectedOption??w,currencySymbol:w,merchant:l.outOfPocket.merchant.selectedOption!=null?{id:g?.id??"",name:g?.name??l.outOfPocket.merchant.selectedOption}:void 0,recommendations:l.outOfPocket.recommendations,recommendedAccount:l.outOfPocket.recommendedAccount,isCategoryUpdateSelected:l.outOfPocket.isCategoryUpdateSelected,isCategoryFirstTimeAutofilled:l.outOfPocket.isCategoryFirstTimeAutofilled,isRetainedCategorySelected:l.outOfPocket.isRetainedCategorySelected,retainedAccount:l.outOfPocket.retainedAccount}}}),{whatForSection:{reportTitle:e.whatFor.reportTitle},updatesByLineId:b,totalAmount:{amount:u,...r},currencyConversionStateByLineId:p,paymentTo:e.paymentTo.selectedOption}},Rl=({remiDetails:e,authParams:o,defaultCurrency:r,companyMileageConfigInfo:u,uploadInvoiceEndPoint:p,isReimbursementCommentingEnabled:C,isUserAdmin:m,analytics:S,reimbursementId:b,plaidConnectionDetails:l,bankAccountCreationState:k,bankNameByRouting:f,bankAccounts:s,isSignedInUserReimbursementCreator:g,uncategorizedAccounts:w,bankAccountToCreate:R,fetchBankNameByRoutingStatus:T,onUserBankDetailsUpdated:$,onFetchBankName:K,onSaveBankAccount:L,fetchDuplicateReimbursement:I,clearDuplicateReimbursementDetail:E,clearRemiSaveStatus:te,removeDuplicateReimbursementForLine:pe,onDuplicateLineClick:A,onExistingMerchantChange:_,onNewMerchantChange:Y,onReceiptsUpload:H,saveRemiDetails:ie,submitRemiDetails:Q,discardReimbursementDetailsFromLocalStore:we,onReimbursementDetailsChanged:he,updateReimbursementType:re,onHomeCurrencyConversionUpdate:J,redirectToReimbursementListScreen:le,redirectToReimbursementDetailScreen:Oe,deleteReimbursement:P,removeFileFromLine:ge,onZeniLogoClick:se,onAmountChanged:Ne,updateInvoiceUploadFetchState:Le,clearTentativeNameForLine:Ae,onAddNewRule:Se,onFetchLinkTokenClick:ze,onEstablishConnectionClick:ye,deleteBankAccount:De,onBackClickFromBankAccountPage:dt})=>{const W=v.useRef(null),et=v.useRef(null),tt=ai(e.uploadStatus),We=bt(),ke=ft(),[He,Te]=v.useState(!1),[Ue,Ve]=v.useState(!1),[qe,Ke]=v.useState("save"),[ne,it]=v.useState(ei(e.lineDetailSection,e.currencyConversionStatus)),[ut,Ge]=v.useState(!1),[U,mt]=v.useState(null),[F,ae]=v.useState(!1),wt=`dashboard_${ke.currentTenant?.companyId}`,$e=en({mode:"all",reValidateMode:"onChange",defaultValues:v.useMemo(()=>Qt(e,r,s),[e,r,s]),values:v.useMemo(()=>Qt(e,r,s),[e,r,s])}),{isDirty:z,dirtyFields:jn}=$e.formState,Rn=async(h,D)=>{const{lineInfo:d}=D,x=Number(h.split(".")[1]);if(h.includes("reportTitle")||h.includes("memo"))return;if(h.includes("reimbursementType")){const B=d[x].mileage,N=d[x].outOfPocket;d[x]={...d[x],outOfPocket:{transactionDate:N.transactionDate??void 0,class:{allOptions:N.class.allOptions??_e(e.classHierarchyList,[]),selectedOption:N.class.selectedOption??void 0},account:{allOptions:N.account.allOptions??At(e.accountsHierarchyList,[]),selectedOption:N.account.selectedOption??void 0},amount:N.amount??{amount:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol,currency:{allOptions:e.allCurrencies.map(be=>({label:`${be.currencyCode} - ${be.currency}`,value:be.currencyCode,countryCode:si(be.countryCode)})),selectedOption:r.currencyCode??Me}},memo:N.memo??void 0,merchant:N.merchant??void 0,recommendations:N.recommendations??[],recommendedAccount:N.recommendedAccount??void 0,isCategoryUpdateSelected:N.isCategoryUpdateSelected??!1,isCategoryFirstTimeAutofilled:N.isCategoryFirstTimeAutofilled??!1,retainedAccount:N.retainedAccount??void 0,isRetainedCategorySelected:N.isRetainedCategorySelected??!1},mileage:{transactionDate:B.transactionDate??void 0,class:{allOptions:B.class.allOptions??_e(e.classHierarchyList,[]),selectedOption:B.class.selectedOption??e.loggedInUserDepartmentId},distanceInMiles:B.distanceInMiles,amount:{amount:B?.amount?.amount??0,currencyCode:B?.amount?.currencyCode??Me,currencySymbol:B?.amount?.currencySymbol??Tt},memo:B.memo??void 0}}}else if(h.includes("mileage.distanceInMiles")){const{distanceInMiles:B}=d[x].mileage,N=u?.mileageUnitAmount??0;d[x].mileage={...d[x].mileage,amount:{amount:B!=null?B*N:0,currencyCode:r.currencyCode,currencySymbol:r.currencySymbol}}}else if(h.includes("outOfPocket.amount")&&d[x].lineId){const B=d[x].outOfPocket.amount,N=e.allCurrencies.find(be=>be.currencyCode===B?.currency.selectedOption)?.currencySymbol;if(B?.currencyCode!==B?.currency.selectedOption){const be=B?.currency?.allOptions||[];d[x].outOfPocket.amount={currency:{allOptions:be,selectedOption:B?.currency?.selectedOption},amount:d[x].outOfPocket?.amount?.amount??0,currencyCode:B?.currency.selectedOption??Me,currencySymbol:N??Tt}}if(B?.currency.selectedOption!==Me)Ge(!0),Fn(d[x].lineId,Me);else{const be={};d.forEach(Kt=>{be[Kt.lineId]={lineId:Kt.lineId,homeCurrencyConversions:Kt.homeCurrencyConversions}}),d[x].homeCurrencyConversions={amount:B.amount??0,currencyCode:B?.currency.selectedOption??Me,currencySymbol:N??Tt};const vi=ei(be,e.currencyConversionStatus);ne!==vi&&it(vi)}}else if(h.includes("outOfPocket.isRetainedCategorySelected"))d[x].outOfPocket.isRetainedCategorySelected===!0&&(d[x].outOfPocket.isCategoryUpdateSelected=!1,d[x].outOfPocket.account.selectedOption=d[x].outOfPocket.retainedAccount?.qboId);else if(h.includes("outOfPocket.isCategoryUpdateSelected"))if(d[x].outOfPocket.isCategoryUpdateSelected===!0)d[x].outOfPocket.account.selectedOption=d[x].outOfPocket.recommendedAccount?.qboId,d[x].outOfPocket.isRetainedCategorySelected=!1;else{const B=d[x].lineId,N=e.editRemiInitialDetails.lineDetailSection[B]?.lineDetail?.account?.qboId;d[x].outOfPocket.account.selectedOption=N,d[x].outOfPocket.isRetainedCategorySelected=!1}else h.includes("outOfPocket.account")&&(d[x].outOfPocket.recommendations.length>0&&(d[x].outOfPocket.recommendedAccount=d[x].outOfPocket.recommendations[0].account),d[x].outOfPocket.recommendedAccount?.qboId!=null&&d[x].outOfPocket.account.selectedOption===d[x].outOfPocket.recommendedAccount?.qboId?d[x].outOfPocket.isCategoryUpdateSelected=!0:d[x].outOfPocket.isCategoryUpdateSelected=!1,d[x].outOfPocket.retainedAccount?.qboId!=null&&d[x].outOfPocket.account.selectedOption===d[x].outOfPocket.retainedAccount?.qboId?d[x].outOfPocket.isRetainedCategorySelected=!0:d[x].outOfPocket.isRetainedCategorySelected=!1,d[x].outOfPocket.isCategoryFirstTimeAutofilled=!1);const $t=ti({...D,lineInfo:d},e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);if(he?.($t),h.includes("outOfPocket.merchant")){const B=d[x].lineId,N=d[x].outOfPocket.merchant.selectedOption??"";d[x].outOfPocket.merchant.allOptions.find(be=>be===N)!=null?_(N,B):Y(N,B)}},yi=v.useMemo(()=>Ci((h,D)=>Rn(h,D),300),[e.accountList.fetchState,e.classList.fetchState,e.merchantList.fetchState]);v.useEffect(()=>{const h=$e.watch((D,{name:d})=>{d!=null&&D!=null&&yi(d,D)});return()=>{h.unsubscribe()}},[yi,$e]),v.useEffect(()=>{const h=ee.reduceAnyFetchState(Object.values(e.currencyConversionStatus)),D=h.fetchState==="In-Progress"||h.fetchState==="Error";Ge(D)},[e.currencyConversionStatus]),v.useEffect(()=>{for(const D in e.currencyConversionStatus){const d=e.lineDetailSection[D],x=e.lineDetailSection[D];e.currencyConversionStatus[D].fetchState==="Completed"&&x!=null&&d.type!==y.mileageKey&&!tn(d?.homeCurrencyConversions,x.homeCurrencyConversions)&&J({amount:d?.homeCurrencyConversions?.amount??0,currencyCode:d?.homeCurrencyConversions?.currencyCode??Me,currencySymbol:d?.homeCurrencyConversions?.currencySymbol??Tt},D,b)}const h=ei(e.lineDetailSection,e.currencyConversionStatus);ne!==h&&it(h)},[e.currencyConversionStatus,e.lineDetailSection]),v.useEffect(()=>{(e.saveStatus?.fetchState==="Completed"||e.deleteStatus.fetchState==="Completed")&&(we(b),le?.())},[e.saveStatus?.fetchState,e.deleteStatus.fetchState,b,we,le]);const O=Ie(),[je,pt]=v.useState(b==null),[ht,Pn]=v.useState(1),[On,Ft]=v.useState(!1),[Ln,An]=v.useState(""),[Et,zn]=v.useState(null),[Bn,nt]=v.useState(!1),[Mn,bi]=v.useState(!1),[Nt,Wt]=v.useState([]),[ce,St]=v.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),Fn=v.useRef(Ci((h,D)=>Ne(h,D),500,{trailing:!0})).current;v.useEffect(()=>{tt==="In-Progress"&&(e.uploadStatus==="Completed"?($e.reset(Qt(e,r,s),{keepDefaultValues:!0}),Te(!1),pt(!1)):e.uploadStatus==="Error"&&Te(!1))},[tt,e.uploadStatus,$e,e,He,Te,je,r,s,S]),v.useEffect(()=>{e.uploadStatus==="In-Progress"&&je===!1&&Te(!0)},[e.uploadStatus,Te,je]);const Ut=e.remiStage==="draft"?y.newReimbursementTitle:y.editReimbursementTitle,En={onOkClick:()=>{if(nt(!1),ce.primaryButtonText===y.buttons.discard)we(b),e.remiStage==="draft"?le?.():Oe?.();else if(ce.primaryButtonText===y.buttons.delete)ce.title===y.deleteBankAccountTitle?De?.(Ln):P?.();else if(ce.primaryButtonText===y.buttons.yes&&Et!=null){const h=Nt.filter(D=>D!==ht.toString());Wt(h),H(Et,ht,!0)}},onCancelClick:()=>{if(nt(!1),ce.secondaryButtonText===y.buttons.no){const h=Nt.filter(D=>D!==ht.toString());Wt(h),H(Et,ht,!1)}}},fi=()=>{z||co(jn)?(St({title:y.discardTitle,description:y.discardDescription,primaryButtonText:y.buttons.discard,secondaryButtonText:y.buttons.cancel}),nt(!0)):(we(b),le?.())},Nn=()=>{St({title:e.remiStage==="draft"?y.deleteDraftTitle:y.deleteReportTitle,description:y.deleteAlertDescription,primaryButtonText:y.buttons.delete,secondaryButtonText:y.buttons.cancel}),nt(!0)},Wn=h=>{An(h),St({title:y.deleteBankAccountTitle,description:y.deleteBankAccountDescription,primaryButtonText:y.buttons.delete,secondaryButtonText:y.buttons.cancel}),nt(!0)},Un=()=>{St({title:y.overwriteTitle,description:y.overwriteDescription,primaryButtonText:y.buttons.yes,secondaryButtonText:y.buttons.no}),nt(!0)},Vn=()=>{let h=!0;const D=[];return Object.values(e.lineDetailSection).forEach((d,x)=>{d.type===y.outOfPocketKey&&vn(d)>=75&&d.file==null&&(D.push(d.lineId),h=!1)}),Wt(D),h},xi=()=>{if(m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected")fi();else{Ke("save");const h=$e.getValues(),D=ti(h,e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);he?.(D);const d=D.whatForSection?.reportTitle;d!=null&&d.length>0?ie(e.remiStatus==="rejected"?"pending_approval":"draft"):$e.trigger(`${Lt}.reportTitle`,{shouldFocus:!0})}};let Vt=!1;Object.values(e.addRemiAutoFieldsByLineId).forEach(h=>{h.length>0&&(Vt=!0)});let wi=[];if(e.remiId==null){const h=ne??0;h>0&&(wi=e.approvalRules.allApprovalRules?.filter(D=>{const d=D.criteria[0].range;if(d.max!=null){if(d.min.amount<h&&d.max.amount>=h)return D}else if(d.min.amount<h)return D;return null}).map(D=>({...D,stepsWithStatus:D.steps.map(d=>({...d,actorsActivity:[],isOriginalApprovalStep:!0})),isRealTimeApprovalEnabled:!1})))}const _n=h=>{const D=Vn();return $e.handleSubmit(()=>{D&&(Ke("submit"),S?.trackReimbursementSubmitReimbursement(e.createTime?.format(Yi.analytics.MMMDashDDDashYYYYFormat)??ee.dateNow().format(Yi.analytics.MMMDashDDDashYYYYFormat),r.currencyCode,ne,b),E(),bi(!0))})(h)},Hn=()=>{const h=$e.getValues(),D=ti(h,e.merchantList.merchants,r,ne,e.currencyConversionStatus,e.allCurrencies,e.accountList.accounts,e.classList.classes);he?.(D),Q()},qn=e.reimbursementInfo?.billStatus.code=="approved"&&e.reimbursementInfo?.billPaymentStatus.code?e.reimbursementInfo?.billPaymentStatus:e.reimbursementInfo?.billStatus,Kn=e.reimbursementInfo?.paymentDate!=null?ee.zeniDate(ee.getNextNthWorkingDay(e.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Gn=e.reimbursementInfo?.expectedDepositDate??Kn,Yn=b!=null&&e.remiStage==="draft",Si=Po(e.duplicateLineByLineId),_t=e.duplicateReimbursementStatus.fetchState==="Completed"&&Si>0,{requestToOpenThread:Ht,setRequestToOpenThread:$i,setOpenThread:qt}=v.useContext(Zn),{threads:gt,isLoading:Ye}=Qn({application:"dashboard",companyId:ke.currentTenant?.companyId,tab:"reimbursement",entityId:b,isGlobalComment:!1},"both",!1);v.useEffect(()=>{Ht?.threadId!=null&>.length>0&&!Ye&&(qt(Ht.threadId),$i(null))},[Ht,gt,Ye,qt,$i]);const Jn=v.useMemo(()=>b==null?[]:gt.filter(h=>h.resolved===!1&&!h.id.includes(eo)),[gt,b]).length,Xn=(h,D)=>{qt(D);const d=h.entityType.split("."),x=parseInt(d[2]);if(isNaN(x)){ae(!1);return}const $t=`${x+1}`,B=e.lineDetailSection[x+1].type;d.includes(y.mileageKey)&&B===y.outOfPocketKey?re(ee.toReimbursementTypeCode(y.mileageKey),$t,b):d.includes(y.outOfPocketKey)&&B===y.mileageKey&&re(ee.toReimbursementTypeCode(y.outOfPocketKey),$t,b),ae(!1)};return t.jsx(Pr,{ref:W,children:t.jsx(to,{sharedItems:{sharedFunctions:void 0,sharedRef:{contentWrapperRef:et.current??null}},children:t.jsxs(nn,{...$e,children:[t.jsx("form",{id:Xi(Ji),onSubmit:h=>_n(h),children:t.jsxs(rl,{windowSize:O,ref:et,children:[Bn?t.jsx(li,{titleComponent:t.jsx(an,{children:ce.title}),descriptionComponent:t.jsx(on,{children:ce.description}),primaryButtonText:ce.primaryButtonText,secondaryButtonText:ce.secondaryButtonText,action:En,proceedButtonVariant:ce.title===y.deleteBankAccountTitle||ce.title===y.deleteDraftTitle||ce.title===y.deleteReportTitle||ce.title===y.discardTitle?"danger":"primary",isEditPopup:ce.title===y.deleteBankAccountTitle}):null,Mn?t.jsx(fr,{reimbursementId:b,submitFetchState:e.saveStatus?.fetchState??"Not-Started",duplicateReimbursementStatus:e.duplicateReimbursementStatus.fetchState,hasDuplicateLine:_t,numberOfDuplicateLines:Si,setShowDuplicatePopup:bi,submitReport:Hn,fetchDuplicateReimbursement:I,clearDuplicateReimbursementDetail:E,clearRemiSaveStatus:te,analytics:S}):null,He?t.jsx(Qi,{windowSize:O}):null,je?t.jsxs(Qi,{windowSize:O,"data-testid":q("skip-autofill-section"),children:[O==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Vr,{children:t.jsx(oi,{partOfSkipAutoFill:!0,size:O,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ni,{withOverlay:!0,children:t.jsx(ii,{})})})}),t.jsx(Hr,{children:Ut})]}):null,t.jsx(xn,{showAutofill:je,analytics:S,onSkipAutofill:()=>{S?.trackReimbursementSkipAutofill(),pt(!1)},uploadInvoiceEndPoint:p,authParams:o,style:{width:Z.leftSectionWidth.valuePercentage(O),boxSizing:"border-box",backgroundColor:O==="small"?We.colors.grey4:"unset",padding:O==="small"?`${i.sp5} ${i.sp3}`:`78px ${i.sp6} 15px ${i.sp8}`,margin:O==="small"?i.sp0:void 0},onInvoiceUpload:h=>H(h,ht,!0),dropFilePlaceholder:{upload:y.dropReceipt.upload,single:y.dropReceipt.single,or:y.dropReceipt.or,multiple:y.dropReceipt.multiple,receipts:y.dropReceipt.receipts},updateInvoiceUploadFetchState:Le,showInfoText:!1,allowMultiFiles:je,type:"receipt"}),O!=="small"?t.jsx(_r,{children:t.jsx(oi,{partOfSkipAutoFill:!0,onClick:()=>pt(!1),"data-testid":q("close-invoice-upload"),children:t.jsx(ni,{withOverlay:!0,children:t.jsx(ii,{})})})}):null]}):null,t.jsxs(tl,{windowSize:O,"data-testid":q("edit-reimbursement-detail-page-nav-bar-container"),children:[O!=="small"?t.jsx(ki,{style:{width:"42%"},"data-testid":q("edit-reimbursement-detail-page-left-nav-bar"),title:"",leftSideComponent:t.jsx(il,{"data-testid":q("zeni-logo-spend-management-reimbursement-detail-page"),onClick:se}),enableTitleOnScroll:!1,scrollableContent:W,backgroundColor:We.colors.background,keepBackgroundOnScroll:!0,source:"EditReimbursementDetailPage"}):null,O!=="small"?t.jsx(Or,{}):null,t.jsx(ki,{style:{width:Z.navBarWidth.valuePercentage(O)},"data-testid":q("edit-reimbursement-detail-page-right-nav-bar"),source:"EditReimbursementDetailPage",title:Ut,leftSideComponent:t.jsx(t.Fragment,{}),rightSideComponent:je!=!0?t.jsxs(nl,{children:[C&&b!=null?t.jsxs(ol,{isDisabled:Ye,"data-testid":q("remi-comment-button"),onClick:Ye?()=>null:h=>{h.preventDefault(),h.stopPropagation(),mt({roomId:wt,companyId:ke.currentTenant?.companyId??"",companyName:ke.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:b}),ae(!0),S?.trackCommentActivity("reimbursement","clicked",ke.currentTenant?.companyName??"",ke.controllersList.controllers.map(D=>no(D)),void 0,void 0,"page icon")},children:[t.jsx(io,{count:Ye?void 0:Jn,isLoading:Ye,style:{left:"12px"}}),t.jsx(al,{})]}):null,t.jsx(oi,{size:O,onClick:()=>fi(),"data-testid":q("close-nav-bar"),children:t.jsx(ni,{withOverlay:!1,children:t.jsx(ii,{})})})]}):null,enableTitleOnScroll:O!=="small",scrollThreshold:64,scrollableContent:W,backgroundColor:We.colors.grey4})]}),O==="small"?t.jsxs(t.Fragment,{children:[t.jsx(el,{children:Ut}),t.jsx(oo,{progressSectionObj:qn,createDate:e.createTime,paymentDate:Gn,scheduleDate:e.reimbursementInfo?.paymentDate,approvedDate:e.latestApprovedDate,isBillUploaded:b!=null?!0:e.uploadStatus==="Completed"}),Vt&&t.jsxs(Gr,{children:[t.jsx(Kr,{}),t.jsx(Yr,{children:y.banner})]}),e.isProcessing?t.jsx(rn,{variant:"warning",style:{margin:O==="small"?`${i.sp5} ${i.sp3}`:`${i.sp3} ${i.sp8} ${i.sp3} ${i.sp6}`},title:Gi.duplicateWarning.title,description:Gi.duplicateWarning.description}):_t?t.jsxs(Jr,{size:O,children:[t.jsx(Br,{}),t.jsxs(Zr,{children:[t.jsx(Xr,{children:y.thereSeems}),t.jsx(Qr,{children:y.pleaseFind})]})]}):null,t.jsx($n,{isReimbursementCommentingEnabled:C,sectionId:Lt,reimbursementId:e.remiId,reportTitle:e.whatForSection.reportTitle})]}):null,t.jsx(Ka,{onDuplicateLineClick:A,reimbursementId:b,remiDetails:e,uploadInvoiceEndPoint:p,authParams:o,showSkipAutoFill:je,setShowSkipAutoFill:pt,isReimbursementCommentingEnabled:C,isAutoFieldsExist:Vt,totalAmount:ne,removeFileFromLine:ge,onReplaceClick:Un,onReceiptsUpload:H,currencyConversionStatus:e.currencyConversionStatus,setCurrentLineIdForUpload:Pn,setUploadedReceiptPayload:zn,updateInvoiceUploadFetchState:Le,clearTentativeNameForLine:Ae,defaultCurrency:r,companyMileageConfigInfo:u,isUserAdmin:m,setShowBankAccountPage:Ft,bankAccounts:s,onDeleteBankAccount:Wn,analytics:S,fileRequiredLineIds:Nt,isSignedInUserReimbursementCreator:g,uncategorizedAccounts:w,showTotalAmountLoader:ut,duplicateLineByLineId:e.duplicateLineByLineId,hasDuplicateLine:_t,removeDuplicateReimbursementForLine:pe,scrollContainerRef:W}),t.jsxs(ll,{showSkipAutoFill:je,windowSize:O,children:[O!=="small"?t.jsx(Zi,{}):null,t.jsx(sl,{windowSize:O,children:t.jsxs(cl,{windowSize:O,children:[e.remiId!==void 0&&t.jsx(Ii,{amount:ne??0,activities:e.remiActivities,stage:e.remiStage??"draft",onAddNewRule:Se,entity:"reimbursement",historicActivities:e.remiHistory.activities}),e.remiId==null&&ne!=null&&ne>0?t.jsx(Ii,{amount:ne??0,activities:wi,stage:"draft",entity:"reimbursement",historicActivities:e.remiHistory.activities}):null]})})]}),t.jsx(dl,{}),t.jsxs(qr,{showSkipAutoFill:je,windowSize:O,children:[O!=="small"?t.jsx(Zi,{}):null,t.jsx(Lr,{windowSize:O,onClick:h=>{h.stopPropagation(),Ue===!0&&Ve(!1)},children:t.jsx(ln,{formId:Xi(Ji),separatorStyle:{marginRight:i.sp4},showCancel:g,cancelBtn:{label:m&&e.remiStage==="pending_approval"&&e.remiStatus!=="rejected"?O==="small"?y.buttons.discard:y.buttons.discardChanges:O==="small"?y.buttons.save:y.buttons.saveChanges,isLoading:qe==="save"&&e.saveStatus?.fetchState==="In-Progress",onClick:xi,style:{width:Z.footerButtonWidth.value(O)},reverseSpinnerColor:!1},primaryBtn:{label:Rr(g,m,e,O),isDisabled:!g,style:{width:g?Z.footerButtonWidth.value(O):"auto"},type:g?"submit":"button",onClick:g?()=>null:xi,isLoading:!g&&qe==="save"&&e.saveStatus?.fetchState==="In-Progress"},rightSideComponent:t.jsx(Ar,{children:t.jsxs(Nr,{windowSize:O,children:[Ue?t.jsx(sn,{onClickAway:()=>Ve(!1),children:t.jsx(Er,{windowSize:O,"data-testid":q("remi-other-actions-container"),children:t.jsx(Wr,{onClick:Nn,"data-testid":q("delete-report-action"),children:y.buttons.deleteReport})})}):null,t.jsx(Fr,{windowSize:O,children:Yn===!0?t.jsx(Mr,{windowSize:O,"data-testid":q("more-details-button"),children:t.jsx(zr,{onClick:()=>Ve(!Ue)})}):null})]})}),style:{minHeight:62}})})]}),C&&b!=null?t.jsx(Ro,{id:wt,children:t.jsx(ao,{isDrawerOpen:F,allowComposer:!0,drawerTitle:vr,threads:gt,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:U?.companyId??Cr,isGlobalComment:!1,tab:"reimbursement"},isLoading:Ye,threadMetadata:U?{companyName:U.companyName,companyId:U.companyId,entityId:U.entityId,entityType:U.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:kr,replyComposerPlaceholder:Ir,threadResolve:Dr,threadUnResolve:Tr},onThreadClick:(h,D)=>Xn(h,D),onCloseAllThreadsDrawer:()=>ae(!1),drawerSectionStyle:{width:"400px",backgroundColor:We.colors.background}})}):null]})}),On?t.jsx(Ur,{windowSize:O,children:t.jsx(rr,{bankAccountCreationState:k,setShowBankAccountPage:Ft,plaidConnectionDetails:l,onFetchLinkTokenClick:ze,onEstablishConnectionClick:ye,onSaveHandler:L,bankAccountToCreate:R,bankNameByRouting:f,fetchBankNameByRoutingStatus:T,onUserBankDetailsUpdated:$,onFetchBankName:K,onBackClick:()=>{dt(),Ft(!1)}})}):null]})})})},Rr=(e,o,r,u)=>e?r.reimbursementId!=null&&r.remiStage==="pending_approval"?y.buttons.resubmit:y.buttons.submit:o&&r.remiStage==="pending_approval"&&r.remiStatus!=="rejected"?u==="small"?y.buttons.discard:y.buttons.discardChanges:u==="small"?y.buttons.save:y.buttons.saveChanges,Pr=n.div`
|
|
620
620
|
position: relative;
|
|
621
621
|
height: 100vh;
|
|
622
622
|
overflow-y: scroll;
|
|
@@ -631,7 +631,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
631
631
|
pointer-events: none;
|
|
632
632
|
z-index: 3;
|
|
633
633
|
`,Lr=n.div`
|
|
634
|
-
width: ${e=>
|
|
634
|
+
width: ${e=>Z.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
635
635
|
`,Ar=n.div`
|
|
636
636
|
display: flex;
|
|
637
637
|
justify-content: flex-end;
|
|
@@ -671,17 +671,17 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
671
671
|
padding-top: ${i.sp1};
|
|
672
672
|
padding-bottom: ${i.sp1};
|
|
673
673
|
position: absolute;
|
|
674
|
-
bottom: ${e=>
|
|
674
|
+
bottom: ${e=>Z.otherActionsContainerBottom.valuePx(e.windowSize)};
|
|
675
675
|
z-index: 3;
|
|
676
676
|
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
677
677
|
border-radius: ${i.sp1};
|
|
678
|
-
right: ${e=>
|
|
678
|
+
right: ${e=>Z.right.valuePx(e.windowSize)};
|
|
679
679
|
box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.grey1} 3D`};
|
|
680
680
|
`,Nr=n.div`
|
|
681
681
|
width: 100%;
|
|
682
682
|
justify-content: flex-end;
|
|
683
683
|
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
684
|
-
right: ${e=>
|
|
684
|
+
right: ${e=>Z.actionsContainerRight.valuePx(e.windowSize)};
|
|
685
685
|
height: 100%;
|
|
686
686
|
display: flex;
|
|
687
687
|
`,Wr=n(mi)`
|
|
@@ -701,7 +701,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
701
701
|
height: 100vh;
|
|
702
702
|
position: fixed;
|
|
703
703
|
background: ${e=>e.theme.colors.grey4};
|
|
704
|
-
width: ${e=>
|
|
704
|
+
width: ${e=>Z.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
705
705
|
right: 0;
|
|
706
706
|
top: 0;
|
|
707
707
|
`,Vr=n.div`
|
|
@@ -722,7 +722,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
722
722
|
position: fixed;
|
|
723
723
|
bottom: 0;
|
|
724
724
|
z-index: 3;
|
|
725
|
-
`,
|
|
725
|
+
`,Zi=n.div`
|
|
726
726
|
width: 42%;
|
|
727
727
|
`,Kr=n(di)`
|
|
728
728
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -744,15 +744,15 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
744
744
|
padding: ${i.sp3};
|
|
745
745
|
border-radius: ${i.sp2};
|
|
746
746
|
align-items: start;
|
|
747
|
-
margin-top: ${e=>
|
|
748
|
-
margin-right: ${e=>
|
|
749
|
-
margin-bottom: ${e=>
|
|
750
|
-
margin-left: ${e=>
|
|
747
|
+
margin-top: ${e=>Z.duplicateBannerWrapperMarginTop.valuePx(e.size)};
|
|
748
|
+
margin-right: ${e=>Z.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
749
|
+
margin-bottom: ${e=>Z.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
750
|
+
margin-left: ${e=>Z.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
751
751
|
background-color: ${j.alertLight};
|
|
752
752
|
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
753
|
-
`,
|
|
753
|
+
`,Xr=n(Mt)`
|
|
754
754
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
755
|
-
`,
|
|
755
|
+
`,Zr=n.div`
|
|
756
756
|
width: 100%;
|
|
757
757
|
`,Qr=n(hi)`
|
|
758
758
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
@@ -796,7 +796,7 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
796
796
|
color: ${e=>e.withOverlay?j.primaryDark:e.theme.colors.primary};
|
|
797
797
|
}
|
|
798
798
|
`,nl=n.div`
|
|
799
|
-
margin-top: ${e=>
|
|
799
|
+
margin-top: ${e=>Z.closeMarginTop.valuePx(e.windowSize)};
|
|
800
800
|
display: flex;
|
|
801
801
|
float: right;
|
|
802
802
|
`,ol=n.div`
|
|
@@ -817,9 +817,9 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
817
817
|
align-items: center;
|
|
818
818
|
justify-content: center;
|
|
819
819
|
`,oi=n.div`
|
|
820
|
-
margin-top: ${e=>e.partOfSkipAutoFill===!0?
|
|
820
|
+
margin-top: ${e=>e.partOfSkipAutoFill===!0?Z.closeMarginTop.valuePx(e.size):0};
|
|
821
821
|
margin-left: ${i.sp5};
|
|
822
|
-
margin-right: ${e=>e.partOfSkipAutoFill===!0?
|
|
822
|
+
margin-right: ${e=>e.partOfSkipAutoFill===!0?Z.closeMarginRight.valuePx(e.size):0};
|
|
823
823
|
`,rl=n.div`
|
|
824
824
|
display: flex;
|
|
825
825
|
flex-direction: column;
|
|
@@ -852,14 +852,14 @@ import{a2 as ai,u as bt,Y as ft,a as en,H as Ci,l as ee,B as me,O as tn,e as Ie,
|
|
|
852
852
|
`,ll=n.div`
|
|
853
853
|
display: ${e=>e.windowSize==="small"&&e.showSkipAutoFill?"none":"flex"};
|
|
854
854
|
width: 100%;
|
|
855
|
-
margin-bottom: ${e=>
|
|
855
|
+
margin-bottom: ${e=>Z.bottomMargin.valuePx(e.windowSize)};
|
|
856
856
|
`,sl=n.div`
|
|
857
|
-
width: ${e=>
|
|
857
|
+
width: ${e=>Z.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
858
858
|
`,cl=n.div`
|
|
859
|
-
margin-left: ${e=>
|
|
860
|
-
margin-right: ${e=>
|
|
859
|
+
margin-left: ${e=>Z.leftMargin.valuePx(e.windowSize)};
|
|
860
|
+
margin-right: ${e=>Z.rightMargin.valuePx(e.windowSize)};
|
|
861
861
|
`,dl=n.div`
|
|
862
862
|
display: flex;
|
|
863
863
|
flex-direction: column;
|
|
864
864
|
height: ${i.sp11};
|
|
865
|
-
`;export{Rl as default,
|
|
865
|
+
`;export{Rl as default,Xi as uniqueName};
|
package/dist/assets/{EntityDetailPage-CuPr64cj-DyxVHR3_.js → EntityDetailPage-Duk7QFjU-4fI6-YD5.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as y,
|
|
1
|
+
import{u as y,R as T,a8 as C,j as o,B as v,o as t,I as m}from"./index-DESjn-8d.js";import{n as a}from"./vendor-rkTZJa59.js";import{R as k}from"./TrendWithTransactions-CbzZEtLk-CdMXYj1c.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./TrendChart-BqU6zv7L-wkRyWRpL.js";import"./chartTypes-C2jC2nzT-B64Jl2-O.js";import"./toCOABalancesWithID-BdeWiors-BqeL9v71.js";import"./toChartData-BCFss2y_-DT7ekoOJ.js";import"./NoDataChart-D9tQhnyu-C94gJNvj.js";import"./InsightsSection-KsnkYRQw-CjzvB6rM.js";import"./NavigationDots-BZNvrGBo-CvNSDZNv.js";import"./TransactionList-Xd2JupaK-ME3jRgkK.js";import"./BoxItem-D09XMKDc-dcEB3ro9.js";import"./commonDimensions-CtVQ1dPI-BWfVCzLH.js";const $=a.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
margin: ${t.sp0} ${t.sp0} ${t.sp0} ${t.sp0};
|
|
4
4
|
flex-direction: column;
|
|
@@ -13,6 +13,6 @@ import{u as y,B as T,a8 as C,j as o,E as v,o as t,N as m}from"./index-IgYBqF_x.j
|
|
|
13
13
|
position: -webkit-sticky;
|
|
14
14
|
position: sticky;
|
|
15
15
|
top: ${t.sp0};
|
|
16
|
-
`,
|
|
16
|
+
`,w=a.div`
|
|
17
17
|
flex: 1 1 auto;
|
|
18
|
-
`;function
|
|
18
|
+
`;function J({firstMonthOfFY:i,selectedEntity:e,trendWithTransactionsReport:n,autoCompleteData:l,autoCompleteActions:d,analytics:s,onTransactionItemClick:c,onTrendSelectedPeriodChange:h}){const u=y(),{dateFormat:{analytics:f}}=T.getLocalizedStrings(),g=new C(u.colors.graphColor12),x=(p,r)=>{p==="Chart"&&r!=null&&s?.trackSpendIncomeTrend(e.type==="vendor"?m.Event.spendTrend:m.Event.incomeTrend,"Search",e.type,e.name,r?.addTimePeriod.startDate.format(f.MMMYYFormat)),p==="TransactionListLoadMore"&&s?.trackTransactionList(void 0,void 0,"Search",void 0,void 0,!0),h?.(r)};return o.jsxs($,{children:[o.jsx(j,{children:o.jsx(v,{viewType:"entity_search",searchAutoComplete:{autoCompleteData:l,autoCompleteActions:d},source:"EntityDetailPage"})}),e!=null&&n!=null&&o.jsx(w,{children:o.jsx(k,{firstMonthOfFY:i,trendWithTransactionsReport:n,isDetailPage:!1,graphColor:g,page:"EntityDetailPage",onTransactionItemClick:c,onTimePeriodChange:x})})]})}export{J as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as z,
|
|
1
|
+
import{e as z,R as L,j as i,dq as H,C as d,cz as _,o as s,_ as S,a0 as b,aj as K,b_ as E,q as r,c7 as q,n as B,y as k,ao as G,w as N,c3 as U,f as D,c6 as F}from"./index-DESjn-8d.js";import{b as f,n as t}from"./vendor-rkTZJa59.js";import{l as I}from"./agingReportHelper-ovKP-qSS-BPG0U4uX.js";const m=L.getLocalizedStrings().reports.aging.agingDetail.header,w=[{key:"date",value:m.date,sortOrder:"ascending",width:new d(212,212)},{key:"invoiceNumber",value:m.invoiceNumber,sortOrder:"ascending",width:new d(188,188)},{key:"dueDate",value:m.dueDate,sortOrder:"ascending",width:new d(188,188)},{key:"daysPastDue",value:m.daysPastDue,sortOrder:"ascending",width:new d(188,188)},{key:"amount",value:m.amount,sortOrder:"ascending",width:new d(188,188)},{key:"balance",value:m.balance,sortOrder:"ascending",width:new d(120,120)}],Y={headerHeight:new d(45,58)},Z=t.div`
|
|
2
2
|
top: ${s.sp0};
|
|
3
3
|
left: ${s.sp0};
|
|
4
4
|
min-height: ${e=>Y.headerHeight.valuePx(e.windowSize)};
|
|
@@ -48,7 +48,7 @@ import{e as z,B as L,j as i,dq as H,C as d,cz as _,o as s,b as S,a0 as b,aj as B
|
|
|
48
48
|
&:hover {
|
|
49
49
|
color: ${e=>e.theme.colors.primary};
|
|
50
50
|
}
|
|
51
|
-
`;function te({sortConfig:e,onColumnSortConfigChanged:l}){const c=z(),o=f.useCallback((n,a)=>{let h=a;e.sortKey===n&&(h=e.sortOrder==="ascending"?"descending":"ascending"),l(n,h)},[l,e]);return i.jsx(Z,{windowSize:c,children:w.map(n=>i.jsxs(J,{sortDataValue:e.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:c,children:[i.jsxs(ie,{onClick:()=>o(n.key,n.sortOrder),children:[i.jsx(N,{children:n.value}),i.jsx(X,{sortConfig:e,children:i.jsx(
|
|
51
|
+
`;function te({sortConfig:e,onColumnSortConfigChanged:l}){const c=z(),o=f.useCallback((n,a)=>{let h=a;e.sortKey===n&&(h=e.sortOrder==="ascending"?"descending":"ascending"),l(n,h)},[l,e]);return i.jsx(Z,{windowSize:c,children:w.map(n=>i.jsxs(J,{sortDataValue:e.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:c,children:[i.jsxs(ie,{onClick:()=>o(n.key,n.sortOrder),children:[i.jsx(N,{children:n.value}),i.jsx(X,{sortConfig:e,children:i.jsx(U,{width:12,height:12})})]}),i.jsx(ee,{isVisible:e.sortKey===n.key&&e.sortKey!=="date",children:i.jsx(Q,{onClick:()=>l("date","ascending")})})]},n.key))})}const v={containerPaddingTop:new d(r[3],r[3]),containerPaddingBottom:new d(r[3],r[3]),nameLogoWidth:new d(r[4],r[4]),nameLogoHeight:new d(r[4],r[4]),nameWidth:new d(150,150)},ne=t.div`
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-direction: column;
|
|
54
54
|
row-gap: ${s.sp2};
|
|
@@ -104,7 +104,7 @@ import{e as z,B as L,j as i,dq as H,C as d,cz as _,o as s,b as S,a0 as b,aj as B
|
|
|
104
104
|
left: ${s.sp0};
|
|
105
105
|
padding-bottom: ${s.sp3};
|
|
106
106
|
box-sizing: border-box;
|
|
107
|
-
`,ge=t.div``,
|
|
107
|
+
`,ge=t.div``,R=f.forwardRef((e,l)=>{const{children:c,style:o,sortConfig:n,onColumnSortConfigChanged:a,onUpdateCurrentYTDSelection:h,selectedYTDSpendOption:$,fetchState:j,...x}=e;return i.jsxs(ge,{ref:l,style:{...o,width:"auto"},...x,children:[i.jsx(te,{onColumnSortConfigChanged:a,sortConfig:n}),i.jsx(ce,{children:c})]})});R.displayName="Aging invoices list view inner element type";const we=({index:e,style:l,invoices:c,entityLogo:o,onTransactionClick:n})=>{const a=c[e];return e<c.length?i.jsx(he,{style:{...l,width:"fit-content",minWidth:"100%"},children:i.jsx(de,{onTransactionClick:n,invoice:a,entityLogo:o})}):null};function Se({uiState:e,invoices:l,entityLogo:c,onColumnSortConfigChanged:o,onTransactionClick:n}){const a=f.useRef(null),h=z(),$=f.useCallback(()=>le.itemHeight.value(h),[h]);return i.jsx(K,{children:({height:j,width:x})=>i.jsx(E,{height:j,width:x,ref:a,overscanCount:1,itemCount:l.length,innerElementType:u=>i.jsx(R,{...u,onColumnSortConfigChanged:o,sortConfig:{sortKey:e.sortKey,sortOrder:e.sortOrder}}),itemSize:$,style:{willChange:"auto"},children:u=>i.jsx(we,{...u,invoices:l,entityLogo:c,onTransactionClick:n})})})}const g={containerHorizontalPadding:new d(r[2],r[8]),nameLogoWidth:new d(r[5],r[5]),nameLogoHeight:new d(r[5],r[5]),nameLogoMarginTop:new d(r[1],r[1]),entityContainerWidth:new d(300,350,350,350,400),summaryColumnGap:new d(r[2],r[1],r[1],r[2],r[6])},me=t.div`
|
|
108
108
|
background: ${e=>e.theme.colors.grey5};
|
|
109
109
|
padding-left: ${e=>g.containerHorizontalPadding.valuePx(e.windowSize)};
|
|
110
110
|
padding-right: ${e=>g.containerHorizontalPadding.valuePx(e.windowSize)};
|
|
@@ -130,20 +130,20 @@ import{e as z,B as L,j as i,dq as H,C as d,cz as _,o as s,b as S,a0 as b,aj as B
|
|
|
130
130
|
`,ue=t.div`
|
|
131
131
|
display: flex;
|
|
132
132
|
flex-direction: column;
|
|
133
|
-
`,M=t(
|
|
133
|
+
`,M=t(B)`
|
|
134
134
|
color: ${e=>e.theme.colors.hero};
|
|
135
135
|
`,ye=t.div`
|
|
136
136
|
margin-top: ${e=>g.nameLogoMarginTop.valuePx(e.windowSize)};
|
|
137
137
|
`,T=t.div`
|
|
138
138
|
display: flex;
|
|
139
139
|
flex-direction: column;
|
|
140
|
-
`,O=t(
|
|
140
|
+
`,O=t(G)`
|
|
141
141
|
text-align: right;
|
|
142
142
|
color: ${e=>e.theme.colors.primary};
|
|
143
143
|
`,P=t(k)`
|
|
144
144
|
color: ${e=>e.theme.colors.hero};
|
|
145
145
|
text-wrap: nowrap;
|
|
146
146
|
width: fit-content;
|
|
147
|
-
`,fe=t(
|
|
147
|
+
`,fe=t(q)`
|
|
148
148
|
color: ${e=>e.theme.colors.primary};
|
|
149
|
-
`;function be({totalBalances:e,entityName:l,reportId:c,reportDate:o,entityLogo:n}){const a=z(),h=a==="large"||a==="extra-large",{reports:{aging:{duration:$,apAgingDetail:j,arAgingDetail:x,apAging:u,arAging:
|
|
149
|
+
`;function be({totalBalances:e,entityName:l,reportId:c,reportDate:o,entityLogo:n}){const a=z(),h=a==="large"||a==="extra-large",{reports:{aging:{duration:$,apAgingDetail:j,arAgingDetail:x,apAging:u,arAging:V}},dateFormat:W}=L.getLocalizedStrings(),A=f.useMemo(()=>I(e),[e]);return i.jsxs(me,{isLargeScreen:h,windowSize:a,children:[i.jsxs(pe,{windowSize:a,children:[n!=null?i.jsx(H,{photoUrl:n.toString(),styles:{width:g.nameLogoWidth.valuePx(a),height:g.nameLogoHeight.valuePx(a),marginTop:g.nameLogoMarginTop.valuePx(a)}}):i.jsx(ye,{windowSize:a,children:i.jsx(_,{name:l,size:s.sp5})}),i.jsxs(ue,{children:[i.jsx(fe,{children:l}),i.jsx(S,{controller:c==="accounts_payable_aging",children:i.jsx(M,{children:`${j.dateLabel} ${o.format(W.visual.MMMDCommaYYYYformat)}`})}),i.jsx(S,{controller:c==="accounts_receivable_aging",children:i.jsx(M,{children:`${x.dateLabel} ${o.format(W.visual.MMMDCommaYYYYformat)}`})})]})]}),i.jsxs(xe,{isLargeScreen:h,windowSize:a,children:[e.map(C=>i.jsxs(T,{children:[i.jsx(P,{children:$[C.period]}),i.jsx(O,{children:b("0,0",C?.balance)})]},C.period)),i.jsxs(T,{children:[i.jsx(S,{controller:c==="accounts_payable_aging",children:i.jsx(P,{children:u.totalPayable})}),i.jsx(S,{controller:c==="accounts_receivable_aging",children:i.jsx(P,{children:V.totalReceivable})}),i.jsx(O,{children:b("0,0",A?.balance)})]})]})]})}export{Se as L,be as W};
|