@zeniai/web-cockpit-ui 1.15.62-qa → 1.15.63-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-iiVBlQka-B2-JDFUh.js → ACHDetailsPage-B5qIuZya-DMQRF8PE.js} +1 -1
- package/dist/assets/{AIPerformancePage-MBAB5kgB-C5Ra43Zq.js → AIPerformancePage-BHB45mP--C-dHKl4F.js} +18 -18
- package/dist/assets/{AccountInfoPage-Cz9yoVl8-BXQox-EH.js → AccountInfoPage-Cd5xYT1g-CNmpoFMD.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-j85psx_A-BrzmKkV-.js → AccountInfoPageContent-CJ7ycVIK-zgc9u2MF.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-B1JxHllU-Cm0H2h0V.js → AccountLockedInfoModal-Dox7IuAX-Bd2lveLQ.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DF-X46_u-C6_vbTYw.js → AccountReconDetailsDrawerPage-Bqty08m0-CFQ6A8a0.js} +1 -1
- package/dist/assets/{AccountRow-DEtntSrL-7UwPRtIG.js → AccountRow-D1cjRJJD--C24H47s.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-Cvixqb_6-CT665shz.js → AccountsPromoCardStack-Bs3naJHM-C0F0RQHK.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-B1Qfn44J-D8E-comP.js → AddAddressForCardDrawer-DZkBMJfp-NUnwpiBH.js} +1 -1
- package/dist/assets/{AddToWalletPage-BLxUsh1Y-CJX1lsbA.js → AddToWalletPage-CyRfqVDB-DwZBuzaI.js} +1 -1
- package/dist/assets/{AgingReportsPage-XIzuLRE4-DL8AJvQr.js → AgingReportsPage-xBFff3BM-Dc0ndLrv.js} +1 -1
- package/dist/assets/{AllUserItems-BGMZCYUO-BVgQeSxh.js → AllUserItems-BJf6WPDo-DrRMiZwu.js} +1 -1
- package/dist/assets/ApAgingDetailPage-CjBrPyi8-C9SbUGEE.js +46 -0
- package/dist/assets/{AppBasePage-CYjdUgY4-D1sB6X5n.js → AppBasePage-CqDm-hnV-BMQKy0pD.js} +1 -1
- package/dist/assets/{AppDrawerContent-CbF8TOjd-HHBfB9a_.js → AppDrawerContent-CVVWj66i-zwhuzKtW.js} +22 -22
- package/dist/assets/{ApprovalRulesSettingsPage-RCtygkuw-CKWOKsId.js → ApprovalRulesSettingsPage-Cckd2uVA-DMXkXJiF.js} +1 -1
- package/dist/assets/{ArAgingChart-ZwWwEBJ3-Dknw3Tq0.js → ArAgingChart-CBsqOd-4-DwOeXEEU.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DtqyngrA-DhlGVVJJ.js → ArAgingDetailPage-i7JObt60-CMGpLU1f.js} +1 -1
- package/dist/assets/{AttachmentView-UxkSFZmq-Y8eh9Tix.js → AttachmentView-CzC4skJ3-BrTw0uGW.js} +1 -1
- package/dist/assets/{BalancesInsightWithToolTip-Co6ZUc5x-CCjLu1qT.js → BalancesInsightWithToolTip-B6umvmgL-DPjkyoui.js} +6 -6
- package/dist/assets/{BankAccountSection-DnBVOkJC-hmmdcu0n.js → BankAccountSection-Di4sF52j-DFIAi88L.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-D7OuLiLz-CbZMMG7g.js → BankAccountWarningSection-Cled-2cR-C1C6Vjrm.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BDLTuNLu-DgWnhdu5.js → BankConnectionsSettingsPage-Ccnzq7st-DHgh69DN.js} +1 -1
- package/dist/assets/{BillDetailPage-V8us93cj-DCINiuRe.js → BillDetailPage-XXOwBfO1-CGDRib2O.js} +6 -6
- package/dist/assets/{BillPayApprovalRuleDetailPage-C_REwEVS-CMvNHSsv.js → BillPayApprovalRuleDetailPage-DFZ0csaT-Ds0gyJKG.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-C6G_eDX9-BFgFRK1y.js → BillPayApprovalRulesPage-COCypDcS-DDBfv-HQ.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CTQSknOB-CNmnkufz.js → BillPayPromoPage-DOE2YIqC-Dt0PySwZ.js} +11 -11
- package/dist/assets/{BillPaySetUpPage-BmgMLaf--BqxzgOBM.js → BillPaySetUpPage-BCJbZDsV-7RphGKjA.js} +1 -1
- package/dist/assets/{BillingSettingsPage-IHY3ak0N-DiUTpk6S.js → BillingSettingsPage-iImtlEmO-CLpZtYzE.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-ZoFahXYa-DLD34bXh.js → BillsBulkReviewDrawerPage-B11GWM_0-Dp1GR0TH.js} +1 -1
- package/dist/assets/{BoxItem-XoWq-tnh-BdfRRIEF.js → BoxItem-Bxa1M4QU-CuNypviZ.js} +11 -11
- package/dist/assets/{BusinessVerificationPage-D9HtnNOu-D4qRovaA.js → BusinessVerificationPage-DSuJFoW1-BKZUF9ME.js} +1 -1
- package/dist/assets/{CardNumberSubText-Cn0EZrNE-DbwzD7co.js → CardNumberSubText-_ZZbaz_k-CJI-nsfm.js} +1 -1
- package/dist/assets/{CashbackDetailPage-Bk5ssPnj-D1Mgvy65.js → CashbackDetailPage-DAZXitLt-CWZ113JI.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-Ge9Aw7PA-C0SH5WFC.js → ChargeCardDetailPage-B1VIpASk-BeNDm67T.js} +26 -26
- package/dist/assets/{ChargeCardListPage-BNLOoSv3-DtPzBHFo.js → ChargeCardListPage-BOBepN-x-BYYlZgmW.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BoufojYF-CKak6CD-.js → ChargeCardListTable-YznzSsJo-_dDAhS8L.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-5lUxK8pF-CawFlTL3.js → ChargeCardPaymentHistoryPage--jOwsMla-C2DbRPI5.js} +1 -1
- package/dist/assets/ChargeCardPromoPage-DIfakIOK-CvlZUe5W.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-Dqoel2Do-XpJgjiaz.js → ChargeCardSetupPage-0bpVkeJs-B4o9rj4Y.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-Dalrj66w-CgARhiRU.js → ChargeCardStatementsPage-ChWyQlw6-BnvGhpGm.js} +2 -2
- package/dist/assets/{CheckDepositDrawerPage-mYjv1H0f-D8AGbFXU.js → CheckDepositDrawerPage-BS7hnyZn-CxSRctwS.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CIaa7SIH-D6q9dqO3.js → CollapsableReportTable-DNfFkAts-DG-tRdjC.js} +10 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BSFNYauO-BYOwLg2M.js → CompanyOfficerDetailsSection-CrOIN4IW-B6nLDxWF.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B-mBb9Q5-DaXYd6mv.js → CompanyPassportCard-CkzYFTrp-D0eepAjO.js} +3 -3
- package/dist/assets/{CompanyPassportPage-Blyl_Z-c-DDzyRoi0.js → CompanyPassportPage-FE6yli6h-DmnPa-EO.js} +1 -1
- package/dist/assets/{CompleteProfile-ySk9I1Ut-C_3Um3Io.js → CompleteProfile-Cb8i1XgZ-BNMBzO6J.js} +1 -1
- package/dist/assets/{ConfettiBurst-CeAc4Ily-CNrlxVTd.js → ConfettiBurst-BZCXEGYA-yCtyyeGJ.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-CzPCMYGK.js → ConstrainedInnerElement-CgdnMeoA-Bu2DG2lc.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BRkqkhfw-TCxHdHlR.js → CreateOrEditVendorPage-CzpSgxbO-JCKju4xk.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-oUIakAtz-BU45a_Aw.js → CreditCardPaymentDrawerPage-c_q0MsSO-B0hLCMJ3.js} +1 -1
- package/dist/assets/{CurrencySelectField-CSPhUjwG-ZH1efhoN.js → CurrencySelectField-BAh7SHrG-BkshITI1.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CoOyWe6_-CA1etHzJ.js → CustomerOnboardingActivationPage-f3Aa6E5r-BN-u2_Er.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-2m0tglN7.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CWNyUuRp-DnoPZRxR.js → CustomerOnboardingDetailPageSkeleton-DYuiWn8s-DyEj0_PK.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-DWx46Z6R-CGnkFU9j.js → CustomerOnboardingNoStepsPage-Bh_F0-oC-B4pkaivG.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-D86Sj2KP-BMQHiQHu.js → CustomerOnboardingPage-B9hSO88_-FAzWwrV2.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-Bo0LFveG-DmqRcOHY.js → CustomerOnboardingProductSuitePage-CG0HKCpQ-BhS5AEWe.js} +9 -9
- package/dist/assets/{Dashboard-DQLJzr16-B0hPFoWB.js → Dashboard-BJ_oIHab-D3CSikiX.js} +1 -1
- package/dist/assets/{DashboardReportPage-CwfTMXY5-BHBeRls-.js → DashboardReportPage-BemzMw2e-BO_R5QNZ.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CUZGIAxW-5YkRDB4l.js → DashboardSidebarBackgroundAnimation-BtA5oEGG-CpVhfdj6.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-Ci-LxLsk-RPRG4V4x.js → DepositAccTransactionItem-CyFi1P_L-B05Q3yKt.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-RG7P8vQS-C9C9290F.js → DepositAccTransactionListPage-DvBRRUdZ-BsXx3hkv.js} +2 -2
- package/dist/assets/{DomesticWireDetailsPage-DsPFUOcE-D6-TUR-q.js → DomesticWireDetailsPage-DCDo3aHI-CCdp0z2J.js} +1 -1
- package/dist/assets/{DownloadOverlay-BjTf50Dz-DuII_CAr.js → DownloadOverlay-D_lL1sPW-k0Gho_wZ.js} +1 -1
- package/dist/assets/{DrawerPage-0OFinUxM-BICkFflz.js → DrawerPage-DesxXhZk-OWoJW-0F.js} +1 -1
- package/dist/assets/{EditPeoplePage-BKcOmYVv-DzpZIpn8.js → EditPeoplePage-QvPy_Six-qGCX3LOk.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BFIHhQbx-Crb4hXPz.js → EditReimbursementDetailPage-C0ZDkboO-8rvb6BkJ.js} +1 -1
- package/dist/assets/EntityDetailPage-l7nXIsyF-D_7lbYbC.js +18 -0
- package/dist/assets/{EntitySummarySection-ORJ2pE_k-C0eewgen.js → EntitySummarySection-BwX0a4JL-CLikGCHh.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Dzf7j2zV-DeMYsAmF.js → ExpenseAutomationOverviewPage-EdyHjbff-CJUmXhDL.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BRsKGeoM-CSID8gtK.js → ExpenseAutomationPage-DA22Qofw-CbU14QhC.js} +1 -1
- package/dist/assets/{ExpressPayPage-DlBFtMaR-DoPSL6t8.js → ExpressPayPage-EMP6inpX-BQEnIOd1.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-C31F3Gmz-VvNpe430.js → FeaturePreviewPage-SYJm-3aR-DJMj_gDm.js} +1 -1
- package/dist/assets/{FollowStepsSection-BVT2K7mu-Crx6YzTl.js → FollowStepsSection-BxESVqJD-92yEFObK.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-0cZe1hh0-DDOXD2Hr.js → GlobalReviewListPage-D5_ACa-q-D2Ov8eqV.js} +1 -1
- package/dist/assets/{InformationCardStack-t8eELRLU-BhXrJimy.js → InformationCardStack-B_qQUEYD-Dj7LkhKh.js} +2 -2
- package/dist/assets/{InsightsCardStack-CJBPZbzD-DLM8qnT6.js → InsightsCardStack-BsQzoVzj-CqL35YGm.js} +1 -1
- package/dist/assets/{InsightsSection-tUBzsCix-CGbfWo04.js → InsightsSection-B6CNlTNH-DSISPSz5.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-Ce0yKUWI-DNDn-fK6.js → IntegrationsSettingsPage-DP6fAccq-yTNOiOsu.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-BzR-rKaL-BVX1Yka_.js → InternationalWireSwiftDetailsPage-VdG7bDZi-C9ew1LgC.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-7tCXdJ3Y-CJa_utGB.js → InternationalWireVerificationPage-COC6lZml-mSWqYjiQ.js} +1 -1
- package/dist/assets/{InviteFormPage-DePVC0CH-DA3vby6i.js → InviteFormPage-DN02jRy5-Bst7RGZg.js} +1 -1
- package/dist/assets/{InvitePageListView-ChbvDKgQ-COWdsHC1.js → InvitePageListView-CP4K9tJi-CurBS3_6.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DJiEzIeY-DYNarFBx.js → InvitePeoplePage-VTM6kM1u-Bam_HxL4.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-BjNMjhQR-uE-POttT.js → InvoiceUploadSection-it-ZYl1N-DpsU9s1b.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-4xbGf5Ut-DrOtiUlY.js → IssueChargeCardPage-CVfuvGey-Dkn1Y55k.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Czt7QvSJ--o9cfOHa.js → LabeledAddressValue-DDrQcHIE-DVUytAM2.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Dl3atH92-CjdAuIVN.js → LabeledAddressValueField-BgWwd5Gw-1_bA2P1A.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DT_nxhPN-DuuTp5Ff.js → LabeledControlledCheckBoxField-CcPO1k23-euLgngZd.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-BnljZpX0-DSX1x1DD.js → LabeledCountryMultiSelectField-BYYjzwUG-ByFpwxRF.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CiInq9yD-D56MVHId.js → LabeledCreatableSingleSelectField-CISYMojq-Ds5ZDmF8.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Ceb8vgVH-D0_MtEKv.js → LabeledDocumentField-C_bcFxdY-DPVXpSNP.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-B98gNWTE-D5c6zWgj.js → LabeledDropDownFormattedTextField-ScGGCap8-Bx7TgIhB.js} +1 -1
- package/dist/assets/{LabeledText-CFJSoGtK-DSMYorGu.js → LabeledText-C8Y7EOsX-YfcyRj6r.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CDiG37rQ-B7fB0wDU.js → LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-bisy62U6.js} +3 -3
- package/dist/assets/{LabeledZeniRolesDropDownField-CQiP2rEh-GSYyyt3o.js → LabeledZeniRolesDropDownField-BZtreVpj-B922kPSV.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-ANY7Ns42-qtpXBoFA.js → LinkJETransactionPage-CKq4oiX9-DqF42vDK.js} +1 -1
- package/dist/assets/{LockCardPage-0piclOz3-DMmscpun.js → LockCardPage-CZENNby7-DRVoRjI2.js} +1 -1
- package/dist/assets/{LowBalancePopup-CplxkRHP-vRAEVtMs.js → LowBalancePopup-1727S1ri-BotZCdZD.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-Ck7Yx728.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-DzmVNJrM.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-_HUl3VhW.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-BA1LfhVb-QIfzaP0B.js → MagicLinkSuccessPage-QMkZgQLG-Dtoovrbg.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DLdaV8WG-CZP-hfQ8.js → MagicLinkTitleSection-CARU1oLQ-BDQbOyHj.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BNVPaGFt-oQAfZczL.js → MailingDetailsSection-ByOPaJ05-BUTtoyYk.js} +6 -6
- package/dist/assets/{MyBankConnectionsSettingsPage-BiDvyO_G-J4g8mXcf.js → MyBankConnectionsSettingsPage-BdgIIhL1-jbAanX2l.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Bb4_b9o6-DpSTPb5e.js → MyPendingActivationChargeCardListPage-CX38bDdq-BXFJnqht.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-nY_eDqfm-Bu7Lsgh7.js → MyProfileSettingsPage-DYu0Fx6I-CcKml1T5.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Dr5XHgP5-DHhdJKEu.js → NavBarWithPicker-CGGEvLwe-BKxrf_8f.js} +1 -1
- package/dist/assets/{NavigationArrow-DT82hMh--BMOwgBcS.js → NavigationArrow-CTNkKUtV-2iSw8vB0.js} +1 -1
- package/dist/assets/{NavigationDots-CwCZ9EAa-CokUYIFm.js → NavigationDots-Dvce3gHt-DDCP-WPR.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D1lxnByE-CVvpnihg.js → NewGlobalMerchantPage-D_f7z47T-6Ai8ePEI.js} +1 -1
- package/dist/assets/{NoDataChart-DCTRXLc7-B9ncepNZ.js → NoDataChart-CrKeqWSr-CAkfwHDx.js} +1 -1
- package/dist/assets/{NoDataTable-D8Xw5pAY-Dyd0PBJT.js → NoDataTable-4vPXmPYF-B_AEofEo.js} +1 -1
- package/dist/assets/{NotFoundPage-B_zPUigU-C14H-d-z.js → NotFoundPage-BLWPU1wU-DwBFIS27.js} +6 -6
- package/dist/assets/{NotificationSettingsPage-aKLRiMp--G6Q8ldAy.js → NotificationSettingsPage-CDiDLX3A-DbdZrkYX.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CVEetkBc-BiBUxUkG.js → NotificationsListConfig-B5pDa4cJ-CJvglMha.js} +1 -1
- package/dist/assets/{NotificationsPage-DEw6V83J-cq8nGgQm.js → NotificationsPage-Ccl7Dny1-DkOfM7pn.js} +1 -1
- package/dist/assets/{OpExByVendorPage-DJMov6Ux-IUDn852a.js → OpExByVendorPage-spd-nKV4-gro5HZnt.js} +1 -1
- package/dist/assets/{OverlayContainerPage-BG9y5C0t-DQoGmJY8.js → OverlayContainerPage-BG9y5C0t-DQ7U2dYB.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-RBTh1bFk-BBMAyNq1.js → PandLWithForecastPage-TSoe4Z7F-B5IOZhui.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-D-kQI4nd-C86t_Bw9.js → PaymentAccountSetupBillingAddressSection-9ma8SpIa-Dp7MlqYC.js} +1 -1
- package/dist/assets/{PeoplePage-BEc-Oss7-D6K598tn.js → PeoplePage-b5_I0qOw-BdZ-JULF.js} +1 -1
- package/dist/assets/{Preview-BOT6L4Gc.js → Preview-CskSI0Y2.js} +1 -1
- package/dist/assets/{ProductsCarousel-BRo0P4GW-DPh-GXZX.js → ProductsCarousel-C3M0ocdF-Cxvmq7ks.js} +1 -1
- package/dist/assets/{PromoBaseCards-BrXJEufN-DGCD-pad.js → PromoBaseCards-BOGJI2ws-BJ7KS-Ne.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BIg9Iais-BLFQoD5X.js → QBOConnectionDialog-CmpnnuzP-N5FQpary.js} +1 -1
- package/dist/assets/{QBOSetupSection-DDoUJ7L6-CRJCvB7p.js → QBOSetupSection-DjnN9dgv-Ci7ynToC.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CP0muUGK-DOUZCeOX.js → ReimbursementApprovalRuleDetailPage-D5NXjrO9-G7FD03RU.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BpVWq3rk-CPsLLEKB.js → ReimbursementApprovalRulesPage-BsCTIqUJ-DYnf8ClJ.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-pCg86_Ty-CJyNBDfH.js → ReimbursementDetailPage-BbyxE2uL-CxSDUpfx.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BW6icjG5-CXmwASqO.js → ReimbursementPromoPage-CyEgwqcf-BAxRR7yW.js} +4 -4
- package/dist/assets/{ReimbursementSetUpPage-B6OhWEWH-2fTIwKyn.js → ReimbursementSetUpPage-RETPkEQd-BfC97OkK.js} +4 -4
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DmDoqEZh-DMNGQHh2.js → ReimbursementsBulkReviewDrawerPage-DnmYl0FM-Cd74ACVd.js} +1 -1
- package/dist/assets/{ReloadCard-DIFXZM9U-CzzBc8Ds.js → ReloadCard-Bdoo0XiI-CbU6AKcU.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BsIDwouQ-LueAos4D.js → ReportTableViewSelector-Bc1K7mU_-NN_XQWpz.js} +3 -3
- package/dist/assets/{ReportsPage-BFTuYQt2-94dg7DkU.js → ReportsPage-BOTHMLWh-DdFE1MGv.js} +1 -1
- package/dist/assets/{RevenueChart-BoFq3ebd-DL47Yxv5.js → RevenueChart-DvyZ3aO7-DHPO_wEA.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-6kCQzaHm-C8558Xek.js → ReviewDetailsPage-BIMg1n2e-CkA1ITE_.js} +1 -1
- package/dist/assets/{ReviewOverlay-Dhb-kL6G-CP4sshQs.js → ReviewOverlay-CxwoiOLC-Bnq-l2FH.js} +1 -1
- package/dist/assets/{RoleWithToolTip-BfM8Ltz4-B2dEkSuJ.js → RoleWithToolTip-Ct3_VuDM-_iITsTgs.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ccewwmwc-C838cUog.js → ScheduleDetailsFixedAssetsPage-DiL5Dozk-D-sJkv0I.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-D4LK83qQ-B-3mRl-X.js → ScheduleDetailsPage-5FWpLRtd-BR7PDtvG.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BZR2cL6z-C_HCjrsM.js → ScheduleSequenceTable-R3-PsXES-B704swZh.js} +1 -1
- package/dist/assets/{ScreenRoutes-DKQsZ18v.js → ScreenRoutes-BNgKjo0e.js} +1 -1
- package/dist/assets/{SetUpAccountSection-CxjYbrXu-DJZlmeQI.js → SetUpAccountSection-CctbMmoK-D5qM49W4.js} +1 -1
- package/dist/assets/{SignIn-CVmtPGKL-BYEApH-M.js → SignIn-CmgmnRm4-DJ-8k4sd.js} +1 -1
- package/dist/assets/{SignInScreen-DqNZxGVO.js → SignInScreen-DP9hLXz4.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BLjP9T8h-BHC3BipV.js → SpendManagementListViewPage-CFUxCqkU-BytzTuq3.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Ck4brjun-BA50YopL.js → SpendManagementPerTabPage-C-kqNTci-Byg7duEy.js} +1 -1
- package/dist/assets/{SpendManagementSection-DAqR2c98-8wXmGmhP.js → SpendManagementSection-CIz4nE_w-BLIe7E_T.js} +1 -1
- package/dist/assets/StatementItem-vVtoBN2w-H5lMjfJF.js +31 -0
- package/dist/assets/{StatementsPage-DcKziEfZ-QF9T5k7P.js → StatementsPage-As5WOnMR-DYr-27Vm.js} +1 -1
- package/dist/assets/{StatusSwitcher-BI-dgnrK-BdcI7U-0.js → StatusSwitcher-Bv-ozN6U-lU56jlZg.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BpNI5Wke-BVlwckpR.js → SubTabSwitcher-D7QeM6nb-4PmLMj94.js} +1 -1
- package/dist/assets/SummaryCard-C2qoTsAY-hpn_xEhm.js +1 -0
- package/dist/assets/{TaskManagementPage-Bz1uP5hK-BoZxHRaY.js → TaskManagementPage-BJwp32Ph-g3CZaUE9.js} +8 -8
- package/dist/assets/{TimeRangeSwitcher-oORYeFzN-DCKoT5B5.js → TimeRangeSwitcher-D00bDDhP-Crh2YYPY.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-JcJSbn0--DlgRUrdH.js → TimeframeSwitcher-DA99HdHt-Du77XkCa.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-BEZU-KDj-DrdqK2tN.js → TimeframeSwitcherWithToggle-DyggDIQj-DaQpWxtk.js} +2 -2
- package/dist/assets/{TopExCard-CF6z0JWk-B-Ghlj5x.js → TopExCard-Z1WabZ8c-CV-g2xZM.js} +1 -1
- package/dist/assets/{TopExDetailPage-DrcKlFuy-Ds2ZJqmF.js → TopExDetailPage-CzHG4f9E-_r1hd5Zf.js} +6 -6
- package/dist/assets/{TransactionActivityLogPage-BB4q0jan-DLZfPexj.js → TransactionActivityLogPage-CGKnjNfU-CJd8ynVA.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DRG_qosz-BZCufjyh.js → TransactionDetailPage-1-mLOWSz-T4S9c_1A.js} +1 -1
- package/dist/assets/{TransactionList-iw4pyMYF-B11qsU07.js → TransactionList-BB-xoIGm-B8RHzauJ.js} +1 -1
- package/dist/assets/{TransactionListBig-BljAUwAB-DRYhi9My.js → TransactionListBig-C5Sf5Xh--BB10zRNq.js} +1 -1
- package/dist/assets/{TransactionListPage-ReGTmF43-75-qCJLg.js → TransactionListPage-Cj7h1Ros-CR24GYSI.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-DXuYIj-p-CjA6IQ8e.js → TransactionVendorDetailPage-SsrSOk3O-CMSt7oTu.js} +1 -1
- package/dist/assets/{TransferDrawerPage-C3q8h8Zy-FzuA3Ov0.js → TransferDrawerPage-BvKZ7vHF-CuCcqZk-.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DqjFEV9B-CkDwhHwT.js → TreasuryOverviewPage-DwvjMR4_-DJuXDQF6.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-ByeK0W_5-DLiAPs3e.js → TreasuryPromoPage-CtTFvSQW-3OarQ2S5.js} +9 -9
- package/dist/assets/TreasuryStatementsPage-Catz8shX-vU5UesID.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-DwLyqS86-Dpsxj_mm.js → TreasuryTaxLetterPage-D8hzCL5o-B_tFsKHc.js} +2 -2
- package/dist/assets/{TrendChart-Dgh_21FN-BfzylNjI.js → TrendChart-Bnp4Pcdf-DVelkGmA.js} +1 -1
- package/dist/assets/{TrendWithTransactions-BgIPapHk-DL2soFtd.js → TrendWithTransactions-3D1FvM8G-CSo4InzM.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DIIJcGrj-CEalecZG.js → UncategorizedAccountsMappingPage-DbyY-dYB-BA44ympu.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DIOZhQOZ-DksrYMJk.js → UnitIntegrationPage-CTzme1te-CkMH9YKQ.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-qrcEQmkz-DXD85VsM.js → UploadAdditionalDocumentOverlay-Wl4Spdpn-D59nwhG6.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-C58w6vC7-CR6EEMJX.js → Vendor2FAPopup-D0zYKkIv-B3WxVVEB.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-YYX9aQdw-UL8mKQvf.js +1 -0
- package/dist/assets/{VendorDetailPage-CEQFcNHr-CEDqw5IP.js → VendorDetailPage-Br9wIOnI-MiPypEL_.js} +1 -1
- package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-Doixu70d.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-Dl7jZYBV-BUUgfUx3.js → VendorFiling1099EditablePage-himC7iD3-aK-FBD-o.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-yVbtg_tG-BubJkHRn.js → VendorFirstReviewPage-BbknTCBD-RpSPDveD.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DNDv_s8G-BXTL9xpQ.js → VendorInternationalWireDetailsPage-CS595Xgc-BFwPNTjE.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-D8lZKLu0.js +1 -0
- package/dist/assets/{VendorsAccountsSection-Cscbgqrx-DtL_QWU9.js → VendorsAccountsSection-CgSJu8wq-CcmStoDy.js} +1 -1
- package/dist/assets/{VerifyDevice-D1vsUSdJ-DytK_5VO.js → VerifyDevice-Dvf0JsNN-DTrHqfeh.js} +1 -1
- package/dist/assets/{VideoPlayer-TlEy-oD0-DZiblGVy.js → VideoPlayer-VAzOGCDL-Dcpb5Ypp.js} +2 -2
- package/dist/assets/{VideoPopup-3DD646kG-RAC--hg4.js → VideoPopup-BqvZ-XIh-EN-DDLM7.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-Fj5zTXdi-33N9HCLm.js → WarningsDrawerPage-DeNonoNp-D09UQplv.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BbsXzuHD-BO8es0ys.js → ZeniAccountDetailPage-GcwTJdB8-Dd8t1-yB.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-lmuVUpKS-eVkNPsib.js → ZeniAccountListViewPage-CdwO0Duy-BO2aQzFc.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CQhwBKXD-9PeHei0y.js → ZeniAccountNavBarPieces-BrSIfL36-BX20H3cn.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CXEb9tRE-BreTybkQ.js → ZeniAccountPromoPage-JrcedQYB-yS--HdV-.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DPhYQu6u-BJNNC1ml.js → ZeniAccountSetupPage-TKBfbgzJ-BgxZZ70U.js} +1 -1
- package/dist/assets/{ZeniCopyright-pvaggW6x-tDTHS5lo.js → ZeniCopyright-DglqrTpl-5K7hWC6N.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dlyom9dD-BJLu_X4j.js → ZeniTransferAmountSlider-BcaZZuAw-CNzhTlHz.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-Bbdk2zE-.js → add-to-wallet-DgdBD8_G-BFk5zTW3.js} +1 -1
- package/dist/assets/{analytics-DM0Z2iTh.js → analytics-uGzTqGx1.js} +1 -1
- package/dist/assets/{analyticsHelper-AeOsAjMK-BPtQSTPA.js → analyticsHelper-CAYdbjhS-CbXlhF0X.js} +1 -1
- package/dist/assets/{analyticsHelper-C2sbXH1C.js → analyticsHelper-CJT_EkQg.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DP2waa76.js → arrow-south-east-round-PEovUgvH-D4OZgj3r.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CtFkBQtB.js → auto-transfer-rule-mbafm5D3-Divy6cES.js} +1 -1
- package/dist/assets/{chartTypes-BLsP7rGF-oTvSj4vc.js → chartTypes-CD3vrBsI-CvXENNfl.js} +1 -1
- package/dist/assets/{commonDimensions-DIm7kTtR-CtxMPb_l.js → commonDimensions-Oz1tdAcx-BJKhGsnL.js} +1 -1
- package/dist/assets/{commonTypes-B3mnx2x_-BM2VDCb_.js → commonTypes-5tEXwrX4-BvhObQ7j.js} +1 -1
- package/dist/assets/{constants-DbJoQ1I1.js → constants-DhUwwCD7.js} +1 -1
- package/dist/assets/{core-D1efGYvA.js → core-gc5ND_yy.js} +1 -1
- package/dist/assets/{dash.all.min-BJoNlc1g.js → dash.all.min-CzlxgLf2.js} +1 -1
- package/dist/assets/{downloadPdf-B5WrL0K1-CmHZiZSg.js → downloadPdf-Dsuxeias-A2bbtbVa.js} +1 -1
- package/dist/assets/{empty-CLRsvSXU.js → empty-CDyK13UU.js} +1 -1
- package/dist/assets/{empty-CikTAUjo.js → empty-CcGTwUPn.js} +1 -1
- package/dist/assets/{epic-DyyDuxZ1.js → epic-BSSEFpHM.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-CgoFL6zl.js → gift-box-Cmt9OgIZ-DR9Akjs9.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-y1cdsTJM.js → graphic-no-data-l-DU4J8fDt-1A69LwX-.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-FeuB0gx7.js → graphic-no-data-net-burn-l-CzmycA0m-hemyIa-W.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-CqMPg0Pj.js → handshake-BPg58FML-DJU2g1k7.js} +1 -1
- package/dist/assets/{helper-BVESv00--B_ph63HG.js → helper-Ckm10Uko-D-gLYGRP.js} +1 -1
- package/dist/assets/{index-B8bgzK8w.js → index-7x2_8U2Z.js} +1 -1
- package/dist/assets/{index-CGmDXzs-.js → index-BXszvLP6.js} +1 -1
- package/dist/assets/{index-CY2pXL_H.js → index-C85N4mmE.js} +1 -1
- package/dist/assets/{index-Ds2gaUw1.js → index-CUxbisrq.js} +7 -7
- package/dist/assets/{index-CPJgPB-Y.js → index-DJJ-8bYf.js} +1 -1
- package/dist/assets/{index-FxS0xW4w.js → index-DmEInPYU.js} +1 -1
- package/dist/assets/{index-C3Qcsqf1.js → index-Dns-GxvR.js} +1 -1
- package/dist/assets/{lexical-CozngYnD.js → lexical-zfv1-tRH.js} +1 -1
- package/dist/assets/{liveblocks-9DZzD1a4.js → liveblocks-DTtNefcp.js} +1 -1
- package/dist/assets/{lottie-BjNglYX6.js → lottie-BctA_6Pz.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-CuAQ3LfH.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-Cgyt68f3-CwLJBfzm.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-XgUp1xUb-B2q1ZmG3.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Bre8FfBF-DhXKj6L8.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-Cc0ArlOT.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-eZfXMDx3.js +1 -0
- package/dist/assets/{mui-C8jfyxo9.js → mui-CW7vGIKQ.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BLxtJyjF.js → page-detail-CWX5S47F-CURtp-Kt.js} +1 -1
- package/dist/assets/{panelSelectedMixin-Cddsb26L-B7dp1t4n.js → panelSelectedMixin-Cddsb26L-270aHsWR.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-C1Y5MWBw.js → radio-default-CiSgisfh-NpjFGVm3.js} +1 -1
- package/dist/assets/{react-CupXMqya.js → react-4IaoU2Ar.js} +1 -1
- package/dist/assets/{react-Cs2U6ug3.js → react-BxD6EI1V.js} +2 -2
- package/dist/assets/{react-zJehJCU3.js → react-C2Rg6f-G.js} +1 -1
- package/dist/assets/{react-B80FoJ1K.js → react-C6o_c0l9.js} +1 -1
- package/dist/assets/{react-B7oPAKPj.js → react-ClMWdYr1.js} +1 -1
- package/dist/assets/{react-BMDs8_8d.js → react-Cp9-IfdP.js} +1 -1
- package/dist/assets/{react-BSKfkA_U.js → react-tSlc14NL.js} +1 -1
- package/dist/assets/{react-BcU7ZbrX.js → react-zfCjE7gH.js} +1 -1
- package/dist/assets/{recharts-DR-YjrPp.js → recharts-CUzMVol9.js} +1 -1
- package/dist/assets/{sentry-BHOVRVah.js → sentry-tsfGilE0.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CP0N7gie.js → shield-DOlUxcFf-D2WjmHlw.js} +1 -1
- package/dist/assets/toCOABalancesWithID-aLNB35t7-SXHRhJKA.js +1 -0
- package/dist/assets/{toChartData-BkubFDq8-daIsVFXr.js → toChartData-DUL6vnzJ-BytIs-si.js} +1 -1
- package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-CYU3ggQa.js → upload-reimbursement-receipt-O2N8vcO7-BD8zTKik.js} +1 -1
- package/dist/assets/{uploadAttachment-CzgakLtr-BEBE6hsh.js → uploadAttachment-Ck4wivBR-ChZLp45S.js} +1 -1
- package/dist/assets/{uploadReceipts-CIgkuVpu-DB_APFCs.js → uploadReceipts-CIgkuVpu-DyKGxWBD.js} +1 -1
- package/dist/assets/{url-D3zdpLpK.js → url-CdkVWkur.js} +1 -1
- package/dist/assets/{url-B9n0SKYf.js → url-hxlOC5jn.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-C5SvewPt.js → useLongPress-GCK2COYQ-Bs1ArQdX.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-Dbya9OmS.js → usp-line-BBd1wKwW-C0cfP0ma.js} +1 -1
- package/dist/assets/{utils-5CxPeaIu.js → utils-yWIuTv4c.js} +1 -1
- package/dist/assets/{zeni-epic-state-B3bGMbTt.js → zeni-epic-state-DGV_6n4t.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ApAgingDetailPage-B-1gVAu6-CZxVrGzW.js +0 -46
- package/dist/assets/ChargeCardPromoPage-CKl6K-nr-DX0ZxLmB.js +0 -222
- package/dist/assets/CustomerOnboardingContainerPage-B4YFIOQJ-dHRTR5ur.js +0 -1
- package/dist/assets/EntityDetailPage-D8FzsqNk-yOaiN3sl.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-BKh8WrCR-Cd7akh42.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Cv19HbKi-CjKSgbEc.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DbFxpWOg-D7-6zoMo.js +0 -1
- package/dist/assets/StatementItem-B_iG99XI-BRjQsnEl.js +0 -31
- package/dist/assets/SummaryCard-HW-1WXN9-CFiE0Uzr.js +0 -1
- package/dist/assets/TreasuryStatementsPage-BjGwvMFL-BjhVag5o.js +0 -58
- package/dist/assets/VendorACHDetailsPage-BbxRwrEv-C-Q8EkTj.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-C02ZhGg3-CHirdRh6.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Bdt0UR_b-CcO0p3iS.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-DJxRl0X1-qQDOBKVS.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-BIiMj0sc-DLSAIalf.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-Bj3f2irs-DoC7yLFZ.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-AI17uMHa-CbqGZfmd.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CyO5pm8k-0O_0gNod.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-NKafOEXu-U8EcL8dW.js +0 -1
- package/dist/assets/toCOABalancesWithID-BWMF0py6-HF7pl6Ey.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as F,e as N,O as j,V as t,bE as G,L as V,ac as m,o,x as r,an as E,aQ as P,c1 as k,cy as q,cz as O,cA as J,da as K,u as l,bb as Q,N as T,ba as X,d as z,d9 as Y,bv as Z,w as ee}from"./index-
|
|
1
|
+
import{g as F,e as N,O as j,V as t,bE as G,L as V,ac as m,o,x as r,an as E,aQ as P,c1 as k,cy as q,cz as O,cA as J,da as K,u as l,bb as Q,N as T,ba as X,d as z,d9 as Y,bv as Z,w as ee}from"./index-CUxbisrq.js";import{n as i}from"./mui-CW7vGIKQ.js";import{a as te}from"./sentry-tsfGilE0.js";import"./liveblocks-DTtNefcp.js";import"./core-gc5ND_yy.js";import"./recharts-CUzMVol9.js";import"./zeni-epic-state-DGV_6n4t.js";import"./lottie-BctA_6Pz.js";import"./analytics-uGzTqGx1.js";import"./lexical-zfv1-tRH.js";import"./utils-yWIuTv4c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="ee3c2bd6-0043-486a-b241-448d9eeb7efe",e._sentryDebugIdIdentifier="sentry-dbid-ee3c2bd6-0043-486a-b241-448d9eeb7efe")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},M={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:g=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[w,x]=te.useState(!1),n=N(),{range:u}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{x(!0)},U={onOkClick:()=>{x(!1),y?.(p)},onCancelClick:()=>{x(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(he,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),u.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e?c?t.jsx(k,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(k,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),h.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},`${d.subType}_${_}`)),h.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},d.userId))]},H))})}),w?t.jsx(q,{titleComponent:t.jsx(J,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(O,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ay as tt,V as t,gv as Bt,a9 as Pt,e as Nt,g as _t,cl as Lt,x as m,O as it,bQ as Ot,gw as Et,gx as Wt,cy as Ae,cz as Me,cA as Re,bE as Be,ac as f,bq as Kt,dE as Vt,gy as Ft,gH as Pe,o as a,gz as Ne,dN as b,gC as g,dT as w,aQ as _e,fx as Le,w as H,gE as Oe,aT as Ut,aq as Gt,bU as Ht,gF as ne,bz as Yt,bV as qt,b as Qt,N as Jt,M as Xt,an as at,bb as rt,d as Y,ao as Zt,c3 as ei,ak as ti,h0 as ii,gW as ai,u as c,cq as ri,d8 as oi}from"./index-Ds2gaUw1.js";import{a as u}from"./sentry-BHOVRVah.js";import{n as r}from"./mui-C8jfyxo9.js";import{bL as ni,bZ as li,GD as si}from"./zeni-epic-state-B3bGMbTt.js";import di from"./InvoiceUploadSection-BjNMjhQR-uE-POttT.js";import{r as ci,h as x,u as mi}from"./types-DyvtCprH-NFPm5TaG.js";import"./liveblocks-9DZzD1a4.js";import"./core-D1efGYvA.js";import"./recharts-DR-YjrPp.js";import"./lottie-BjNglYX6.js";import"./analytics-DM0Z2iTh.js";import"./lexical-CozngYnD.js";import"./utils-5CxPeaIu.js";import"./AttachmentView-UxkSFZmq-Y8eh9Tix.js";import"./uploadReceipts-CIgkuVpu-DB_APFCs.js";import"./upload-reimbursement-receipt-O2N8vcO7-CYU3ggQa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new e.Error().stack;v&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[v]="922584a0-c0db-4e4c-aa2f-3d7cb5599652",e._sentryDebugIdIdentifier="sentry-dbid-922584a0-c0db-4e4c-aa2f-3d7cb5599652")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},pi={formTitle:new Jt("h6Regular","h5Regular")},Ee=({remiDetails:e,uploadInvoiceEndPoint:v,authParams:z,isAdmin:_,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:p,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:ot,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:q,redirectToEditableReimbursementScreen:nt,onDuplicateLineClick:lt,approveOrRejectRemi:he,deleteReimbursement:st,cancelAndDeleteReport:ye,handleZeniLogoClick:dt,onAddNewRule:be,initialOpenThreadRequest:A})=>{const d=tt(),ct=Pt().analytics,n=Nt(),ge=_t(),[mt,M]=u.useState(!1),[Q,J]=u.useState(!1),[pt,X]=u.useState(!1),[Z,ee]=u.useState("approved"),L=u.useRef(null),[D,te]=u.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ut]=u.useState(null),[ht,O]=u.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=u.useRef({}),xe=l=>{const o=we.current[l];o!=null&&setTimeout(()=>mi(o,L.current),100)};u.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&q()},[e,q]),u.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const o=l.substring(1);xe(o)}},[]);const yt=()=>{q()};Lt({componentName:"reimbursement.details"});const bt={onOkClick:()=>{M(!1),D.primaryButtonText===i.buttons.delete?st?.():D.title===i.cancelReportTitle?ye?.():D.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{M(!1)}},S=s.labelWidth.value(n),R=s.largeLabelWidth.value(n),fe=it.getLocalizedStrings(),{common:{texts:{comments:gt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:wt,replyAComment:xt},tooltip:{resolveComment:ft,unResolveComment:$t}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:E}=fe.spendManagement.reimbursement,ie=e.remiDetails?.reportTitle,I=e.remiDetails?.lines??[],W=e.remiDetails?.reimbursementInfo.stage,K=e.remiDetails?.reimbursementInfo.billStatus,V=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=W?.code==="paid",vt=Te?W:K?.code=="approved"&&V?.code?V:K,T=ui(e.remiDetails),B=K?.code=="approved"&&V?.code?V:K,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{te({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),M(!0)},Tt=()=>{te({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},jt=()=>{te({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},De=()=>{nt()},St={onOkClick:l=>{X(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{X(!1)}},It=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(ee("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},Dt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(ee("delete"),Ie()):(ee("rejected"),X(!0))},Ct=e.remiDetails?.reimbursementInfo.paymentDate!=null?ni(li(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ae=e.remiDetails?.reimbursementInfo.expectedDepositDate??Ct,kt=e.remiDetails?.lines?.some(l=>{const o=l.lineDetail;return o?.account?.isDeleted===!0&&o?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&ot&&!kt,zt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",re=vt?.code,At=ci(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&At>0,{requestToOpenThread:oe,setRequestToOpenThread:U,setOpenThread:G}=u.useContext(Ot);u.useEffect(()=>{A?.threadId!=null&&A?.companyId!=null&&A?.entityType!=null&&U(A)},[A,U]);const{threads:P,isLoading:C}=Et(),Mt=u.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Wt)),[P]).length,Rt=u.useCallback((l,o)=>{G(o),O(!1)},[G,O]);u.useEffect(()=>{oe?.threadId!=null&&P.length>0&&!C&&(G(oe.threadId),U(null))},[oe,P,C,G,U]);const y={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},N=si(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ei,{windowSize:n,ref:L,children:[mt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:D.title}),descriptionComponent:t.jsx(Me,{children:D.description}),primaryButtonText:D.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:D.secondaryButtonText,action:bt}):null,pt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:St,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ri,{windowSize:n,"data-testid":f("reimbursement-detail-page-nav-bar-container"),children:[n!=="small"?t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Bi,{onClick:()=>dt?.(),"data-testid":f("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ge.colors.background,keepBackgroundOnScroll:!0,scrollableContent:L,source:"ReimbursementDetailPage"}):null,n!=="small"?t.jsx(zi,{}):null,t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-right"),title:ie??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:n!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ni,{children:[p?t.jsxs(_i,{isDisabled:C,onClick:C?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ut({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),O(!0),ct.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(o=>Vt(o)),void 0,void 0,"page icon")},"data-testid":f("remi-comments-section"),children:[t.jsx(Kt,{count:C?void 0:Mt,isLoading:C,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:n,onClick:()=>yt(),"data-testid":f("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:L,enableTitleOnScroll:n!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{windowSize:n,children:t.jsx(Je,{windowsSize:n,children:ie})}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null,B?.code!=null?n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,I.map((l,o)=>{const j=e.duplicateLineByLineId[l.lineId];return t.jsxs(et,{windowSize:n,children:[t.jsx(Fi,{windowSize:n,children:t.jsx(Ui,{bottomSeperator:I.length!==1,windowSize:n,children:t.jsx(di,{showAutofill:!1,uploadInvoiceEndPoint:v,authParams:z,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:I.length>1?`#${o+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:I.length-1===o||o===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Vi,{windowSize:n,children:[o===0&&n!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Qe,{windowSize:n,children:[t.jsx(Je,{windowsSize:n,children:ie}),me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,B?.code!=null?t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:n,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[n!=="small"?t.jsx(wi,{children:t.jsx(fi,{children:I.length>1?`#${o+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs($i,{windowSize:n,children:[j?.duplicateLineId!=null?t.jsxs(bi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(j.isDuplicateWithinTransaction&&j.duplicateLineId!=null)return xe(`L${j.duplicateLineId}`);j.duplicateTransactionId!=null&&j.duplicateLineId!=null&<(j.duplicateTransactionId,j.duplicateLineId)},"data-testid":f("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${o}.mileage.reimbursementType`:`${o}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("reimbursementType",o,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(g,{label:{label:i.reimbursementType,width:R},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx($,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"mileage")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("distanceInMiles",o,"mileage")}`},children:t.jsx(g,{label:{label:i.distanceInMiles,width:R},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"mileage")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"mileage")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"mileage")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("merchant",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.merchant,width:R},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("account",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.category,width:S},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),I.length!==1&&I.length===o+1&&t.jsxs(Ki,{windowSize:n,children:[t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),I.length===1&&t.jsxs(et,{windowSize:n,children:[t.jsx(Ye,{}),t.jsxs(hi,{windowSize:n,children:[t.jsx(Wi,{windowSize:n,children:t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(yi,{windowSize:n,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Gi,{})]}),Te||F===!0?null:t.jsxs(Mi,{children:[n!=="small"?t.jsx(Ye,{}):null,t.jsx(Ti,{windowSize:n,"data-testid":f("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Q===!0&&J(!1)},children:t.jsx(Ut,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.delete:i.buttons.deleteReport:n==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:Dt,style:{width:s.footerButtonWidth.value(n)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.edit:i.buttons.editAndResubmit:n==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:It,style:{width:s.footerButtonWidth.value(n)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(vi,{children:t.jsxs(Ai,{windowSize:n,children:[!N&&Q?t.jsx(Gt,{onClickAway:()=>J(!1),children:t.jsxs(ki,{windowSize:n,children:[re!=="processing"?t.jsx(le,{onClick:Ie,"data-testid":f("remi-delete-action"),children:i.buttons.deleteReport}):null,re==="processing"?t.jsx(le,{onClick:Tt,"data-testid":f("remi-cancel-action"),children:i.buttons.cancel}):null,re==="processing"?t.jsx(le,{onClick:jt,"data-testid":f("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ci,{windowSize:n,children:[!N&&Ce?t.jsx(Di,{onClick:De,"data-testid":f("remi-edit-button"),children:t.jsx(Ii,{})}):null,!N&&zt===!0?t.jsx(Si,{windowSize:n,showEditIcon:Ce,children:t.jsx(ji,{onClick:()=>J(!Q),"data-testid":f("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),p?t.jsx(Ht,{isDrawerOpen:ht,allowComposer:!0,drawerTitle:gt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:C,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:wt,replyComposerPlaceholder:xt,threadResolve:ft,threadUnResolve:$t},onThreadClick:(l,o)=>Rt(l,o),onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:"400px",backgroundColor:ge.colors.background}}):null]})},ca=e=>{const v=tt().currentTenant?.companyId,z=e.remiDetails.remiDetails?.id;if(!(e.isReimbursementCommentingEnabled&&z!=null&&v!=null))return t.jsx(Ee,{...e});const _=`dashboard_${v}`;return t.jsx(Bt,{roomId:_,filter:{application:"dashboard",companyId:v,entityId:z,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(Ee,{...e})})},ui=e=>{const v=it.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:v.tabsById.deleted,color:ne.deleted.color,bgColor:ne.deleted.bgColor,borderColor:ne.deleted.borderColor,code:"deleted"}},hi=r.div`
|
|
1
|
+
import{ay as tt,V as t,gv as Bt,a9 as Pt,e as Nt,g as _t,cl as Lt,x as m,O as it,bQ as Ot,gw as Et,gx as Wt,cy as Ae,cz as Me,cA as Re,bE as Be,ac as f,bq as Kt,dE as Vt,gy as Ft,gH as Pe,o as a,gz as Ne,dN as b,gC as g,dT as w,aQ as _e,fx as Le,w as H,gE as Oe,aT as Ut,aq as Gt,bU as Ht,gF as ne,bz as Yt,bV as qt,b as Qt,N as Jt,M as Xt,an as at,bb as rt,d as Y,ao as Zt,c3 as ei,ak as ti,h0 as ii,gW as ai,u as c,cq as ri,d8 as oi}from"./index-CUxbisrq.js";import{a as u}from"./sentry-tsfGilE0.js";import{n as r}from"./mui-CW7vGIKQ.js";import{bL as ni,bZ as li,GD as si}from"./zeni-epic-state-DGV_6n4t.js";import di from"./InvoiceUploadSection-it-ZYl1N-DpsU9s1b.js";import{r as ci,h as x,u as mi}from"./types-DyvtCprH-NFPm5TaG.js";import"./liveblocks-DTtNefcp.js";import"./core-gc5ND_yy.js";import"./recharts-CUzMVol9.js";import"./lottie-BctA_6Pz.js";import"./analytics-uGzTqGx1.js";import"./lexical-zfv1-tRH.js";import"./utils-yWIuTv4c.js";import"./AttachmentView-CzC4skJ3-BrTw0uGW.js";import"./uploadReceipts-CIgkuVpu-DyKGxWBD.js";import"./upload-reimbursement-receipt-O2N8vcO7-BD8zTKik.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new e.Error().stack;v&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[v]="d76ece58-fbca-43d6-9c79-f8cb7a219d6d",e._sentryDebugIdIdentifier="sentry-dbid-d76ece58-fbca-43d6-9c79-f8cb7a219d6d")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},pi={formTitle:new Jt("h6Regular","h5Regular")},Ee=({remiDetails:e,uploadInvoiceEndPoint:v,authParams:z,isAdmin:_,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:p,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:ot,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:q,redirectToEditableReimbursementScreen:nt,onDuplicateLineClick:lt,approveOrRejectRemi:he,deleteReimbursement:st,cancelAndDeleteReport:ye,handleZeniLogoClick:dt,onAddNewRule:be,initialOpenThreadRequest:A})=>{const d=tt(),ct=Pt().analytics,n=Nt(),ge=_t(),[mt,M]=u.useState(!1),[Q,J]=u.useState(!1),[pt,X]=u.useState(!1),[Z,ee]=u.useState("approved"),L=u.useRef(null),[D,te]=u.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ut]=u.useState(null),[ht,O]=u.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=u.useRef({}),xe=l=>{const o=we.current[l];o!=null&&setTimeout(()=>mi(o,L.current),100)};u.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&q()},[e,q]),u.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const o=l.substring(1);xe(o)}},[]);const yt=()=>{q()};Lt({componentName:"reimbursement.details"});const bt={onOkClick:()=>{M(!1),D.primaryButtonText===i.buttons.delete?st?.():D.title===i.cancelReportTitle?ye?.():D.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{M(!1)}},S=s.labelWidth.value(n),R=s.largeLabelWidth.value(n),fe=it.getLocalizedStrings(),{common:{texts:{comments:gt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:wt,replyAComment:xt},tooltip:{resolveComment:ft,unResolveComment:$t}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:E}=fe.spendManagement.reimbursement,ie=e.remiDetails?.reportTitle,I=e.remiDetails?.lines??[],W=e.remiDetails?.reimbursementInfo.stage,K=e.remiDetails?.reimbursementInfo.billStatus,V=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=W?.code==="paid",vt=Te?W:K?.code=="approved"&&V?.code?V:K,T=ui(e.remiDetails),B=K?.code=="approved"&&V?.code?V:K,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{te({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),M(!0)},Tt=()=>{te({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},jt=()=>{te({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},De=()=>{nt()},St={onOkClick:l=>{X(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{X(!1)}},It=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(ee("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},Dt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(ee("delete"),Ie()):(ee("rejected"),X(!0))},Ct=e.remiDetails?.reimbursementInfo.paymentDate!=null?ni(li(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,ae=e.remiDetails?.reimbursementInfo.expectedDepositDate??Ct,kt=e.remiDetails?.lines?.some(l=>{const o=l.lineDetail;return o?.account?.isDeleted===!0&&o?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&ot&&!kt,zt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",re=vt?.code,At=ci(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&At>0,{requestToOpenThread:oe,setRequestToOpenThread:U,setOpenThread:G}=u.useContext(Ot);u.useEffect(()=>{A?.threadId!=null&&A?.companyId!=null&&A?.entityType!=null&&U(A)},[A,U]);const{threads:P,isLoading:C}=Et(),Mt=u.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Wt)),[P]).length,Rt=u.useCallback((l,o)=>{G(o),O(!1)},[G,O]);u.useEffect(()=>{oe?.threadId!=null&&P.length>0&&!C&&(G(oe.threadId),U(null))},[oe,P,C,G,U]);const y={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},N=si(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ei,{windowSize:n,ref:L,children:[mt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:D.title}),descriptionComponent:t.jsx(Me,{children:D.description}),primaryButtonText:D.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:D.secondaryButtonText,action:bt}):null,pt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:St,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ri,{windowSize:n,"data-testid":f("reimbursement-detail-page-nav-bar-container"),children:[n!=="small"?t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Bi,{onClick:()=>dt?.(),"data-testid":f("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ge.colors.background,keepBackgroundOnScroll:!0,scrollableContent:L,source:"ReimbursementDetailPage"}):null,n!=="small"?t.jsx(zi,{}):null,t.jsx(Be,{"data-testid":f("reimbursement-detail-page-nav-bar-right"),title:ie??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:n!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ni,{children:[p?t.jsxs(_i,{isDisabled:C,onClick:C?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ut({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),O(!0),ct.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(o=>Vt(o)),void 0,void 0,"page icon")},"data-testid":f("remi-comments-section"),children:[t.jsx(Kt,{count:C?void 0:Mt,isLoading:C,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(Oi,{size:n,onClick:()=>yt(),"data-testid":f("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:L,enableTitleOnScroll:n!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Hi,{children:[n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Qe,{windowSize:n,children:t.jsx(Je,{windowsSize:n,children:ie})}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null,B?.code!=null?n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,I.map((l,o)=>{const j=e.duplicateLineByLineId[l.lineId];return t.jsxs(et,{windowSize:n,children:[t.jsx(Fi,{windowSize:n,children:t.jsx(Ui,{bottomSeperator:I.length!==1,windowSize:n,children:t.jsx(di,{showAutofill:!1,uploadInvoiceEndPoint:v,authParams:z,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:I.length>1?`#${o+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:I.length-1===o||o===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Vi,{windowSize:n,children:[o===0&&n!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Qe,{windowSize:n,children:[t.jsx(Je,{windowsSize:n,children:ie}),me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,B?.code!=null?t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:B,createDate:e.remiDetails?.createTime,paymentDate:ae,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,N?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(We,{size:n,children:[t.jsx(Ue,{}),t.jsxs(Ve,{children:[t.jsx(Ke,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(xi,{windowSize:n,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[n!=="small"?t.jsx(wi,{children:t.jsx(fi,{children:I.length>1?`#${o+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs($i,{windowSize:n,children:[j?.duplicateLineId!=null?t.jsxs(bi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(j.isDuplicateWithinTransaction&&j.duplicateLineId!=null)return xe(`L${j.duplicateLineId}`);j.duplicateTransactionId!=null&&j.duplicateLineId!=null&<(j.duplicateTransactionId,j.duplicateLineId)},"data-testid":f("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${o}.mileage.reimbursementType`:`${o}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("reimbursementType",o,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(g,{label:{label:i.reimbursementType,width:R},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:j?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx($,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"mileage")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("distanceInMiles",o,"mileage")}`},children:t.jsx(g,{label:{label:i.distanceInMiles,width:R},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"mileage")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"mileage")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"mileage")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("merchant",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.merchant,width:R},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("account",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.category,width:S},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx($,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),I.length!==1&&I.length===o+1&&t.jsxs(Ki,{windowSize:n,children:[t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),I.length===1&&t.jsxs(et,{windowSize:n,children:[t.jsx(Ye,{}),t.jsxs(hi,{windowSize:n,children:[t.jsx(Wi,{windowSize:n,children:t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(yi,{windowSize:n,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:W?.code??"draft",onAddNewRule:be,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Gi,{})]}),Te||F===!0?null:t.jsxs(Mi,{children:[n!=="small"?t.jsx(Ye,{}):null,t.jsx(Ti,{windowSize:n,"data-testid":f("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Q===!0&&J(!1)},children:t.jsx(Ut,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.delete:i.buttons.deleteReport:n==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:Dt,style:{width:s.footerButtonWidth.value(n)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.edit:i.buttons.editAndResubmit:n==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:It,style:{width:s.footerButtonWidth.value(n)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(vi,{children:t.jsxs(Ai,{windowSize:n,children:[!N&&Q?t.jsx(Gt,{onClickAway:()=>J(!1),children:t.jsxs(ki,{windowSize:n,children:[re!=="processing"?t.jsx(le,{onClick:Ie,"data-testid":f("remi-delete-action"),children:i.buttons.deleteReport}):null,re==="processing"?t.jsx(le,{onClick:Tt,"data-testid":f("remi-cancel-action"),children:i.buttons.cancel}):null,re==="processing"?t.jsx(le,{onClick:jt,"data-testid":f("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ci,{windowSize:n,children:[!N&&Ce?t.jsx(Di,{onClick:De,"data-testid":f("remi-edit-button"),children:t.jsx(Ii,{})}):null,!N&&zt===!0?t.jsx(Si,{windowSize:n,showEditIcon:Ce,children:t.jsx(ji,{onClick:()=>J(!Q),"data-testid":f("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),p?t.jsx(Ht,{isDrawerOpen:ht,allowComposer:!0,drawerTitle:gt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:C,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:wt,replyComposerPlaceholder:xt,threadResolve:ft,threadUnResolve:$t},onThreadClick:(l,o)=>Rt(l,o),onCloseAllThreadsDrawer:()=>O(!1),drawerSectionStyle:{width:"400px",backgroundColor:ge.colors.background}}):null]})},ca=e=>{const v=tt().currentTenant?.companyId,z=e.remiDetails.remiDetails?.id;if(!(e.isReimbursementCommentingEnabled&&z!=null&&v!=null))return t.jsx(Ee,{...e});const _=`dashboard_${v}`;return t.jsx(Bt,{roomId:_,filter:{application:"dashboard",companyId:v,entityId:z,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(Ee,{...e})})},ui=e=>{const v=it.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:v.tabsById.deleted,color:ne.deleted.color,bgColor:ne.deleted.bgColor,borderColor:ne.deleted.borderColor,code:"deleted"}},hi=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ay as ne,g as S,e as k,aS as le,V as e,ac as a,fH as ae,bE as de,a as u,ag as d,O as E,o as s,as as ce,c as me,aV as V,ao as pe,x as xe,d as z,cN as he,aW as ue,bc as ge,u as we}from"./index-
|
|
1
|
+
import{ay as ne,g as S,e as k,aS as le,V as e,ac as a,fH as ae,bE as de,a as u,ag as d,O as E,o as s,as as ce,c as me,aV as V,ao as pe,x as xe,d as z,cN as he,aW as ue,bc as ge,u as we}from"./index-CUxbisrq.js";import{a as j}from"./sentry-tsfGilE0.js";import{n as r}from"./mui-CW7vGIKQ.js";import{GC as je,bQ as fe}from"./zeni-epic-state-DGV_6n4t.js";import{C as be}from"./VideoPopup-BqvZ-XIh-EN-DDLM7.js";import{M as v}from"./usp-line-BBd1wKwW-C0cfP0ma.js";import"./liveblocks-DTtNefcp.js";import"./core-gc5ND_yy.js";import"./recharts-CUzMVol9.js";import"./lottie-BctA_6Pz.js";import"./analytics-uGzTqGx1.js";import"./lexical-zfv1-tRH.js";import"./utils-yWIuTv4c.js";import"./VideoPlayer-VAzOGCDL-Dcpb5Ypp.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="27cd28fa-8401-4f23-8ff0-db54b7f30344",i._sentryDebugIdIdentifier="sentry-dbid-27cd28fa-8401-4f23-8ff0-db54b7f30344")}catch{}})();const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -58,9 +58,9 @@ import{ay as ne,g as S,e as k,aS as le,V as e,ac as a,fH as ae,bE as de,a as u,a
|
|
|
58
58
|
align-items: center;
|
|
59
59
|
text-align: start;
|
|
60
60
|
box-sizing: border-box;
|
|
61
|
-
`,
|
|
61
|
+
`,f=r(ge)`
|
|
62
62
|
color: ${i=>i.theme.colors.champion};
|
|
63
|
-
`,
|
|
63
|
+
`,b=r(ue)`
|
|
64
64
|
color: ${i=>i.theme.colors.champion};
|
|
65
65
|
`,y=r(V)`
|
|
66
66
|
color: ${i=>i.theme.colors.champion};
|
|
@@ -81,4 +81,4 @@ import{ay as ne,g as S,e as k,aS as le,V as e,ac as a,fH as ae,bE as de,a as u,a
|
|
|
81
81
|
margin: ${s.sp3} auto;
|
|
82
82
|
max-width: 772px;
|
|
83
83
|
color: ${i=>i.theme.colors.hero};
|
|
84
|
-
`,t=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsx(N,{windowSize:o,children:e.jsx(G,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(F,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsxs(F,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(
|
|
84
|
+
`,t=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsx(N,{windowSize:o,children:e.jsx(G,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(F,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsxs(F,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.simplestText.bold}),e.jsx(f,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.aiPoweredText.bold}),e.jsx(f,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.multiLevelApprovalText.bold}),e.jsx(f,{children:t.multiLevelApprovalText.regular})]})]})]}),e.jsx(N,{windowSize:o,children:e.jsx(G,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:O,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},Fe=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:Q,analytics:x,onSetupButtonClick:q,onCreateNewRemiButtonClick:K,onBackClick:X,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[te,R]=j.useState(!1),se=S(),l=k(),{remiTermsDetails:h}=i,U=le(h?.fetchStatus.fetchState),re=je(P.loggedInUserRoleMap),w=fe(P.loggedInUserRoleMap)&&!re,oe=!!o?.isReimbursementTOSAccepted,I=!!i.companyRemiInfo?.isReimbursementEnabled,A=w?I?t.employeeAcceptPromoText:t.employeePendingPromoText:t.promoText;j.useEffect(()=>{U==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[U,C,h?.fetchStatus]);const B=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(be,{onCancelClick:()=>{ie(!1)},videoUrl:Q,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:t.title,backgroundColor:se.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:A}):e.jsx(ke,{children:A}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:I&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.createTerms1,e.jsx(d,{href:t.terms.tosUrl,linkText:t.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),t.terms.terms2,e.jsx(d,{href:t.terms.privacyPolicyUrl,linkText:t.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),t.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:q,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,t.terms.terms3]})]})})]})]})};export{Fe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ee,e as Ve,aS as N,aa as qe,cQ as Ge,O as Ie,aX as Ce,V as t,fr as Je,d as J,x as s,bE as Ze,L as Qe,ae as Xe,fI as ve,e1 as Ye,fJ as Ke,by as et,dS as tt,aT as it,o as a,fL as nt,u as n,cq as ot,cU as at,eJ as lt,fU as ke,fV as $e,gu as st,a as rt,ac as Pe,N as Ae,bO as ct,ak as dt,bv as ut}from"./index-
|
|
1
|
+
import{g as Ee,e as Ve,aS as N,aa as qe,cQ as Ge,O as Ie,aX as Ce,V as t,fr as Je,d as J,x as s,bE as Ze,L as Qe,ae as Xe,fI as ve,e1 as Ye,fJ as Ke,by as et,dS as tt,aT as it,o as a,fL as nt,u as n,cq as ot,cU as at,eJ as lt,fU as ke,fV as $e,gu as st,a as rt,ac as Pe,N as Ae,bO as ct,ak as dt,bv as ut}from"./index-CUxbisrq.js";import{a as o}from"./sentry-tsfGilE0.js";import{n as i}from"./mui-CW7vGIKQ.js";import{bJ as mt}from"./zeni-epic-state-DGV_6n4t.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Wl4Spdpn-D59nwhG6.js";import"./liveblocks-DTtNefcp.js";import"./core-gc5ND_yy.js";import"./recharts-CUzMVol9.js";import"./lottie-BctA_6Pz.js";import"./analytics-uGzTqGx1.js";import"./lexical-zfv1-tRH.js";import"./utils-yWIuTv4c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="23347f5b-3129-4fc8-b1dc-ea376bc6b27a",e._sentryDebugIdIdentifier="sentry-dbid-23347f5b-3129-4fc8-b1dc-ea376bc6b27a")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:Q},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:U,mileageStatus:w}=p,F=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:K}=Ie.getLocalizedStrings(),{reimbursement:ee}=K,[S,V]=o.useState(F),[te,W]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=Y,ne=S===!1||U.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:I=>I!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Tt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&F&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:U.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:I=>{I.stopPropagation(),V(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(It,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -9,9 +9,9 @@ import{g as Ee,e as Ve,aS as N,aa as qe,cQ as Ge,O as Ie,aX as Ce,V as t,fr as J
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
justify-content: flex-start;
|
|
12
|
-
`,wt=i.div`
|
|
13
|
-
display: flex;
|
|
14
12
|
`,bt=i.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
`,wt=i.div`
|
|
15
15
|
${e=>`${ge.title.style(e.windowSize)}`};
|
|
16
16
|
color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
|
|
17
17
|
`,St=i(dt)`
|
|
@@ -103,7 +103,7 @@ import{g as Ee,e as Ve,aS as N,aa as qe,cQ as Ge,O as Ie,aX as Ce,V as t,fr as J
|
|
|
103
103
|
&:hover {
|
|
104
104
|
color: ${e=>e.theme.colors.primary};
|
|
105
105
|
}
|
|
106
|
-
`,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Yt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Q,onBusinessVerificationSectionClick:X,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:U,updateMileageDetails:
|
|
106
|
+
`,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Yt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Q,onBusinessVerificationSectionClick:X,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:U,updateMileageDetails:w,onUpdateAccountClick:F,onUpdatePrimaryFundingAccount:Y,onUpdatePaymentAccountStatus:K,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:I})=>{const H=Ee(),u=Ve(),[O,T]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Te,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:he,mileageRateConfig:Me,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:B,approvalRulesStatus:Ue}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),be=N(se.fetchState),we=N(re.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!O&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&T(!0),O&&_==="In-Progress"&&v==="Completed"&&T(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||be==="In-Progress"&&se.fetchState==="Completed"||we==="In-Progress"&&re.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,be,se.fetchState,we,re.fetchState]);const Fe=z.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),We=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const b=fe.find(me=>me.id===m.fundingAccount.selectedOption);b!=null&&Y(m.fundingAccount.selectedOption,b.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.zeniAccountId!=m.account.selectedOption){const b=m.account.allOptions.find(me=>me.value===m.account.selectedOption);b!=null&&typeof b.label=="string"&&l.trackConnectBankLink(b.value,b.label,"reimbursement"),F(m.account.selectedOption,C.id,C.accType)}}else if(A.includes(G)){const b=R[G];w(b)}};o.useEffect(()=>{const A=z.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>We(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&V()},[V,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:He}=Ie.getLocalizedStrings(),{reimbursement:Oe}=He,{reimbursementSetup:M}=Oe,{setUp:k}=Se,ce=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Be=ce?Se.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new Ce(H.colors.brandColorJadeLight):new Ce(H.colors.brandColorJadeDark),Ne=()=>{!O&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?T(!0):X?.()};return t.jsxs(zt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:O,onClose:()=>T(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:d,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>T(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Q,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Be}),_e?t.jsx(Ut,{children:t.jsx(Qe,{size:"ExtraLarge",start:!0})}):t.jsx(Xe,{...z,children:t.jsx("form",{id:De(je),onSubmit:Fe,children:t.jsxs(Ft,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ye,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Ke,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:K,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:U,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:I,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:B.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:B.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:B.length>0?Ue:void 0})]})})})]}),ce&&!de&&B.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Te.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
min-height: 100%;
|
|
109
109
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ay as M,g6 as z,V as _,cy as W,cz as H,cA as J,kq as K,a_ as X,O as G}from"./index-
|
|
1
|
+
import{ay as M,g6 as z,V as _,cy as W,cz as H,cA as J,kq as K,a_ as X,O as G}from"./index-CUxbisrq.js";import{a as f}from"./sentry-tsfGilE0.js";import{Ha as Q}from"./zeni-epic-state-DGV_6n4t.js";import{u as Y}from"./ReviewOverlay-CxwoiOLC-Bnq-l2FH.js";import"./liveblocks-DTtNefcp.js";import"./core-gc5ND_yy.js";import"./recharts-CUzMVol9.js";import"./mui-CW7vGIKQ.js";import"./lottie-BctA_6Pz.js";import"./analytics-uGzTqGx1.js";import"./lexical-zfv1-tRH.js";import"./utils-yWIuTv4c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="fc0295de-4613-4399-bb55-04642ce1ee62",e._sentryDebugIdIdentifier="sentry-dbid-fc0295de-4613-4399-bb55-04642ce1ee62")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=G.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:d,onCloseReviewItem:u,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:p,bulkOperationTypeSelected:r,currentTab:b,currentSubTab:y}=e,g=!1,T=M(),l=z(T),[v,m]=f.useState(!1),[h,A]=f.useState(j(e,g,o,l)),[w,D]=f.useState(g),[P,te]=f.useState(0),[S,$]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(P===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(j(e,!1,o,l)),()=>{clearInterval(R)}),[h.length,P,w,e.fetchState,g,e,o,l]);const E=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,F=()=>{const{title:c,description:k}=Z(x);$({type:"reject",title:c,description:k,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,b,y),m(!0)},L={onOkClick:c=>{m(!1);const k=e.remisForReview.map(I=>I.reimbursement);s.trackReimbursementBulkPopupConfirm(r,b,y,Q(k.map(I=>I?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{m(!1)}},{title:O,description:U}=ee(i,x,E,w),C=e.fetchState==="Completed"&&x===0,N=()=>{s.trackReimbursementBulkSubmit(r,b,y),d(r)},V=()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&p==="In-Progress",isLoading:p==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:N,style:r==="send_for_approval"?{minWidth:"92px"}:{}}},q={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&p==="In-Progress",isLoading:r==="reject"&&p==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:F,style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(J,{children:S.title}),descriptionComponent:_.jsx(H,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:L,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Y,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:u,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:V(),cancelButton:q,hideCancel:C}})]})},j=(e,o,s,d)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=K(s,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:X("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:t.reviewStatus??""}}})},Z=e=>{const{this_:o,these:s,report:d,reports:u,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",u)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},ee=(e,o,s,d)=>{const{has:u,have:t,report:i,reports:p,are:r,is:b,do_:y,does:g}=a.texts,T=o>1,l=s>1;let v="",m="";return e==="Completed"&&!d?(v=n.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:n.report).replace("<_has_>",l?t:u),o===0?m=n.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?p:i).replace("<_do_>",l?y:g):m=`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?p:i).replace("<_is_>",T?r:b)}`):(v=n.reviewPage.reportsReviewing.title.replace("__report__",l?p:i),m=n.reviewPage.reportsReviewing.description.replace("__report__",l?p:i)),{title:v,description:m}};export{_e as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as l,V as r,aP as a,b4 as f,O as m,ac as y,aU as h,bG as g,ak as u,o as c,b5 as w}from"./index-
|
|
1
|
+
import{g as l,V as r,aP as a,b4 as f,O as m,ac as y,aU as h,bG as g,ak as u,o as c,b5 as w}from"./index-CUxbisrq.js";import{n as s}from"./mui-CW7vGIKQ.js";import{a as d}from"./sentry-tsfGilE0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9ed483a1-2499-4b50-b63c-0088e23eec04",e._sentryDebugIdIdentifier="sentry-dbid-9ed483a1-2499-4b50-b63c-0088e23eec04")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=s(h)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
3
|
`;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=s(h)`
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as oe,e as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as S,aT as ve,o as r,O as te,cn as ke,co as Ce,cp as je,cq as Ne,cr as Ie,ao as ue,cs as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Te}from"./index-
|
|
1
|
+
import{g as oe,e as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as S,aT as ve,o as r,O as te,cn as ke,co as Ce,cp as je,cq as Ne,cr as Ie,ao as ue,cs as Se,ak as Pe,aG as ee,bG as Oe,u as f,aX as De,an as Fe,av as Te}from"./index-CUxbisrq.js";import{a as u,P as pe}from"./sentry-tsfGilE0.js";import{n as d}from"./mui-CW7vGIKQ.js";import{t as P,n as Ae}from"./CollapsableReportTable-DNfFkAts-DG-tRdjC.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="20eb1af4-c104-41fc-b30f-1fab6251011a",e._sentryDebugIdIdentifier="sentry-dbid-20eb1af4-c104-41fc-b30f-1fab6251011a")}catch{}})();const R=te.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ee=e=>({this_period:{start_date:e.thisPeriod.startDate.format(R),end_date:e.thisPeriod.endDate.format(R)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Le=e=>e!=null?{start_date:e.startDate.format(R),end_date:e.endDate.format(R)}:void 0;function Be(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(R):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Ee(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Le(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed,class_view_layout:e.accountViewMode==="classes"?e.classViewLayout:void 0}}async function uo(e,i,a){const t=te.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Be(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:i,fileType:a.statementFileType});if(h.ok){const y=Ce(h.headers,t.defaultFileName),_=await h.arrayBuffer();je(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const He=d.div`
|
|
2
2
|
padding: 0 ${r.sp3} 0 ${r.sp3};
|
|
3
3
|
border: 1px solid ${e=>e.theme.colors.primary};
|
|
4
4
|
background: ${e=>e.theme.colors.grey5};
|
|
@@ -23,7 +23,7 @@ import{g as oe,e as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as
|
|
|
23
23
|
`,ze=e=>{const{value:i,onClick:a}=e,t=oe();return o.jsxs(He,{onClick:a,children:[o.jsx(Me,{style:{color:t.colors.primary},children:i}),o.jsx(Ve,{})]})},We=pe.memo(ze);function Ge({backgroundColor:e,foregroundColor:i,animated:a,width:t,height:l}){return o.jsxs(Oe,{speed:2,width:t,height:l,viewBox:`0 0 ${t} ${l}`,animate:a!=!1,backgroundColor:e,foregroundColor:i,style:{marginBottom:r.sp2},children:[o.jsx("rect",{x:"45",y:f[3],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:f[8],rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:f[4]}),o.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:f[4]})]})}function fe({nestedClass:e,isLastNode:i,config:a,parentNodeIDs:t}){const l=P("checkbox_and_name_only",[],e.classId[0]),h={children:[],id:l,isLastNode:i,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:a}};return h.children=e.children.map((y,_)=>fe({nestedClass:y,config:a,isLastNode:_===e.children.length-1,parentNodeIDs:[...t,l]})),h}function Re(e,i){const a=e.map((t,l)=>{const h=P("checkbox_and_name_only",[],t.classId[0]),y={children:[],id:h,isLastNode:t.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:t.className,data:t,numOfBalances:0},config:i}},_=t.children.map(O=>fe({nestedClass:O,config:i,isLastNode:l===t.children.length-1,parentNodeIDs:[h]}));return y.children.push(..._),y});return{config:i,headerNodes:[],contentNodes:[...a]}}function Ye(e,i){Object.assign(e.config,i);const a=e.contentNodes;return a.forEach(t=>me(t,i)),{config:i,headerNodes:[],contentNodes:[...a]}}function me(e,i){Object.assign(e.reportElementData.config,i),e.children.forEach(a=>me(a,i))}const ae={contentPaddingLeft:new S(f[3],f[3],f[2]),contentPaddingRight:new S(f[3],f[3],f[2])},qe=d.div`
|
|
24
24
|
height: ${e=>e.height}px;
|
|
25
25
|
width: 100%;
|
|
26
|
-
`,Je=({reportId:e,firstMonthOfFY:i,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:l,showClassAccountNumber:h,scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:D,maxTreeHeightPx:E})=>{const Q=oe(),F=he(),[w,L]=u.useState(void 0),[
|
|
26
|
+
`,Je=({reportId:e,firstMonthOfFY:i,nestedClassHierarchy:a,classesToBeFilteredOut:t,selectedView:l,showClassAccountNumber:h,scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:D,maxTreeHeightPx:E})=>{const Q=oe(),F=he(),[w,L]=u.useState(void 0),[b,B]=u.useState(!1),[H,m]=u.useState({}),[M,T]=u.useState(void 0),[C,V]=u.useState(l),A="none",j=c=>l==="account_group"?!0:t?.length>0?t.find(n=>n[0]===c[0])!=null:!1,$=(c,n)=>{B(!0),m(c),D?.(c,n,l==="account_group"?!0:void 0),Y(c,n)},Y=(c,n)=>{const g=z(c);for(const v of g.children)D?.(v.classId,n),Y(v.classId,n)},z=c=>{let n=a.filter(g=>g.classId[0]===c[c.length-1])[0];for(let g=c.length-2;g>=0;g--)n=n.children.filter(v=>v.classId[0]===c[g])[0];return n},X=c=>{if(c.length>1){const n=z(c.slice(1));let g=!1;for(const v of n.children)if(t.find(W=>W[0]===v.classId[0])===void 0){g=!0;break}g===!0?D?.(n.classId,!0):D?.(n.classId,!1),m(n.classId)}};u.useEffect(()=>{b&&X(H)}),u.useEffect(()=>{const c={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:A,firstMonthOfFY:i,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:j,showClassAccountNumber:h};if(w==null||!ee(M,a)||!ee(C,l)||b===!0){const n=Re(a,c);T(a),L(n),V(l)}else{const n=Ye(w,c);L(n),V(l)}},[a,l,t]);const[q,Z]=u.useState(5),J=c=>{const n=c+f[6];Z(n)},K=E!=null?Math.min(q,E):q;return w!=null?o.jsx(qe,{height:K,children:o.jsx(Ae,{backgroundColor:l==="classes"?new De(Q.colors.background):void 0,rootNodes:w,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:ae.contentPaddingLeft.value(F),right:ae.contentPaddingRight.value(F)},scrollPosition:y,onScroll:_,nodeOpenStatus:O,onNodeCollapseToggled:U,onToggleCheck:$,onReportTableHeightChanged:J})}):null},k={width:new S(350,400,400),height:new S(165,165,165),buttonWidth:new S(62,62),buttonHeight:new S(f[5],f[5]),containerWidth:new S(150,400,400)},ge=353,Ke=d.div`
|
|
27
27
|
position: relative;
|
|
28
28
|
pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
|
|
29
29
|
`,Ue=d.div`
|
|
@@ -148,4 +148,4 @@ import{g as oe,e as he,cl as ye,aa as _e,V as o,aq as we,cm as se,ae as $e,x as
|
|
|
148
148
|
margin-left: ${r.sp5};
|
|
149
149
|
margin-top: -12px;
|
|
150
150
|
color: ${e=>e.theme.colors.hero};
|
|
151
|
-
`,{reportViewSelector:I,common:{footer:le}}=te.getLocalizedStrings(),ce="tableViewSelector",de=e=>`${e}_form`;function po({reportId:e,firstMonthOfFY:i,nodes:a,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:O,isClassViewDisabled:U,downloadPage:D,showAccountGroups:E=!0,onResyncReports:Q,isPageFetchInProgress:F=!1,lastRefreshSuccessTime:w}){const L=oe(),
|
|
151
|
+
`,{reportViewSelector:I,common:{footer:le}}=te.getLocalizedStrings(),ce="tableViewSelector",de=e=>`${e}_form`;function po({reportId:e,firstMonthOfFY:i,nodes:a,classesListFetchState:t,selectedView:l,classesToBeFilteredOut:h,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:O,isClassViewDisabled:U,downloadPage:D,showAccountGroups:E=!0,onResyncReports:Q,isPageFetchInProgress:F=!1,lastRefreshSuccessTime:w}){const L=oe(),b=he(),[B,H]=u.useState(!1),[m,M]=u.useState(l),[T,C]=u.useState({}),V=(s,p)=>(s.forEach(x=>{p.push(x.classId),p=V(x.children,p)}),p),A=V(a,[]),[j,$]=u.useState(m==="classes"?h:A),Y=t!=="Completed"||m==="classes"&&j.length===A.length,z=u.useRef(!1),[X,q]=u.useState(!1),Z=u.useRef(s=>{s&&!z.current&&(z.current=!0,q(!0))});ye({componentName:`reports.${e}`,enabled:X});const J=s=>s==="classes"?I.classes.label:E===!0?I.accountGroups.label:I.accounts.label,K=_e({mode:"all"}),c=K.handleSubmit(()=>{H(!1),m==="classes"?O?.("classes",j):O?.("account_group")}),n=s=>{if(M(s),s==="classes")C({}),$([]);else{$(A);let p={};a.forEach(x=>{const N=P("checkbox_and_name_only",[],x.classId[0]);p=Object.assign({},p,{[N]:!1})}),C(p)}},g=()=>{B===!0&&W(),H(!B);let s={};a.forEach(p=>{const x=P("checkbox_and_name_only",[],p.classId[0]);l==="account_group"||j.find(N=>N[0]===p.classId[0])!==void 0?s=Object.assign({},s,{[x]:!1}):s=Object.assign({},s,{[x]:!0})}),C(s)},v=(s,p,x)=>{if(x===!0&&(M("classes"),$(A)),p===!0){const N=P("checkbox_and_name_only",[],s[0]);T[N]=!0,C(T),$(G=>G.filter(xe=>xe[0]!==s[0]))}else{const N=P("checkbox_and_name_only",[],s[0]);T[N]=!1,j.find(G=>G[0]===s[0])===void 0&&$(G=>[...G,s])}},W=()=>{H(!1),M(l),$(h)},be=()=>{F===!1&&Q?.()};return u.useEffect(()=>{if(t==="Completed"&&m==="account_group"){let s={};a.forEach(p=>{const x=P("checkbox_and_name_only",[],p.classId[0]);s=Object.assign({},s,{[x]:!1})}),C(s)}},[t]),o.jsx(we,{onClickAway:W,children:o.jsxs(Ke,{ref:Z.current,isDisabled:U??!1,children:[D===!0?o.jsx(We,{value:J(l),onClick:()=>{_?.(),g()}}):o.jsxs(Ue,{windowSize:b,children:[o.jsxs(Qe,{onClick:s=>{s.preventDefault(),_?.(),g()},children:[o.jsx(Xe,{className:"dropdownIcon"}),J(l)]}),l==="classes"?o.jsx(to,{onClick:be,children:F?I.generatingReportByClass:o.jsxs(o.Fragment,{children:[w&&`${se(w)}`,o.jsx(ao,{})]})}):null]}),B?o.jsx($e,{...K,children:o.jsx("form",{id:de(ce),onSubmit:c,children:o.jsxs(Ze,{width:k.width.value(b),children:[o.jsx(ne,{checked:m==="account_group",children:o.jsxs(re,{onClick:()=>m!=="account_group"?n("account_group"):null,children:[o.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:s=>n(s.currentTarget.value),checked:m==="account_group",disabled:t!=="Completed"}),o.jsx(ie,{disabled:t!=="Completed",children:E===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),o.jsx(so,{}),o.jsxs(ne,{checked:m==="classes",children:[o.jsxs(re,{onClick:()=>t==="Completed"?n("classes"):null,children:[o.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:s=>t==="Completed"?n(s.currentTarget.value):null,checked:m==="classes",disabled:t!=="Completed"}),o.jsx(ie,{disabled:t!=="Completed",children:I.classes.dropdownLabel})]}),F||t!=="Completed"?null:o.jsx(no,{children:w&&`${se(w)}`}),t==="Completed"?o.jsx(eo,{id:"sectionformcontainer",children:o.jsx(ro,{reportId:e,firstMonthOfFY:i,nestedClassHierarchy:a,classesToBeFilteredOut:j,maxTreeHeightPx:ge,selectedView:m,nodeOpenStatus:T,showClassAccountNumber:y,onToggleCheck:v})}):o.jsx(Ge,{backgroundColor:L.colors.grey3,foregroundColor:L.colors.grey4,width:k.width.value(b),height:k.height.value(b),animated:!0})]}),o.jsx(oo,{children:o.jsx(ve,{formId:de(ce),primaryBtn:{label:le.save,style:{width:k.buttonWidth.valuePx(b),height:k.buttonHeight.valuePx(b)},isLoading:!1,isDisabled:Y,size:"small"},showCancel:!0,cancelBtn:{label:le.cancel,style:{width:k.buttonWidth.valuePx(b),height:k.buttonHeight.valuePx(b)},onClick:W,size:"small",shouldResetOnCancel:!0},style:{padding:r.sp3}})})]})})}):null]})})}const ro=pe.memo(Je,ee);export{po as b,uo as x};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as le,g as ce,ay as Je,bQ as et,bR as tt,bS as st,O as T,V as o,bT as ot,ac as F,bF as nt,bq as at,bE as it,bU as rt,o as _,aV as lt,L as ct,bV as dt,x as U,bW as pt,u as L,aq as me,K as D,bX as ge,bY as ut,ak as de,av as ht,bZ as ft,aG as Te,W as mt,aX as gt,an as Ae,au as bt,bN as _t}from"./index-
|
|
1
|
+
import{e as le,g as ce,ay as Je,bQ as et,bR as tt,bS as st,O as T,V as o,bT as ot,ac as F,bF as nt,bq as at,bE as it,bU as rt,o as _,aV as lt,L as ct,bV as dt,x as U,bW as pt,u as L,aq as me,K as D,bX as ge,bY as ut,ak as de,av as ht,bZ as ft,aG as Te,W as mt,aX as gt,an as Ae,au as bt,bN as _t}from"./index-CUxbisrq.js";import{a as C,P as Be}from"./sentry-tsfGilE0.js";import{n as h}from"./mui-CW7vGIKQ.js";import{a as yt}from"./liveblocks-DTtNefcp.js";import{bg as be,FD as xt,FM as wt,FN as St,FO as X,FP as Ct,FQ as Rt,FR as Ot,FS as vt,FT as Tt,FU as pe,FV as ue,FW as ke}from"./zeni-epic-state-DGV_6n4t.js";import{j as At,z as he}from"./mapTimeframeBalancesToTreeNode-Bre8FfBF-DhXKj6L8.js";import{m as K,l as ae}from"./analyticsHelper-CAYdbjhS-CbXlhF0X.js";import{b as Bt}from"./ReportTableViewSelector-Bc1K7mU_-NN_XQWpz.js";import{S as J,y as kt,M as $t,$ as Lt,v as Nt}from"./TimeRangeSwitcher-D00bDDhP-Crh2YYPY.js";import{X as jt}from"./TimeframeSwitcherWithToggle-DyggDIQj-DaQpWxtk.js";import{DownloadOverlayButton as Mt}from"./DownloadOverlay-D_lL1sPW-k0Gho_wZ.js";import{Z as It,n as Ft,t as V,j as $e}from"./CollapsableReportTable-DNfFkAts-DG-tRdjC.js";import{D as Le,T as Ne,C as ee,L as Pt,g as je}from"./mapSectionWithAcOnlyToTreeNode-Cgyt68f3-CwLJBfzm.js";import{d as Vt,l as Et}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-eZfXMDx3.js";import{d as Dt}from"./mapLoadingInProgressToTreeNode-jcHEi-mv-CuAQ3LfH.js";import"./core-gc5ND_yy.js";import"./lottie-BctA_6Pz.js";import"./recharts-CUzMVol9.js";import"./analytics-uGzTqGx1.js";import"./lexical-zfv1-tRH.js";import"./utils-yWIuTv4c.js";import"./TimeframeSwitcher-DA99HdHt-Du77XkCa.js";import"./page-detail-CWX5S47F-CURtp-Kt.js";import"./AccountRow-D1cjRJJD--C24H47s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a6d5b7f3-6227-426c-b190-a9b99623df08",e._sentryDebugIdIdentifier="sentry-dbid-a6d5b7f3-6227-426c-b190-a9b99623df08")}catch{}})();const zt=h.div`
|
|
2
2
|
position: relative;
|
|
3
3
|
width: 100%;
|
|
4
4
|
`,Ut=h.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as A,V as a,O as D,e as de,b5 as Q,u as I,w as M,a_ as J,o as m,ac as Ae,d as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-
|
|
1
|
+
import{g as A,V as a,O as D,e as de,b5 as Q,u as I,w as M,a_ as J,o as m,ac as Ae,d as g,aG as Ve,x as xe,bO as ge,an as R,bP as V,bc as F}from"./index-CUxbisrq.js";import{a as P,P as ee}from"./sentry-tsfGilE0.js";import{n as x}from"./mui-CW7vGIKQ.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-CD3vrBsI-CvXENNfl.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-aLNB35t7-SXHRhJKA.js";import{V as Z}from"./toChartData-DUL6vnzJ-BytIs-si.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-CUzMVol9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="72f1a44e-8da4-47b0-a71f-2668863e6485",e._sentryDebugIdIdentifier="sentry-dbid-72f1a44e-8da4-47b0-a71f-2668863e6485")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,He=x.div`
|
|
4
4
|
margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Tt,ay as Ct,x as u,fk as Dt,fl as It,fm as kt,V as t,fn as Pt,fo as le,fp as Mt,fq as At,fr as Bt,fs as Ft,aQ as M,ft as Lt,ac as v,fu as Rt,fv as Be,fw as Fe,fx as Le,w as U,dN as O,d as j,fy as zt,fz as E,dT as _,fA as Nt,fB as Ot,c1 as Re,o as n,aT as Et,u as d,O as _t,ai as Wt,cc as Vt,N as Zt,M as Gt,fC as Yt,cq as qt,an as ce,ao as me,fD as Ut,fE as Ht,bk as Kt,n as Xt,bb as Qt,fF as Jt,as as tt,bM as en,ak as nt,bv as tn,fG as nn}from"./index-Ds2gaUw1.js";import{a as V}from"./sentry-BHOVRVah.js";import{n as i}from"./mui-C8jfyxo9.js";import{bo as ze,bm as Ne,bH as I,bX as an,Gr as on,bL as re,bZ as ln}from"./zeni-epic-state-B3bGMbTt.js";import{t as rn,o as sn}from"./LowBalancePopup-CplxkRHP-vRAEVtMs.js";import{S as W}from"./LabeledText-CFJSoGtK-DSMYorGu.js";import"./liveblocks-9DZzD1a4.js";import"./core-D1efGYvA.js";import"./recharts-DR-YjrPp.js";import"./lottie-BjNglYX6.js";import"./analytics-DM0Z2iTh.js";import"./lexical-CozngYnD.js";import"./utils-5CxPeaIu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="8d92410d-f324-45e7-a954-9d709c6ee3b9",e._sentryDebugIdIdentifier="sentry-dbid-8d92410d-f324-45e7-a954-9d709c6ee3b9")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Zt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:_e}=mn,We=({attachment:e})=>{const[y,g]=V.useState(!1),A=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ht,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:Q,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),k=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?kt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=V.useState(!1),[te,be]=V.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(k?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),fe())},[k,J,fe,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&Z?.code?Z:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&Z?.code?Z:N,ie=()=>{pe()},$e=()=>{pe()},G=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ve(h,Y,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Jt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=P?.code??"draft",Ie=N?.code??"",ke=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",Me=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,ke,Pe,Me,Ae):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,ke,Pe,Me,Ae)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=V.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:k?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ie()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(T)??"",paymentType:ve,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ke,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Rt(o);return o!=null?t.jsx(Zn,{children:it.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(Pn,{children:[t.jsxs(Mn,{children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Je,{windowSize:s,children:M("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(o.id,o.billPayInfo.stage.code),children:[t.jsxs(K,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":v("review-detail-info"),onClick:()=>Q(o.id,o.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:M("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},o.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(He,{children:t.jsx(Le,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(H,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!x&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:G.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(G.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ge,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ge,{children:[t.jsx(de,{children:_e.transactionFee}),t.jsx(se,{children:M("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Le,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&k?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ze(!1,C,h,Y,s)}},primaryBtn:{label:Ve(h,Y,e.isBillMarkedForRetry),isLoading:k?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?q(!0):Te()},style:{width:Ze(!0,C,h,Y,s)}},rightSideComponent:C&&!h&&k.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Re,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ve=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,g,A,S)=>g?128:y&&!e&&S==="small"?"auto":A?165:m.footerButtonWidth.value(S),pn=i(en)`
|
|
1
|
+
import{e as Tt,ay as Ct,x as u,fk as Dt,fl as It,fm as kt,V as t,fn as Pt,fo as le,fp as Mt,fq as At,fr as Bt,fs as Ft,aQ as M,ft as Lt,ac as v,fu as Rt,fv as Be,fw as Fe,fx as Le,w as U,dN as O,d as j,fy as zt,fz as E,dT as _,fA as Nt,fB as Ot,c1 as Re,o as n,aT as Et,u as d,O as _t,ai as Wt,cc as Vt,N as Zt,M as Gt,fC as Yt,cq as qt,an as ce,ao as me,fD as Ut,fE as Ht,bk as Kt,n as Xt,bb as Qt,fF as Jt,as as tt,bM as en,ak as nt,bv as tn,fG as nn}from"./index-CUxbisrq.js";import{a as V}from"./sentry-tsfGilE0.js";import{n as i}from"./mui-CW7vGIKQ.js";import{bo as ze,bm as Ne,bH as I,bX as an,Gr as on,bL as re,bZ as ln}from"./zeni-epic-state-DGV_6n4t.js";import{t as rn,o as sn}from"./LowBalancePopup-1727S1ri-BotZCdZD.js";import{S as W}from"./LabeledText-C8Y7EOsX-YfcyRj6r.js";import"./liveblocks-DTtNefcp.js";import"./core-gc5ND_yy.js";import"./recharts-CUzMVol9.js";import"./lottie-BctA_6Pz.js";import"./analytics-uGzTqGx1.js";import"./lexical-zfv1-tRH.js";import"./utils-yWIuTv4c.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="0af5e1fd-4b1e-4b06-b840-72cf5f139005",e._sentryDebugIdIdentifier="sentry-dbid-0af5e1fd-4b1e-4b06-b840-72cf5f139005")}catch{}})();const it=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Zt("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:cn,strings:{empty:f}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:_e}=mn,We=({attachment:e})=>{const[y,g]=V.useState(!1),A=()=>{g(!1)},S=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>S===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Ht,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:A,isInternationalPaymentShaVsOurEnabled:S,isLocalCurrencyEnabled:at,style:ot,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:st,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:he,redirectToBillsScreen:fe,onAttachmentClick:Q,retryPayment:ct})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=g&&b!=null,L=`dashboard_${c.currentTenant?.companyId}`,R=m.largeLabelWidth.value(s),k=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,l=Dt(S,at,e.billPayConfigList.filter(o=>o.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),T=Oe.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:l?.method.includes("international")===!0?It(ge,l):e.recipientTotalAmount.amount+(l?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:l?.method.includes("international")===!0?kt(ge,l):l?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,xe]=V.useState(!1),[te,be]=V.useState(!1),we=()=>xe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),xe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Rn,{size:s,children:t.jsx(Ln,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);V.useEffect(()=>{(k?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),fe())},[k,J,fe,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,Z=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&Z?.code?Z:N,ht=e.billPayInfo?.isRefundInitiated===!0?yt:N?.code=="approved"&&Z?.code?Z:N,ie=()=>{pe()},$e=()=>{pe()},G=e.paymentDetailsSection?.paymentDate,ae=le(l?.method??""),ve=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:ve,onClick:pt}):a.addedByZeni,Y=y.allApprovalRules.length>0,gt=ze(l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?p.amount-z.amount:p.amount,l?.fee.currencyCode??Ne.currencyCode,l?.fee.currencySymbol??Ne.currencySymbol),x=an(e.paymentDetailsSection?.paymentType?.method),xt=o=>{w.trackBillPayMarkAsPaidSubmit(o.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,o)},je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},bt=()=>{dt(),be(!1)},C=x,h=C&&!rt,Se=Ve(h,Y,e.isBillMarkedForRetry),wt=()=>x?h?void 0:a.paymentOutsideZeni.reviewInfo:l?.method!=null&&l.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&S&&ee===$.currencyCode?Jt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,oe=st&&e.paymentDetailsSection!=null?At(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const o=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),l?.method!=null&&o!=null){const St=x?a.paymentOutsideZeni.offline:le(l.method);if(w.trackBillPaySendForApproval(St,o.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(D?.startDate?.toString()??"").format(T),endDate:re(D?.endDate?.toString()??"").format(T),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),oe!=null){const De=P?.code??"draft",Ie=N?.code??"",ke=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",Me=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===a.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,ke,Pe,Me,Ae):Se===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,ke,Pe,Me,Ae)}}},Te=()=>{Ce===!0&&q(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ye(!1,{}))},vt=on(p.amount,y.allApprovalRules,c.loggedInUser),[Ce,q]=V.useState(!1);return t.jsxs($n,{children:[te?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:k?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Ce?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Te,onCancelClick:()=>{q(!1),ie()},onClickAway:()=>{q(!1)}}):null,t.jsx(Bt,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Lt(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:G?.format(T)??"",paymentType:ve,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(vn,{windowSize:s,style:ot,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ke,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(Ke,{onClick:$e})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(Yn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>Q(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Vn,{children:[t.jsx(Gn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(o=>{const r=Rt(o);return o!=null?t.jsx(Zn,{children:it.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(Pn,{children:[t.jsxs(Mn,{children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[o.documentId!=null?a.invoiceNo:null,o.documentId]})})]}),t.jsx(Je,{windowSize:s,children:M("0,0[.]00",o.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":v("review-detail-mobile-info"),onClick:()=>Q(o.id,o.billPayInfo.stage.code),children:[t.jsxs(K,{children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[o.attachments&&o.attachments.length>0?t.jsx(We,{attachment:o.attachments[0]}):t.jsx(Xe,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":v("review-detail-info"),onClick:()=>Q(o.id,o.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[o.documentId!=null?a.invoiceNo:null," ",o.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[o.dueDate!=null?a.due:null," ",o.dueDate?.format(T)]}),t.jsx(Je,{style:{width:"25%"},windowSize:s,children:M("0,0[.]00",o.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(X,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},o.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ue,{children:a.pay}),t.jsx(He,{children:t.jsx(Le,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:a.to}),t.jsx(He,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[x?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(W,{label:{label:a.withdrawFrom,width:R},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,s):f,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},additionalInfoLabel:oe})}),t.jsx(H,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(W,{label:{label:a.paymentMethod,width:R},style:{width:"auto"},value:le(l?.method??""),additionalInfoLabel:wt()})}),t.jsx(H,{}),!x&&G!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(W,{label:{label:a.paymentDate,width:R},style:{width:"auto"},value:G.format(T),additionalInfoLabel:`${a.estimatedArrival}${re(ln(G.toDate(),[0,6],l?.maxPeriod.value??0).toDateString()).format(T)} - (${ae.length>0?`${ae} `:""}${a.deliveryTimeLabel} = ${l?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(H,{})]}):null,x?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(W,{label:{label:a.paymentTo,width:R},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),x||lt?t.jsxs(t.Fragment,{children:[t.jsx(H,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:L,companyId:c.currentTenant?.companyId??f,companyName:c.currentTenant?.companyName??f,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(W,{label:{label:a.paymentType,width:R},style:{width:"auto"},value:Ot(e.isRecurring,x,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(s,e.isRecurring,x,e.recurringConfig)})})]}):null]}),!x&&l?.method!=null&&(l.method.includes(I)||l?.fee.amount!=null&&l.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ge,{children:[t.jsx(de,{children:l.method.includes(I)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ge,{children:[t.jsx(de,{children:_e.transactionFee}),t.jsx(se,{children:M("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Ee.total}),t.jsx(se,{children:M("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Le,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:C&&!h?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:C&&!h?je:ie,isLoading:C&&!h&&te&&k?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ze(!1,C,h,Y,s)}},primaryBtn:{label:Ve(h,Y,e.isBillMarkedForRetry),isLoading:k?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{vt&&oe!=null?q(!0):Te()},style:{width:Ze(!0,C,h,Y,s)}},rightSideComponent:C&&!h&&k.fetchState!=="In-Progress"?t.jsx(qn,{windowSize:s,children:t.jsx(Re,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Hn,{onClick:ie,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(zn,{children:[a.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ve=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,Ze=(e,y,g,A,S)=>g?128:y&&!e&&S==="small"?"auto":A?165:m.footerButtonWidth.value(S),pn=i(en)`
|
|
2
2
|
width: ${n.sp3};
|
|
3
3
|
height: ${n.sp3};
|
|
4
4
|
color: ${e=>e.theme.colors.hero};
|
package/dist/assets/{ReviewOverlay-Dhb-kL6G-CP4sshQs.js → ReviewOverlay-CxwoiOLC-Bnq-l2FH.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as M,V as i,ac as m,o as r,aT as P,x as d,b as B,N as C,M as I,d as s,an as j,cL as W,L as D,ak as b,bj as R,u as n,eA as G,y as _,jc as A,kp as F}from"./index-
|
|
1
|
+
import{e as M,V as i,ac as m,o as r,aT as P,x as d,b as B,N as C,M as I,d as s,an as j,cL as W,L as D,ak as b,bj as R,u as n,eA as G,y as _,jc as A,kp as F}from"./index-CUxbisrq.js";import{n as t}from"./mui-CW7vGIKQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="7c047d86-67d8-49e1-9a33-630ac3dc5eeb",e._sentryDebugIdIdentifier="sentry-dbid-7c047d86-67d8-49e1-9a33-630ac3dc5eeb")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},N={title:new C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:L})=>{const a=M();return i.jsxs(H,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:a,children:[i.jsxs(O,{windowSize:a,children:[i.jsx(q,{children:i.jsx(K,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>L(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:V(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(P,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},V=e=>e.reviewStatus.isLoading?i.jsx(D,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),H=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
background-color: ${e=>e.theme.colors.grey4};
|
package/dist/assets/{RoleWithToolTip-BfM8Ltz4-B2dEkSuJ.js → RoleWithToolTip-Ct3_VuDM-_iITsTgs.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f3 as f,f4 as h,V as s,c1 as g,o as d,ac as n,O as x,ap as y,ak as c}from"./index-
|
|
1
|
+
import{f3 as f,f4 as h,V as s,c1 as g,o as d,ac as n,O as x,ap as y,ak as c}from"./index-CUxbisrq.js";import{n as l}from"./mui-CW7vGIKQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="293687a6-b742-4c04-a2ce-fb66df02a384",e._sentryDebugIdIdentifier="sentry-dbid-293687a6-b742-4c04-a2ce-fb66df02a384")}catch{}})();const{hyphen:a}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-width: 192px;
|
|
4
4
|
justify-content: space-between;
|