@zeniai/web-cockpit-ui 1.14.12-qa → 1.14.13-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-DVi_fb5U-BWoXmLUY.js +21 -0
- package/dist/assets/{AIPerformancePage-C459GJxs-CUFOWwFR.js → AIPerformancePage-C-orwzaK-DOCKSZSl.js} +44 -44
- package/dist/assets/{AccountInfoPage-DWqJj9l6-Capr_Z-3.js → AccountInfoPage-DvhQOLM6-C0wQ6YRZ.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-Ca328DM4-Cb8-F3Q9.js → AccountInfoPageContent-B1BJnQNd-Dywp_u_s.js} +18 -18
- package/dist/assets/{AccountReconDetailsDrawerPage-BqIo4mya-BHbTJiEq.js → AccountReconDetailsDrawerPage-C8EtTwZE-BoEh8Ely.js} +13 -13
- package/dist/assets/{AccountRow-Bk3xWobY-C4Zvilnd.js → AccountRow-m3N4T8ro-CB7I5u10.js} +27 -27
- package/dist/assets/{AccountsPromoCardStack-Co90dxxm-BlSZ2eIa.js → AccountsPromoCardStack-DGHAcZ7D-BqYytjsB.js} +28 -28
- package/dist/assets/{AddAddressForCardDrawer-XNGsKMvs-rj1kuL_e.js → AddAddressForCardDrawer-B_1jj1h7-Cu6_XTQ0.js} +2 -2
- package/dist/assets/{AddToWalletPage-BiQWQXvz-Bblrbomq.js → AddToWalletPage-DL1Bk4bd-ClBCUS3g.js} +21 -21
- package/dist/assets/{AgingReportsPage-ClR6ctjm-BvsA-X32.js → AgingReportsPage-DQ4P7iSR-BaDY7W1-.js} +8 -8
- package/dist/assets/{AllUserItems-RFWkNfw--C4DCHl34.js → AllUserItems-BSWk_1pR-BC2mjTTt.js} +13 -13
- package/dist/assets/{ApAgingDetailPage-F-pd4-We-BM-jeada.js → ApAgingDetailPage-0i8K1czh-BtF7tRtB.js} +2 -2
- package/dist/assets/{AppBasePage-B9-FGKn--CpOP-7R8.js → AppBasePage-CV3kU-Ax-HUIuRSgH.js} +7 -7
- package/dist/assets/{AppDrawerContent-C6P8rk3y-BWhPaRYb.js → AppDrawerContent-DA8q-1_m-Ip7rRN25.js} +19 -19
- package/dist/assets/{ApprovalRulesSettingsPage-CPNEEGTF-BhZ8kwTo.js → ApprovalRulesSettingsPage-CRlqbhea-CnWEhcBd.js} +7 -7
- package/dist/assets/{ArAgingChart-D9qmMVoC-DsreAD17.js → ArAgingChart-CiJNNObG-DOT8YGoK.js} +6 -6
- package/dist/assets/{ArAgingDetailPage-DMuZM6P_-Vz-qJNmg.js → ArAgingDetailPage-2I9R_J97-CEWBavmC.js} +1 -1
- package/dist/assets/{AttachmentView-B2ZOED0q-dJMT88ra.js → AttachmentView-D0naVbDk-BMIJVqWj.js} +7 -7
- package/dist/assets/{BankAccountSection-C8G4yj75-B_w1M8Cy.js → BankAccountSection-CYYTnOEW-ta40gqBk.js} +6 -6
- package/dist/assets/BankAccountWarningSection--b6oxmO3-bf21H1-K.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-B5IQ5w6f-1z2_M0sV.js → BankConnectionsSettingsPage-BzwCu93j-CCEpUgq7.js} +49 -49
- package/dist/assets/{BillDetailPage-B-PMkZ44-Dz4DR1t2.js → BillDetailPage-OzI0RkQ_-Bav1HJG-.js} +16 -16
- package/dist/assets/{BillPayApprovalRuleDetailPage-CdLKENJ--kCXb23Bw.js → BillPayApprovalRuleDetailPage-DIQW7KY9-C0xmBCct.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BueljBn0-CPA-G34p.js → BillPayApprovalRulesPage-BMmJ4cuT-CLahxDlm.js} +9 -9
- package/dist/assets/{BillPayPromoPage-WXntEliq-SuckTMGr.js → BillPayPromoPage-CN5LKQzn-T_t_dz_s.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-By7rYetf-BlaS7RoJ.js → BillPaySetUpPage-DMKmupPw-CmltaH2A.js} +2 -2
- package/dist/assets/{BillingSettingsPage-D-XtlyVU-D47jr1yc.js → BillingSettingsPage-Bt_0mrqR-CgkXOlNp.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-P8siJ8lO-69e-PfV-.js → BillsBulkReviewDrawerPage-GFME_IXw-CmxfCt6F.js} +1 -1
- package/dist/assets/{BoxItem-Bcy7IYuZ-CuoCQ3AF.js → BoxItem-nvtPdCwS-CiJFmSMj.js} +1 -1
- package/dist/assets/BusinessVerificationPage-_E3jrLwS-D28zK5AA.js +140 -0
- package/dist/assets/{CardNumberSubText-VsMOF0Xv-DCsVHK-6.js → CardNumberSubText-DBpF1pjJ-BDHubHrk.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DNbRs50r-Buun1iiv.js → CashbackDetailPage-DrdbDPXK-BHacfWCb.js} +30 -30
- package/dist/assets/{ChargeCardDetailPage-BSDS8Kqb-DpPROxWg.js → ChargeCardDetailPage-DvY3CSB4-DTju6vUj.js} +54 -54
- package/dist/assets/{ChargeCardListPage-Bzr8qMC0-CP4LVMfI.js → ChargeCardListPage-BE5yGbg8-B5XQaFqy.js} +14 -14
- package/dist/assets/{ChargeCardListTable-CTp6TFBR-BvzqcSSI.js → ChargeCardListTable-B-scLCAt-DWKxrdfC.js} +37 -37
- package/dist/assets/ChargeCardPromoPage-2OheDHbA-BAFEqKdK.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-B1wzJjgH-CTGNj7vw.js → ChargeCardSetupPage-FNCK1n4W-DRpaATuu.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CePfbLPp-CyQ0YrOT.js → ChargeCardStatementsPage-1fuIth_h-DUYP62lN.js} +9 -9
- package/dist/assets/{ChargeCardUtils-DC2v2EHU-B8YRIRH7.js → ChargeCardUtils-CErWBcYS-DYGG4Kg0.js} +1 -1
- package/dist/assets/{ChaseOverlay-B-Sx71yo-CVGS055Q.js → ChaseOverlay-9_ms5LgM-DLbFcFUT.js} +7 -7
- package/dist/assets/CheckDepositDrawerPage-DEFEMwuI-FYtd8ETj.js +206 -0
- package/dist/assets/{CollapsableReportTable-mEqm05fp-CpGwQyDI.js → CollapsableReportTable-DX-FpwE7-MJq_0H8T.js} +59 -59
- package/dist/assets/CompanyOfficerDetailsSection-BEgNqg-b-BZkAjfXP.js +260 -0
- package/dist/assets/{CompanyPassportCard-Ct6tCZqT-gCSCuEJk.js → CompanyPassportCard-BZXE3iJL-D0vVN1yd.js} +4 -4
- package/dist/assets/{CompanyPassportPage-D9NQ4bXl-DTZK2KZn.js → CompanyPassportPage-BYZC3G4H-Dyir7GPA.js} +22 -22
- package/dist/assets/CompleteProfile-mCKLQjGe-D37b51yU.js +52 -0
- package/dist/assets/{ConfettiBurst-DqSwVGBC-BHlAAcPF.js → ConfettiBurst-BEoFHjQ0-BZkigu9v.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D27A1926-BsU3_dv5.js → CreateOrEditVendorPage-6sohsdle-DulmpRQu.js} +11 -11
- package/dist/assets/{CreditCardPaymentDrawerPage-BI37dSwx-39VjlJr3.js → CreditCardPaymentDrawerPage-6oVDS3D8-BG57VbJ5.js} +21 -21
- package/dist/assets/{CreditCardPaymentPlgSection-CAsn4Ae6-CZm-m7f1.js → CreditCardPaymentPlgSection-DX1BieKp-CaB1ZnNz.js} +11 -12
- package/dist/assets/{CurrencySelectField-5uG4FfJ9-qAwPonrx.js → CurrencySelectField-F2P1iCLk-DqZUsNYq.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-Be-GrAiK-besA9uPP.js → CustomerOnboardingActivationPage-CNJkyjta-BXFLHGd8.js} +8 -8
- package/dist/assets/CustomerOnboardingContainerPage-D6yeERaX-CnXYVWPD.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DhGp71bj-DWlhhsi_.js → CustomerOnboardingDetailPageSkeleton-B_MgUg-5-Bgdn7kSU.js} +12 -12
- package/dist/assets/{CustomerOnboardingNoStepsPage-CdOGTNXC-CHTF3KrU.js → CustomerOnboardingNoStepsPage-B49-4wZk-KyTxoYIy.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-ClPsywa3-DzHYHzx_.js → CustomerOnboardingPage-4FPXG220-Bhtz8R34.js} +7 -7
- package/dist/assets/{CustomerOnboardingProductSuitePage-pnHglqXq-CCAeHa0M.js → CustomerOnboardingProductSuitePage-cJPPvh-5-CdfdHVAA.js} +9 -9
- package/dist/assets/{Dashboard-avtbjFLf-CWLaijij.js → Dashboard-BBy_mQ8p-zBP8Z7QF.js} +260 -242
- package/dist/assets/{DashboardReportPage-CqJAu5WP-C5R220Aq.js → DashboardReportPage-DYttySr4-ICoa42Db.js} +6 -6
- package/dist/assets/{DepositAccTransactionItem-Da0GWYei-C6IiAcvx.js → DepositAccTransactionItem-PNTL0e8v-Bf5t1weD.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-DUwVnkwy-91dKQsy5.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DGcVKriv-CQ6tNZZ5.js → DomesticWireDetailsPage-BhwTfZwI-lG3b6Dqd.js} +1 -1
- package/dist/assets/{DownloadOverlay-BdGiqnp7-Do8jKDZO.js → DownloadOverlay-CUbv29mo-Cm7YvHGd.js} +21 -21
- package/dist/assets/{DrawerPage-DCfm1BVs-CkoWC70i.js → DrawerPage-2_QOgQ1m-jFj08QrD.js} +11 -11
- package/dist/assets/EditPeoplePage-CtTYiqg3-C_rRpXUg.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-C-nYgUua-C1FZgAx7.js → EditReimbursementDetailPage-C_jRh7w0-BjxLHuhj.js} +61 -61
- package/dist/assets/{EntityDetailPage-4HX_rHUf-CkoCECUD.js → EntityDetailPage-BhQsnCgQ-BJqshBB_.js} +3 -3
- package/dist/assets/{EntitySummarySection-C9VeOBpT-C1O3lIMZ.js → EntitySummarySection-CKkXzM76-JNV3nj4B.js} +12 -12
- package/dist/assets/{ExpenseAutomationOverviewPage-8jTkscWa-CfASrU1u.js → ExpenseAutomationOverviewPage-ZuB3Aiv2-g-beRD6J.js} +26 -26
- package/dist/assets/{ExpenseAutomationPage-D1wcc9GW-C8FX-4rm.js → ExpenseAutomationPage-BUic8zfk-CY9AnIj2.js} +41 -41
- package/dist/assets/{ExpressPayPage-Cj6cvMwQ-D9CJAZ17.js → ExpressPayPage-DEkJ_H0W-D2MJYEqV.js} +12 -12
- package/dist/assets/FeaturePreviewPage-CtK7L5vk-zb1RibOL.js +11 -0
- package/dist/assets/{FollowStepsSection-DjfnVH8N-B6vBO9jA.js → FollowStepsSection-CWw764ZM-BMjBkJvU.js} +9 -9
- package/dist/assets/{GlobalReviewListPage-CEOzc0We-DJGBphLn.js → GlobalReviewListPage-CZctHM7r-C-SmU9tc.js} +12 -12
- package/dist/assets/{HelpButton-BdhMFvtG-BdXfZX0U.js → HelpButton-Dpx0Yoel-1C4sAmaf.js} +4 -4
- package/dist/assets/{InformationCardStack-DFOumIBr-C0vq2uPl.js → InformationCardStack-BGpHl4yb-D2VMsFIF.js} +5 -5
- package/dist/assets/InsightsCardStack-BbMJEahw-XjHe58kA.js +79 -0
- package/dist/assets/InsightsSection-CYkuQHcj-B18a-FIC.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-DF-jcHzr-CvvJemcw.js → IntegrationsSettingsPage-CMjSCRm_-C9xmqHS7.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-BFMqW1oQ-cIs7ycQ9.js → InternationalWireSwiftDetailsPage-BTbTUt8U-DHwEWLr_.js} +15 -15
- package/dist/assets/{InternationalWireVerificationPage-Cq7swzrt-BXVkaYvX.js → InternationalWireVerificationPage-DAW2eMTg-BGhWwB2B.js} +22 -22
- package/dist/assets/{InviteFormPage-DXl2sEn9-Qq6BD2nX.js → InviteFormPage-CCbyacPR-DUt2JWiG.js} +20 -20
- package/dist/assets/{InvitePageListView-B5fRPcOg-BIAYUEYw.js → InvitePageListView-mHkALr5o-BpwevZSI.js} +62 -62
- package/dist/assets/InvitePeoplePage-r6PLBiEv-CRU1obhZ.js +12 -0
- package/dist/assets/{InvoiceUploadSection-opkVsXZH-CiDZyXEw.js → InvoiceUploadSection-BsjeicP1-CxRipy2m.js} +41 -41
- package/dist/assets/{IssueChargeCardPage-CZU1qbHO-D3xb_BWj.js → IssueChargeCardPage-C3esnkQg-Bt2ncw32.js} +33 -33
- package/dist/assets/{LabeledAddressValue-CCd3y8zQ-BLzq0Yq7.js → LabeledAddressValue-CeeoKoY4-C81fNRY2.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-XuFlx-oK-YJyhDZDY.js → LabeledAddressValueField-B6eeRCSM-BGM6iGCs.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-CCQn4-_S-CzvDrRjj.js → LabeledControlledCheckBoxField-CK8YBqJ7-dH7h4-c9.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-uQKngCdt-CU01d4Cj.js → LabeledCreatableSingleSelectField-BSKL8pA3-y22U9yzT.js} +6 -6
- package/dist/assets/LabeledDocumentField-BEyArLK3-Bbt820GM.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-BrUNxsKy-CdrCxnZe.js → LabeledDropDownFormattedTextField-DikXPnxD-3H5194hi.js} +7 -7
- package/dist/assets/{LabeledText-ByqI7uq0-DxtGCoMb.js → LabeledText-qSjyNZO1-BMO1teu9.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dg1Lpwl0-CcatEpZT.js → LabeledUserSingleSelectWithSubtitlesField-x87S_Azj-BPP3i4wb.js} +16 -16
- package/dist/assets/{LabeledZeniRolesDropDownField-DZL4GZtE-BBfYQkEz.js → LabeledZeniRolesDropDownField-nm5bG2up-B-C-v8v9.js} +17 -17
- package/dist/assets/{LinkJETransactionPage-CJlBllrr-6j6wzRRV.js → LinkJETransactionPage-p7wdZbtp-BamvjpR7.js} +13 -13
- package/dist/assets/{LowBalancePopup-BEvuAR0Z-Bk_xFnCD.js → LowBalancePopup-DHk6xd2B-V5eEOh0a.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-DloX1GWg-BFMutoMu.js → MagicLinkACHDetailsPage-DRQ8oej8-B79oZw1R.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DewjvM4v-DuBt-sx-.js → MagicLinkDomesticWireDetailsPage-BxXU9Opg-BdNHmjDj.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CVhazlxQ-BlY4hBeE.js → MagicLinkInternationalWireDetailsPage-DYN1baIc-DT4ZdIcR.js} +1 -1
- package/dist/assets/MagicLinkSuccessPage-CX3bJ5_B-Bgn3-P2S.js +31 -0
- package/dist/assets/{MagicLinkTitleSection-d1edBt3w-BVfkhuQ-.js → MagicLinkTitleSection-K2cZQVzq-CIEidPVy.js} +4 -4
- package/dist/assets/MailingDetailsSection--zHyCquq-Cn3SWfKt.js +21 -0
- package/dist/assets/{MeetingCalenderPopup-MtSyJ1AS-C61rImN5.js → MeetingCalenderPopup-DbFlQ8Km-9ZxBnjo6.js} +1 -1
- package/dist/assets/{Menu-BV79l8xf-B7WjdNMQ.js → Menu-LLL9taEz-CtH4c9eF.js} +2 -2
- package/dist/assets/{MyBankConnectionsSettingsPage-D-xDtURG-C2HMY51d.js → MyBankConnectionsSettingsPage-BfDsHVZw-aWZVlaCb.js} +15 -15
- package/dist/assets/{MyPendingActivationChargeCardListPage-VEhml0PW-BCXZzbbW.js → MyPendingActivationChargeCardListPage-vag56A65-DvFj3aDV.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DPJ0fJdQ-TQrYLgYZ.js → MyProfileSettingsPage-DCKqWh-p-Ca4URKq-.js} +8 -8
- package/dist/assets/NavBarWithPicker-Cvi89wZV-3CVqu6ha.js +30 -0
- package/dist/assets/{NavigationArrow-BwXNdvOg-BPZh6hXD.js → NavigationArrow-CHmddDC--CUC3t4BZ.js} +2 -2
- package/dist/assets/NavigationDots-1wpj484Z-By9SVfKB.js +15 -0
- package/dist/assets/{NewGlobalMerchantPage-IeE86L-X-Bae2AXUm.js → NewGlobalMerchantPage-B0FywA12-BRuJ6OhE.js} +13 -13
- package/dist/assets/{NoDataChart-C9yfE8vY-4P6j_Myy.js → NoDataChart-D43mhDJW-B9CXfEvp.js} +1 -1
- package/dist/assets/{NoDataTable-DF9QNT4a-BHK-o5qC.js → NoDataTable-BOfUxs9D-8iqVCaVk.js} +1 -1
- package/dist/assets/{NotFoundPage-DSaizJve-BxedHkcK.js → NotFoundPage-DFioH5Rt-BQR0ORs3.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DeAeFHmj-DUWQVg3q.js → NotificationSettingsPage-y4g1rAal-BJEuhBam.js} +13 -13
- package/dist/assets/{NotificationsListConfig-DuzDckh--C6BvfucE.js → NotificationsListConfig-sybPesiv-FmaZBisq.js} +1 -1
- package/dist/assets/{NotificationsPage-B7ZC7ezP-Cdj0nN7a.js → NotificationsPage-C88YOjuY-Ds4zz6jH.js} +31 -32
- package/dist/assets/{OpExByVendorPage-DzODetHf-Dm-W-8O1.js → OpExByVendorPage-qBWbJhv9-Cs148Yzz.js} +7 -7
- package/dist/assets/{OverlayContainerPage-GWXnlbZH-Db5ZTmqB.js → OverlayContainerPage-Dres4Grh-BoM1wcb9.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-FEi5USqF-DEFE8FSJ.js → PandLWithForecastPage-uiaHrci6-ClUgwvyo.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BbL4x5pQ-CArcGp7V.js → PaymentAccountSetupBillingAddressSection-BepDUdA0-DvE7tkJU.js} +11 -11
- package/dist/assets/{PeoplePage-B35T31YZ-C-lJt47m.js → PeoplePage-oF6C1uyM-DLFAgG_p.js} +20 -20
- package/dist/assets/{PortfolioAllocationFormPage-D3FP_MRr-BcOrWJml.js → PortfolioAllocationFormPage-C5O3GLqz-BYzrfMTu.js} +4 -4
- package/dist/assets/{PortfolioDetails-Dtz3YEPu-CbnH_B-R.js → PortfolioDetails-BkGNpmoO-B3KzDtEL.js} +31 -31
- package/dist/assets/{ProductsCarousel-DIlEuuqg-BjDLvopn.js → ProductsCarousel-C_tmo4EA-BDn6T3LG.js} +6 -6
- package/dist/assets/{PromoBaseCards-DTsaas8S-Bp3Sdx9s.js → PromoBaseCards-Bq5-q2ew-oeM6E2Gs.js} +5 -5
- package/dist/assets/{QBOConnectionDialog-Cvt38cmU-BbZWHEnH.js → QBOConnectionDialog-BXNWjeYB-CT3y8ZPP.js} +9 -9
- package/dist/assets/QBOSetupSection-D3sIWrh1-Dt8ceji3.js +79 -0
- package/dist/assets/ReimbursementApprovalRuleDetailPage-ClgCUbVP-DfTW4OAe.js +26 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-BG8uMxNw-V-B_Oc7d.js → ReimbursementApprovalRulesPage-hjja5JFq-1dF9j3jn.js} +8 -8
- package/dist/assets/{ReimbursementDetailPage-Cs7XeZrC-CDH5tk6j.js → ReimbursementDetailPage-sXYC_aoR-CngyEl5D.js} +19 -19
- package/dist/assets/{ReimbursementPromoPage-CKITZNUc-B3czdsVE.js → ReimbursementPromoPage-C9zs7VRV-DY_b0K3o.js} +24 -24
- package/dist/assets/{ReimbursementSetUpPage-DD5P181p-BNAJ0P6-.js → ReimbursementSetUpPage-Ban56LOC-Cen4aYhY.js} +11 -11
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C0eORL7o-BZhXRsOE.js → ReimbursementsBulkReviewDrawerPage-CsRwI-rl-KeeGuW4E.js} +1 -1
- package/dist/assets/{ReloadCard-CZ4IXHy1-D0PwAZkP.js → ReloadCard-EBXtqdt5-e0DLVF2o.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-Do0yQJxY-C6yall7R.js → ReportTableViewSelector-Ae5lGopA-CZicNwDg.js} +10 -10
- package/dist/assets/{ReportsPage-BUi475EG-BorB4Vqw.js → ReportsPage-Dh3DhbEK-DCmUMwXx.js} +5 -5
- package/dist/assets/{RevenueChart-DPNqxQ4n-5RLNohUA.js → RevenueChart-C5qfXMEg-D1BQhist.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DTCC2C0D-IffnuWda.js → ReviewDetailsPage-DjcJd2VM-CMmXdVTb.js} +17 -17
- package/dist/assets/{ReviewOverlay-CPN-RHG--C8J652Ar.js → ReviewOverlay-Dmrea9EK-DOxs4FI1.js} +14 -14
- package/dist/assets/RoleWithToolTip-CqeM8Bh0-BSEMOUZO.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BSz5BdJ4-ajU7u-K2.js → ScheduleDetailsFixedAssetsPage-CQGRrdSx-BKHIJc5L.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-DKVlaW9e-Mc61Wcxe.js → ScheduleDetailsPage-D5OBZ80r-BSViQYwc.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-BhpHoReF-BCeDdvJx.js → ScheduleSequenceTable-fgV8zz4I-B96Fw2cP.js} +49 -49
- package/dist/assets/{ScreenRoutes-Cb2UBar1.js → ScreenRoutes-Bs8GRIgm.js} +62 -62
- package/dist/assets/{SetUpAccountSection-Blh-Vipv-DTzNADjZ.js → SetUpAccountSection-4-gtB3I4-CmDUZ7Ps.js} +24 -24
- package/dist/assets/{SetUpDefaultSection-DsyZbNsv-BU4fjsR8.js → SetUpDefaultSection-DSslQOgJ-y5lEHYNN.js} +12 -12
- package/dist/assets/{SignIn-DehOoUba-D1wgEnhj.js → SignIn-CgXxIawW-DSrGSPuV.js} +17 -17
- package/dist/assets/{SignInScreen-CdOVOg4V.js → SignInScreen-DSt7uixJ.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-C23fDDXZ-YGqIsuA5.js → SpendManagementListViewPage-SkhzkIYZ-CI28gjhv.js} +11 -11
- package/dist/assets/{SpendManagementPerTabPage-Cx0sB3qO-BUuUjlAR.js → SpendManagementPerTabPage-CofY1YYQ-C9YpxBTZ.js} +55 -55
- package/dist/assets/{SpendManagementSection-DbZYpbtO-d6L97RYF.js → SpendManagementSection-DbC93chQ-CmYHf5ne.js} +13 -13
- package/dist/assets/{SpendMgmtSetupAccountSection-BkUIdz9m-B2ewL4T_.js → SpendMgmtSetupAccountSection-_8G7bMAw-CYWZUz0n.js} +22 -22
- package/dist/assets/{StatementItem-BF8L0fc_-DzjaOfpz.js → StatementItem-7ezfuDl--CcU7F4Hj.js} +5 -5
- package/dist/assets/{StatementsPage-96e3ZbSU-f9GKAGwn.js → StatementsPage-C4ziRzkU-Cl2Heiw2.js} +6 -6
- package/dist/assets/{StatusSwitcher-jwpQ49F7-BnZJLj82.js → StatusSwitcher-0rVfFE-a-CheRZPfP.js} +7 -7
- package/dist/assets/{SubTabSwitcher-B8H6McwL-Cu2vNU7E.js → SubTabSwitcher-aoWbkCmT-CaMIdf8x.js} +1 -1
- package/dist/assets/{SummaryCard-Bv4ja9yJ-aDvuTxki.js → SummaryCard-6V1G-Yln-AkNgJPj0.js} +1 -1
- package/dist/assets/{TaskManagementPage-D7tD4WRl-Css52_VB.js → TaskManagementPage-DjQma5Cr-DLhPVic-.js} +18 -18
- package/dist/assets/{TimeRangeSwitcher-Cr-ObvZ9-DYgsNzbf.js → TimeRangeSwitcher-DeIRg5zY-Bi--_Fx4.js} +5 -5
- package/dist/assets/{TimeframeSwitcher-YkFxZedG-BzHaiUBA.js → TimeframeSwitcher-Cop4G4gx-DupejW9U.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-BhoniKOB-DuZjqpvb.js +31 -0
- package/dist/assets/{TopExCard-DtrsuLFD-C29DggA1.js → TopExCard-BKirBv7q-BKzGhACE.js} +6 -6
- package/dist/assets/{TopExDetailPage-HMRdJt_a-Dv3hZE10.js → TopExDetailPage-DcVunE8d-BJAugcNm.js} +11 -11
- package/dist/assets/{TransactionDetailPage-CkWEdpTW-D5C8nT3c.js → TransactionDetailPage-TJf3D0K6-ChXVy1nH.js} +26 -26
- package/dist/assets/{TransactionList-8rOZr8BD-z7em6_Iq.js → TransactionList-fn6VXYIJ-XKKmCfLI.js} +4 -4
- package/dist/assets/{TransactionListBig-DGx1qy2c-Bq45CoFX.js → TransactionListBig-B_hNDFjS-Bc3M6sby.js} +25 -25
- package/dist/assets/{TransactionListPage-CnbufCaM-AKYbMbcz.js → TransactionListPage-BbXZWbie-DmTuImVR.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-UpZX_EgR-DgquOs9I.js → TransactionVendorDetailPage-C6qJ5ncL-DRKEGbRL.js} +6 -6
- package/dist/assets/TransferDrawerPage-BtYoqKi--BK8jkNir.js +362 -0
- package/dist/assets/{TreasuryOverviewPage-DoPe6v4O-DcxluBgr.js → TreasuryOverviewPage-DOV8Hanc-BzuaF_Oy.js} +53 -53
- package/dist/assets/{TreasuryPromoPage-Db20FO_G-C0PMRVyO.js → TreasuryPromoPage-C9O7G72q-D0fVcP3x.js} +30 -29
- package/dist/assets/TreasurySetupPage-CNzkkEjw-Dh78QFWy.js +146 -0
- package/dist/assets/{TreasuryStatementsPage-BONCF7O1-Woy-dxsL.js → TreasuryStatementsPage-Ts6D6F-l-CQAmEMl1.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-NCZ0Y4yr-xzYydVxV.js → TreasuryTaxLetterPage-CM93_rS4-CfzYhIka.js} +5 -5
- package/dist/assets/TreasuryTransferOrReviewPage-C8-tbCUQ-DHGOUHuT.js +506 -0
- package/dist/assets/{TrendChart-DQXhBbqy-lVikR6m-.js → TrendChart-BXjPAYgk-DjYRl65V.js} +5 -5
- package/dist/assets/{TrendWithTransactions-Du-a-c_9-D0k8nTAC.js → TrendWithTransactions-BlGX9aVa-DUrKUprM.js} +8 -8
- package/dist/assets/{UncategorizedAccountsMappingPage-mSPC4LpU-Bq53-vV1.js → UncategorizedAccountsMappingPage--PnxDLIj-DgyLI8TV.js} +12 -12
- package/dist/assets/{UnitIntegrationPage-B5O9G4QH-yrWt_3qv.js → UnitIntegrationPage-D5mzaVVL-B87wl-C8.js} +4 -4
- package/dist/assets/{UploadAdditionalDocumentOverlay-CnjzAGYo-D_ZhLUZy.js → UploadAdditionalDocumentOverlay-BXS2l5kF-4XXbIdgY.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CYcCB8tr-m6LRb8Yr.js → Vendor2FAPopup-jXN-6kcB-WQjywdob.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-C6EuQBcH-CBj3o4fH.js → VendorACHDetailsPage-CHfX_7tk-CseZDy3t.js} +1 -1
- package/dist/assets/{VendorDetailPage-CnSXWVCg-5ItKK9hK.js → VendorDetailPage-CZuQaTCe-00z-DC1U.js} +13 -13
- package/dist/assets/{VendorDomesticWireDetailsPage-CVTkzHFB-BtQZkYtT.js → VendorDomesticWireDetailsPage-dBmyAkGL-BzziQHyn.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-TJb9mpk0-Cas0dzf5.js → VendorFiling1099EditablePage-C6KWbHaM-FdVjec5X.js} +7 -7
- package/dist/assets/{VendorFirstReviewPage-gBLVMddY-41zXx76R.js → VendorFirstReviewPage-DLaCXLH8-Bp3HVWXV.js} +30 -30
- package/dist/assets/{VendorInternationalWireDetailsPage-Bhm7j6HC-B5gepNJS.js → VendorInternationalWireDetailsPage-DgCH9Rad-DD-YZWBN.js} +10 -10
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-MgN7VFET-OsBZ-jKy.js → VendorInternationalWireSwiftDetailsPage-CprymE3v-BXc-3kQm.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Cn-8Yemv-2EiEgDAM.js → VendorsAccountsSection-CpkfwFDJ-DeHCyl4j.js} +15 -15
- package/dist/assets/VerifyDevice-CSIkEBig-DzQ9uYAN.js +67 -0
- package/dist/assets/{WarningsDrawerPage-Cc_Rty0A-Bxm78d1e.js → WarningsDrawerPage-DeqbJ2Le-CygSrVz8.js} +12 -12
- package/dist/assets/{ZeniAccountDetailPage-BU2TTiDP-DntPjYyg.js → ZeniAccountDetailPage-kwKoeRAb-yy2D4Oyh.js} +29 -29
- package/dist/assets/{ZeniAccountListViewPage-DbcnkYvX-rxgnFm8v.js → ZeniAccountListViewPage-15LxhIiI-3EkZXZhB.js} +19 -19
- package/dist/assets/ZeniAccountNavBarPieces-C0pq95hS-D_BEJJwy.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-D-5ArrRO-DxJXUZdx.js → ZeniAccountPromoPage-DvlAb5YA-BxPQZ-TN.js} +33 -33
- package/dist/assets/{ZeniAccountSetupPage-DXYR0Ipo-B0J0wJvQ.js → ZeniAccountSetupPage-BjpvTfF5-DJqm4qSs.js} +3 -3
- package/dist/assets/{ZeniCopyright-DPd1ifIT-DNR_P6Qj.js → ZeniCopyright-BYJFIZ_X-DJl-W8Ni.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-Did4Chpj-CHnHwXGw.js +63 -0
- package/dist/assets/{analyticsHelper-DrNmU0vn-RfFhCbWD.js → analyticsHelper-BRyA7WLX-Ch8yhvbw.js} +1 -1
- package/dist/assets/{analyticsHelper-LynOmXwT.js → analyticsHelper-DEjyvXKA.js} +1 -1
- package/dist/assets/{chartTypes-YTQv3tre-qplKaXfA.js → chartTypes-CWEoqL4g-Bo1GQ9Y0.js} +1 -1
- package/dist/assets/{commonDimensions-BtmBVXgZ-BqS_uHfS.js → commonDimensions-UvndzJjv-DkCvzihA.js} +1 -1
- package/dist/assets/{detailCommon-hHyz3hj3-B-18TbC2.js → detailCommon-C3ymS8dg-BusgYXoD.js} +2 -2
- package/dist/assets/{downloadPdf-CDvgLzWC-CFICoubl.js → downloadPdf-CHwWcCR1-BQYdnkG1.js} +1 -1
- package/dist/assets/{index-BP54u7bE.js → index-DYVNUtTS.js} +4129 -3984
- package/dist/assets/{mapLoadingInProgressToTreeNode-BfoqmoAq-RPIy6iu_.js → mapLoadingInProgressToTreeNode-BV9ky97n-C6-bn_qJ.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BjtxR9iQ-CPCcXgC9.js → mapSectionWithAcOnlyToTreeNode-WivyN4Y7-DeEMrm9i.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-D8o529OP-DP0HQuYK.js → mapSpacerToTreeNode-AXNRptLX-B0rl0_Lw.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BirMnIzY-J7LlhZYj.js → mapTimeframeBalancesToTreeNode-DUac2vK4-jK2oIVF4.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-NA69l84M-C2q_xZ5l.js → mapTimeframeBalancesToTreeNode-JTl35sFx-B-SNtaen.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BCqRt8GN-h4qQS3pU.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DtkeOXnf-Dl0F4JWH.js} +1 -1
- package/dist/assets/{play-icon-DyIc5aGx-DYJXRLAT.js → play-icon-HSIOzxQm-DtUz8FwI.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-2jQJLb8S-pfoeU7Ox.js → toCOABalancesWithID-CkjYSysY-DF7YtxZI.js} +1 -1
- package/dist/assets/{toChartData-Dsjd8dGe-DHACvX24.js → toChartData-BhKlnyso-CKLUlraQ.js} +1 -1
- package/dist/assets/{treasuryColorHelper-EG8VpBia-BgT0ZOn3.js → treasuryColorHelper-yIAXBrrM-D_iAl7kS.js} +1 -1
- package/dist/assets/{uploadAttachment-CVUM4FN--C6O7_W28.js → uploadAttachment-CWaYLqwb-DAXv_gFj.js} +32 -32
- package/dist/assets/{uploadReceipts-D80JLNY4-BMq6fzqz.js → uploadReceipts-C6Ld_WLK-CscO-OGr.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/ACHDetailsPage-BQBpkHfF-BJV02vLX.js +0 -21
- package/dist/assets/BankAccountWarningSection-CWXa-X6f-CSqGyUZG.js +0 -51
- package/dist/assets/BusinessVerificationPage-BoSLJbyU-f7l6iMFH.js +0 -140
- package/dist/assets/ChargeCardPromoPage-dIg8OIlx-Ddw_9zEm.js +0 -219
- package/dist/assets/CheckDepositDrawerPage-uABg3PMN-DvmvYwzA.js +0 -206
- package/dist/assets/CompanyOfficerDetailsSection-BzYsDrr2-CLxqo3zC.js +0 -232
- package/dist/assets/CompleteProfile-CN_hAW-2-jVc6moRl.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-B9qcJNx5-BFEUbXJj.js +0 -1
- package/dist/assets/DepositAccTransactionListPage-Db90ITIq-CYwbJ4ON.js +0 -66
- package/dist/assets/DocumentSecurityBanner-Bxg3ctYZ-CgQ3FYOu.js +0 -29
- package/dist/assets/EditPeoplePage-CBPmCcoG-tI7XznTq.js +0 -55
- package/dist/assets/FeaturePreviewPage-BBkfKvIu-C1W_sdo_.js +0 -11
- package/dist/assets/InsightsCardStack-rByhzgji-Dc1ZnT3c.js +0 -79
- package/dist/assets/InsightsSection-jnWJ877y-CHYibtt_.js +0 -27
- package/dist/assets/InvitePeoplePage-DvGON1va-CxkOilw7.js +0 -12
- package/dist/assets/LabeledDocumentField-TFmz23mS-Dg7dpofQ.js +0 -41
- package/dist/assets/MagicLinkSuccessPage-dxBSlbub-EYHDnj3E.js +0 -31
- package/dist/assets/MailingDetailsSection-CsK09X11-DWOFuFpA.js +0 -21
- package/dist/assets/NavBarWithPicker-CuJe05iJ-CtehKlX0.js +0 -30
- package/dist/assets/NavigationDots-BQfoX9p0-CtOBXvA3.js +0 -14
- package/dist/assets/QBOSetupSection-Dijb03ZX-Dtu5gcm7.js +0 -79
- package/dist/assets/ReimbursementApprovalRuleDetailPage-bkJIpwyU-CHus277R.js +0 -26
- package/dist/assets/RoleWithToolTip-Bst2IdUy-HslXk23_.js +0 -22
- package/dist/assets/TimeframeSwitcherWithToggle-4h9WX4z9-D-Rtx-Rf.js +0 -31
- package/dist/assets/TransferDrawerPage-cUyg27nq-BPk1VE3B.js +0 -362
- package/dist/assets/TreasurySetupPage-BoVhd65r-CXuNgzdi.js +0 -152
- package/dist/assets/TreasuryTransferOrReviewPage-DAmZboLO-COiTPnD3.js +0 -506
- package/dist/assets/ZeniAccountNavBarPieces-CeJHAl4O-B_tojQsK.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-di46G5TN-Crpvkv3z.js +0 -63
package/dist/assets/{PromoBaseCards-DTsaas8S-Bp3Sdx9s.js → PromoBaseCards-Bq5-q2ew-oeM6E2Gs.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as c,j as r,
|
|
1
|
+
import{X as c,j as r,dc as b,dd as v,de as L,aT as z,C as a,o as e,d,J as f,s as l}from"./index-DYVNUtTS.js";import{j as i,n as p,k as m}from"./vendor-CnQcJ2Lu.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new f("extraSmallRegular","largeRegular"),promoBusinessText:new f("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(k,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=m`
|
|
2
2
|
0%{
|
|
3
3
|
transform: rotate(12.4deg);
|
|
4
4
|
translate: ${e.sp0} ${e.sp0};
|
|
@@ -23,7 +23,7 @@ import{X as c,j as r,d8 as b,d9 as v,da as L,aS as z,C as a,o as e,g as d,Q as f
|
|
|
23
23
|
transform: rotate(12.4deg);
|
|
24
24
|
translate: ${e.sp0} ${e.sp0};
|
|
25
25
|
}
|
|
26
|
-
`,
|
|
26
|
+
`,T=m`
|
|
27
27
|
0%{
|
|
28
28
|
transform: rotate(12.4deg);
|
|
29
29
|
translate: ${e.sp0} ${e.sp0};
|
|
@@ -48,7 +48,7 @@ import{X as c,j as r,d8 as b,d9 as v,da as L,aS as z,C as a,o as e,g as d,Q as f
|
|
|
48
48
|
transform: rotate(12.4deg);
|
|
49
49
|
translate: ${e.sp0} ${e.sp0};
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,j=m`
|
|
52
52
|
0%{
|
|
53
53
|
transform: rotate(0);
|
|
54
54
|
transform-origin: top left;
|
|
@@ -170,7 +170,7 @@ import{X as c,j as r,d8 as b,d9 as v,da as L,aS as z,C as a,o as e,g as d,Q as f
|
|
|
170
170
|
background-size: cover;
|
|
171
171
|
box-shadow: ${o=>` ${e.sp0} ${e.sp0} ${e.sp6} ${e.sp0} ${o.theme.colors.dropShadowNormal}`};
|
|
172
172
|
${o=>o.shouldAnimate?i`
|
|
173
|
-
animation: ${
|
|
173
|
+
animation: ${j} 2800ms infinite;
|
|
174
174
|
z-index: 1;
|
|
175
175
|
`:null}
|
|
176
176
|
${o=>o.forDashboard?i`
|
|
@@ -198,7 +198,7 @@ import{X as c,j as r,d8 as b,d9 as v,da as L,aS as z,C as a,o as e,g as d,Q as f
|
|
|
198
198
|
border: 1px solid ${d.neutralGrey5Light};
|
|
199
199
|
background-image: url(https://storage.googleapis.com/zeni-apis.appspot.com/images/PhysicalCardFrontBGPattern.svg);
|
|
200
200
|
background-size: cover;
|
|
201
|
-
${o=>{if(o.shouldAnimate){const g=o.windowSize==="small"?C:
|
|
201
|
+
${o=>{if(o.shouldAnimate){const g=o.windowSize==="small"?C:T;return i`
|
|
202
202
|
position: absolute;
|
|
203
203
|
margin-left: ${t.plasticCardMarginLeft.valuePx(o.windowSize)};
|
|
204
204
|
margin-top: ${t.plasticCardMarginTop.valuePx(o.windowSize)};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import{X as j,
|
|
1
|
+
import{X as j,B as t,j as n,bn as w,i as l,C as s,o as i,Z as P,m as y,c as b,aR as f,eJ as v,s as a}from"./index-DYVNUtTS.js";import{n as o}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 r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},S=o.div`
|
|
2
2
|
border-radius: inherit;
|
|
3
3
|
max-width: 520px;
|
|
4
4
|
text-align: center;
|
|
5
5
|
background: ${e=>e.theme.colors.background};
|
|
6
|
-
`,
|
|
6
|
+
`,z=o.div`
|
|
7
7
|
padding-top: ${e=>r.containerPaddingTop.valuePx(e.windowSize)};
|
|
8
8
|
padding-bottom: ${e=>r.containerPaddingBottom.valuePx(e.windowSize)};
|
|
9
9
|
padding-right: ${e=>r.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
10
10
|
padding-left: ${e=>r.containerPaddingLeftRight.valuePx(e.windowSize)};
|
|
11
|
-
`,
|
|
11
|
+
`,_=o(P)`
|
|
12
12
|
color: ${e=>e.theme.colors.primary};
|
|
13
13
|
padding: ${i.sp0} ${i.sp0} ${i.sp4};
|
|
14
14
|
min-width: 260px;
|
|
15
|
-
`,
|
|
15
|
+
`,k=o(y)`
|
|
16
16
|
color: ${e=>e.theme.colors.hero};
|
|
17
17
|
max-width: 360px;
|
|
18
|
-
`,
|
|
18
|
+
`,A=o.div`
|
|
19
19
|
margin: 20px ${i.sp0};
|
|
20
|
-
`,
|
|
20
|
+
`,B=o.div`
|
|
21
21
|
margin: 20px ${i.sp0};
|
|
22
|
-
`,
|
|
22
|
+
`,L=o.hr`
|
|
23
23
|
width: 100%;
|
|
24
24
|
border: 0.2px solid ${e=>e.theme.colors.grey3};
|
|
25
25
|
margin-top: auto;
|
|
26
26
|
margin-bottom: 0;
|
|
27
|
-
`,
|
|
27
|
+
`,C=o.div`
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
@@ -48,4 +48,4 @@ import{X as j,M as t,j as n,bz as w,K as l,C as s,o as i,Z as P,e as y,$ as b,aQ
|
|
|
48
48
|
`,O=o(v)`
|
|
49
49
|
height: ${i.sp4};
|
|
50
50
|
color: ${e=>e.theme.colors.primary};
|
|
51
|
-
`;function
|
|
51
|
+
`;function q({companyName:e="",isGoBackAllowed:c,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=j(),$=t.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),u=t.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(w,{open:g,children:n.jsxs(S,{windowSize:x,children:[n.jsxs(z,{children:[n.jsx(_,{children:t.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(k,{children:d?$:u}),n.jsxs(R,{children:[n.jsx(T,{}),n.jsx(I,{}),n.jsx(O,{})]})]}),d||c?n.jsxs(n.Fragment,{children:[n.jsx(L,{}),n.jsxs(C,{children:[c===!0?n.jsx(B,{children:n.jsx(l,{variant:"secondary",label:t.getLocalizedStrings().dashboardAccountingPage.goBack,onClick:h})}):null,d?n.jsx(A,{children:n.jsx(l,{variant:"primary",label:t.getLocalizedStrings().dashboardAccountingPage.connect,onClick:m,loading:p==="In-Progress"})}):null]})]}):null]})})}export{q as default};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import{X as O,B as u,j as i,i as k,o,C as a,d,f1 as B,J as T,c as W,aR as E,eJ as Q,e$ as A,a8 as w,w as $,s as r}from"./index-DYVNUtTS.js";import{n as s}from"./vendor-CnQcJ2Lu.js";import G from"./QBOConnectionDialog-BXNWjeYB-CT3y8ZPP.js";const t={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},H={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:j,companyName:y,updateQBOPopupState:h,handleOnConnectClick:f})=>{const n=O(),{qbo_connection:S}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:z,sucessText:b,button:v,errorText:P,requiredText:C}=S;return i.jsxs(I,{windowSize:n,children:[i.jsxs(J,{windowSize:n,children:[n==="small"?i.jsx(Z,{children:l?i.jsx(K,{}):i.jsx(U,{})}):null,i.jsx(N,{windowSize:n,children:z})]}),i.jsxs(R,{windowSize:n,children:[i.jsxs(q,{windowSize:n,children:[i.jsxs(M,{children:[i.jsx(_,{}),i.jsx(F,{windowSize:n}),i.jsx(L,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(D,{children:b}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(G,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:j,companyName:y,saveConnectionState:p,handleOnConnectClick:f,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(A,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},I=s.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
`,J=s.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
padding-top: ${o.sp3};
|
|
10
|
+
padding-bottom: ${o.sp3};
|
|
11
|
+
width: ${e=>t.sectionWidth.valuePx(e.windowSize)};
|
|
12
|
+
`,N=s.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
color: ${e=>e.theme.colors.primary};
|
|
16
|
+
${e=>`${H.title.style(e.windowSize)}`};
|
|
17
|
+
`,R=s.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
width: ${e=>t.sectionWidth.valuePx(e.windowSize)};
|
|
21
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
22
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
23
|
+
box-shadow: ${e=>`${o.sp0} 2px ${o.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
24
|
+
border-radius: ${o.sp2};
|
|
25
|
+
fill: ${e=>e.theme.colors.grey1};
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
padding: ${e=>t.containerPadding.valuePx(e.windowSize)};
|
|
29
|
+
&:hover {
|
|
30
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
31
|
+
fill: ${e=>e.theme.colors.primary};
|
|
32
|
+
}
|
|
33
|
+
`,x=s.div`
|
|
34
|
+
width: 100%;
|
|
35
|
+
display: flex;
|
|
36
|
+
margin-top: ${o.sp4};
|
|
37
|
+
`,g=s($)`
|
|
38
|
+
display: flex;
|
|
39
|
+
color: ${d.important};
|
|
40
|
+
`,q=s.div`
|
|
41
|
+
width: 100%;
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
row-gap: ${e=>t.topElementsRowGap.valuePx(e.windowSize)};
|
|
45
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
46
|
+
`,D=s($)`
|
|
47
|
+
display: flex;
|
|
48
|
+
margin-top: ${o.sp2};
|
|
49
|
+
color: ${e=>e.theme.colors.hero};
|
|
50
|
+
`,M=s.div`
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: ${o.sp4};
|
|
54
|
+
justify-content: left;
|
|
55
|
+
color: ${e=>e.theme.colors.primary};
|
|
56
|
+
`,_=s(W)`
|
|
57
|
+
height: 20px;
|
|
58
|
+
width: auto;
|
|
59
|
+
color: ${e=>e.theme.colors.primary};
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
`,F=s(E)`
|
|
62
|
+
height: ${e=>t.arrowIconWidthHeight.valuePx(e.windowSize)};
|
|
63
|
+
width: ${e=>t.arrowIconWidthHeight.valuePx(e.windowSize)};
|
|
64
|
+
color: ${e=>e.theme.colors.hero};
|
|
65
|
+
`,L=s(Q)`
|
|
66
|
+
height: ${o.sp4};
|
|
67
|
+
color: ${e=>e.theme.colors.primary};
|
|
68
|
+
`,Z=s.div`
|
|
69
|
+
margin-right: ${o.sp2};
|
|
70
|
+
`,K=s(B)`
|
|
71
|
+
width: ${o.sp3};
|
|
72
|
+
height: ${o.sp3};
|
|
73
|
+
color: ${d.success};
|
|
74
|
+
`,U=s.div`
|
|
75
|
+
height: ${o.sp3};
|
|
76
|
+
width: ${o.sp3};
|
|
77
|
+
border: 1px solid ${e=>e.theme.colors.primary};
|
|
78
|
+
border-radius: 50%;
|
|
79
|
+
`;export{ee as o};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import{C as q,s as U,u as W,X as M,B,a as G,a2 as X,j as s,V as H,c7 as J,aW as K,F as Q,a4 as Y,o as f}from"./index-DYVNUtTS.js";import{b as D,n as h}from"./vendor-CnQcJ2Lu.js";import{b as Z,f as ee,l as L,o as j}from"./FollowStepsSection-CWw764ZM-BMjBkJvU.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 $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new q(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:l,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:r=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const _=W(),S=M(),a=B.getLocalizedStrings().commonSetUp.approval,I=B.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,l==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=X(u?.fetchState),{upperBound:P}=x,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const O=g.handleSubmit(()=>{N()}),V=async(i,p)=>{b(p)};return D.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=H(p);J(()=>V(R,z))}});return()=>{i.unsubscribe()}}),D.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(K,{title:l==="approval_create"?a.newApproval:a.editApproval,backgroundColor:_.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(Q,{...g,children:s.jsx("form",{id:C($),onSubmit:O,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:r,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,l)=>{const{criteria:t,steps:r}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:l?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},le=(e,l,t,r,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:L},actors:{allUsers:l,selectedUsers:re(e,d.actors),allNonUsers:r,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:L},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],re=(e,l)=>e.filter(t=>t.userId!=null&&l.findIndex(r=>r.userId===t.userId)>-1),oe=(e,l)=>e.filter(t=>l.findIndex(r=>r.subType===t.value)>-1),C=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 100%;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
+
`,ie=h.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
11
|
+
box-shadow: ${e=>`${f.sp0} 2px ${f.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
12
|
+
border-radius: ${f.sp2};
|
|
13
|
+
`,ne=h.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
height: 100%;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
align-items: center;
|
|
20
|
+
`,pe=h.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
flex: 1;
|
|
23
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
24
|
+
min-height: 1px;
|
|
25
|
+
max-height: 1px;
|
|
26
|
+
`;export{te as D,ye as default,C as uniqueFormName,Ae as uniqueName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as
|
|
1
|
+
import{u as M,X as I,B as b,j as o,aW as E,h as H,$ as S,o as t,C as r,m as L,a0 as z,bS as G,bU as U,bV as V,cu as J,s as l,ao as q,J as P,an as F,d as j,cr as O,aP as X,v as Y}from"./index-DYVNUtTS.js";import{n as i,b as _}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)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},Z=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=_.useState(!1),n=I(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(K,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(Q,{windowSize:n,children:[o.jsxs(ae,{children:[o.jsxs(B,{windowSize:n,children:[a.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(B,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ne,{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:n,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,N)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(le,{children:a.requireText}):o.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),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))]},N))})}),g?o.jsx(G,{titleComponent:o.jsx(V,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},K=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -14,7 +14,7 @@ import{u as D,X as B,M as b,j as o,aV as E,c as H,_ as S,o as t,C as r,e as L,a0
|
|
|
14
14
|
border-color: ${e=>e.theme.colors.primary};
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
`,
|
|
17
|
+
`,Q=i(q)`
|
|
18
18
|
display: flex;
|
|
19
19
|
position: relative;
|
|
20
20
|
align-items: center;
|
|
@@ -141,7 +141,7 @@ import{u as D,X as B,M as b,j as o,aV as E,c as H,_ as S,o as t,C as r,e as L,a0
|
|
|
141
141
|
`,ne=i.div`
|
|
142
142
|
display: flex;
|
|
143
143
|
gap: ${t.sp5};
|
|
144
|
-
`,pe=i(
|
|
144
|
+
`,pe=i(O)`
|
|
145
145
|
width: ${t.sp3};
|
|
146
146
|
height: ${t.sp3};
|
|
147
147
|
cursor: pointer;
|
|
@@ -149,7 +149,7 @@ import{u as D,X as B,M as b,j as o,aV as E,c as H,_ as S,o as t,C as r,e as L,a0
|
|
|
149
149
|
&:hover {
|
|
150
150
|
color: ${j.important};
|
|
151
151
|
}
|
|
152
|
-
`,de=i(
|
|
152
|
+
`,de=i(X)`
|
|
153
153
|
width: ${t.sp3};
|
|
154
154
|
height: ${t.sp3};
|
|
155
155
|
cursor: pointer;
|
|
@@ -157,7 +157,7 @@ import{u as D,X as B,M as b,j as o,aV as E,c as H,_ as S,o as t,C as r,e as L,a0
|
|
|
157
157
|
&:hover {
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
159
159
|
}
|
|
160
|
-
`,ce=i(
|
|
160
|
+
`,ce=i(F)`
|
|
161
161
|
width: ${t.sp4};
|
|
162
162
|
height: ${t.sp4};
|
|
163
163
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -166,11 +166,11 @@ import{u as D,X as B,M as b,j as o,aV as E,c as H,_ as S,o as t,C as r,e as L,a0
|
|
|
166
166
|
`,R=i.div`
|
|
167
167
|
display: inherit;
|
|
168
168
|
gap: inherit;
|
|
169
|
-
`,
|
|
169
|
+
`,B=i.span`
|
|
170
170
|
${e=>`${W.amount.style(e.windowSize)}`};
|
|
171
171
|
color: ${e=>e.theme.colors.primary};
|
|
172
172
|
word-break: break-word;
|
|
173
|
-
`,u={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Te=({approvalView:e,onBackClick:f,onEditRuleClick:x,onDeleteRuleClick:v})=>{const y=
|
|
173
|
+
`,u={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Te=({approvalView:e,onBackClick:f,onEditRuleClick:x,onDeleteRuleClick:v})=>{const y=M(),g=I(),{fetchState:d,deleteStatus:n}=e,c=b.getLocalizedStrings().commonSetUp.approval,w=b.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,m=n.fetchState;return 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((a,$)=>o.jsx(Z,{showDeleteBtn:$!==0,approvalRule:a,isLastSection:$===e.allApprovalRules.length-1,onEditRuleClick:x,onDeleteRuleClick:v},a.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;
|
|
@@ -229,7 +229,7 @@ import{u as D,X as B,M as b,j as o,aV as E,c as H,_ as S,o as t,C as r,e as L,a0
|
|
|
229
229
|
border-color: ${e=>e.theme.colors.primary};
|
|
230
230
|
}
|
|
231
231
|
margin-bottom: ${t.sp6};
|
|
232
|
-
`,ge=i(
|
|
232
|
+
`,ge=i(J)`
|
|
233
233
|
width: ${t.sp3};
|
|
234
234
|
height: ${t.sp3};
|
|
235
235
|
`,$e=i.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w 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,_ as y,aV as Re,aJ 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,a0 as Ne,cO as Le,f as K,fS as Oe,a4 as Kt,p as Ft,fT as Ut,fU as ae,aS as Vt,fV as Gt,a3 as Yt,Q as Ht,h as qt,e as et,ao as tt,g as F,m as Jt,eW as Qt,v as Xt,ga as Zt,g6 as ei,q as c,bH as ti,cl as ii}from"./index-BP54u7bE.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-opkVsXZH-CiDZyXEw.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-B2ZOED0q-dJMT88ra.js";import"./uploadReceipts-D80JLNY4-BMq6fzqz.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),[G,Y]=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")&&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=()=>{Q({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=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{Q({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():(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),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(Ye,{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(Ye,{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(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(Ge,{}),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(Ge,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),G===!0&&Y(!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&&G?t.jsx(Ft,{onClickAway:()=>Y(!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:()=>Y(!G),"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`
|
|
1
|
+
import{Y as At,d6 as Mt,X as Rt,u as Pt,bG as Bt,C as m,B as Ze,l as ie,fL as Nt,fN as Lt,fO as Ot,j as t,bS as ze,bU as Ae,bV as Me,$ as y,aW as Re,aK as _t,du as Wt,fP as Et,f_ as Pe,o as a,fQ as Be,cT as b,cV as w,fT as x,a0 as Ne,cS as Le,v as F,fV as Oe,a4 as Ft,r as Kt,fW as Ut,fX as ae,aT as Vt,fY as Yt,a3 as Gt,J as Ht,g as Jt,m as et,ao as tt,d as K,M as qt,bq as Xt,w as Qt,gd as Zt,g9 as ei,s as c,bL as ti,cp as ii}from"./index-DYVNUtTS.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-BsjeicP1-CxRipy2m.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-D0naVbDk-BMIJVqWj.js";import"./uploadReceipts-C6Ld_WLK-CscO-OGr.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[J,q]=p.useState("approved"),P=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,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=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:z},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -6,10 +6,10 @@ import{w 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
|
|
|
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
|
-
background-color: ${
|
|
12
|
-
color: ${
|
|
11
|
+
background-color: ${K.alertLight};
|
|
12
|
+
color: ${K.brandColorGoldDark};
|
|
13
13
|
border-top-left-radius: inherit;
|
|
14
14
|
border-top-right-radius: inherit;
|
|
15
15
|
`,pi=r.span`
|
|
@@ -25,18 +25,18 @@ import{w 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
|
|
|
25
25
|
margin-right: ${e=>l.duplicateBannerWrapperMarginRight.valuePx(e.size)};
|
|
26
26
|
margin-bottom: ${e=>l.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
|
|
27
27
|
margin-left: ${e=>l.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
|
|
28
|
-
background-color: ${
|
|
28
|
+
background-color: ${K.alertLight};
|
|
29
29
|
border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
|
|
30
30
|
`,We=r(ti)`
|
|
31
31
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
32
32
|
`,Ee=r.div`
|
|
33
33
|
width: 100%;
|
|
34
|
-
`,
|
|
34
|
+
`,Fe=r(et)`
|
|
35
35
|
color: ${e=>e.theme.colors.brandColorGoldDark};
|
|
36
|
-
`,
|
|
36
|
+
`,Ke=r(ii)`
|
|
37
37
|
width: ${a.sp4};
|
|
38
38
|
height: ${a.sp4};
|
|
39
|
-
color: ${
|
|
39
|
+
color: ${K.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)};
|
|
@@ -147,7 +147,7 @@ import{w 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
|
|
|
147
147
|
right: ${e=>l.actionsContainerRight.valuePx(e.windowSize)};
|
|
148
148
|
height: 100%;
|
|
149
149
|
display: flex;
|
|
150
|
-
`,re=r(
|
|
150
|
+
`,re=r(Qt)`
|
|
151
151
|
display: flex;
|
|
152
152
|
align-items: center;
|
|
153
153
|
width: 100%;
|
|
@@ -173,7 +173,7 @@ import{w 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
|
|
|
173
173
|
justify-content: space-between;
|
|
174
174
|
position: fixed;
|
|
175
175
|
z-index: 4;
|
|
176
|
-
`,
|
|
176
|
+
`,ki=r(Vt)`
|
|
177
177
|
color: ${e=>e.theme.colors.brandColorJade};
|
|
178
178
|
cursor: pointer;
|
|
179
179
|
width: ${a.sp4};
|
|
@@ -184,7 +184,7 @@ import{w 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
|
|
|
184
184
|
background-color: ${e=>e.theme.colors.grey3};
|
|
185
185
|
min-height: 1px;
|
|
186
186
|
max-height: 1px;
|
|
187
|
-
`,
|
|
187
|
+
`,zi=r(Gt)`
|
|
188
188
|
cursor: pointer;
|
|
189
189
|
width: ${a.sp4};
|
|
190
190
|
height: ${a.sp4};
|
|
@@ -207,7 +207,7 @@ import{w 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
|
|
|
207
207
|
&:hover {
|
|
208
208
|
color: ${e=>e.theme.colors.primary};
|
|
209
209
|
}
|
|
210
|
-
`,Ri=r(
|
|
210
|
+
`,Ri=r(Yt)`
|
|
211
211
|
display: flex;
|
|
212
212
|
width: ${a.sp4};
|
|
213
213
|
height: ${a.sp4};
|
|
@@ -245,12 +245,12 @@ import{w 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
|
|
|
245
245
|
`}
|
|
246
246
|
height: 100vh;
|
|
247
247
|
overflow: scroll;
|
|
248
|
-
`,
|
|
248
|
+
`,Ye=r.div`
|
|
249
249
|
width: 42%;
|
|
250
250
|
`,Ni=r.div`
|
|
251
251
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
252
252
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
253
|
-
`,
|
|
253
|
+
`,Ge=r.div`
|
|
254
254
|
margin-bottom: ${e=>l.bottomMargin.valuePx(e.windowSize)};
|
|
255
255
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
256
256
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
@@ -262,7 +262,7 @@ import{w 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
|
|
|
262
262
|
margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
|
|
263
263
|
margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
|
|
264
264
|
width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
|
|
265
|
-
`,
|
|
265
|
+
`,Je=r(Jt)`
|
|
266
266
|
flex-grow: 1;
|
|
267
267
|
${e=>`${li.formTitle.style(e.windowsSize)}`};
|
|
268
268
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -272,7 +272,7 @@ import{w 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
|
|
|
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{w 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
|
|
|
283
283
|
color: ${e=>e.theme.colors.hero};
|
|
284
284
|
margin-bottom: ${e=>l.totalBottomMargin.valuePx(e.windowSize)};
|
|
285
285
|
justify-content: space-between;
|
|
286
|
-
`,
|
|
286
|
+
`,Xe=r(Xt)`
|
|
287
287
|
display: flex;
|
|
288
288
|
width: 176px;
|
|
289
289
|
color: ${e=>e.theme.colors.primary};
|
|
@@ -291,7 +291,7 @@ import{w 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
|
|
|
291
291
|
display: flex;
|
|
292
292
|
flex-direction: column;
|
|
293
293
|
width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
294
|
-
`,
|
|
294
|
+
`,Qe=r.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
width: 100%;
|
|
297
297
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
@@ -309,6 +309,6 @@ import{w 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
|
|
|
309
309
|
display: flex;
|
|
310
310
|
flex-direction: column;
|
|
311
311
|
height: ${a.sp11};
|
|
312
|
-
`,
|
|
312
|
+
`,Fi=r.div`
|
|
313
313
|
margin-top: 78px;
|
|
314
314
|
`;export{ia as default};
|