@zeniai/web-cockpit-ui 1.13.97-qa → 1.13.98-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-Cwc2nmvY-DQ16IU5r.js → ACHDetailsPage-C_NL9J0X-DQ3wv9Rt.js} +1 -1
- package/dist/assets/{AIPerformancePage-CK4ZdUEb-fJZXFPPa.js → AIPerformancePage-DyiOQxOC-Deykua_G.js} +21 -21
- package/dist/assets/{AccountInfoPage-LiZYkJMA-D7v8XtXB.js → AccountInfoPage-xglon85A-yRVQMsLQ.js} +5 -5
- package/dist/assets/AccountInfoPageContent-BtMF3gSM-CwB-GVxY.js +149 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-CBOR2m1X-itmjhcPW.js → AccountReconDetailsDrawerPage-DJ9x8tbi-LYKktAAO.js} +17 -17
- package/dist/assets/{AccountRow--5DnpNqk-C6gOEeWO.js → AccountRow-CP7Tu1pO-VLQJgkE6.js} +23 -23
- package/dist/assets/{AccountsPromoCardStack-DCI8_ihc-CZreK5jG.js → AccountsPromoCardStack-1elvD1M0-GOX35w9m.js} +22 -22
- package/dist/assets/{AddAddressForCardDrawer-C_RALUZ7-C2wla-3g.js → AddAddressForCardDrawer-C8-wy-3B-di9k1XXJ.js} +2 -2
- package/dist/assets/{AddToWalletPage-7sC3Q2Pb-TioJ0o_r.js → AddToWalletPage-DsqplF5y-BOnzBTtb.js} +19 -19
- package/dist/assets/{AgingReportsPage-PrvYryW8-ClQ8Euxf.js → AgingReportsPage-DClcRhxg-CS8rEKD_.js} +6 -6
- package/dist/assets/{AllUserItems-DlTukPhY-377gtzJq.js → AllUserItems-BOwAIYTQ-ikKyJOZ6.js} +7 -7
- package/dist/assets/{ApAgingDetailPage-BVciGQma-NVEgOPKU.js → ApAgingDetailPage-CcU6Hz-o-C9CP7TBd.js} +4 -4
- package/dist/assets/{AppBasePage-uJGLWCbr-B_okH7tb.js → AppBasePage-C7kCz0qg-gwqzuxWV.js} +2 -2
- package/dist/assets/{AppDrawerContent-SD57OqHe-DBC1ZQdx.js → AppDrawerContent-B63CbHT7-CTgXtY-R.js} +7 -7
- package/dist/assets/ApprovalRulesSettingsPage-D6XZafBq-BQyA8PhX.js +47 -0
- package/dist/assets/ArAgingChart-D-Z3jfGt-DS-oqmcQ.js +24 -0
- package/dist/assets/{ArAgingDetailPage-CoFL0N3--Dnd2wPCh.js → ArAgingDetailPage-AiwyJUwp-CLdUA32y.js} +1 -1
- package/dist/assets/{AttachmentView-C3xQE0te-BFkbocnS.js → AttachmentView-wIV1i6gf-__2UovKF.js} +5 -5
- package/dist/assets/{BankAccountSection-Bi3uoDPa-DlE9WCjC.js → BankAccountSection-cVBEl5IN-DpEdLEP3.js} +2 -2
- package/dist/assets/{BankAccountWarningSection-DKdgmMHQ-Df__wM_b.js → BankAccountWarningSection-Ce5s962S-Dy-_2VlU.js} +8 -8
- package/dist/assets/{BankConnectionsSettingsPage-1zM9RKRI-BKlHDYsy.js → BankConnectionsSettingsPage-Cgp8M98A-D84-x80q.js} +33 -33
- package/dist/assets/{BillDetailPage-BoxJCC9n-dUgWZp0T.js → BillDetailPage-C9NC9kTK-BYRIHiN2.js} +11 -11
- package/dist/assets/{BillPayApprovalRuleDetailPage-BW3sj5ug-F8EHl6ns.js → BillPayApprovalRuleDetailPage-yKPMorLd-DWM3MQMK.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-DLA6R7dC-CNDK6deM.js → BillPayApprovalRulesPage-DmMqDFmk-B8Cg6Nn6.js} +6 -6
- package/dist/assets/{BillPayPromoPage--BGTNJhm-DrmzLzpj.js → BillPayPromoPage-CWGX6uCi--607mHc3.js} +4 -4
- package/dist/assets/BillPaySetUpPage-B-DHUIqu-DsqPk0zS.js +42 -0
- package/dist/assets/{BillingSettingsPage-DgbRhg-m-CRqpdOiy.js → BillingSettingsPage-Bx7lHgIy-CyArwb3F.js} +5 -5
- package/dist/assets/{BillsBulkReviewDrawerPage-CKspyZz7-DFQ7kKFj.js → BillsBulkReviewDrawerPage-Bf5MKQ-f-5iZSFdzE.js} +1 -1
- package/dist/assets/{BoxItem-BHtgE0KL-BJPg4xAk.js → BoxItem-DX1sag1G-C0OcCbod.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CpfsllRZ-CnaBfa3b.js → BusinessVerificationPage-DXh-11f9-BWywYgcT.js} +14 -14
- package/dist/assets/{CardNumberSubText-BHe1nqr7-BRmm9g1p.js → CardNumberSubText-iYF6MLsf-BnbFJt1d.js} +1 -1
- package/dist/assets/{CashbackDetailPage-C9RhIR0R-CyQle5Hi.js → CashbackDetailPage-DVsCU69u-iWc1QiKl.js} +24 -24
- package/dist/assets/ChargeCardDetailPage-D5bwvNOM-CT3hMXCY.js +1447 -0
- package/dist/assets/ChargeCardListPage-rY7_MoJ5-CzPbszY2.js +355 -0
- package/dist/assets/{ChargeCardListTable-C2nnAxo5-Bk77oToU.js → ChargeCardListTable-PTRaj9T6-GxUnY44G.js} +18 -18
- package/dist/assets/ChargeCardPromoPage-BUtD2JQ4-Bh59RQEl.js +219 -0
- package/dist/assets/ChargeCardSetupPage-CIRcLLnB-Cefuwkkm.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-DK-pEljz-CxNbElz7.js → ChargeCardStatementsPage-uRlTsfDI-DztC0UAp.js} +3 -3
- package/dist/assets/{ChargeCardUtils-BxyMuU6--CHwiPaoq.js → ChargeCardUtils-BvVm2SMq-B6pl3c2F.js} +1 -1
- package/dist/assets/{ChaseOverlay-CRiYxWuZ-BZR-S0kG.js → ChaseOverlay-CI8lEzod-DNTlxx9v.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-WYiirlL8-DMNFGunZ.js → CheckDepositDrawerPage-Czpxz6Mz-gcS4-F7d.js} +16 -16
- package/dist/assets/CollapsableReportTable-BBGdC6Ii-N5Ehkf8R.js +2932 -0
- package/dist/assets/{CompanyOfficerDetailsSection-BPZU90Im-ClsfMHMl.js → CompanyOfficerDetailsSection-BrsHy7MO-Cl-BM3f0.js} +35 -35
- package/dist/assets/{CompanyPassportCard-PXdmJC_B-SLgfN-m9.js → CompanyPassportCard-P0g_DRwA-XRQTRVQK.js} +2 -2
- package/dist/assets/{CompanyPassportPage-MxIwsh3W-CUmwVoPG.js → CompanyPassportPage-CH8El0Nl-CrZI1ceZ.js} +37 -37
- package/dist/assets/{CompleteProfile-Bd9xEPVl-Cy044ZoG.js → CompleteProfile-DTSAIKgF-WX_HRfP5.js} +4 -4
- package/dist/assets/{ConfettiBurst-CMpZ2feY-D-Nq3IFV.js → ConfettiBurst-CjONFCxD-BbasMJ1h.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DgHvZfWv-Bm6layyi.js → CreateOrEditVendorPage-CDVjGotR-BX0RU8Lc.js} +13 -13
- package/dist/assets/{CreditCardPaymentDrawerPage-C2ikLG7P-DestrVrL.js → CreditCardPaymentDrawerPage-CsyNRmxp-J9Q1Nire.js} +15 -15
- package/dist/assets/{CreditCardPaymentPlgSection-M69ECpN9-CGQ3HY5T.js → CreditCardPaymentPlgSection-BhHsjqZA-DtxErSDc.js} +8 -8
- package/dist/assets/{CurrencySelectField-B3AvTbkp-CwUBnsMJ.js → CurrencySelectField-BRkdK9Tx-DZlSSgUd.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-C7eddGoB-DW4jRuae.js → CustomerOnboardingActivationPage-DnVXw5Ok-CF7wqV2h.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-wmVbYxdI-BLfm1bGE.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BIAeoXCV-DB7HhB_G.js → CustomerOnboardingDetailPageSkeleton-C95eWcqa-DW8DNI2i.js} +11 -11
- package/dist/assets/{CustomerOnboardingNoStepsPage-BzO6XZ0H-1xoJMSMy.js → CustomerOnboardingNoStepsPage-OKbEl9Bp-Dy87ha3L.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-7yWIaJvU-C3VBP6CL.js → CustomerOnboardingPage-D9jqUudS-BpBvjqe9.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-Tvyrs9Cm-B0r6GvUF.js → CustomerOnboardingProductSuitePage-DK_FKVS2-Dz81TViz.js} +5 -5
- package/dist/assets/Dashboard-CsuzQbH0-B5Hgiilv.js +1254 -0
- package/dist/assets/DashboardReportPage-BCkrfj3P-CIFdRg6l.js +370 -0
- package/dist/assets/{DepositAccTransactionItem-CiRcbfmm-ChlbIcLT.js → DepositAccTransactionItem-B55LUfPM-Bsnh-Dnt.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-DsNLDlHv-MYnNFw-s.js → DepositAccTransactionListPage-CKBZEDvI-CFszcDp5.js} +7 -7
- package/dist/assets/{DocumentSecurityBanner-CIWoR_yI-Dhftz0pA.js → DocumentSecurityBanner-B5e6-zfE-B8VQ-eGv.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C6x8Gz4g-DwUa3Xkf.js → DomesticWireDetailsPage--MU9IKKz-CI-n4FxD.js} +1 -1
- package/dist/assets/{DownloadOverlay-D1kGkMFo-DOkMNDuh.js → DownloadOverlay-CVay7PEO-C-BIaHoh.js} +12 -12
- package/dist/assets/{DrawerPage-CQkJW5hg-DkryY6SR.js → DrawerPage-BtsjUVWT-DKZ4-9Rc.js} +3 -3
- package/dist/assets/{EditPeoplePage-m2qls8hv-BZd-DWw-.js → EditPeoplePage-q8Se6bGZ-Cx2X58jF.js} +17 -17
- package/dist/assets/{EditReimbursementDetailPage-IlSyu79B-jE0h2JRZ.js → EditReimbursementDetailPage-DJxpU-hz-dhF_OPbV.js} +72 -72
- package/dist/assets/{EntityDetailPage-CcJJwGo7-DCvr4KdD.js → EntityDetailPage-Bux6DlIw-CDR-iDms.js} +1 -1
- package/dist/assets/{EntitySummarySection-JxKHehL1-CtvARgSu.js → EntitySummarySection-D8dz1hFt-Bakc19a1.js} +13 -13
- package/dist/assets/{ExpenseAutomationOverviewPage-iAUtjSnw-C1CSJZ5E.js → ExpenseAutomationOverviewPage-CdJQtc-4-WoBW313I.js} +26 -26
- package/dist/assets/{ExpenseAutomationPage-B0f86olm-wJehtW2E.js → ExpenseAutomationPage-aNc126hN-DZa4KtXO.js} +74 -74
- package/dist/assets/{ExpressPayPage-B-at6uDS-BEaELiUG.js → ExpressPayPage-CWVGXvfN-Bzdld5fx.js} +7 -7
- package/dist/assets/{FeaturePreviewPage-gSb_rct_-C-KQutKv.js → FeaturePreviewPage-C0nvVXP--BF6s18r5.js} +2 -2
- package/dist/assets/{FollowStepsSection-eedORgku-FnBhDPYP.js → FollowStepsSection-Cf0s1DGX-BFVvc78r.js} +12 -12
- package/dist/assets/{GlobalReviewListPage-BfPwveCc-ftKEGRYk.js → GlobalReviewListPage-aY4rHJVr-DzNSgRAM.js} +10 -10
- package/dist/assets/HelpButton-Dv3nbc1Z-CHaoZd0g.js +28 -0
- package/dist/assets/{InformationCardStack-DPaZz4XW-BZPDjtdj.js → InformationCardStack-BALkGk48-BWmXScs3.js} +5 -5
- package/dist/assets/{InsightsCardStack-sKUFRR0H-BiHLZWGW.js → InsightsCardStack-D52CCSVO-CezeuABJ.js} +10 -10
- package/dist/assets/{InsightsSection-Corx5iDh-fVbgdM2i.js → InsightsSection-D_wtVtVg-5rPDOiJT.js} +3 -3
- package/dist/assets/{IntegrationsSettingsPage-DTWoUi2e-YCv3GRpa.js → IntegrationsSettingsPage-DxjbW311-BrvXi8hE.js} +7 -7
- package/dist/assets/{InternationalWireSwiftDetailsPage-B441GUkh-D_QVeJ7p.js → InternationalWireSwiftDetailsPage-24NSHzu1-CRaVhxIk.js} +14 -14
- package/dist/assets/{InternationalWireVerificationPage-DjpWjFSe-CaUlPKN_.js → InternationalWireVerificationPage-B1jvCUkw-Ld5IAzwh.js} +18 -18
- package/dist/assets/{InviteFormPage-BRb4jyp_-BuUalkW4.js → InviteFormPage-C9fNxGsi-CRksfDku.js} +19 -19
- package/dist/assets/{InvitePageListView-Bb_Q_xqJ-BhN72Smm.js → InvitePageListView-DSWZ2SPi-B4SFh7Xp.js} +49 -49
- package/dist/assets/InvitePeoplePage-DaN4NSHW-CydccedW.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BE4ZqriT-CfpM2_BI.js → InvoiceUploadSection-D0CgJxyu-9_MCn8Y6.js} +7 -7
- package/dist/assets/{IssueChargeCardPage-BIFpAcrl-DZwnseyQ.js → IssueChargeCardPage-dYu9VLy4-YHkYWF3X.js} +22 -22
- package/dist/assets/{LabeledAddressValue-D2vDF5sP-BZfqDHMl.js → LabeledAddressValue-DtmZ5htg-OjX3rrF7.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BMdJsw3x-CnFfe2I5.js → LabeledAddressValueField-C2LEKAwf-BQxD3J4c.js} +4 -4
- package/dist/assets/{LabeledControlledCheckBoxField-CHRGFyHl-T4ZnES5i.js → LabeledControlledCheckBoxField-Ds3mSsWy-DNoefl6y.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-qwQPyqDC-D7x9KNC-.js → LabeledCreatableSingleSelectField-DW8jVgaN-BEmOmz9t.js} +8 -8
- package/dist/assets/{LabeledDocumentField-Cdd8oj5z-BoWCxP7J.js → LabeledDocumentField-Ce2A0qNH-CSvl2QNP.js} +5 -5
- package/dist/assets/{LabeledDropDownFormattedTextField-CSEioH8A-DiLPLUt5.js → LabeledDropDownFormattedTextField-DWlfmICB-Diz5afTR.js} +5 -5
- package/dist/assets/{LabeledText-CqZ-udSP-CWd8HtpU.js → LabeledText-bruKdeAH-E98_Q-Ht.js} +2 -2
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DTmijO10-D909IgWp.js → LabeledUserSingleSelectWithSubtitlesField-CfzUlgs3-BKnteQzK.js} +5 -5
- package/dist/assets/{LabeledZeniRolesDropDownField-DSIWuFix-CIXw0_yv.js → LabeledZeniRolesDropDownField-CGSgg1Zl-M-Z5Kz_3.js} +22 -22
- package/dist/assets/{LinkJETransactionPage-C5V1HfGb-BEAJlnvQ.js → LinkJETransactionPage-DjNutEvf-sKN4Are7.js} +10 -10
- package/dist/assets/{LowBalancePopup-BLfeh0xm-C28uSa7K.js → LowBalancePopup-CwcYMtuk-B-vSGd6a.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-DGR7VcHs-D2IBl0qY.js → MagicLinkACHDetailsPage-Ddhg3i45-DAcpfJH2.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BOu5verB-Bhh7qXWp.js → MagicLinkDomesticWireDetailsPage-QzsSuMOz-D-Sj2Twf.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-elijVpdq-Cq0leSr_.js → MagicLinkInternationalWireDetailsPage-BsLlhkuO-cmHC5izc.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-C6-JVGAQ-DQTEmgea.js → MagicLinkSuccessPage-COpDxIAb-BaiQCbjC.js} +4 -4
- package/dist/assets/{MagicLinkTitleSection-CCjLimcL-Ip3y0PNU.js → MagicLinkTitleSection-Oa8Szvl2-DvY3D69u.js} +3 -3
- package/dist/assets/{MailingDetailsSection-CJhcwaGu-BAyX38PR.js → MailingDetailsSection-BycONjR9-Dhu_6L_d.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-DKBH6wSs-Cn-ByIyB.js → MeetingCalenderPopup-D_WPTVKr-DYqVpuuh.js} +3 -3
- package/dist/assets/{Menu-D-Gk-Xfo-DBDtrJ_2.js → Menu-B6Fh2Mf9-B_ofMkAs.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-CBxa9AUT-BCb7NWFw.js → MyBankConnectionsSettingsPage-jWuBarzg-DszKEiXJ.js} +18 -18
- package/dist/assets/{MyPendingActivationChargeCardListPage-DBr5htlO-CKJew--2.js → MyPendingActivationChargeCardListPage-_wuCCZ2J-Cbj97sd-.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DKUX_nTz-BI1Cjccg.js → MyProfileSettingsPage-ChyYrCir-Dq1dhgqM.js} +8 -8
- package/dist/assets/{NavBarWithPicker-CXyMHDUO-FwAGF1cV.js → NavBarWithPicker-D4jJGXZB-BJWr2BT1.js} +4 -4
- package/dist/assets/{NavigationArrow-Bv-PvnhZ-BqeVWU8r.js → NavigationArrow-DlUdvmV7-iugv9ZVE.js} +10 -7
- package/dist/assets/{NavigationDots-DJkiFidH-5V7knboW.js → NavigationDots-CFJt-T5J-B9PAzC5S.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CmJjl9S1-k-LUtUto.js → NewGlobalMerchantPage-DhYni-in-Diwu92Go.js} +8 -8
- package/dist/assets/{NoDataChart-Bsj1HEPq-CTuuS1jm.js → NoDataChart-CvGbQO4j-B5z4vqWb.js} +1 -1
- package/dist/assets/{NoDataTable-6vR2vOMI-C3_Xw78i.js → NoDataTable-EKtYZwcL-XyHu2gAL.js} +1 -1
- package/dist/assets/{NotFoundPage-SRxATfaW-y-aOb1MC.js → NotFoundPage-D5SHSQLS-0U7pTJ8G.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-Bko3CBmW-_bWFzZ7l.js → NotificationSettingsPage-CjJw9Atb-BmSbhipZ.js} +33 -33
- package/dist/assets/NotificationsListConfig-BL_MxKXF-CvqrsVs-.js +1 -0
- package/dist/assets/{NotificationsPage-DMfBgh2w-1OVVoKkc.js → NotificationsPage-bGvx2yV6-C4p8pfzZ.js} +12 -12
- package/dist/assets/{OpExByVendorPage-DOkwCGkr-DKAYXBt6.js → OpExByVendorPage-BE_NnQzd-DQnxoqWx.js} +7 -7
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-BEYdjpiV.js → OverlayContainerPage-GWXnlbZH-D2VSw_RI.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DCJ3QTuj-SrjsP3F-.js → PandLWithForecastPage-D-000kuR-BW5fUkac.js} +11 -11
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CaZETrGz-De6JzHBj.js → PaymentAccountSetupBillingAddressSection-CwbX_znq-C6WVSYgS.js} +8 -8
- package/dist/assets/{PeoplePage-PvOhX-gy-bUl8LV-N.js → PeoplePage-MwM0lFB9-B0wgHwI1.js} +14 -14
- package/dist/assets/PortfolioAllocationFormPage-C3a4MQzW-CQIA3SiA.js +207 -0
- package/dist/assets/PortfolioDetails-BMJ6PGMP-DtrA52bw.js +218 -0
- package/dist/assets/{ProductsCarousel-qzlVuyK5-BlxLSS9s.js → ProductsCarousel-D2wC3sC--BKh2AE5P.js} +9 -9
- package/dist/assets/{PromoBaseCards-26GOEn3a-DaZDnJ-z.js → PromoBaseCards-Ddumul2a-BrEDd739.js} +23 -23
- package/dist/assets/{QBOConnectionDialog-CZQE3Tjs-Da8BEmHP.js → QBOConnectionDialog-DszSpNdI-DwqHmKSk.js} +7 -7
- package/dist/assets/{QBOSetupSection-u1sJhV67-3guqHTYH.js → QBOSetupSection-BNF-BUu5-B_yCc7Df.js} +13 -13
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-vRiO7G_7-BtkXAaTL.js → ReimbursementApprovalRuleDetailPage-Myone4-k-B9H3tR1_.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-kEmFNXtg-tWOcEiR-.js → ReimbursementApprovalRulesPage-DFhp0GGU-p0zWXuJ6.js} +35 -35
- package/dist/assets/{ReimbursementDetailPage-ChyRg0eX-Claybyvt.js → ReimbursementDetailPage-BAEddssC-DcJfByf4.js} +10 -10
- package/dist/assets/{ReimbursementPromoPage-BWsOD49o-D82HFW_4.js → ReimbursementPromoPage-D4u3SX8R-ByzJ_1Sx.js} +7 -7
- package/dist/assets/ReimbursementSetUpPage-B9ByGW3n-Bt2Z4PCD.js +140 -0
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CgRo7VeI-w-iFb9QJ.js → ReimbursementsBulkReviewDrawerPage-CAo_NjTX-O9TR0kFt.js} +1 -1
- package/dist/assets/{ReloadCard-CpauR6-c-3e4dg5U2.js → ReloadCard-BA_JCHcV-DL7NGQyj.js} +5 -5
- package/dist/assets/ReportTableViewSelector-D7B88kS6-BrGIUsj4.js +150 -0
- package/dist/assets/ReportsPage-BzMzH-I3-BKZoRCt6.js +121 -0
- package/dist/assets/{RevenueChart-JdtvK4L6-CpCUlh1v.js → RevenueChart-D33p-PFq-CGRJwc_N.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BwQoOV2Q-BSoqdtJl.js → ReviewDetailsPage-D35NcQnx-Cbn86Yy5.js} +15 -15
- package/dist/assets/{ReviewOverlay-BLxhto7d-Ote-FEid.js → ReviewOverlay-BYJdokfW-C97jtxei.js} +10 -10
- package/dist/assets/{RoleWithToolTip-BRSx6yqP-Dj7TwZqE.js → RoleWithToolTip-B3hm-1rz-OZzvKPZJ.js} +7 -7
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CH84DI7F-DS2nwC6-.js → ScheduleDetailsFixedAssetsPage-BVnISMKW-BILZO4Rn.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CMunoow5-Kl0jdvn6.js → ScheduleDetailsPage-BibWPOxC-DZMtTy3C.js} +4 -4
- package/dist/assets/{ScheduleSequenceTable-CQVHkQ0e-Dw2nQmil.js → ScheduleSequenceTable-DcQmeKyc-JMxQ5IZq.js} +49 -49
- package/dist/assets/{ScreenRoutes-C5pHLsYO.js → ScreenRoutes-iE9-v0dJ.js} +35 -35
- package/dist/assets/{SetUpAccountSection-CyyxtFvK-Bjoxqucl.js → SetUpAccountSection-BEJy78G6-Do1X3vVo.js} +24 -24
- package/dist/assets/{SetUpDefaultSection-Bdw_aWMY-C7l-ATBb.js → SetUpDefaultSection-ul-q6U3w-CKVV_QFK.js} +16 -16
- package/dist/assets/{SignIn-Gw75P03k-B_X_KXq6.js → SignIn-BC8yop4g-CznicFTu.js} +17 -17
- package/dist/assets/{SignInScreen-CU1N7put.js → SignInScreen-k0dvslKE.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BccaMtyd-shshvd9r.js → SpendManagementListViewPage-aZljA388--EEskYb2.js} +10 -10
- package/dist/assets/{SpendManagementPerTabPage-D-YqqUsz-DyRQAFsg.js → SpendManagementPerTabPage-BU1ai2M8-DkMZQMfc.js} +33 -33
- package/dist/assets/{SpendManagementSection-CdH1r1Vw-C3epoUbW.js → SpendManagementSection-DMw8NFvN-Cpy4Blf3.js} +8 -8
- package/dist/assets/SpendMgmtSetupAccountSection-BtcwTlJT-Bsya0Qr3.js +206 -0
- package/dist/assets/{StatementItem-BW9HKaf9-CsEdfyzn.js → StatementItem-CKTGWEW_-d6SqxmfH.js} +3 -3
- package/dist/assets/{StatementsPage-CXawS1th-D6ifdlgD.js → StatementsPage-CjR4AlPy-BQRlcz37.js} +6 -6
- package/dist/assets/{StatusSwitcher-oC-AP25Z-D-8kVIuC.js → StatusSwitcher-5CZzUYJE-qZVSFmES.js} +5 -5
- package/dist/assets/{SubTabSwitcher-DXWQMf7B-D5NgssDf.js → SubTabSwitcher-a38_U4dN-BfyQ4BdY.js} +1 -1
- package/dist/assets/{SummaryCard-C3zjN-kT-DVcdP-G4.js → SummaryCard-XbFHvHx9-CTqdwSSS.js} +1 -1
- package/dist/assets/{TaskManagementPage-BGDJNpe_-BGexoSAd.js → TaskManagementPage-Oct77yO--igT2quo0.js} +31 -31
- package/dist/assets/{TimeRangeSwitcher-BJfy3akS-o2HcwGW6.js → TimeRangeSwitcher-C4mpBnQl-CaG6dXuN.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-M9tK6u0Y-C6JeMzJ1.js → TimeframeSwitcher-CnLEHYWD-BW9vKcLS.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-Bc-Y5Hwv-0uMnBILy.js +31 -0
- package/dist/assets/{TopExCard-BD9Ehuw_-BEZAD6RQ.js → TopExCard-CaR8tsug-DnQ2eFWB.js} +5 -5
- package/dist/assets/{TopExDetailPage-3HoXp_6D-C4AntCB3.js → TopExDetailPage-C4QeWe92-vjJ7ZG8N.js} +10 -10
- package/dist/assets/{TransactionDetailPage-CbnGQ8bn-D1kf6rih.js → TransactionDetailPage-BoxnNYXX-2QwooFWS.js} +26 -26
- package/dist/assets/TransactionList-IjM4ABdF-DZ9PEfgX.js +147 -0
- package/dist/assets/{TransactionListBig-5aenxEn4-DbuGNI6-.js → TransactionListBig-B0FG0-BM-Br0wUjP3.js} +18 -18
- package/dist/assets/TransactionListPage-1dwu-ZT2-vlIbHO3m.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-Yi7SmsyK-pIrKO6zm.js → TransactionVendorDetailPage-gBr8kX0F-BE5xJ4Iy.js} +5 -5
- package/dist/assets/{TransferDrawerPage-2P1mhp1M-DQ83dYHD.js → TransferDrawerPage-BJVanLzC-BZZsX7dv.js} +11 -11
- package/dist/assets/{TreasuryOverviewPage-CkCBcBQK-CKBjtsts.js → TreasuryOverviewPage-DGJnHyrO-BPZDM1DN.js} +34 -34
- package/dist/assets/{TreasuryPromoPage-v-g4ZAdk-BPgVXnPP.js → TreasuryPromoPage-CblUabA3-CO5CaCN_.js} +14 -14
- package/dist/assets/{TreasurySetupPage-B7va2-fJ-CAJ9u8aR.js → TreasurySetupPage-CuROk6il-7kJUNajN.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-BEJsQ-Oz-DHPONp68.js → TreasuryStatementsPage-DfB0yrzC-osurk-aq.js} +10 -10
- package/dist/assets/{TreasuryTaxLetterPage-CpTpM1mx-Ba1IA2xd.js → TreasuryTaxLetterPage-CRoLpeXm-g70lefJl.js} +4 -4
- package/dist/assets/{TreasuryTransferOrReviewPage-BRPFympA-6Ds9mHlo.js → TreasuryTransferOrReviewPage-QMDAFbkh-CUXJN-eh.js} +77 -77
- package/dist/assets/{TrendChart-DRNocU0p-B5zGJHBv.js → TrendChart-D3_4i3qH-wYUerKRk.js} +3 -3
- package/dist/assets/{TrendWithTransactions-CldwGpXX-C-miaXCt.js → TrendWithTransactions-KkV2_0Uh-D0lwZdhf.js} +5 -5
- package/dist/assets/{UncategorizedAccountsMappingPage-2C5qEhte-D_ahOlGs.js → UncategorizedAccountsMappingPage-kKq-jvPY-CF6bAw3X.js} +1 -1
- package/dist/assets/{UnitIntegrationPage--cDHqgXs-CzBp1mNW.js → UnitIntegrationPage-CZS0yjHf-2PLtjCjv.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-D85ML8-_-p_x3eEON.js → UploadAdditionalDocumentOverlay-KkO_TLUT-n0LOLnpS.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-vdFWf98b-D5sSolYh.js → Vendor2FAPopup-wnVnkHOg-DABVEKDS.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-D7ImMabh-ChqR1RaR.js → VendorACHDetailsPage-nuzdr69i-pgOa8d0q.js} +1 -1
- package/dist/assets/{VendorDetailPage-BOeEd9pX-C40iOslI.js → VendorDetailPage-ClmL_1FB-Cz0Favu8.js} +14 -14
- package/dist/assets/{VendorDomesticWireDetailsPage-CXFrYPn8-o64Pt2o2.js → VendorDomesticWireDetailsPage-DEK3jdYu-StHUbnc9.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CZFErJ91-Dq9to1zv.js → VendorFiling1099EditablePage-KMOY10Xr-C-_0rtWP.js} +9 -9
- package/dist/assets/{VendorFirstReviewPage-BHzDUMKu-DpG7tqKb.js → VendorFirstReviewPage-CLF3qT17-D1oHFEVR.js} +75 -75
- package/dist/assets/{VendorInternationalWireDetailsPage-j4j5irzH-CT3rN25J.js → VendorInternationalWireDetailsPage-C5JXqVVq-DdhMyWB0.js} +8 -8
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DM4jC7wD-0NWOAHYt.js → VendorInternationalWireSwiftDetailsPage-7KrBqEWb-D_WpQwvk.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BTRiZlIa-D2xftT7n.js → VendorsAccountsSection-fcURK7tv-BOScGj67.js} +13 -13
- package/dist/assets/{WarningsDrawerPage-ZgfQEBme-BogIku8q.js → WarningsDrawerPage-Bnd_CdR9-B2JqHi6z.js} +10 -10
- package/dist/assets/{ZeniAccountDetailPage-xrq0Ez6S-5Y9wWxKq.js → ZeniAccountDetailPage-DRDCdFW7-D8o4Z2Hy.js} +40 -40
- package/dist/assets/{ZeniAccountListViewPage-BwXfELGd-CMYKhLC-.js → ZeniAccountListViewPage-ZPWww_Go-HRp0ORwg.js} +5 -5
- package/dist/assets/{ZeniAccountNavBarPieces-xpHuuPSD-CQw7XfH0.js → ZeniAccountNavBarPieces-DFivFXxa-rHFaK51E.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BvSwPEk7-sx8wuksr.js → ZeniAccountPromoPage-D1oJNoqy-C6ZFb72_.js} +18 -18
- package/dist/assets/{ZeniAccountSetupPage-yCkiopeU-oXKMyUZt.js → ZeniAccountSetupPage-DITu6ztK-Fgis_UYm.js} +3 -3
- package/dist/assets/{ZeniCopyright-BAbOOFg9-CEbrOROr.js → ZeniCopyright-DoA2I5zj-CPBH_zf-.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-C1sl8ZNj-C6racrVi.js → ZeniTransferAmountSlider-amszUh1p-Wx5VV7C8.js} +1 -1
- package/dist/assets/{analyticsHelper-j8smtjIR.js → analyticsHelper-BbcCIpO1.js} +1 -1
- package/dist/assets/{analyticsHelper-CkzpobMi-DnjY1jLw.js → analyticsHelper-DPbbQVAO-ChPUlKK7.js} +1 -1
- package/dist/assets/{chartTypes-JD2mR9iq-B-Dqgpc8.js → chartTypes-qpvW4LwC-4Ag0mdD1.js} +1 -1
- package/dist/assets/{commonDimensions-DRfDJ_wQ-DeEC_LLv.js → commonDimensions-DAvj4Il1-Chc9ZQai.js} +1 -1
- package/dist/assets/{detailCommon-BbKkY_46-DwHUZLAg.js → detailCommon-jP1ggD3g-CQiTz4E7.js} +5 -5
- package/dist/assets/{downloadPdf-D7ANJLK4-BVhr8pTH.js → downloadPdf-LAHtgcHF-B9uNpNRf.js} +1 -1
- package/dist/assets/{index-Dr7k10Ge.js → index-DyBH5SZv.js} +3543 -3520
- package/dist/assets/mapLoadingInProgressToTreeNode-CjvJKOzk-DeuVFxVw.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-caUW45t5-Cd4Vndkt.js → mapSectionWithAcOnlyToTreeNode-Dr43nOGj-FSgubQ7E.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-COsnfFtf-DI0OXEqQ.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BnpqSOA6-DAD3sG8g.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-DFanhVY8-Cl8Oktyg.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2xlqc6w-BjPO7Xb1.js +1 -0
- package/dist/assets/{play-icon-BbWpG2oG-CGqef6-e.js → play-icon-D3OSczih-8eMagn70.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-DOgHiMwn-C3l_klRD.js → toCOABalancesWithID-DeWKaovX-C_3xC96w.js} +1 -1
- package/dist/assets/{toChartData-CNfdaXyM-Cc0Cbk9b.js → toChartData-Dkp488IJ-Cg1gF7al.js} +1 -1
- package/dist/assets/{treasuryColorHelper-JBMxqa9X-CRkfUPI_.js → treasuryColorHelper-BibNNRS5-DCmyWsB-.js} +1 -1
- package/dist/assets/{uploadAttachment-BGZjtYkJ-DDuM3kuv.js → uploadAttachment-BjJ8_wDA-22p019X4.js} +25 -25
- package/dist/assets/{uploadReceipts-Buvz7DfG-CEx_e_oz.js → uploadReceipts-D80JLNY4-sjevKwVl.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPageContent-BTk2gRyM-D5sd4ymJ.js +0 -149
- package/dist/assets/ApprovalRulesSettingsPage-CXh9tY6X-DzKaycYf.js +0 -47
- package/dist/assets/ArAgingChart-GL4vkypx-BDoyqmzK.js +0 -24
- package/dist/assets/BillPaySetUpPage-_s4R537_-DvISkevy.js +0 -42
- package/dist/assets/ChargeCardDetailPage-Kygr13jR-CNZ8Sj5E.js +0 -1447
- package/dist/assets/ChargeCardListPage-BnzdzSXW-C9n9iaEp.js +0 -355
- package/dist/assets/ChargeCardPromoPage-CSNn9X5i-Ca7vMfka.js +0 -175
- package/dist/assets/ChargeCardSetupPage-DE1pK_7F-BNJjwg-b.js +0 -36
- package/dist/assets/CollapsableReportTable-BGT77T9W-DWoWj-VL.js +0 -2860
- package/dist/assets/CustomerOnboardingContainerPage-9UTLABZ0-DmivhYy_.js +0 -1
- package/dist/assets/Dashboard-CA9685lJ-B_5dmcrq.js +0 -778
- package/dist/assets/DashboardReportPage-DQoFWd5C-D6uulgOO.js +0 -349
- package/dist/assets/HelpButton-DvD6UJq--aZr7WRfd.js +0 -28
- package/dist/assets/InvitePeoplePage-BKEDAnQ4-ByvIsC8W.js +0 -12
- package/dist/assets/NotificationsListConfig-ChVd_Bek-CKniSs8p.js +0 -1
- package/dist/assets/PortfolioAllocationFormPage-DsCeagnu-DFOtswbp.js +0 -207
- package/dist/assets/PortfolioDetails-BEa4kwk8-CITW78cn.js +0 -218
- package/dist/assets/ReimbursementSetUpPage-DO_dBP9N-CDR1Iktq.js +0 -140
- package/dist/assets/ReportTableViewSelector-D6DHFt_R-CzdBaV93.js +0 -150
- package/dist/assets/ReportsPage-D4mI3T0w-DX_lYTCz.js +0 -120
- package/dist/assets/SpendMgmtSetupAccountSection-nryeZQ0T-2tO4d4y_.js +0 -206
- package/dist/assets/TimeframeSwitcherWithToggle-L1nNDGOE-jeHox6-x.js +0 -31
- package/dist/assets/TransactionList-BBjiP2Nf-CVZYe7YT.js +0 -147
- package/dist/assets/TransactionListPage-BeVkiwkg-BwC4l02u.js +0 -35
- package/dist/assets/mapLoadingInProgressToTreeNode-e8JhfflK-BBSz2yuD.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-C692pbYW-BJLTFMw5.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DKrYq4x5-CLuyCBzc.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as D,X as B,M as b,j as
|
|
1
|
+
import{u as D,X as B,M as b,j as o,aV as E,c as H,Y as S,o as t,C as r,q as L,_ as z,bO as G,bQ as q,bR as U,cq as O,n as l,an as Q,Q as P,am as V,g as j,cn as X,aN as Y,v as _}from"./index-DyBH5SZv.js";import{n as i,b as F}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.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)},N={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=F.useState(!1),a=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,n=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(K,{windowSize:a,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(Z,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(I,{windowSize:a,children:[n.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(I,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:a,children:w.map((h,A)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?o.jsx(le,{children:n.requireText}):o.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),g?o.jsx(G,{titleComponent:o.jsx(U,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(q,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:W}):null]})},K=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -21,13 +21,13 @@ import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,
|
|
|
21
21
|
justify-content: space-between;
|
|
22
22
|
text-align: center;
|
|
23
23
|
width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
|
|
24
|
-
gap: ${
|
|
24
|
+
gap: ${t.sp2};
|
|
25
25
|
`,ee=i.div`
|
|
26
26
|
align-items: center;
|
|
27
27
|
display: flex;
|
|
28
28
|
justify-content: center;
|
|
29
|
-
`,
|
|
30
|
-
width: ${
|
|
29
|
+
`,oe=i.div`
|
|
30
|
+
width: ${t.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,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,
|
|
|
35
35
|
height: 6px;
|
|
36
36
|
border-radius: 3px;
|
|
37
37
|
background-color: ${e=>e.theme.colors.primary};
|
|
38
|
-
`,
|
|
38
|
+
`,te=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,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,
|
|
|
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=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
51
|
+
border-radius: ${t.sp2};
|
|
52
52
|
|
|
53
53
|
flex: none;
|
|
54
54
|
order: 1;
|
|
@@ -57,9 +57,9 @@ import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,
|
|
|
57
57
|
box-sizing: border-box;
|
|
58
58
|
position: relative;
|
|
59
59
|
`,ie=i.ul`
|
|
60
|
-
${e=>`${
|
|
60
|
+
${e=>`${N.stepper.style(e.windowSize)}`};
|
|
61
61
|
position: relative;
|
|
62
|
-
padding-left: ${
|
|
62
|
+
padding-left: ${t.sp6};
|
|
63
63
|
list-style: none;
|
|
64
64
|
box-sizing: initial;
|
|
65
65
|
margin: 0;
|
|
@@ -81,7 +81,7 @@ import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,
|
|
|
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: ${t.sp1};
|
|
85
85
|
|
|
86
86
|
> div:last-of-type > span.operator:last-of-type {
|
|
87
87
|
visibility: hidden;
|
|
@@ -116,8 +116,8 @@ import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,
|
|
|
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: -${
|
|
120
|
-
${
|
|
119
|
+
left: -${t.sp6};
|
|
120
|
+
${_.standardMedium.css};
|
|
121
121
|
text-align: center;
|
|
122
122
|
color: ${e=>e.theme.colors.grey1};
|
|
123
123
|
border: 2px solid ${e=>e.theme.colors.grey1};
|
|
@@ -134,32 +134,32 @@ import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,
|
|
|
134
134
|
color: ${j.successDark};
|
|
135
135
|
`,T=i.span`
|
|
136
136
|
color: ${e=>e.theme.colors.primary};
|
|
137
|
-
`,
|
|
137
|
+
`,ne=i.div`
|
|
138
138
|
display: flex;
|
|
139
139
|
align-items: center;
|
|
140
|
-
gap: ${
|
|
141
|
-
`,
|
|
140
|
+
gap: ${t.sp2};
|
|
141
|
+
`,ae=i.div`
|
|
142
142
|
display: flex;
|
|
143
|
-
gap: ${
|
|
144
|
-
`,pe=i(
|
|
145
|
-
width: ${
|
|
146
|
-
height: ${
|
|
143
|
+
gap: ${t.sp5};
|
|
144
|
+
`,pe=i(X)`
|
|
145
|
+
width: ${t.sp3};
|
|
146
|
+
height: ${t.sp3};
|
|
147
147
|
cursor: pointer;
|
|
148
148
|
color: ${e=>e.theme.colors.hero};
|
|
149
149
|
&:hover {
|
|
150
150
|
color: ${j.important};
|
|
151
151
|
}
|
|
152
|
-
`,de=i(
|
|
153
|
-
width: ${
|
|
154
|
-
height: ${
|
|
152
|
+
`,de=i(Y)`
|
|
153
|
+
width: ${t.sp3};
|
|
154
|
+
height: ${t.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(V)`
|
|
161
|
+
width: ${t.sp4};
|
|
162
|
+
height: ${t.sp4};
|
|
163
163
|
color: ${e=>e.theme.colors.hero};
|
|
164
164
|
`,C=i.span`
|
|
165
165
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -167,16 +167,16 @@ import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,
|
|
|
167
167
|
display: inherit;
|
|
168
168
|
gap: inherit;
|
|
169
169
|
`,I=i.span`
|
|
170
|
-
${e=>`${
|
|
170
|
+
${e=>`${N.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=D(),g=B(),{fetchState:d,deleteStatus:
|
|
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=D(),g=B(),{fetchState:d,deleteStatus:a}=e,c=b.getLocalizedStrings().commonSetUp.approval,w=b.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,m=a.fetchState;return o.jsxs(he,{children:[o.jsx(E,{title:c.approvalPageHeader,backgroundColor:y.colors.grey4,style:{zIndex:4},onBackClick:()=>{f()},source:"ReimbursementApprovalRulesPage"}),o.jsxs(me,{children:[o.jsx(we,{windowSize:g,children:w.approvalPageSubTitle}),d==="In-Progress"||d==="Not-Started"||m==="In-Progress"?o.jsx(xe,{children:o.jsx(H,{size:"ExtraLarge",start:!0})}):d==="Completed"?o.jsxs(o.Fragment,{children:[e.allApprovalRules.map((n,$)=>o.jsx(J,{showDeleteBtn:$!==0,approvalRule:n,isLastSection:$===e.allApprovalRules.length-1,onEditRuleClick:x,onDeleteRuleClick:v},n.approvalRuleId)),o.jsxs(ue,{windowSize:g,onClick:()=>{x()},"data-testid":S("add-approval-rule"),children:[o.jsx(ge,{}),o.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=>`${t.sp0} 2px ${t.sp1}
|
|
180
180
|
${e.theme.colors.dropShadowNormal}`};
|
|
181
181
|
`,me=i.div`
|
|
182
182
|
display: flex;
|
|
@@ -206,19 +206,19 @@ import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,
|
|
|
206
206
|
flex-direction: row;
|
|
207
207
|
justify-content: center;
|
|
208
208
|
align-items: center;
|
|
209
|
-
padding: ${
|
|
209
|
+
padding: ${t.sp3} ${t.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: ${t.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=>`${t.sp0} 2px ${t.sp1}
|
|
220
220
|
${e.theme.colors.dropShadowNormal}`};
|
|
221
|
-
border-radius: ${
|
|
221
|
+
border-radius: ${t.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,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,
|
|
|
228
228
|
color: ${e=>e.theme.colors.primary};
|
|
229
229
|
border-color: ${e=>e.theme.colors.primary};
|
|
230
230
|
}
|
|
231
|
-
margin-bottom: ${
|
|
231
|
+
margin-bottom: ${t.sp6};
|
|
232
232
|
`,ge=i(O)`
|
|
233
|
-
width: ${
|
|
234
|
-
height: ${
|
|
233
|
+
width: ${t.sp3};
|
|
234
|
+
height: ${t.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{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt,fM as Lt,fN as Ot,j as t,bO as ze,bQ as Ae,bR as Me,Y as y,aW as Re,aH as _t,dr as Wt,fO as Et,fZ as Pe,o as a,fP as Be,cP as b,cR as x,fS as w,_ as Ne,cO as Le,r as K,fU as Oe,a7 as Kt,p as Ft,fV as Vt,fW as ae,aR as Ut,fX as Yt,a6 as Gt,Q as Ht,h as qt,t as et,as as tt,g as F,m as Jt,eY as Qt,v as Xt,gc as Zt,g8 as ei,q as c,ah as ti,cl as ii}from"./index-Dr7k10Ge.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-BE4ZqriT-CfpM2_BI.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-C3xQE0te-BFkbocnS.js";import"./uploadReceipts-Buvz7DfG-CEx_e_oz.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:V,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:U,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),[q,J]=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")&&U()},[e,U]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{U()};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),xe=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:fe}=xe,{reimbursementDetail:i,bulkActions:N}=xe.spendManagement.reimbursement,X=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():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),Se()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),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:X??we,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(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ue,{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(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{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(Xe,{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:V,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(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,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(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{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:x({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(w,{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:x({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(w,{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:x({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(w,{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:x({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(w,{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:x({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(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{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:x({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(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{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:x({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(w,{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(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.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(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.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(xi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick: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:q==="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(Ft,{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(wi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,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:xt,threadUnResolve:wt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const V=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:V.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
1
|
+
import{t as At,d2 as Mt,X as Rt,u as Pt,bC as Bt,C as m,M as Ze,l as ie,fI as Nt,fK as Lt,fL as Ot,j as t,bO as ke,bQ as Ae,bR as Me,Y as y,aV as Re,aI as _t,dq as Wt,fM as Et,fX as Pe,o as a,fN as Be,cP as b,cR as w,fQ as x,_ as Ne,cO as Le,v as K,fS as Oe,a3 as Kt,m as Ft,fT as Ut,fU as ae,aR as Vt,fV as Yt,a2 as Gt,Q as Ht,h as qt,q as et,an as tt,g as F,f as Qt,eW as Jt,w as Xt,ga as Zt,g6 as ei,n as c,bH as ti,cl as ii}from"./index-DyBH5SZv.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-D0CgJxyu-9_MCn8Y6.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-wIV1i6gf-__2UovKF.js";import"./uploadReceipts-D80JLNY4-sjevKwVl.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,z]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[q,Q]=p.useState("approved"),P=p.useRef(null),[j,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=l.labelWidth.value(o),k=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,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=()=>{J({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{J({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{J({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!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),zt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,kt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(ki,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{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(Xe,{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(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${s.lineId}`]=ze)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children: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:k},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:k},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:k},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Qe,{windowSize:o,children:[t.jsx(Je,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.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(Xe,{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(Je,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.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(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick: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:q==="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(Ft,{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)=>kt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -6,7 +6,7 @@ import{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK 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: ${F.alertLight};
|
|
12
12
|
color: ${F.brandColorGoldDark};
|
|
@@ -37,7 +37,7 @@ import{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt
|
|
|
37
37
|
width: ${a.sp4};
|
|
38
38
|
height: ${a.sp4};
|
|
39
39
|
color: ${F.brandColorGoldDark};
|
|
40
|
-
`,
|
|
40
|
+
`,Ue=r(et)`
|
|
41
41
|
margin-bottom: ${e=>l.bottomMargin.valuePx(e.windowSize)};
|
|
42
42
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
43
43
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
@@ -63,9 +63,9 @@ import{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt
|
|
|
63
63
|
`,bi=r.div`
|
|
64
64
|
display: flex;
|
|
65
65
|
justify-content: flex-end;
|
|
66
|
-
`,
|
|
66
|
+
`,wi=r.div`
|
|
67
67
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
68
|
-
`,
|
|
68
|
+
`,xi=r(ei)`
|
|
69
69
|
cursor: pointer;
|
|
70
70
|
color: ${e=>e.theme.colors.hero};
|
|
71
71
|
width: ${a.sp5};
|
|
@@ -97,7 +97,7 @@ import{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt
|
|
|
97
97
|
&:hover {
|
|
98
98
|
color: ${e=>e.theme.colors.primary};
|
|
99
99
|
}
|
|
100
|
-
`,
|
|
100
|
+
`,Ve=r(tt)`
|
|
101
101
|
display: flex;
|
|
102
102
|
color: ${e=>e.borderColor};
|
|
103
103
|
align-items: center;
|
|
@@ -173,7 +173,7 @@ import{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt
|
|
|
173
173
|
justify-content: space-between;
|
|
174
174
|
position: fixed;
|
|
175
175
|
z-index: 4;
|
|
176
|
-
`,
|
|
176
|
+
`,zi=r(Vt)`
|
|
177
177
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
178
178
|
cursor: pointer;
|
|
179
179
|
width: ${a.sp4};
|
|
@@ -184,7 +184,7 @@ import{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt
|
|
|
184
184
|
background-color: ${e=>e.theme.colors.grey3};
|
|
185
185
|
min-height: 1px;
|
|
186
186
|
max-height: 1px;
|
|
187
|
-
`,
|
|
187
|
+
`,ki=r(Gt)`
|
|
188
188
|
cursor: pointer;
|
|
189
189
|
width: ${a.sp4};
|
|
190
190
|
height: ${a.sp4};
|
|
@@ -272,7 +272,7 @@ import{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK 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,7 +283,7 @@ import{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK 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
|
+
`,Je=r(Jt)`
|
|
287
287
|
display: flex;
|
|
288
288
|
width: 176px;
|
|
289
289
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{t as me,u as z,X as v,a1 as de,l as D,M as K,j as e,Y as c,aV as pe,K as g,i as m,o as s,Z as xe,c0 as he,a5 as F,f as ue,C as ge,g as j,c2 as we,a6 as je,ao as fe,n as be}from"./index-DyBH5SZv.js";import{b,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-D_WPTVKr-DYqVpuuh.js";import{f as ke,C as N}from"./play-icon-D3OSczih-8eMagn70.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",X="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(be[5],44)},ze=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -17,7 +17,7 @@ import{V as me,u as z,X as v,a5 as de,l as D,M as K,j as e,Y as c,aW as pe,K as
|
|
|
17
17
|
margin: auto;
|
|
18
18
|
padding: ${s.sp5} ${s.sp0};
|
|
19
19
|
color: ${i=>i.theme.colors.primary};
|
|
20
|
-
`,
|
|
20
|
+
`,G=t.div`
|
|
21
21
|
display: flex;
|
|
22
22
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
23
23
|
align-items: center;
|
|
@@ -28,7 +28,7 @@ import{V as me,u as z,X as v,a5 as de,l as D,M as K,j as e,Y as c,aW as pe,K as
|
|
|
28
28
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
31
|
-
`,w=t.img``,
|
|
31
|
+
`,w=t.img``,W=t.div`
|
|
32
32
|
width: ${i=>i.windowSize==="small"?"auto":"376px"};
|
|
33
33
|
display: flex;
|
|
34
34
|
flex-direction: column;
|
|
@@ -48,7 +48,7 @@ import{V as me,u as z,X as v,a5 as de,l as D,M as K,j as e,Y as c,aW as pe,K as
|
|
|
48
48
|
100% {
|
|
49
49
|
transform: scale(100%)
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,Y=t.div`
|
|
52
52
|
width: ${s.sp9};
|
|
53
53
|
height: ${s.sp9};
|
|
54
54
|
background: ${i=>i.theme.colors.playButtonBackGroundColor};
|
|
@@ -60,7 +60,7 @@ import{V as me,u as z,X as v,a5 as de,l as D,M as K,j as e,Y as c,aW as pe,K as
|
|
|
60
60
|
color: ${j.backgroundThemeLight};
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
animation: ${Re} 1s ease infinite;
|
|
63
|
-
`,
|
|
63
|
+
`,q=t.div`
|
|
64
64
|
width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
|
|
65
65
|
overflow: hidden;
|
|
66
66
|
max-width: 712px;
|
|
@@ -86,7 +86,7 @@ import{V as me,u as z,X as v,a5 as de,l as D,M as K,j as e,Y as c,aW as pe,K as
|
|
|
86
86
|
align-items: center;
|
|
87
87
|
text-align: start;
|
|
88
88
|
box-sizing: border-box;
|
|
89
|
-
`,$=t(
|
|
89
|
+
`,$=t(fe)`
|
|
90
90
|
color: ${i=>i.theme.colors.champion};
|
|
91
91
|
`,y=t(je)`
|
|
92
92
|
color: ${i=>i.theme.colors.champion};
|
|
@@ -109,4 +109,4 @@ import{V as me,u as z,X as v,a5 as de,l as D,M as K,j as e,Y as c,aW as pe,K as
|
|
|
109
109
|
margin: ${s.sp3} auto;
|
|
110
110
|
max-width: 772px;
|
|
111
111
|
color: ${i=>i.theme.colors.hero};
|
|
112
|
-
`,r=K.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=K.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(
|
|
112
|
+
`,r=K.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=K.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(G,{windowSize:o,children:[e.jsxs(q,{windowSize:o,children:[e.jsx(Y,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:X,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(W,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.simplestText.bold}),e.jsx(k,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.aiPoweredText.bold}),e.jsx(k,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.multiLevelApprovalText.bold}),e.jsx(k,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(G,{windowSize:o,children:[e.jsxs(W,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.simplestText.bold}),e.jsx($,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx($,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx($,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsxs(q,{windowSize:o,children:[e.jsx(Y,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:X,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},Xe=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:re,onBackClick:se,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=b.useState(!1),[ne,I]=b.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,B=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),f=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=f?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;b.useEffect(()=>{B==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[B,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{I(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:r.title,backgroundColor:le.colors.grey4,onBackClick:se,showBackButton:!f,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Ie,{onImageClick:M}):e.jsx(Be,{onImageClick:M}),e.jsx(Pe,{children:f?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(V,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(Z,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:re,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(E,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(V,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(Z,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(E,{children:[r.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:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{Xe as default};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import{u as Ee,X as Ve,a1 as N,a as qe,c3 as Ge,M as Te,l as Ke,a7 as be,j as t,cI as Ze,g as K,C as r,aV as Je,c as Ye,F as Qe,c_ as Xe,aQ as et,c$ as tt,a3 as it,o as a,n,bH as nt,cg as ot,co as at,eY as ve,eZ as ke,fH as lt,K as rt,Y as $e,Q as Pe,bc as st,w as ct,aN as dt}from"./index-DyBH5SZv.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{F as ut}from"./HelpButton-Dv3nbc1Z-CHaoZd0g.js";import{K as je}from"./SetUpDefaultSection-ul-q6U3w-CKVV_QFK.js";import{f as mt}from"./SpendMgmtSetupAccountSection-BtcwTlJT-Bsya0Qr3.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-KkO_TLUT-n0LOLnpS.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-D_WPTVKr-DYqVpuuh.js";import"./ChargeCardUtils-BvVm2SMq-B6pl3c2F.js";import"./CreditCardPaymentPlgSection-BhHsjqZA-DtxErSDc.js";import"./ChaseOverlay-CI8lEzod-DNTlxx9v.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:Z}){const l=Ve(),D=Ee(),{formState:{errors:J},trigger:Y}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(J,E),{localData:c,updateStatus:R,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Q,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,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(()=>{S||H(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=Q,ne=S===!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(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.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:S||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(It,{children:S?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick: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
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
5
|
+
opacity: ${e=>e.isActive?1:.32};
|
|
6
|
+
row-gap: ${e=>h.rowGap.valuePx(e.windowSize)};
|
|
7
|
+
`,wt=i.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
width: 100%;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
justify-content: flex-start;
|
|
12
|
+
`,yt=i.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
`,Ct=i.div`
|
|
15
|
+
${e=>`${ge.title.style(e.windowSize)}`};
|
|
16
|
+
color: ${e=>e.isError===!0?K.important:e.theme.colors.primary};
|
|
17
|
+
`,St=i(ct)`
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
color: ${e=>e.theme.colors.hero};
|
|
22
|
+
`,bt=i.div`
|
|
23
|
+
display: flex;
|
|
24
|
+
width: ${a.sp4};
|
|
25
|
+
height: ${a.sp4};
|
|
26
|
+
margin-left: ${a.sp4};
|
|
27
|
+
`,vt=i.div`
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: flex-start;
|
|
31
|
+
padding: ${e=>h.iconPadding.valuePx(e.windowSize)};
|
|
32
|
+
background: ${e=>e.isDarkMode?e.theme.colors.brandColorJadeDark:e.theme.colors.brandColorJadeLight};
|
|
33
|
+
border-radius: ${a.sp11};
|
|
34
|
+
width: fit-content;
|
|
35
|
+
height: fit-content;
|
|
36
|
+
color: ${e=>e.isDarkMode?K.neutralGrey5Light:e.theme.colors.brandColorOnyx}; // As per design
|
|
37
|
+
max-width: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
38
|
+
max-height: ${e=>h.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
|
|
39
|
+
margin-right: ${e=>h.iconContainerMarginRight.valuePx(e.windowSize)};
|
|
40
|
+
`,kt=i.div`
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
padding: ${e=>h.containerPadding.valuePx(e.windowSize)};
|
|
44
|
+
width: ${e=>h.sectionWidth.valuePx(e.windowSize)};
|
|
45
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
46
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
47
|
+
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
48
|
+
border-radius: ${a.sp2};
|
|
49
|
+
fill: ${e=>e.theme.colors.grey1};
|
|
50
|
+
color: ${e=>e.theme.colors.grey1};
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
box-sizing: border-box;
|
|
53
|
+
&:hover {
|
|
54
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
55
|
+
color: ${e=>e.theme.colors.primary};
|
|
56
|
+
fill: ${e=>e.theme.colors.primary};
|
|
57
|
+
}
|
|
58
|
+
`,$t=i.div`
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
flex-direction: row;
|
|
62
|
+
justify-content: space-between;
|
|
63
|
+
`,Pt=i.div`
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
color: ${e=>e.theme.colors.primary};
|
|
67
|
+
${e=>`${ge.title.style(e.windowSize)}`};
|
|
68
|
+
`,jt=i.div`
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
`,At=i.div``,Dt=i(st)`
|
|
72
|
+
color: ${e=>e.theme.colors.comingSoon};
|
|
73
|
+
margin-left: ${a.sp3};
|
|
74
|
+
`,Et=i.div`
|
|
75
|
+
display: flex;
|
|
76
|
+
width: 100%;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
justify-content: flex-start;
|
|
79
|
+
margin-top: ${a.sp3};
|
|
80
|
+
`,Vt=i.div`
|
|
81
|
+
display: flex;
|
|
82
|
+
height: ${a.sp6};
|
|
83
|
+
width: 100%;
|
|
84
|
+
position: relative;
|
|
85
|
+
`,Tt=i.label`
|
|
86
|
+
display: flex;
|
|
87
|
+
padding-left: ${e=>h.infoLabelPaddingLeft.valuePx(e.size)};
|
|
88
|
+
color: ${e=>e.hasError===!0?K.important:e.additionalInfoTextColor??e.theme.colors.hero};
|
|
89
|
+
${e=>`${ge.infoLabel.style(e.size)}`};
|
|
90
|
+
margin-top: ${a.sp1};
|
|
91
|
+
`,It=i.div`
|
|
92
|
+
display: flex;
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 50%;
|
|
95
|
+
transform: translateY(-50%);
|
|
96
|
+
right: ${a.sp3};
|
|
97
|
+
`,Lt=i(dt)`
|
|
98
|
+
width: ${a.sp3};
|
|
99
|
+
height: ${a.sp3};
|
|
100
|
+
cursor: ${e=>e.isDisabled==null?"pointer":"default"};
|
|
101
|
+
pointer-events: ${e=>e.isDisabled==null?"initial":"none"};
|
|
102
|
+
color: ${e=>e.theme.colors.hero};
|
|
103
|
+
&:hover {
|
|
104
|
+
color: ${e=>e.theme.colors.primary};
|
|
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:Z,analytics:l,accountsPromoConfig:D,onBackClick:J,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:C,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Q,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,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(L.fetchState),ye=N(re.fetchState),Ce=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"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Ce==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Ce,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),S()}),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&&Q(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];C(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"&&L.fetchState==="Completed"&&V()},[V,we,L.fetchState]);const{commonSetUp:Se,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Se,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Ke.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Se.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"?I(!0):Y?.()};return t.jsxs(zt,{children:[t.jsx(Ze,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!1),style:{backgroundColor:K.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:L,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Je,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:J,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(Qe,{...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(Xe,{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:Le,allFundingAccounts:he,sectionId:q,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,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:L.fetchState==="In-Progress"||Ie.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:Z,analytics:l,productType:"reimbursement"})]})},zt=i.div`
|
|
107
|
+
display: flex;
|
|
108
|
+
min-height: 100%;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
width: 100%;
|
|
111
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
112
|
+
`,Mt=i(nt)`
|
|
113
|
+
color: ${e=>e.theme.colors.hero};
|
|
114
|
+
display: flex;
|
|
115
|
+
justify-content: center;
|
|
116
|
+
width: ${e=>p.titleWidth.valuePx(e.windowSize)};
|
|
117
|
+
padding-top: ${e=>p.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
118
|
+
padding-bottom: ${e=>p.subTitlePaddingBottom.valuePx(e.windowSize)};
|
|
119
|
+
text-align: ${e=>e.windowSize==="small"?"initial":"center"};
|
|
120
|
+
`,Ft=i.div`
|
|
121
|
+
display: flex;
|
|
122
|
+
justify-content: flex-start;
|
|
123
|
+
height: 100%;
|
|
124
|
+
overflow-y: auto;
|
|
125
|
+
flex-direction: column;
|
|
126
|
+
align-items: center;
|
|
127
|
+
row-gap: ${e=>p.setupDetailsRowGap.valuePx(e.windowSize)};
|
|
128
|
+
`,Rt=i.div`
|
|
129
|
+
display: flex;
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: calc(100vh - 110px);
|
|
132
|
+
flex-direction: row;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
align-items: center;
|
|
135
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
136
|
+
`,Ut=i.div`
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
row-gap: ${e=>p.sectionRowGap.valuePx(e.windowSize)};
|
|
140
|
+
`,pe=e=>{const{allBankAccounts:y,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[q]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:y.map(s=>({label:s.accountName,value:s.accountId}))}},[G]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{ni as default,De as uniqueName};
|