@zeniai/web-cockpit-ui 1.14.33-qa → 1.14.34-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-BeF1WMnC-BWTFW_6p.js → ACHDetailsPage-MP6kdpXK-Cin5vYxN.js} +1 -1
- package/dist/assets/{AIPerformancePage-CxD_UAbI-fpnYflEr.js → AIPerformancePage-BhOaFmfv-DCRtVIyb.js} +26 -26
- package/dist/assets/{AccountInfoPage-DcY-ZzlZ-FJ-oHq0G.js → AccountInfoPage-D9Ft_CT9-CUD4qbPd.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CaoKCM-U-OO81J74X.js → AccountInfoPageContent-DvWx52e0-D9gXo091.js} +30 -30
- package/dist/assets/{AccountLockedInfoModal-CJmhyeRY--53RI3ma.js → AccountLockedInfoModal-B1_3C1ER-DGCTA7OW.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-sSMPfl5H-Cm3BYdgG.js → AccountReconDetailsDrawerPage-D9e7qhm0-B1t_x7P2.js} +13 -13
- package/dist/assets/{AccountRow-Buzf5t6f-etnrcHrJ.js → AccountRow-CiIWoLq3-F6m6e5Xn.js} +14 -14
- package/dist/assets/{AccountsPromoCardStack-Dlcbuic0-DRWRcJqq.js → AccountsPromoCardStack-CC72plKm-DV-DNWnY.js} +30 -30
- package/dist/assets/{AddAddressForCardDrawer-BLTkxUcq-B7vSwKJ4.js → AddAddressForCardDrawer-CIj76DoU-BugVt0Ax.js} +1 -1
- package/dist/assets/{AddToWalletPage-B5LKICXr-DfBDWY3N.js → AddToWalletPage-B3vdkyWl-C3sTnRDu.js} +17 -17
- package/dist/assets/{AgingReportsPage-_hwnvPm7-D_aTfDR9.js → AgingReportsPage-CbkMxxO_-bDdYzvvz.js} +15 -15
- package/dist/assets/{AllUserItems-DohW-333-CUu4xgSa.js → AllUserItems-DJo9kLSI-aOrBm21L.js} +11 -11
- package/dist/assets/{ApAgingDetailPage-CfzCrv7O-RqAF3Vu6.js → ApAgingDetailPage-DcAh6DLg-YRnOeaE1.js} +3 -3
- package/dist/assets/{AppBasePage-Nz4YL7cO-BsmPZ1Al.js → AppBasePage-DztnPkfs-_Sh0VXAS.js} +16 -16
- package/dist/assets/{AppDrawerContent-DipGyZ1n-CCl34G60.js → AppDrawerContent-DDmKn21i-C68rKgNZ.js} +8 -8
- package/dist/assets/{ApprovalRulesSettingsPage-CDJ2Pb6i-CcP0ubc3.js → ApprovalRulesSettingsPage-Di8tAJ8K-CDv_E-0W.js} +1 -1
- package/dist/assets/ArAgingChart-tm5ZiNuY-C229BTlQ.js +24 -0
- package/dist/assets/{ArAgingDetailPage-hLTSTpD2-Dg69wqux.js → ArAgingDetailPage-B3JQ08nH-C3xUIMRe.js} +1 -1
- package/dist/assets/{AttachmentView-BMvudk_o-BvnNjIGX.js → AttachmentView-p8mBqYjm-BaF-qc0k.js} +6 -6
- package/dist/assets/{BankAccountSection-BKK0TqfR-iktNn3d0.js → BankAccountSection-AuQLRvdb-Bwa0DuGQ.js} +6 -6
- package/dist/assets/{BankAccountWarningSection-DvJdsXOf-DX0Kkmja.js → BankAccountWarningSection-HvUMABu0-DrqrNnez.js} +19 -19
- package/dist/assets/{BankConnectionsSettingsPage-jdyMMWYg-7sjYy26b.js → BankConnectionsSettingsPage-D61w90F9-DCAF3Rvl.js} +8 -8
- package/dist/assets/{BillDetailPage-BAc9ZaEX-DiuazQaS.js → BillDetailPage-nqHoph6T-BaIucFqg.js} +7 -7
- package/dist/assets/BillPayApprovalRuleDetailPage-fZnmOmyN-BE94bEje.js +27 -0
- package/dist/assets/{BillPayApprovalRulesPage-ycrs-KJM-CJpx4ouQ.js → BillPayApprovalRulesPage-Bd87v4ca-D8uVymLg.js} +7 -7
- package/dist/assets/{BillPayPromoPage-B3cmYoMb-DSMVy0gV.js → BillPayPromoPage-CNiTD_mM-Dj_ToxT_.js} +6 -6
- package/dist/assets/{BillPaySetUpPage-Fs62VXvw-D8p1-eX3.js → BillPaySetUpPage-BUSwkzqv-0u4Y1nRn.js} +2 -2
- package/dist/assets/{BillingSettingsPage-Dt9jBMTF-C295NK9o.js → BillingSettingsPage-aPRvtlqA-D2cPcuYt.js} +4 -4
- package/dist/assets/{BillsBulkReviewDrawerPage-Qcl9aUuk-_YOWCRG0.js → BillsBulkReviewDrawerPage-BU3VuxEm-ByErXz92.js} +1 -1
- package/dist/assets/{BoxItem-BYcXwroy-DxqwCE3J.js → BoxItem-CZKWkdxd-BeOlY6b0.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-il8wYjJ_-CT3C0oTK.js → BusinessVerificationPage-CeDGi-RH-DBq4N4qO.js} +5 -5
- package/dist/assets/CardNumberSubText-1BRQQyfd-DTVfoanD.js +21 -0
- package/dist/assets/{CashbackDetailPage-Dv5Z7Tvy-Bfso-Y3l.js → CashbackDetailPage-V-W_U5k1-BFabFlQi.js} +17 -17
- package/dist/assets/{ChargeCardDetailPage-CGTduWWN-BkYrdXDY.js → ChargeCardDetailPage-BP-zAMYI-CpMkI6_j.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DNLZxp9I-hEX4MRS2.js → ChargeCardListPage-DORW9YE4-C9A5hHUd.js} +16 -16
- package/dist/assets/{ChargeCardListTable-BnHOs06b-Bept2oom.js → ChargeCardListTable-C32mZrwY-C-_ZN5EL.js} +14 -14
- package/dist/assets/{ChargeCardPromoPage-C9ByS2z5-ZBsmIOzb.js → ChargeCardPromoPage-CE4kH4Js-C0K_9IRw.js} +13 -13
- package/dist/assets/{ChargeCardSetupPage-Baw4VtU6-whYjNQ5s.js → ChargeCardSetupPage-CumpB2GQ-D9_LS2bE.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-D0nZbDIZ-CqoukG-c.js → ChargeCardStatementsPage-DPIAjww0-qtfYIF5i.js} +6 -6
- package/dist/assets/ChargeCardUtils-Wp4Ko18L-zmLd-lJK.js +1 -0
- package/dist/assets/{ChaseOverlay-2qpcZYP8-DZC2amkp.js → ChaseOverlay-BGZfbx0H-Cy6SXtpe.js} +8 -8
- package/dist/assets/CheckDepositDrawerPage-Bl52b4SW-D474gpb4.js +206 -0
- package/dist/assets/{CollapsableReportTable-CPOIqiL0-CeOTbT0I.js → CollapsableReportTable-B0wI9SM1-DLN2kcqg.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-D1BmCIsK-Cg7hHlgd.js → CompanyOfficerDetailsSection-DyOVRvtQ-D3TSBaYy.js} +33 -33
- package/dist/assets/{CompanyPassportCard-B9fOwnpa-DsuUYKGw.js → CompanyPassportCard-C_YUK3R3-Tw3Mhb57.js} +5 -5
- package/dist/assets/{CompanyPassportPage-BzDOHw_n-BFDOwRWJ.js → CompanyPassportPage-QFJ0G7X7-9FRZMTlm.js} +29 -29
- package/dist/assets/{CompleteProfile-BTqueNNu-C0IgFiTo.js → CompleteProfile-DVE16v3y-JdgrMYZk.js} +1 -1
- package/dist/assets/{ConfettiBurst-BlFjJIUj-D3PzCoP-.js → ConfettiBurst-BA8BvtO--ChjQJAxk.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DAGCdI1c-mmdPlAVt.js → CreateOrEditVendorPage-ncBGwfXK-DYgCQOxT.js} +8 -8
- package/dist/assets/{CreditCardPaymentDrawerPage-KsuS7yuN-DA_e7yg1.js → CreditCardPaymentDrawerPage-DqEVQgMx-DmTsuXGo.js} +16 -16
- package/dist/assets/{CreditCardPaymentPlgSection-BfhV7QBL-GxG2RoKF.js → CreditCardPaymentPlgSection-vmErttTD-BxhyQLa5.js} +8 -8
- package/dist/assets/{CurrencySelectField-oVIC5R45-DO0BaMPk.js → CurrencySelectField-BEb19UaA-ayd8ypxk.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-6I-6xoA6-BvOS7YcY.js → CustomerOnboardingActivationPage-L4l1ybmh-CjOAphEc.js} +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-BB4D77z8-22xRu68e.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYXcx90D-Cjqv90OE.js → CustomerOnboardingDetailPageSkeleton-D3Zm658F-BjyCIV27.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-DEUNNIB_-xCnv_1xo.js → CustomerOnboardingNoStepsPage-BXsJFpEX-BO1c66C-.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-kAcxVmRC-Dng6IoBs.js → CustomerOnboardingPage-D3zpI1df-BpsmxlbR.js} +2 -2
- package/dist/assets/{CustomerOnboardingProductSuitePage-BbRqtmnL-BumjYc1t.js → CustomerOnboardingProductSuitePage-DjVZfC2C-rASo3ZM3.js} +1 -1
- package/dist/assets/{Dashboard-usLyPMhz-T83f6_ic.js → Dashboard-wY0FneRs-K0H1LO4c.js} +114 -114
- package/dist/assets/{DashboardReportPage-CoozPVLS-CfCi-7lF.js → DashboardReportPage-CMgr0CSc-CTqQy7Z3.js} +19 -19
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BNQW5HZE-B5t6wuDS.js → DashboardSidebarBackgroundAnimation-B73UBY5T-DxfAcbVQ.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CsLHfDqr-CC_1ybiy.js → DepositAccTransactionItem-DrqBG940-U_s0mHE8.js} +3 -3
- package/dist/assets/DepositAccTransactionListPage-2xDjOUwm-CmHU0p_6.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-CwYc-sKw-XNW-idse.js → DomesticWireDetailsPage-vRHD5DmW-v4Oe5SWK.js} +1 -1
- package/dist/assets/{DownloadOverlay-ttUEv-XY-vEcCF5hB.js → DownloadOverlay-D_UoB4Xy-DPm0LxIQ.js} +1 -1
- package/dist/assets/{DrawerPage-5dnYzzvI-C-zfRz8P.js → DrawerPage-ijHe0bCp-CyRbPalv.js} +5 -5
- package/dist/assets/{EditPeoplePage-DUr2MZOG-CWSHHw-m.js → EditPeoplePage-BehcmP1s-CtCgWObL.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-Byuxh0RG-CIXuQ0er.js → EditReimbursementDetailPage-Cz82Vz26-BkH-yQZq.js} +51 -51
- package/dist/assets/{EntityDetailPage-DBjBJovr-GAvyHnKI.js → EntityDetailPage-CN-ewzjy-D8rWv-Yn.js} +2 -2
- package/dist/assets/{EntitySummarySection-NvNokzqb-atl44xa1.js → EntitySummarySection-B4ozhtlU-BbJmZsFm.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-Cc7NPgFU-DDwBfHGE.js → ExpenseAutomationOverviewPage-BmNuSoUs-B4ZMF43g.js} +12 -12
- package/dist/assets/{ExpenseAutomationPage-zQeR27lq-rCLHkoiU.js → ExpenseAutomationPage-Cz3JsW-E-Cz15ZpzI.js} +30 -30
- package/dist/assets/{ExpressPayPage-P0p3Ao-R-i9gfNImU.js → ExpressPayPage-CgrGtZ4F-BicqIV-J.js} +9 -9
- package/dist/assets/{FeaturePreviewPage-CbR7b5uO-0LIj_UpA.js → FeaturePreviewPage-Dk_c37Rm-CXHB1WFu.js} +2 -2
- package/dist/assets/{FollowStepsSection-9Kfkt8Hp-CoGOQM-s.js → FollowStepsSection-BVi7m38_-C99RMZ_B.js} +22 -22
- package/dist/assets/{GlobalReviewListPage-B3b-DcRO-DmpyBeU0.js → GlobalReviewListPage-DiZGC9B1-DIzsLBmo.js} +14 -14
- package/dist/assets/{HelpButton-3gV_f3S3-BNW7ywMF.js → HelpButton-DiIoYeXn-FbkReN34.js} +4 -4
- package/dist/assets/{InformationCardStack-B67nQ7o3-Cl5LgXZR.js → InformationCardStack-C8-4dhWR-Bdte_JFA.js} +4 -4
- package/dist/assets/{InsightsCardStack-BLuzgFq1-ChqYsKwx.js → InsightsCardStack-BKm0dSeJ-YxbfeRpK.js} +9 -9
- package/dist/assets/{InsightsSection-B95Utg4C-D7fPPHgQ.js → InsightsSection-C9MHOCQd-B3v5Vy0i.js} +4 -4
- package/dist/assets/{IntegrationsSettingsPage-Cj9RN4lm-CSLCHkMN.js → IntegrationsSettingsPage-4qlL5Dsx-NL-7Vuhq.js} +3 -3
- package/dist/assets/{InternationalWireSwiftDetailsPage-CnvGCMx6--PeOQhJI.js → InternationalWireSwiftDetailsPage-DqCtPykV-BUWM-1ua.js} +9 -9
- package/dist/assets/{InternationalWireVerificationPage-BO-9Inma-BWHslahx.js → InternationalWireVerificationPage-Cl-p0inO-BPrmH8Q-.js} +10 -10
- package/dist/assets/{InviteFormPage-BcKX87YR-DV5_crlj.js → InviteFormPage-L6j0rOBW-DZzXMjr6.js} +20 -20
- package/dist/assets/{InvitePageListView-pwXs_uWn-Z97ORdSb.js → InvitePageListView-KYjMIc4q-LkWl7l25.js} +34 -34
- package/dist/assets/{InvitePeoplePage-DyqidszV-nOc3GIdz.js → InvitePeoplePage-CbZqVsTp-CPZYz4n0.js} +4 -4
- package/dist/assets/{InvoiceUploadSection-Bwx4jgsp-D9TPwHrf.js → InvoiceUploadSection-DZC4oscG-DoaD8XBg.js} +6 -6
- package/dist/assets/{IssueChargeCardPage-B4uzwROv-Bk2Fezky.js → IssueChargeCardPage-DMdZCfqA-2_AAwzJw.js} +16 -16
- package/dist/assets/{LabeledAddressValue-_1wNunap-nTViFxi6.js → LabeledAddressValue-CBOrzSsG-zl4Cn7F6.js} +1 -1
- package/dist/assets/LabeledAddressValueField-YuLcra47-D1rCVkct.js +45 -0
- package/dist/assets/{LabeledControlledCheckBoxField-DUmCd9rT-BMEF7Bdb.js → LabeledControlledCheckBoxField-BoXsUqpR-BDprT0oc.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-Ca24Ziei-CBC6Lsco.js → LabeledCreatableSingleSelectField-CQPkrdRe-BP0IH1kb.js} +2 -2
- package/dist/assets/{LabeledDocumentField-DtGNCNrD-BmU3HUR-.js → LabeledDocumentField-DEeeTuVw-DjAbPGjO.js} +3 -3
- package/dist/assets/{LabeledDropDownFormattedTextField-CEhwMb_t-DelBUgv4.js → LabeledDropDownFormattedTextField-DYRkxlY--C9ZM89bQ.js} +1 -1
- package/dist/assets/{LabeledText-DR7J2Gsy-BXmYVhAs.js → LabeledText-DQiR_FIX-Co4J3TbF.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DdWbwo9k-B_izL22O.js → LabeledUserSingleSelectWithSubtitlesField-dgPgTmNg-CjWMU4DS.js} +7 -7
- package/dist/assets/{LabeledZeniRolesDropDownField-CmUbFFow-C71nvk8D.js → LabeledZeniRolesDropDownField-azPB8idg-BmyhVq5l.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-oW3lDkXa-pDAZrnuw.js → LinkJETransactionPage-Ct0HcxvN-C9ALJkXZ.js} +5 -5
- package/dist/assets/{LowBalancePopup-C5KvkK3M-BJ53QfOd.js → LowBalancePopup-Zvy2iURT-BHU6RUxm.js} +4 -4
- package/dist/assets/{MagicLinkACHDetailsPage-BVWg6hrX-Dqp8qscs.js → MagicLinkACHDetailsPage-BY6pEieF-BnE5qaIA.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-S1k7ze9H-BD9CxLYS.js → MagicLinkDomesticWireDetailsPage-BK5RZSiS-DZf3dWg8.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DpzfQbRD-Czk6cq3a.js → MagicLinkInternationalWireDetailsPage-hK5cNiNB-B4J-Gaxj.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-m9Kweywk-BK-TFI1J.js → MagicLinkSuccessPage-Drn_p982-z_mnlocR.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BPRyg1HR-D82FSUKq.js → MagicLinkTitleSection-DRMHVOzF-vSOOyfRm.js} +9 -9
- package/dist/assets/{MailingDetailsSection-BX5rIuJZ-8h9F_QfJ.js → MailingDetailsSection-DgdAYgpS-CzYOsfT_.js} +6 -6
- package/dist/assets/{MeetingCalenderPopup-CCW2D5Ua-AdsUfqxp.js → MeetingCalenderPopup-CAh7iae0-BpiINuek.js} +1 -1
- package/dist/assets/{Menu-CD6YLYW5-xYOZpEb0.js → Menu-bleLgSLu-Ccrr2YDB.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DBU4_Dkv-CJUGJFn3.js → MyBankConnectionsSettingsPage-DRxmQCbq-7MgmeMyL.js} +11 -11
- package/dist/assets/{MyPendingActivationChargeCardListPage-0eqXgmvH-CHdZhWCy.js → MyPendingActivationChargeCardListPage-BYLhb47G-DdwAZhiS.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-D1sATCot-BFxBz8wl.js → MyProfileSettingsPage-eVfCRTfx-BNmP0sTQ.js} +11 -11
- package/dist/assets/{NavBarWithPicker-BcrWHAVt-Bp97Wb_6.js → NavBarWithPicker-BE2MW7hB-DXAufzd3.js} +5 -5
- package/dist/assets/{NavigationArrow-DTaeLGbL-Rg77_mEU.js → NavigationArrow-eEaMttBX-B_OAAp0o.js} +1 -1
- package/dist/assets/{NavigationDots-D5YXMwOb-DwbgBSQV.js → NavigationDots-CNwL0a7I-CifVGTqc.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CN03ui3Y-C7Wnlo8N.js → NewGlobalMerchantPage-CSWqCqAC-CM5vKN1K.js} +9 -9
- package/dist/assets/{NoDataChart-DUJ9H-CB-CJSw-339.js → NoDataChart-DNmdY5gQ-I17nHhNI.js} +3 -3
- package/dist/assets/{NoDataTable-D5EYJl2y-Bt6-luGg.js → NoDataTable-DW2wAX3o-CmvIHNA2.js} +1 -1
- package/dist/assets/{NotFoundPage-C2-zYoie-Dqz-wiMB.js → NotFoundPage-BMJTG-tj-KX8Yl0C8.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-Cb4Zozvx-D0BMc4CK.js → NotificationSettingsPage-Vd3UvdLu-CYwoglab.js} +11 -11
- package/dist/assets/NotificationsListConfig-DbHYPEWZ-CWezw8M_.js +1 -0
- package/dist/assets/{NotificationsPage-AZg3QlbQ-BHdpJes9.js → NotificationsPage-BaekDEw7-DM6qz84i.js} +7 -7
- package/dist/assets/{OpExByVendorPage-BdIQF_eO-omQlG_Ls.js → OpExByVendorPage-DNyTA9nx-AqH3jm4s.js} +6 -6
- package/dist/assets/{OverlayContainerPage-Bmu909Fo-eL-vIEjp.js → OverlayContainerPage-Bmu909Fo-D0brL_nl.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Cmvdl5M2-BhFSUFSZ.js → PandLWithForecastPage-DbP4ybN4-CjX2B57O.js} +6 -6
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B8u08pzI-DmEmzort.js → PaymentAccountSetupBillingAddressSection-Dd4Aen8j-DhFeVMmy.js} +7 -7
- package/dist/assets/{PeoplePage-DUgY9uhQ-Cr96soIc.js → PeoplePage-B3n7ek2h-Bozbjh3K.js} +18 -18
- package/dist/assets/{PortfolioAllocationFormPage-8W6M--6J-DR9Ndj0M.js → PortfolioAllocationFormPage-CzA_c7hR-CWaP7kP_.js} +7 -7
- package/dist/assets/{PortfolioDetails-Cgsx9aCA-DeeNxIS6.js → PortfolioDetails-Drgv4Osg-n5MRYPkF.js} +23 -23
- package/dist/assets/{ProductsCarousel-Bm2Y2y3o-BXHDZ7Bz.js → ProductsCarousel-BnnfJR0o-69mJVwF1.js} +5 -5
- package/dist/assets/{PromoBaseCards-B8vPeDYr-DKbnXhuy.js → PromoBaseCards-BGHJivI8-iKisrOi3.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-i-PJJPa4-B0SC4TfV.js → QBOConnectionDialog-uiW9eeZu-BUSCcjkj.js} +6 -6
- package/dist/assets/{QBOSetupSection-CRrnYKUh-BbRn7wM8.js → QBOSetupSection-DPb0VAii-CawJiqRt.js} +9 -9
- package/dist/assets/ReimbursementApprovalRuleDetailPage-Cvok7KBA-CNtIL-aY.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-Chrc3t9S-DT2ivR9l.js → ReimbursementApprovalRulesPage-C1AFF_DM-JcrRx1zz.js} +32 -32
- package/dist/assets/{ReimbursementDetailPage-DGNdthlv-LfuXXHFQ.js → ReimbursementDetailPage-Du6R1zje-DFFAPJro.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-BvFwudpI-Cv-4tXUE.js → ReimbursementPromoPage-CW9eyjp9-D3Pfks5-.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-Cbax1ApT-E7Ui2lvq.js → ReimbursementSetUpPage-CbPwgIqt-DD9o1r2m.js} +3 -3
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-DmRIywf6-CkqM4nh9.js +1 -0
- package/dist/assets/{ReloadCard-7jt7MZTY-lIyJZnnS.js → ReloadCard-Dvn17Oxl-CBzKop0_.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-BiBxQPuW-CLgWnlTn.js → ReportTableViewSelector-C5_qr5qe-lIXMBIXQ.js} +10 -10
- package/dist/assets/{ReportsPage-DFob2c55-D23AFFaM.js → ReportsPage-BNcymVwf-ClQkz7Qq.js} +9 -9
- package/dist/assets/{RevenueChart-ClhUfdMh-DYskvLwM.js → RevenueChart-DILkui6c-Bn7jhZor.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-FQiCTlke-Q5authsi.js → ReviewDetailsPage-ZYzvK95X-CostS9P2.js} +5 -5
- package/dist/assets/{ReviewOverlay-CfF_qd7Q-qDrq1AtB.js → ReviewOverlay-DhUFI1ES-LUmDitH1.js} +4 -4
- package/dist/assets/{RoleWithToolTip-BF8jX30M-C92wOLzi.js → RoleWithToolTip-_W95JBwt-D4GQ0PLV.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-C_eajy25-B_Z0JCSO.js → ScheduleDetailsFixedAssetsPage-iQXV-V_H-BVQFXrep.js} +4 -4
- package/dist/assets/{ScheduleDetailsPage-CEyK426x-nrWcby4m.js → ScheduleDetailsPage-KgHwQGrw-DNkLJeLN.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-CzCC1xOo-D8B0ej3Q.js → ScheduleSequenceTable-Bixq8Q7W-DZJIVO-x.js} +12 -12
- package/dist/assets/{ScreenRoutes-Dikl0nac.js → ScreenRoutes-Ce8X3bBt.js} +1 -1
- package/dist/assets/SetUpAccountSection-D8FMVhkL-0Pe99EFt.js +378 -0
- package/dist/assets/{SetUpDefaultSection-BbQ_Qx2--C5lXu4vU.js → SetUpDefaultSection-CI0mxu3H-DcvSJDVc.js} +4 -4
- package/dist/assets/{SignIn-DTytMyjr-BxhE66O7.js → SignIn-DslenepV-CPPxlLcj.js} +11 -11
- package/dist/assets/{SignInScreen-DKV5tLc9.js → SignInScreen-B1GYtWiH.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CD0Beu1e-DaoCCXM5.js → SpendManagementListViewPage-D7SzmCmM-BJf-og4i.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-ILwwf3e3-CE45DDqu.js → SpendManagementPerTabPage-DKaDr4mu-DxptYFft.js} +20 -20
- package/dist/assets/{SpendManagementSection-o0Xvlal3-C0zjrllO.js → SpendManagementSection-Ddfq2u6H-DmMZ9eyK.js} +5 -5
- package/dist/assets/{SpendMgmtSetupAccountSection-DkUfJ6ei-oFxBfg7R.js → SpendMgmtSetupAccountSection-CPnNzjr--B78i6hxA.js} +6 -6
- package/dist/assets/StatementItem-B2uPIFUk-BwrPLJ8M.js +31 -0
- package/dist/assets/StatementsPage-o7MvNKvd-C1dFevGn.js +58 -0
- package/dist/assets/{StatusSwitcher-u6thj-sM-8T1PWXo9.js → StatusSwitcher-kWLQCCwS-BcuNtj6J.js} +4 -4
- package/dist/assets/{SubTabSwitcher-B9ILKi1e-DAbNMl3T.js → SubTabSwitcher-BKm9FxhL-euRzTmRU.js} +1 -1
- package/dist/assets/{SummaryCard-Drap3bb1-nVRx_VJE.js → SummaryCard-DBMfNfN2-plAS3Det.js} +1 -1
- package/dist/assets/{TaskManagementPage-DoT0Xz7g-DMFrchv7.js → TaskManagementPage-D_wjK-S2-ckyJVLkK.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DbGrn4DP-BT1wbdLA.js → TimeRangeSwitcher-2vDR_AEV-D-I6mwQS.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-sbgG6A6l-gjTqG61O.js → TimeframeSwitcher-BB3_i5V0-DSWHJLc3.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-arAZfZIA-BY46uNld.js → TimeframeSwitcherWithToggle-CdP0ViK8-CSTf2noq.js} +1 -1
- package/dist/assets/{TopExCard-97hb0R08-DsF24-mR.js → TopExCard-BGgGFzmK-Bh9OLnE6.js} +6 -6
- package/dist/assets/{TopExDetailPage-CoLyDCB7-D8kHhqmk.js → TopExDetailPage-CbzYG54M-DO9gCz75.js} +14 -14
- package/dist/assets/{TransactionDetailPage-q5aE5bnJ-jYWbJJ_Z.js → TransactionDetailPage-C-CfEtCO-BGrY5UL4.js} +36 -36
- package/dist/assets/{TransactionList-C8S87idW-CkmfZ-_y.js → TransactionList-C0xK6_zI-BWkO5U-i.js} +5 -5
- package/dist/assets/{TransactionListBig-B0GroSXv-Bt_lEoX-.js → TransactionListBig-CIX6CdX--LTkFgM7t.js} +13 -13
- package/dist/assets/{TransactionListPage-CP6h2Q1r-CJzCvI7Q.js → TransactionListPage-B7ppBJig-uGcfhXLt.js} +4 -4
- package/dist/assets/{TransactionVendorDetailPage-Cgsraa0T-Bvuj8pKB.js → TransactionVendorDetailPage---HGdQiZ-CZOQ9lvG.js} +5 -5
- package/dist/assets/{TransferDrawerPage-0MWoLTHi-BGT-JW0Z.js → TransferDrawerPage-DerGmul8-62lI-YY8.js} +19 -19
- package/dist/assets/{TreasuryOverviewPage-CaP2pdVj-CEEbDthH.js → TreasuryOverviewPage-DW2gZwip-DVFW4hhW.js} +26 -26
- package/dist/assets/{TreasuryPromoPage-CjCAsIAs-DVDda824.js → TreasuryPromoPage-DzqdEmPJ-CoyHUnTy.js} +13 -13
- package/dist/assets/{TreasurySetupPage-zxxClgmz-B49PuUcQ.js → TreasurySetupPage-Bo0HQeeU-A0y2k-4p.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-BCDakhB_-BFM4MV11.js → TreasuryStatementsPage-DS_VK4WN-DmTwCwC0.js} +3 -3
- package/dist/assets/{TreasuryTaxLetterPage-Bq3Zcz28-CaeCwr68.js → TreasuryTaxLetterPage-DgwqyL6v-B7MPhwnZ.js} +3 -3
- package/dist/assets/{TreasuryTransferOrReviewPage-C8OGAEPm-MHGVeol0.js → TreasuryTransferOrReviewPage-ZrSACgLJ-CShzQj1Z.js} +41 -41
- package/dist/assets/{TrendChart-BVaBWGSG-Bsmd11nW.js → TrendChart-D07k3uRr-DkExi6rv.js} +4 -4
- package/dist/assets/{TrendWithTransactions-wA_XpWa7-CiZEQQ3v.js → TrendWithTransactions-ibwuOssC-C0qp9MFm.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-CZyZ7HgM-Cfcp8jrs.js → UncategorizedAccountsMappingPage-D1m2Ok2e-DbU6jOlH.js} +12 -12
- package/dist/assets/{UnitIntegrationPage-ahzf74jD-BhU3F_FY.js → UnitIntegrationPage-BJxRjjfK-DtvhQiip.js} +2 -2
- package/dist/assets/{UploadAdditionalDocumentOverlay-DT_NocG4-Bq1bl1aO.js → UploadAdditionalDocumentOverlay-DI_GZA8A-DOiCRzdE.js} +2 -2
- package/dist/assets/{Vendor2FAPopup-_SmOnjiJ-Bzcvad4z.js → Vendor2FAPopup-80vvc7gE-CZyjqzsA.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-qP4fOIER-DjK69kdl.js → VendorACHDetailsPage-CQcuiNPr-ZTYmcvJP.js} +1 -1
- package/dist/assets/{VendorDetailPage-BKztI9LK-BWXxargk.js → VendorDetailPage-Dx_yfZDH-Dm378Xm3.js} +8 -8
- package/dist/assets/{VendorDomesticWireDetailsPage-CcIVgYDR-AxQuezcA.js → VendorDomesticWireDetailsPage-DN5x3F_Z-XOWyPxP1.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-j3wx_7VO-DhWyFbHa.js → VendorFiling1099EditablePage-8Jz187lD-0m7mNuWb.js} +10 -10
- package/dist/assets/{VendorFirstReviewPage-Tael17gH-DhgjGUhL.js → VendorFirstReviewPage-CokvYaRq-Cb9NI798.js} +10 -10
- package/dist/assets/{VendorInternationalWireDetailsPage-CQU1yW6x-D9yyy6s6.js → VendorInternationalWireDetailsPage-lo9l2Q88-DFczs5XD.js} +7 -7
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-YdTFG4UK-BmTkjHNI.js → VendorInternationalWireSwiftDetailsPage-CPj3zrDk-DRMFLwZ9.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DA43fzxN-C-aSfcSH.js → VendorsAccountsSection-BqoW4DlP-K9mGVuVh.js} +2 -2
- package/dist/assets/{VerifyDevice-qwJe3UlY-C8JhMBq8.js → VerifyDevice-D8iPRJ3k-Didr6pca.js} +1 -1
- package/dist/assets/{VideoPopup-DjHyf6Dq-Caoe-41_.js → VideoPopup-SdlRHLkM-0X18VPqO.js} +5 -5
- package/dist/assets/{WarningsDrawerPage-B3y_Dk0z-BDJbRvuV.js → WarningsDrawerPage-qYWFsE3s-PgntUxKS.js} +3 -3
- package/dist/assets/{ZeniAccountDetailPage-3Rwc-ka_-CZGU5GGZ.js → ZeniAccountDetailPage-BL2a5Dmz-iag3jdsk.js} +9 -9
- package/dist/assets/{ZeniAccountListViewPage-Dz4Ts37w-C7bBnvjh.js → ZeniAccountListViewPage-CWqzDWcO-BoCUgkRw.js} +14 -14
- package/dist/assets/ZeniAccountNavBarPieces-C0MyICK2-D9pY_iW0.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-BdOMtMQi-eO57NyVA.js → ZeniAccountPromoPage-CBm3w0kN-ZGm0kki_.js} +7 -7
- package/dist/assets/{ZeniAccountSetupPage-BaAbcpDN-Dz74SoJa.js → ZeniAccountSetupPage-C5VzT9lH-CmNUeSAP.js} +3 -3
- package/dist/assets/{ZeniCopyright-CDUB4TcP-GE4oQ9V1.js → ZeniCopyright-BUctH39C-DplfFfSP.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-q37z6XvR-Baob6Y6l.js +63 -0
- package/dist/assets/{analyticsHelper-BvNZGrlc-BJa5RIFt.js → analyticsHelper-B3uAu0es-QTXf1Ev3.js} +1 -1
- package/dist/assets/{analyticsHelper-Dx5oOGyQ.js → analyticsHelper-CXIp8rdA.js} +1 -1
- package/dist/assets/{chartTypes-eIJ-SPRj-DNmHJom3.js → chartTypes-CJmQ6FtI-XyTHIuvE.js} +1 -1
- package/dist/assets/{commonDimensions-BhQMg8M1-BL_2J79f.js → commonDimensions-WRL2ZVK_-BkSU0Zqq.js} +1 -1
- package/dist/assets/{detailCommon--19QlDMD-CzDyWg-5.js → detailCommon-Dfxas1Kf-Cs5j6wK3.js} +6 -6
- package/dist/assets/{downloadPdf-CdQzDva3-8WZMObW_.js → downloadPdf-B1f0mDl2-DR3N1swU.js} +1 -1
- package/dist/assets/{index-tsOp9BQk.js → index-C3eIsUEB.js} +3415 -3415
- package/dist/assets/{mapLoadingInProgressToTreeNode-5V5katgj-CVFQIMUP.js → mapLoadingInProgressToTreeNode-BG784RuM-D-SsN93J.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BJxygmqD-h90lXkUP.js → mapSectionWithAcOnlyToTreeNode-CtIgxsPZ-DFzyPyCl.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-D64394wQ-pSHkWnxf.js → mapSpacerToTreeNode-CcgVbOH5-C822drj0.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-n7enawjr-B0jvlyrF.js → mapTimeframeBalancesToTreeNode-CU583ICK-BsI9dw9j.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DCKSi6a2-DS9WQRVo.js → mapTimeframeBalancesToTreeNode-DTlwFauL-BnT0AYvx.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B_QU_sNV-BAbZgSg9.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B_n9jWVz-CxzLxNpV.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BzuCDtG--VHioxKWJ.js → toCOABalancesWithID-DTfegixr-INQY6aSS.js} +1 -1
- package/dist/assets/{toChartData-CYJPtvhS-C0w2egjH.js → toChartData-CH5DcWUY-CUE_ejao.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BKdnWQWY-D8OCa9aZ.js → treasuryColorHelper-BdPkQoh7-DNZcPnEX.js} +1 -1
- package/dist/assets/{uploadAttachment-joBVPGv5-gtEaySAh.js → uploadAttachment-COwu5Mqo-5xUhTy_F.js} +13 -13
- package/dist/assets/{uploadReceipts-dxsKhm9I-Cn41OXkr.js → uploadReceipts-dxsKhm9I-BfDIlt9K.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ArAgingChart-C2EOYS7A-HVEaEPzA.js +0 -24
- package/dist/assets/BillPayApprovalRuleDetailPage-C8VknJRe-DRpgLYbu.js +0 -27
- package/dist/assets/CardNumberSubText-Cz8Y1Z97-LpaJD4_Y.js +0 -21
- package/dist/assets/ChargeCardUtils-CTnXnilO-DMAAzxCn.js +0 -1
- package/dist/assets/CheckDepositDrawerPage-C78K4Qka-BgHYkZOt.js +0 -206
- package/dist/assets/CustomerOnboardingContainerPage-BXvzWHpN-CpyPZ7nS.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-CgNs2M1G-Jw4rbr_L.js +0 -66
- package/dist/assets/LabeledAddressValueField-CLeHoJsD-lkNMl3uF.js +0 -45
- package/dist/assets/NotificationsListConfig-BjKpPm-b-CViXYy_9.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-DfsK1S1y-wuwm32sm.js +0 -26
- package/dist/assets/ReimbursementsBulkReviewDrawerPage-vhtiYbWq-D8igsH6s.js +0 -1
- package/dist/assets/SetUpAccountSection-nOqMRPh8-DaY9rNyz.js +0 -378
- package/dist/assets/StatementItem-GyeTS2vu-C7aG3yI8.js +0 -31
- package/dist/assets/StatementsPage-DU5Dhq7q-11U-8ioz.js +0 -58
- package/dist/assets/ZeniAccountNavBarPieces-DOWoY-ph-CzwV0Amu.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-BvyfsZDl-BfSyc7LO.js +0 -63
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as
|
|
1
|
+
import{u as M,e as I,B as b,j as t,aX as H,m as E,$ as S,o,C as r,t as L,a0 as z,bV as G,bX as q,bY as U,cx as V,q as l,ao as F,J as P,an as J,g as j,cu as O,aP as X,v as Y}from"./index-C3eIsUEB.js";import{n as i,b as _}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";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)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},Q=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=_.useState(!1),n=I(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return t.jsxs(Z,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(ae,{children:[t.jsxs(B,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),t.jsxs(ee,{children:[t.jsx(k,{}),t.jsx(te,{}),t.jsx(k,{})]}),c.max==null?t.jsx(ce,{}):t.jsx(B,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e?t.jsx(pe,{onClick:$}):null,t.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),t.jsx(oe,{windowSize:n,children:t.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,N)=>t.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(le,{children:a.requireText}):t.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>t.jsxs(R,{children:[t.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),h.actors.map(p=>t.jsxs(R,{children:[t.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?t.jsx(G,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Z=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -14,20 +14,20 @@ import{u as D,e as B,M as b,j as o,aX as H,m as E,_ as S,o as t,C as r,y as L,a0
|
|
|
14
14
|
border-color: ${e=>e.theme.colors.primary};
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,K=i(F)`
|
|
18
18
|
display: flex;
|
|
19
19
|
position: relative;
|
|
20
20
|
align-items: center;
|
|
21
21
|
justify-content: space-between;
|
|
22
22
|
text-align: center;
|
|
23
23
|
width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
|
|
24
|
-
gap: ${
|
|
24
|
+
gap: ${o.sp2};
|
|
25
25
|
`,ee=i.div`
|
|
26
26
|
align-items: center;
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: center;
|
|
29
|
-
`,
|
|
30
|
-
width: ${
|
|
29
|
+
`,te=i.div`
|
|
30
|
+
width: ${o.sp8};
|
|
31
31
|
height: 2px;
|
|
32
32
|
background-color: ${e=>e.theme.colors.primary};
|
|
33
33
|
`,k=i.div`
|
|
@@ -35,7 +35,7 @@ import{u as D,e as B,M as b,j as o,aX as H,m as E,_ as S,o as t,C as r,y as L,a0
|
|
|
35
35
|
height: 6px;
|
|
36
36
|
border-radius: 3px;
|
|
37
37
|
background-color: ${e=>e.theme.colors.primary};
|
|
38
|
-
`,
|
|
38
|
+
`,oe=i.div`
|
|
39
39
|
display: flex;
|
|
40
40
|
flex-direction: column;
|
|
41
41
|
align-items: flex-start;
|
|
@@ -47,8 +47,8 @@ import{u as D,e as B,M as b,j as o,aX as H,m as E,_ as S,o as t,C as r,y as L,a0
|
|
|
47
47
|
|
|
48
48
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
49
49
|
|
|
50
|
-
box-shadow: ${e=>`${
|
|
51
|
-
border-radius: ${
|
|
50
|
+
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
51
|
+
border-radius: ${o.sp2};
|
|
52
52
|
|
|
53
53
|
flex: none;
|
|
54
54
|
order: 1;
|
|
@@ -59,7 +59,7 @@ import{u as D,e as B,M as b,j as o,aX as H,m as E,_ as S,o as t,C as r,y as L,a0
|
|
|
59
59
|
`,ie=i.ul`
|
|
60
60
|
${e=>`${W.stepper.style(e.windowSize)}`};
|
|
61
61
|
position: relative;
|
|
62
|
-
padding-left: ${
|
|
62
|
+
padding-left: ${o.sp6};
|
|
63
63
|
list-style: none;
|
|
64
64
|
box-sizing: initial;
|
|
65
65
|
margin: 0;
|
|
@@ -81,7 +81,7 @@ import{u as D,e as B,M as b,j as o,aX as H,m as E,_ as S,o as t,C as r,y as L,a0
|
|
|
81
81
|
justify-content: flex-start;
|
|
82
82
|
align-items: center;
|
|
83
83
|
padding-left: ${e=>s.stepperItemPaddingLeft.valuePx(e.windowSize)};
|
|
84
|
-
gap: ${
|
|
84
|
+
gap: ${o.sp1};
|
|
85
85
|
|
|
86
86
|
> div:last-of-type > span.operator:last-of-type {
|
|
87
87
|
visibility: hidden;
|
|
@@ -116,7 +116,7 @@ import{u as D,e as B,M as b,j as o,aX as H,m as E,_ as S,o as t,C as r,y as L,a0
|
|
|
116
116
|
width: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
|
|
117
117
|
height: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
|
|
118
118
|
top: ${e=>s.stepperContentTop.valuePx(e.windowSize)};
|
|
119
|
-
left: -${
|
|
119
|
+
left: -${o.sp6};
|
|
120
120
|
${Y.standardMedium.css};
|
|
121
121
|
text-align: center;
|
|
122
122
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -137,46 +137,46 @@ import{u as D,e as B,M as b,j as o,aX as H,m as E,_ as S,o as t,C as r,y as L,a0
|
|
|
137
137
|
`,ae=i.div`
|
|
138
138
|
display: flex;
|
|
139
139
|
align-items: center;
|
|
140
|
-
gap: ${
|
|
140
|
+
gap: ${o.sp2};
|
|
141
141
|
`,ne=i.div`
|
|
142
142
|
display: flex;
|
|
143
|
-
gap: ${
|
|
144
|
-
`,pe=i(
|
|
145
|
-
width: ${
|
|
146
|
-
height: ${
|
|
143
|
+
gap: ${o.sp5};
|
|
144
|
+
`,pe=i(O)`
|
|
145
|
+
width: ${o.sp3};
|
|
146
|
+
height: ${o.sp3};
|
|
147
147
|
cursor: pointer;
|
|
148
148
|
color: ${e=>e.theme.colors.hero};
|
|
149
149
|
&:hover {
|
|
150
150
|
color: ${j.important};
|
|
151
151
|
}
|
|
152
152
|
`,de=i(X)`
|
|
153
|
-
width: ${
|
|
154
|
-
height: ${
|
|
153
|
+
width: ${o.sp3};
|
|
154
|
+
height: ${o.sp3};
|
|
155
155
|
cursor: pointer;
|
|
156
156
|
color: ${e=>e.theme.colors.hero};
|
|
157
157
|
&:hover {
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
159
159
|
}
|
|
160
|
-
`,ce=i(
|
|
161
|
-
width: ${
|
|
162
|
-
height: ${
|
|
160
|
+
`,ce=i(J)`
|
|
161
|
+
width: ${o.sp4};
|
|
162
|
+
height: ${o.sp4};
|
|
163
163
|
color: ${e=>e.theme.colors.hero};
|
|
164
164
|
`,C=i.span`
|
|
165
165
|
color: ${e=>e.theme.colors.hero};
|
|
166
166
|
`,R=i.div`
|
|
167
167
|
display: inherit;
|
|
168
168
|
gap: inherit;
|
|
169
|
-
`,
|
|
169
|
+
`,B=i.span`
|
|
170
170
|
${e=>`${W.amount.style(e.windowSize)}`};
|
|
171
171
|
color: ${e=>e.theme.colors.primary};
|
|
172
172
|
word-break: break-word;
|
|
173
|
-
`,u={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Te=({approvalView:e,onBackClick:f,onEditRuleClick:x,onDeleteRuleClick:v})=>{const y=
|
|
173
|
+
`,u={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Te=({approvalView:e,onBackClick:f,onEditRuleClick:x,onDeleteRuleClick:v})=>{const y=M(),g=I(),{fetchState:d,deleteStatus:n}=e,c=b.getLocalizedStrings().commonSetUp.approval,w=b.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,m=n.fetchState;return t.jsxs(he,{children:[t.jsx(H,{title:c.approvalPageHeader,backgroundColor:y.colors.grey4,style:{zIndex:4},onBackClick:()=>{f()},source:"ReimbursementApprovalRulesPage"}),t.jsxs(me,{children:[t.jsx(we,{windowSize:g,children:w.approvalPageSubTitle}),d==="In-Progress"||d==="Not-Started"||m==="In-Progress"?t.jsx(xe,{children:t.jsx(E,{size:"ExtraLarge",start:!0})}):d==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((a,$)=>t.jsx(Q,{showDeleteBtn:$!==0,approvalRule:a,isLastSection:$===e.allApprovalRules.length-1,onEditRuleClick:x,onDeleteRuleClick:v},a.approvalRuleId)),t.jsxs(ue,{windowSize:g,onClick:()=>{x()},"data-testid":S("add-approval-rule"),children:[t.jsx(ge,{}),t.jsx($e,{children:c.addApprovalText})]})]}):null]})]})},he=i.div`
|
|
174
174
|
display: flex;
|
|
175
175
|
min-height: 100%;
|
|
176
176
|
flex-direction: column;
|
|
177
177
|
width: 100%;
|
|
178
178
|
background-color: ${e=>e.theme.colors.grey4};
|
|
179
|
-
box-shadow: ${e=>`${
|
|
179
|
+
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1}
|
|
180
180
|
${e.theme.colors.dropShadowNormal}`};
|
|
181
181
|
`,me=i.div`
|
|
182
182
|
display: flex;
|
|
@@ -206,19 +206,19 @@ import{u as D,e as B,M as b,j as o,aX as H,m as E,_ as S,o as t,C as r,y as L,a0
|
|
|
206
206
|
flex-direction: row;
|
|
207
207
|
justify-content: center;
|
|
208
208
|
align-items: center;
|
|
209
|
-
padding: ${
|
|
209
|
+
padding: ${o.sp3} ${o.sp4};
|
|
210
210
|
gap: ${e=>u.addApprovalGap.valuePx(e.windowSize)};
|
|
211
211
|
|
|
212
212
|
width: ${e=>u.width.valuePx(e.windowSize)};
|
|
213
|
-
height: ${
|
|
213
|
+
height: ${o.sp8};
|
|
214
214
|
|
|
215
215
|
background: ${e=>e.theme.colors.grey5};
|
|
216
216
|
|
|
217
217
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
218
218
|
|
|
219
|
-
box-shadow: ${e=>`${
|
|
219
|
+
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1}
|
|
220
220
|
${e.theme.colors.dropShadowNormal}`};
|
|
221
|
-
border-radius: ${
|
|
221
|
+
border-radius: ${o.sp2};
|
|
222
222
|
color: ${e=>e.theme.colors.hero};
|
|
223
223
|
box-sizing: border-box;
|
|
224
224
|
&:hover {
|
|
@@ -228,10 +228,10 @@ import{u as D,e as B,M as b,j as o,aX as H,m as E,_ as S,o as t,C as r,y as L,a0
|
|
|
228
228
|
color: ${e=>e.theme.colors.primary};
|
|
229
229
|
border-color: ${e=>e.theme.colors.primary};
|
|
230
230
|
}
|
|
231
|
-
margin-bottom: ${
|
|
232
|
-
`,ge=i(
|
|
233
|
-
width: ${
|
|
234
|
-
height: ${
|
|
231
|
+
margin-bottom: ${o.sp6};
|
|
232
|
+
`,ge=i(V)`
|
|
233
|
+
width: ${o.sp3};
|
|
234
|
+
height: ${o.sp3};
|
|
235
235
|
`,$e=i.div`
|
|
236
236
|
color: ${e=>e.theme.colors.hero};
|
|
237
237
|
`;export{Te as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Y as At,x as Mt,e as Rt,u as Pt,bJ as Bt,C as m,M as Ze,l as ie,fO as Nt,fQ as Lt,fR as Ot,j as t,bV as ze,bX as Ae,bY as Me,_ as y,aX as Re,aK as _t,dt as Wt,fS as Et,g1 as Pe,o as a,fT as Be,cW as b,cY as w,fW as x,a0 as Ne,cV as Le,v as F,fY as Oe,a4 as Ft,q as Kt,fZ as Ut,f_ as ae,aT as Vt,f$ as Yt,a3 as Gt,J as Ht,g as Jt,y as et,ao as tt,f as K,B as Xt,br as qt,w as Qt,gg as Zt,gc as ei,r as c,bO as ti,cs as ii}from"./index-tsOp9BQk.js";import{b as p,n as r}from"./vendor-rkTZJa59.js";import{_ as ai}from"./liveblocks-CP09Cz-7.js";import ri from"./InvoiceUploadSection-Bwx4jgsp-D9TPwHrf.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-BDNqpTKX.js";import"./AttachmentView-BMvudk_o-BvnNjIGX.js";import"./uploadReceipts-dxsKhm9I-Cn41OXkr.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[J,X]=p.useState("approved"),P=p.useRef(null),[j,q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(X("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(X("delete"),Se()):(X("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:z},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Xe,{windowSize:o,children:[t.jsx(qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Xe,{windowSize:o,children:[t.jsx(qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
1
|
+
import{Y as At,x as Mt,e as Rt,u as Pt,bJ as Bt,C as m,B as Ze,l as ie,fO as Nt,fQ as Lt,fR as _t,j as t,bV as ze,bX as Ae,bY as Me,$ as y,aX as Re,aK as Ot,dt as Wt,fS as Et,g1 as Pe,o as a,fT as Be,cW as b,cY as w,fW as x,a0 as Ne,cV as Le,v as F,fY as _e,a4 as Ft,p as Kt,fZ as Ut,f_ as ae,aT as Vt,f$ as Yt,a3 as Gt,J as Ht,y as Jt,t as et,ao as tt,g as K,n as qt,br as Xt,w as Qt,gg as Zt,gc as ei,q as c,bO as ti,cs as ii}from"./index-C3eIsUEB.js";import{b as p,n as r}from"./vendor-rkTZJa59.js";import{_ as ai}from"./liveblocks-CP09Cz-7.js";import ri from"./InvoiceUploadSection-DZC4oscG-DoaD8XBg.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-BDNqpTKX.js";import"./AttachmentView-p8mBqYjm-BaF-qc0k.js";import"./uploadReceipts-dxsKhm9I-BfDIlt9K.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[J,q]=p.useState("approved"),P=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,_=e.remiDetails?.reimbursementInfo.billStatus,O=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:_?.code=="approved"&&O?.code?O:_,$=si(e.remiDetails),A=_?.code=="approved"&&O?.code?O:_,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(_t)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(_i,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(Oe,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:z},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -6,7 +6,7 @@ import{Y as At,x as Mt,e as Rt,u as Pt,bJ as Bt,C as m,M as Ze,l as ie,fO as Nt,
|
|
|
6
6
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
7
7
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
8
8
|
margin-bottom: ${e=>l.activityBottomMargin.valuePx(e.windowSize)};
|
|
9
|
-
`,mi=r(
|
|
9
|
+
`,mi=r(qt)`
|
|
10
10
|
padding: ${a.sp2} ${a.sp0} ${a.sp2} ${a.sp4};
|
|
11
11
|
background-color: ${K.alertLight};
|
|
12
12
|
color: ${K.brandColorGoldDark};
|
|
@@ -15,7 +15,7 @@ import{Y as At,x as Mt,e as Rt,u as Pt,bJ as Bt,C as m,M as Ze,l as ie,fO as Nt,
|
|
|
15
15
|
`,pi=r.span`
|
|
16
16
|
border-bottom: 1px solid currentColor;
|
|
17
17
|
cursor: pointer;
|
|
18
|
-
`,
|
|
18
|
+
`,Oe=r.div`
|
|
19
19
|
display: flex;
|
|
20
20
|
gap: ${a.sp2};
|
|
21
21
|
padding: ${a.sp3};
|
|
@@ -272,7 +272,7 @@ import{Y as At,x as Mt,e as Rt,u as Pt,bJ as Bt,C as m,M as Ze,l as ie,fO as Nt,
|
|
|
272
272
|
flex-direction: column;
|
|
273
273
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
274
274
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
275
|
-
`,
|
|
275
|
+
`,qe=r.div`
|
|
276
276
|
padding: ${a.sp3};
|
|
277
277
|
display: flex;
|
|
278
278
|
align-items: center;
|
|
@@ -283,11 +283,11 @@ import{Y as At,x as Mt,e as Rt,u as Pt,bJ as Bt,C as m,M as Ze,l as ie,fO as Nt,
|
|
|
283
283
|
color: ${e=>e.theme.colors.hero};
|
|
284
284
|
margin-bottom: ${e=>l.totalBottomMargin.valuePx(e.windowSize)};
|
|
285
285
|
justify-content: space-between;
|
|
286
|
-
`,
|
|
286
|
+
`,Xe=r(Xt)`
|
|
287
287
|
display: flex;
|
|
288
288
|
width: 176px;
|
|
289
289
|
color: ${e=>e.theme.colors.primary};
|
|
290
|
-
`,
|
|
290
|
+
`,_i=r.div`
|
|
291
291
|
display: flex;
|
|
292
292
|
flex-direction: column;
|
|
293
293
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -296,7 +296,7 @@ import{Y as At,x as Mt,e as Rt,u as Pt,bJ as Bt,C as m,M as Ze,l as ie,fO as Nt,
|
|
|
296
296
|
width: 100%;
|
|
297
297
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
298
298
|
align-items: ${e=>e.windowSize==="small"?"center":"flex-start"};
|
|
299
|
-
`,
|
|
299
|
+
`,Oi=r.div`
|
|
300
300
|
width: ${e=>l.leftSectionWidth.valuePercentage(e.windowSize)};
|
|
301
301
|
`,Wi=r.div`
|
|
302
302
|
background: ${e=>e.theme.colors.grey3};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Y as le,u as S,e as k,a2 as ae,l as
|
|
1
|
+
import{Y as le,u as S,e as k,a2 as ae,l as L,B as E,j as e,$ as a,aX as me,K as u,c as m,o as t,r as ce,c7 as de,a6 as Z,n as pe,C as xe,g as z,c9 as he,a7 as ue,ap as ge,q as we}from"./index-C3eIsUEB.js";import{b as j,n as r}from"./vendor-rkTZJa59.js";import{x as je}from"./MeetingCalenderPopup-CAh7iae0-BpiINuek.js";import{m as be}from"./VideoPopup-SdlRHLkM-0X18VPqO.js";import{M as v}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",K="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",$e={midContainerMarginBottom:new xe(we[5],44)},fe=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -22,8 +22,8 @@ import{Y as le,u as S,e as k,a2 as ae,l as A,M as E,j as e,_ as a,aX as me,K as
|
|
|
22
22
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
25
|
-
margin-bottom: ${i
|
|
26
|
-
`,ze=r.div``,
|
|
25
|
+
margin-bottom: ${i=>$e.midContainerMarginBottom.valuePx(i.windowSize)};
|
|
26
|
+
`,ze=r.div``,M=r.div`
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
29
29
|
align-items: center;
|
|
@@ -32,7 +32,7 @@ import{Y as le,u as S,e as k,a2 as ae,l as A,M as E,j as e,_ as a,aX as me,K as
|
|
|
32
32
|
width: ${i=>i.windowSize==="small"?"auto":"376px"};
|
|
33
33
|
display: flex;
|
|
34
34
|
flex-direction: column;
|
|
35
|
-
`,
|
|
35
|
+
`,q=r.div`
|
|
36
36
|
width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
|
|
37
37
|
overflow: hidden;
|
|
38
38
|
max-width: 712px;
|
|
@@ -40,7 +40,7 @@ import{Y as le,u as S,e as k,a2 as ae,l as A,M as E,j as e,_ as a,aX as me,K as
|
|
|
40
40
|
align-content: center;
|
|
41
41
|
justify-content: center;
|
|
42
42
|
align-items: center;
|
|
43
|
-
`,
|
|
43
|
+
`,O=r.div`
|
|
44
44
|
margin-left: ${i=>i.windowSize==="small"?t.sp0:t.sp6};
|
|
45
45
|
margin-bottom: ${i=>i.windowSize==="small"?t.sp4:t.sp0};
|
|
46
46
|
background: ${i=>i.theme.colors.grey3};
|
|
@@ -60,9 +60,9 @@ import{Y as le,u as S,e as k,a2 as ae,l as A,M as E,j as e,_ as a,aX as me,K as
|
|
|
60
60
|
box-sizing: border-box;
|
|
61
61
|
`,b=r(ge)`
|
|
62
62
|
color: ${i=>i.theme.colors.champion};
|
|
63
|
-
|
|
63
|
+
`,$=r(ue)`
|
|
64
64
|
color: ${i=>i.theme.colors.champion};
|
|
65
|
-
|
|
65
|
+
`,f=r(Z)`
|
|
66
66
|
color: ${i=>i.theme.colors.champion};
|
|
67
67
|
`,y=r(he)`
|
|
68
68
|
color: ${i=>i.theme.colors.champion};
|
|
@@ -71,7 +71,7 @@ import{Y as le,u as S,e as k,a2 as ae,l as A,M as E,j as e,_ as a,aX as me,K as
|
|
|
71
71
|
`,I=r(Z)`
|
|
72
72
|
margin: ${i=>i.windowSize==="small"?t.sp1:`auto ${t.sp5}`};
|
|
73
73
|
color: ${i=>i.theme.colors.grey1};
|
|
74
|
-
`,
|
|
74
|
+
`,Y=r(v)`
|
|
75
75
|
color: ${z.graphColor16Dark};
|
|
76
76
|
`,G=r(v)`
|
|
77
77
|
color: ${z.graphColor09Dark};
|
|
@@ -81,4 +81,4 @@ import{Y as le,u as S,e as k,a2 as ae,l as A,M as E,j as e,_ as a,aX as me,K as
|
|
|
81
81
|
margin: ${t.sp3} auto;
|
|
82
82
|
max-width: 772px;
|
|
83
83
|
color: ${i=>i.theme.colors.hero};
|
|
84
|
-
`,s=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,ve=()=>{const i=S(),o=k();return e.jsxs(N,{windowSize:o,children:[e.jsx(
|
|
84
|
+
`,s=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,ve=()=>{const i=S(),o=k();return e.jsxs(N,{windowSize:o,children:[e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:K,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(V,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.simplestText.bold}),e.jsx(f,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.aiPoweredText.bold}),e.jsx(f,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx(y,{children:s.multiLevelApprovalText.bold}),e.jsx(f,{children:s.multiLevelApprovalText.regular})]})]})]})]})},Te=()=>{const i=S(),o=k();return e.jsxs(N,{windowSize:o,children:[e.jsxs(V,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.simplestText.bold}),e.jsx(b,{children:s.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.aiPoweredText.bold}),e.jsx(b,{children:s.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx($,{children:s.multiLevelApprovalText.bold}),e.jsx(b,{children:s.multiLevelApprovalText.regular})]})]})]}),e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:K,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},Fe=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:W,videoUrl:X,analytics:x,onSetupButtonClick:H,onCreateNewRemiButtonClick:J,onBackClick:_,onSetupReimbursementSuccess:T,onClickMenuIcon:ee})=>{const C=le(),[ie,se]=j.useState(!1),[te,P]=j.useState(!1),re=S(),l=k(),{remiTermsDetails:h}=i,R=ae(h?.fetchStatus.fetchState),oe=L.hasReimbursementAdminLevelAccess(C.loggedInUserRoleMap),w=L.hasReimbursementAccess(C.loggedInUserRoleMap)&&!oe,ne=!!o?.isReimbursementTOSAccepted,B=!!i.companyRemiInfo?.isReimbursementEnabled,U=w?B?s.employeeAcceptPromoText:s.employeePendingPromoText:s.promoText;j.useEffect(()=>{R==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&T?.()},[R,T,h?.fetchStatus]);const A=()=>{x?.trackReimbursementPromoScheduleDemo(),P(!0)};return e.jsxs(fe,{children:[ie===!0?e.jsx(be,{onCancelClick:()=>{se(!1)},videoUrl:X,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(je,{onCancelClick:()=>{P(!1)},meetingUrl:W,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(me,{title:s.title,backgroundColor:re.colors.grey4,onBackClick:_,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:ee,source:"ReimbursementPromoPage"}),e.jsxs(ye,{windowSize:l,children:[l==="small"?e.jsx(ke,{children:U}):e.jsx(Se,{children:U}),l==="small"?e.jsx(ve,{}):e.jsx(Te,{}),e.jsx(ze,{children:w?e.jsx(e.Fragment,{children:B&&!ne?e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:s.scheduleDemoButton,onClick:A,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:s.orText}),e.jsx(u,{variant:"primary",label:s.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:J,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[s.terms.createTerms1,e.jsx(m,{href:s.terms.tosUrl,linkText:s.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),s.terms.terms2,e.jsx(m,{href:s.terms.privacyPolicyUrl,linkText:s.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),s.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:s.scheduleDemoButton,onClick:A,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:s.orText}),e.jsx(u,{variant:"primary",label:s.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:H,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[s.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,s.terms.terms3]})]})})]})]})};export{Fe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ee,e as Ve,a2 as N,a as qe,ca as Ge,
|
|
1
|
+
import{u as Ee,e as Ve,a2 as N,a as qe,ca as Ge,B as Te,l as Je,a8 as be,j as t,cP as Ke,g as J,C as r,aX as Ze,m as Ye,F as Xe,dO as Qe,aS as et,dE as tt,a4 as it,o as a,q as n,bO as nt,cn as ot,cv as at,f2 as ve,f3 as ke,fN as lt,K as rt,$ as $e,J as Pe,be as st,w as ct,aP as dt}from"./index-C3eIsUEB.js";import{b as o,n as i}from"./vendor-rkTZJa59.js";import{D as ut}from"./HelpButton-DiIoYeXn-FbkReN34.js";import{q as je}from"./SetUpDefaultSection-CI0mxu3H-DcvSJDVc.js";import{f as mt}from"./SpendMgmtSetupAccountSection-CPnNzjr--B78i6hxA.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DI_GZA8A-DOiCRzdE.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";import"./MeetingCalenderPopup-CAh7iae0-BpiINuek.js";import"./ChargeCardUtils-Wp4Ko18L-zmLd-lJK.js";import"./CreditCardPaymentPlgSection-vmErttTD-BxhyQLa5.js";import"./ChaseOverlay-BGZfbx0H-Cy6SXtpe.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:K}){const l=Ve(),D=Ee(),{formState:{errors:Z},trigger:Y}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:R,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[C,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=C===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(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(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:ke(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:S.name,textColor:ke(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:C||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Lt,{children:C?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -103,13 +103,13 @@ import{u as Ee,e as Ve,a2 as N,a as qe,ca as Ge,M as Te,l as Je,a8 as be,j as t,
|
|
|
103
103
|
&:hover {
|
|
104
104
|
color: ${e=>e.theme.colors.primary};
|
|
105
105
|
}
|
|
106
|
-
`,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",q="remiAccount",G="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:K,analytics:l,accountsPromoConfig:D,onBackClick:Z,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:S,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:
|
|
106
|
+
`,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",q="remiAccount",G="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:K,analytics:l,accountsPromoConfig:D,onBackClick:Z,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:S,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:C,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,L]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:I,accountUpdateStatus:Le,plaidConnectionDetails:le,allBankAccounts:Ie,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Fe,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Re}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(I.fetchState),ye=N(re.fetchState),Se=N(se.fetchState),z=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&L(!0),B&&_==="In-Progress"&&v==="Completed"&&L(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Se==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Se,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),C()}),He=async(P,F)=>{const m=F[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(G)){const w=F[G];S(w)}};o.useEffect(()=>{const P=z.watch((F,{name:m})=>{m!=null&&F!=null&&Ge(()=>He(m,F))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&I.fetchState==="Completed"&&V()},[V,we,I.fetchState]);const{commonSetUp:Ce,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Ce,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Je.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new be(W.colors.brandColorJadeLight):new be(W.colors.brandColorJadeDark),Ne=()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?L(!0):Y?.()};return t.jsxs(zt,{children:[t.jsx(Ke,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>L(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:I,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>L(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:Z,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Ft,{windowSize:u,children:[t.jsx(Mt,{windowSize:u,children:Oe}),_e?t.jsx(Rt,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Xe,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Fe}),t.jsx(mt,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Ie,allFundingAccounts:he,sectionId:q,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:R,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Re:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:I.fetchState==="In-Progress"||Le.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ut,{isFooterRendered:ce&&!de,meetingUrl:K,analytics:l,productType:"reimbursement"})]})},zt=i.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
min-height: 100%;
|
|
109
109
|
flex-direction: column;
|
|
110
110
|
width: 100%;
|
|
111
111
|
background-color: ${e=>e.theme.colors.grey4};
|
|
112
|
-
`,
|
|
112
|
+
`,Mt=i(nt)`
|
|
113
113
|
color: ${e=>e.theme.colors.hero};
|
|
114
114
|
display: flex;
|
|
115
115
|
justify-content: center;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as M,j as b,bV as V,bX as q,bY as W,jk as X,ab as Y,l as z}from"./index-C3eIsUEB.js";import{b as f}from"./vendor-rkTZJa59.js";import{p as H}from"./ReviewOverlay-DhUFI1ES-LUmDitH1.js";import"./mui-C42whWwM.js";import"./analytics-B3n5JGPc.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-BDNqpTKX.js";const{common:n,spendManagement:{reimbursement:B}}=M.getLocalizedStrings(),o=B.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[j,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(j===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,j,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,$=()=>{const{title:u,description:T}=Z(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},F={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,z.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:U}=G(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},N=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:$,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(V,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(H,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=X(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:Y("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Z=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},G=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?B.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{u as h,j as r,
|
|
1
|
+
import{u as h,j as r,_ as a,$ as m,ai as j,B as w,a5 as l,a_ as x,w as g,o as c,aj as C}from"./index-C3eIsUEB.js";import{n as s,b as d}from"./vendor-rkTZJa59.js";function f({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
|
|
2
2
|
justify-content: flex-start;
|
|
3
|
-
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function
|
|
3
|
+
`;function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function S({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(C,{children:({height:i,width:n})=>r.jsx(f,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
|
|
4
4
|
justify-content: space-between;
|
|
5
|
-
|
|
5
|
+
`,$=s.div`
|
|
6
6
|
height: ${c.sp10};
|
|
7
7
|
width: ${c.sp10};
|
|
8
8
|
background: ${e=>e.theme.colors.background};
|
|
@@ -19,8 +19,8 @@ import{u as h,j as r,Z as a,_ as m,ai as j,M as w,a5 as l,a_ as x,w as g,o as c,
|
|
|
19
19
|
color: ${e=>e.theme.colors.primary};
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
`,b=s(g)`
|
|
23
23
|
color: ${e=>e.theme.colors.champion};
|
|
24
24
|
`,v=s(g)`
|
|
25
25
|
color: ${e=>e.theme.colors.hero};
|
|
26
|
-
`,
|
|
26
|
+
`,B=s(y)``;function z({dimension:e,cardType:o,cardIndex:t,reportTitle:i,onReloadData:n}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>n(t,o),children:r.jsxs(k,{children:[r.jsxs(b,{children:[i??j(o)," "]}),r.jsx($,{children:r.jsx(B,{})}),r.jsx(v,{children:w.getLocalizedStrings().card.failedText})]})})}export{T as E,S as I,z as T};
|