@zeniai/web-cockpit-ui 1.15.19-dev → 1.15.20-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-Bj4J02PO-C4Q2xy4-.js → ACHDetailsPage-NT6Enz2K-BFEAACm5.js} +1 -1
- package/dist/assets/{AIPerformancePage-kqP-8GTq-BJF4ETfH.js → AIPerformancePage-DGkOApsY-DosUzsUh.js} +1 -1
- package/dist/assets/{AccountInfoPage-Bl-lXVdR-BrlwC_GK.js → AccountInfoPage-zFNrlfdY-CaSempyt.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-BfoA1Gse-C7eC0yBE.js → AccountInfoPageContent-Cc_ou_Ce-Cw17-IpX.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-CapmN1xL-DmXdIqXb.js → AccountLockedInfoModal-CXu84Ky4-0OS0lGFZ.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-y7iV6_PQ-D_ojlIG6.js → AccountReconDetailsDrawerPage-BecyMBvC-BlsPG8Gb.js} +3 -3
- package/dist/assets/{AccountRow-BNdGXZbT-B-w9AEY5.js → AccountRow-D9RFsvgP-CL6TykEf.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BxQc3Ksg-BEzuSdPZ.js → AccountsPromoCardStack-69-pb14d-DC6JE7NT.js} +8 -8
- package/dist/assets/{AddAddressForCardDrawer-DAcT8-PD-oJwne3Gy.js → AddAddressForCardDrawer-DLk1fTT7-C9wyxygo.js} +1 -1
- package/dist/assets/{AddToWalletPage-CY-2tfXj-D4kgZ0ls.js → AddToWalletPage-BY_IniJ7-Y2LBDzYE.js} +1 -1
- package/dist/assets/{AgingReportsPage-DG-IzhqU-D5iQytZw.js → AgingReportsPage-BroFDSmq-CrlHHtRJ.js} +1 -1
- package/dist/assets/{AllUserItems-BLdx0SLb-D35470or.js → AllUserItems-v6JpT0CS-Dm0TbfDw.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-UhXmkAke-DuPdvgym.js → ApAgingDetailPage-BAIU_dPa-DcF9ZDOD.js} +5 -5
- package/dist/assets/{AppBasePage-BdqHkxAE-ClgCYonW.js → AppBasePage-D4hhPQP--Tg8_tlBp.js} +1 -1
- package/dist/assets/{AppDrawerContent-DLLABFVO-Z7eIU8wQ.js → AppDrawerContent-BNHIYc2R-B3kbUXGA.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-2Xy362hA-lw7cG823.js → ApprovalRulesSettingsPage-Cmfja-jh-Gch7lnwP.js} +1 -1
- package/dist/assets/{ArAgingChart-DUyxm4oV-BDzCa7w_.js → ArAgingChart-B-4CGh62-XpR5XtXN.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BtKh2Y7T-Befa7jSt.js → ArAgingDetailPage-Dccqp1bb-DUA5VUQY.js} +4 -4
- package/dist/assets/{AttachmentView-gjYAbjdi-CLgD0hYn.js → AttachmentView-BFg-facO-CaH95CKg.js} +1 -1
- package/dist/assets/{BankAccountSection-DQcfhQLN-Cf4CJKge.js → BankAccountSection-ClVZgEVM-BYvuLqED.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-XMpgCYBF-BD-ZRFYQ.js → BankAccountWarningSection-CgbmC-_k-DRjfmmhF.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Bi5QjRHp-DZsjWuDY.js → BankConnectionsSettingsPage-CglsQLlv-BkMA4WY9.js} +1 -1
- package/dist/assets/{BillDetailPage-CgEXd2T5-D3RRlJ_U.js → BillDetailPage-D0LDeogI-B0GFLGjl.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CPKMjF0R-DkefuNtD.js → BillPayApprovalRuleDetailPage-BboDRhU8-CHHsqIzK.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CFJpmXE7-BS2SEmMd.js → BillPayApprovalRulesPage-k7yZT6Aa-Dmy-J3wx.js} +1 -1
- package/dist/assets/{BillPayPromoPage-nRHevclA-CJKWVsld.js → BillPayPromoPage-BRnUu-kE-qD9_C1aE.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-ynmgaK8Y-CjnJEFzj.js → BillPaySetUpPage-B8PBBo-b-CCrGF_RA.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BNEvt1HK-BaSsXKiI.js → BillingSettingsPage-ow2vqc0J-BPnhAyIC.js} +8 -8
- package/dist/assets/{BillsBulkReviewDrawerPage-D6tbE3BQ-DocKjVGy.js → BillsBulkReviewDrawerPage-CrlrKA86-CTNrdpPx.js} +1 -1
- package/dist/assets/{BoxItem-BdgRTwgI-DiOTWl08.js → BoxItem-G87i4jj9-DJ_JzOgf.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CU38xCol-B4S_9jHP.js → BusinessVerificationPage-4fFmKc7t-CviKNENT.js} +1 -1
- package/dist/assets/{CardNumberSubText-g2_GoH9f-aD70vkbB.js → CardNumberSubText-CtZArtEN-C5CUm4jT.js} +1 -1
- package/dist/assets/{CashbackDetailPage-SvujpPEs-C8gXhM7B.js → CashbackDetailPage-CfvxIALP-YVdLFEPO.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-oaVwvFKq-qgCXX26B.js → ChargeCardDetailPage-BZ71Xjy0-Dr7BA2Y3.js} +26 -26
- package/dist/assets/{ChargeCardListPage-CGyxQ8Dx-B1x8tEOp.js → ChargeCardListPage-DhpsoPyr-CQficcQE.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DKQnkAJ7-CbA18PS4.js → ChargeCardListTable-CX3OTq9R-DFN6XBHD.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-JxdV2F32-B8QxqdNq.js → ChargeCardPaymentHistoryPage-C8A6B2vX-DBRPNkuj.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BM7oOdWh-cLjTbA-r.js → ChargeCardPromoPage-CZthMv9O-DdJWmcwN.js} +10 -10
- package/dist/assets/{ChargeCardSetupPage-DqjFBKb_-D2isSGQZ.js → ChargeCardSetupPage-BAuI0rqI-Ct_o3o4L.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DKicQRml-DNQKyuH-.js → ChargeCardStatementsPage-Dx8lKcHY-_MpRJ-V8.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BoMMC-PD-BbZFeQ0t.js → CheckDepositDrawerPage-W5m8Sw63-Bc1AhysG.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CvAF66CY-D2P5-EVV.js → CollapsableReportTable-DSbtzMAj-BNPGZhUx.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-ClnGjHwL-DjLuACPy.js → CompanyOfficerDetailsSection-xhVDV0e_-DEf_Firo.js} +1 -1
- package/dist/assets/{CompanyPassportCard-De1ZqCMC-Co6Yn6Qv.js → CompanyPassportCard-DZxcLBPK-DrtLWy69.js} +1 -1
- package/dist/assets/{CompanyPassportPage-6281ivzv-B30kYLVx.js → CompanyPassportPage-C4ETRbuP-CipEAdPV.js} +13 -13
- package/dist/assets/{CompleteProfile-C4YhvWhe-CIB56NG8.js → CompleteProfile-DxWzl2v_-CbMERFrJ.js} +1 -1
- package/dist/assets/{ConfettiBurst-CR98FGfH-3rXf1OLF.js → ConfettiBurst-iwBXc7h4-DqRUbadc.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-JviWwDyz.js → ConstrainedInnerElement-BeIpAPjB-DFqe1Ody.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Dfq0ydKc-fAmE7u3u.js → CreateOrEditVendorPage-BqMLkILR-HOHmDZqL.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-D8Rs6j9F-CECIifL2.js → CreditCardPaymentDrawerPage-CeysykKv-Cc468Xy8.js} +1 -1
- package/dist/assets/{CurrencySelectField-dqih82Wa-Bf5oGIgX.js → CurrencySelectField-D3T5Kpep-C5BdxaCJ.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CPhBnk1y-CsEDDRZo.js → CustomerOnboardingActivationPage-IoLmmpzZ-Cn81rLeI.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-W9rUXP8--BVBBW0hX.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D92o0cYb-f4j90fLJ.js → CustomerOnboardingDetailPageSkeleton-CQ_jMnjx-DPLd4ivQ.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-D-TyXZjQ-1BbkgoBb.js → CustomerOnboardingNoStepsPage-9EVXNqI--PzWflH9h.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-D8s20fEH-Drh1St8-.js → CustomerOnboardingPage-B66vhEZb-D7HPTDFT.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-B7v5nYAw--BKM9prl.js → CustomerOnboardingProductSuitePage-C_gpLXB6-BoYezZa2.js} +9 -9
- package/dist/assets/{Dashboard-DLhx6D0s-A89AzrUL.js → Dashboard-YE9mF9nk-VMfoaBug.js} +1 -1
- package/dist/assets/{DashboardReportPage-G-hbFFVd-duPSFRfE.js → DashboardReportPage-DVB5rnu_-FOBpKxeo.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Dhb4iV2T-BYJc1IM0.js → DashboardSidebarBackgroundAnimation-Dpqnzw8--XocrKeDA.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-6BPvYynA-D1Ju63qU.js → DepositAccTransactionItem-C15CMLyX-DMeXzVr4.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-CYqVm1Rm-FhuWm2tm.js → DepositAccTransactionListPage-BqWQ7Hs2-GqUsfhiu.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BOza2O-8-CYD7ppA5.js → DomesticWireDetailsPage-D5Eeex8I-2tlxNeUv.js} +1 -1
- package/dist/assets/{DownloadOverlay-cbNihDeI-BS6u10ct.js → DownloadOverlay-BDyXP4Jc-CuzjJPQn.js} +1 -1
- package/dist/assets/{DrawerPage-DhT58SBb-DaHEF-EV.js → DrawerPage-BfT7DpjC-B8oVqkwG.js} +1 -1
- package/dist/assets/{EditPeoplePage-BLNgVf-0-U2va95MO.js → EditPeoplePage-DAJZWSBW-B5eie5iw.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DmApxq-q-CyDk02YT.js → EditReimbursementDetailPage-DjgB82b7-CC8cas6H.js} +1 -1
- package/dist/assets/EntityDetailPage-DxiU9_5p-BJ1ITQ_q.js +18 -0
- package/dist/assets/{EntitySummarySection-C82U-rtJ-DmZyL6x2.js → EntitySummarySection-BOXgFv27-DKuOq1RS.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Bgibjb2E-BaSAz2Y9.js → ExpenseAutomationOverviewPage-CBH6RxR6-ca6D6gHD.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-Be5-Yt8w-Cjj2nOen.js → ExpenseAutomationPage-ZcrtYJn8-DtxnBLVT.js} +1 -1
- package/dist/assets/{ExpressPayPage--mCSxEVH-BFs72UEO.js → ExpressPayPage-BAkWRXjv-CGLCftHD.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CFVDZyby-CGtGECgw.js → FeaturePreviewPage-CiwptZF9-TCjWAgRd.js} +1 -1
- package/dist/assets/{FollowStepsSection-CVWuuidV-DUG37jOA.js → FollowStepsSection-BM_fxalw-1p8dzh40.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-vkNEl7d8-CiHg5TZf.js → GlobalReviewListPage-BsACt_VJ-CVzuhybj.js} +1 -1
- package/dist/assets/{InformationCardStack-LF_aKhhL-CKp0o9nn.js → InformationCardStack-BHE0IlOx-CJJlej3H.js} +1 -1
- package/dist/assets/{InsightsCardStack-BIcK-jeU-C5tLvdIq.js → InsightsCardStack-GJuFdS2m-D9NpL9wt.js} +2 -2
- package/dist/assets/{InsightsSection-CIpbIEbv-CFt4IQKX.js → InsightsSection-BxPB_NJF-D7HFTV9p.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-CjP_3pkI-CnkkLjlB.js → IntegrationsSettingsPage-BQ8vCNaC-B7cP6IZ4.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage--xhtyYY7-D4zcriQW.js → InternationalWireSwiftDetailsPage-ChpsNwAV-Eet7AXz5.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BpvZr-WI-jxE-vB-G.js → InternationalWireVerificationPage-6_EZwOrK-BJ2iAZe5.js} +1 -1
- package/dist/assets/{InviteFormPage-9NFX-MhQ-BgZ7muUE.js → InviteFormPage-Cm52PFv9-DRNfTdUu.js} +1 -1
- package/dist/assets/{InvitePageListView-B-cAYAEj-DdX2Vf2f.js → InvitePageListView-QUZg8U6W-DzAfqMB3.js} +1 -1
- package/dist/assets/{InvitePeoplePage-_lENDcHE-Cs4JWgnf.js → InvitePeoplePage-CF19kbHd-DQqJP-yV.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-Md8EHqPI-B2FbeYFD.js → InvoiceUploadSection-4uu3l-_9-CxlUEph1.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DlBHg90l-CkIYZG8g.js → IssueChargeCardPage-CykqTbZn-7nCw30B_.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BRVf6Gy8-DR_hCdER.js → LabeledAddressValue-BIa72RS0-BkLBulUT.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Dm962nbv-CJctT64I.js → LabeledAddressValueField-B8vUdw5X-CDbumss_.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-AuHfNy1--CYnnof78.js → LabeledControlledCheckBoxField-DUkmWHyZ-D2AqhRim.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CZzPQt4P-q5eFoS7_.js → LabeledCreatableSingleSelectField-7qh_QQuc-BNteaTC5.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Cj3wNN-j-DRfRBZq3.js → LabeledDocumentField-wddWSnmD-LvMwzwRA.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DKi8UjgP-vgVqFIrz.js → LabeledDropDownFormattedTextField-BrGwb_uK-BRXsgq-s.js} +1 -1
- package/dist/assets/{LabeledText-C-8itgDI-CUp_0u3s.js → LabeledText-QOAkVa8J-DSSDVMXd.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CyEiLq7_-CyR9dVw4.js → LabeledUserSingleSelectWithSubtitlesField-DzN0zQ-n-Dm58NOUb.js} +3 -3
- package/dist/assets/{LabeledZeniRolesDropDownField-CoQcMW_--ClLOgm0I.js → LabeledZeniRolesDropDownField-Clh9Cjuk-CwnowspI.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-aTmlEn-Z-x31yl_Si.js → LinkJETransactionPage-CwPv0nlT-BuUaF1zQ.js} +1 -1
- package/dist/assets/{LockCardPage-nJeB0vKv-D0hlcn6G.js → LockCardPage-CHh1vxsi-BCBXWEYk.js} +6 -6
- package/dist/assets/{LowBalancePopup-aFCQSDc_-C6y1E7C0.js → LowBalancePopup-CmlabBgd-HAAcIAfk.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-CqShsw_Q-CQLvpS1B.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-Dld6KNDY-CY3FmODl.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-tM0F2Ss6-CJrfT-sY.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-RxCflvAg-z_sXnPco.js → MagicLinkSuccessPage-D0XJzDBe-FWa1vlXB.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CYaOQsiQ-Bmr50Dux.js → MagicLinkTitleSection-FdcDRHnN-CN2sc8vg.js} +1 -1
- package/dist/assets/{MailingDetailsSection-KUvjhmZC-BH5Oyyjr.js → MailingDetailsSection-BcNpk0Ce-D2xEGQpy.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-SlfAD_ec-Cxn1_qTK.js → MyBankConnectionsSettingsPage-Doi9tH5g-CtDAS2HS.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BShzFR0m-CvOtafM-.js → MyPendingActivationChargeCardListPage-BIapHyrw-BsKgOhK-.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CzGU1Gx7-Dqk_FQO0.js → MyProfileSettingsPage-B2PcUlKr-l2N1ioTO.js} +1 -1
- package/dist/assets/{NavBarWithPicker-NJ3tm2MI-oOlPyLbT.js → NavBarWithPicker-47lGnOUJ-CvIv4Jtp.js} +1 -1
- package/dist/assets/{NavigationArrow-B145tYV_-C_6ukSuK.js → NavigationArrow-Bc98mDow-BllcuW5O.js} +1 -1
- package/dist/assets/{NavigationDots-DaOFOsFA-BBWJs6hX.js → NavigationDots-B6QtTUea-NrUSmXgc.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-YTsNL6iu-Bz6Acdaw.js → NewGlobalMerchantPage-l7vvjRRM-nZxCHS27.js} +1 -1
- package/dist/assets/{NoDataChart-C7YUwwui-iNU45UoG.js → NoDataChart-C-dDAIve-DUTyXvqs.js} +1 -1
- package/dist/assets/{NoDataTable-DolCx6QR-C89fB2OT.js → NoDataTable-DyEdbkM0-B5A6BGGn.js} +1 -1
- package/dist/assets/{NotFoundPage-BBnisozE-ZTo3UmTG.js → NotFoundPage-CnaP1ABc-B75DHkxN.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-DPg3FvvD-Bucvci8R.js → NotificationSettingsPage-ClE6Laa0-zUgqxUna.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BkOX8iIv-DgCgfDhw.js → NotificationsListConfig-CbLnZa67-DUB7vpqM.js} +1 -1
- package/dist/assets/{NotificationsPage-BUhLO_r9-37VbqnuY.js → NotificationsPage-0kHd1Zz8-DcutPzRe.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CHY5zg69-DBOqA9P_.js → OpExByVendorPage-OglN_NyF-CkDGZBsO.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-Bn1glMo5.js → OverlayContainerPage-D4QU0p4o-CBtAcoXU.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CeQr3WjJ-CzbnzXa-.js → PandLWithForecastPage-ChSngwUR-C1MQJhQs.js} +2 -2
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B6xSczs6-BKvI8Xkx.js → PaymentAccountSetupBillingAddressSection-BBcI6orE-DjXEkCuw.js} +1 -1
- package/dist/assets/{PeoplePage-fCF4vkUp-ufAU-1hs.js → PeoplePage-C65TAG6F-xV6gMmPM.js} +1 -1
- package/dist/assets/{Preview-hLK8QRw8.js → Preview-DoXXNXUO.js} +1 -1
- package/dist/assets/{ProductsCarousel-rA-O8_7D-CY5GfBBq.js → ProductsCarousel-MWJmuQG1-DlT772qO.js} +1 -1
- package/dist/assets/{PromoBaseCards-C37GX90J-DqWlf7fN.js → PromoBaseCards-DG-4_luF-BJ1gMZoU.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Dwog9AYZ-O8uWq45M.js → QBOConnectionDialog-Ay4Pfbb9-Bb72NtKE.js} +1 -1
- package/dist/assets/{QBOSetupSection-uV3w7rHW-MEAdwA6a.js → QBOSetupSection-C7bKopiw-DrpQB1LR.js} +3 -3
- package/dist/assets/ReimbursementApprovalRuleDetailPage-C510NusC-FjR-UqRb.js +32 -0
- package/dist/assets/{ReimbursementApprovalRulesPage-IGpmh9zA-Bx94q0Ic.js → ReimbursementApprovalRulesPage-CwmSBeim-B3AFHPfu.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CnzK17M4-DQC0uxdE.js → ReimbursementDetailPage-D9ycauwA-CUwfcZuF.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DSfL54Md-1ZVBlDma.js → ReimbursementPromoPage-Cg4eTjln-B_BSUbh2.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-BoTn3JKw-CBdNL9HT.js → ReimbursementSetUpPage-DfQHDiFr-Ber4hKRG.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DBc7LS-n-Iqxb_53N.js → ReimbursementsBulkReviewDrawerPage-45yy6zu5-Dq06_x7t.js} +1 -1
- package/dist/assets/{ReloadCard-B5rmmfva-TUZ-Tkd2.js → ReloadCard-By3AowEq-x562gX6W.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-0OEScWmm-Hga5bKqy.js → ReportTableViewSelector-C7jqqd0a-BBPHQp30.js} +26 -26
- package/dist/assets/{ReportsPage-BTkakKPX-BSzPNOYj.js → ReportsPage-E_2EHKAE-C8Ln5-KA.js} +1 -1
- package/dist/assets/{RevenueChart-Ba8ZLje8-Drb014Fl.js → RevenueChart-DK5_X8cX-CFe4Dnip.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BQDrm2yR-Bz5FazaS.js → ReviewDetailsPage-CdG4Jkv2-XGKGSq3K.js} +1 -1
- package/dist/assets/{ReviewOverlay-8tBBKn9R-BZESXqSp.js → ReviewOverlay-DFC79g0A-n-a_Q4hL.js} +1 -1
- package/dist/assets/{RoleWithToolTip-YZusZfiJ-BELittL3.js → RoleWithToolTip-B0JWC_SV-CXgbdRFg.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BN9hFnGC-I8BvJlgl.js → ScheduleDetailsFixedAssetsPage-DMks3oWk-DGkrvK3-.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-DAr4tXe_-BZZ4Y69I.js → ScheduleDetailsPage-DIjRnKIE-CFDh1Nql.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DUfu-c6e-DBFpgT6F.js → ScheduleSequenceTable-BjPKuQfH-DD-mnEb5.js} +1 -1
- package/dist/assets/{ScreenRoutes-RdWdKKFl.js → ScreenRoutes-BpALuK49.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DqW4vmsx-CO06aLnp.js → SetUpAccountSection-CFVDUb2a-COF_GK-Y.js} +1 -1
- package/dist/assets/{SignIn-CCqNj3tG-DRDC5Yhl.js → SignIn-CGySLsg7-DOc2ezkS.js} +6 -6
- package/dist/assets/{SignInScreen-BI4txts-.js → SignInScreen-DR9HfecL.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-s4dPd5hE-IanF8B1T.js → SpendManagementListViewPage-dO6dKd5h-CJ1bhZ9x.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-NWc7uqw6-_rcGYzjd.js → SpendManagementPerTabPage-B39fFZko-BEVPOiP7.js} +1 -1
- package/dist/assets/{SpendManagementSection-eYrLZK1E-KjAWYeIa.js → SpendManagementSection-BiaaUF2E-yH0f2tK1.js} +1 -1
- package/dist/assets/StatementItem-DOPVBhGk-CYoCEo6a.js +31 -0
- package/dist/assets/{StatementsPage-C0wI_tRw-BDtidNq4.js → StatementsPage-R0eHwHJ9-Cl59Sg99.js} +1 -1
- package/dist/assets/{StatusSwitcher-DFluM61E-D9icc7U1.js → StatusSwitcher-DSYj3PS_-CAzhtczP.js} +1 -1
- package/dist/assets/{SubTabSwitcher-Cin8x7wg-Dcdm2qpz.js → SubTabSwitcher-OqdKA7V1-DlEB8bkr.js} +1 -1
- package/dist/assets/{SummaryCard-Bcw6fQTD-Do950Kyf.js → SummaryCard-DhRtJkhC-BhArQLhg.js} +1 -1
- package/dist/assets/{TaskManagementPage-B9qW2lvP-CVsVNeeW.js → TaskManagementPage-BvGD5ccB-siLavhfb.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-u57rzf78-Bgi2Q6bp.js → TimeRangeSwitcher-DDWfAebm-DQjeGwWr.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-ClE4GOKf-CCgDF2y1.js → TimeframeSwitcher-DNA6_eZb-C1spVBmO.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-COre57iX-BQBghhwC.js → TimeframeSwitcherWithToggle-Bd5xmXK7-Bm0Sa4yg.js} +2 -2
- package/dist/assets/{TopExCard-DF3x7jLh-CRuE7H2y.js → TopExCard-En4ylTQ3-CRpZgtTx.js} +1 -1
- package/dist/assets/{TopExDetailPage-DmFsRNbY-CAPDLdK7.js → TopExDetailPage-Coive81d-CvqmO-2K.js} +6 -6
- package/dist/assets/{TransactionActivityLogPage-BJWKx4q0-BUpcnLzX.js → TransactionActivityLogPage-WE28x9RN-BJcJOUa8.js} +1 -1
- package/dist/assets/{TransactionDetailPage-mtNlJQ2B-IRA0HZOa.js → TransactionDetailPage-BbqIgtCd-DiFMNiBg.js} +1 -1
- package/dist/assets/{TransactionList-CLb6vsAw-BNfVqp8k.js → TransactionList-CSBjcmxc-EtkATca3.js} +1 -1
- package/dist/assets/{TransactionListBig-BzBXZp6s-UPK6nK0b.js → TransactionListBig-CI1FCFcx-DrdC9u_z.js} +4 -4
- package/dist/assets/{TransactionListPage-DoQrIKK0-cdAGgkOJ.js → TransactionListPage-CJcrJoU2-BQLZ1fl5.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-D-wSEk3k-Bp7ZO9K6.js → TransactionVendorDetailPage-CVWvfI3Q-DNCMY0hE.js} +1 -1
- package/dist/assets/{TransferDrawerPage-j8FDHpig-DvRwMkL8.js → TransferDrawerPage-CZXa0mUe-BwYl6Xys.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-2U807bhy-BY8VUFc9.js → TreasuryOverviewPage-C2u69t4N-DORj6VI0.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BYXuV9oH-vUIAQ6f4.js → TreasuryPromoPage-DrKVhiah-B771x0k3.js} +1 -1
- package/dist/assets/TreasuryStatementsPage-Cvg6I5NA-3DfYgqTM.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-BrBEeHG1-u74MPbjQ.js → TreasuryTaxLetterPage-JZLtzp98-zu6vU_D3.js} +2 -2
- package/dist/assets/{TrendChart-D0GWCIs5-BdQ26pcI.js → TrendChart-BxOwX5Tl-CLxo4QA6.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DcCilwfx-_37SmAif.js → TrendWithTransactions-D3y_WfC9-DTwRkgjx.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-D5oo8UHa-k_11pvpn.js → UncategorizedAccountsMappingPage-BzZzsKfP-CKa7H3J0.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-BQp7NQLB-CdKp5-34.js → UnitIntegrationPage-bFoq6Dzc-C9OTzoR8.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DvAwuTYB-DJVdyOgq.js → UploadAdditionalDocumentOverlay-DHgW1eCQ-eDz3OZIL.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BVuTJ4jh-Dmi8LqgF.js → Vendor2FAPopup-BNA5iCDk-DURrAQXU.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-DO9DY2FM-D5QMZmyt.js +1 -0
- package/dist/assets/{VendorDetailPage-BNr0Z5jN-B5vvqHLt.js → VendorDetailPage-CUMB0ybc-Cz2stk3Z.js} +86 -86
- package/dist/assets/VendorDomesticWireDetailsPage-DAFX-_x0-dnuKk_FW.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-D2_NM9OH-Cg7w3eGu.js → VendorFiling1099EditablePage-Dc5f2rQI-5zyTApsP.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-DxhhgmEm-DydY5H1-.js → VendorFirstReviewPage-DJ2xe-qP-D-sxUwEs.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CUIOT8vU-afAyjr3K.js → VendorInternationalWireDetailsPage-CA9piyEU-DHqdWGBP.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dq9K171L-CWe5L2D4.js → VendorInternationalWireSwiftDetailsPage-BUBLa4v4-bSUc0oan.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-eef70mQn-_RCZqtQz.js → VendorsAccountsSection-CsgH89wG-DET-7-Fb.js} +1 -1
- package/dist/assets/{VerifyDevice-CMvsjley-rC4gKQeJ.js → VerifyDevice-I0fcetOo-CAPq5qjt.js} +1 -1
- package/dist/assets/{VideoPlayer-DKSZUXeK-H0wCm76T.js → VideoPlayer-DJKEc9Gu-Cc5wpx11.js} +2 -2
- package/dist/assets/{VideoPopup-BG0G1trN-J1tFoUPS.js → VideoPopup-DQ01Zj2Y-zyTi_sd6.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-g_KTQdH7-Br6CzJQ0.js → WarningsDrawerPage-NqQ8xPhM-HeekJwAM.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-LkheAcW_-BBvGkAZe.js → ZeniAccountDetailPage-B-Pet9D--Cimk8WQa.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-DVQHT8ma-B9oJhIl0.js → ZeniAccountListViewPage-CXvP0AhF-B_EmDoan.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-_Xr6q9sA-BmDV-yHS.js → ZeniAccountNavBarPieces-CseOYdtS-DLMIhkCm.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-C3LR6klI-gvX4BiZe.js → ZeniAccountPromoPage-B7rXcypc-BO6-Rl5f.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-BtWnNkH7-Bw5ifbpG.js → ZeniAccountSetupPage-CTRzzDrC-YkomMuQT.js} +1 -1
- package/dist/assets/{ZeniCopyright-D36dbFYs-DbL5X4NH.js → ZeniCopyright-bBciVtsI-DjjBYCfV.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BYbDaVKJ-CzP9xAeJ.js → ZeniTransferAmountSlider-prBenc10-BnMP7OqZ.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CjuRM598.js → add-to-wallet-DgdBD8_G-C_RtDila.js} +1 -1
- package/dist/assets/{analytics-DH0nG_g5.js → analytics-CzRVJ6MY.js} +1 -1
- package/dist/assets/{analyticsHelper-B_RV_zIh.js → analyticsHelper-CIcWitH5.js} +1 -1
- package/dist/assets/{analyticsHelper-C4PZ1Adh-DNHzQdSq.js → analyticsHelper-bMQRPNSm-DckzEJTg.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-ezr-NUEt.js → arrow-south-east-round-PEovUgvH-B-J6VULs.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DCTaBPDp.js → auto-transfer-rule-mbafm5D3-irLOnk7B.js} +1 -1
- package/dist/assets/{chartTypes-Bf1-edD8-CV1yysKw.js → chartTypes-B6Rsb0Zj-OBtFn3Lg.js} +1 -1
- package/dist/assets/{commonDimensions-B60Qkfnz-DxGoTy6S.js → commonDimensions-C6cMfD5y-ldvdnaDh.js} +1 -1
- package/dist/assets/{constants-HPf8XA_c.js → constants-Cvfi3rvc.js} +1 -1
- package/dist/assets/{core-yiE_iOc0.js → core-ngENxsSR.js} +1 -1
- package/dist/assets/{dash.all.min-ZaNNnJRa.js → dash.all.min-C6R1sF3z.js} +1 -1
- package/dist/assets/{detailCommon-B4aI_98A-CEMaqjeK.js → detailCommon-DjIYoB2z-BtvDTiC9.js} +5 -5
- package/dist/assets/{downloadPdf-DVqVkV_p-CELECDCw.js → downloadPdf-D0z4UUom-u-PDbPBK.js} +1 -1
- package/dist/assets/{empty-BOna3nXl.js → empty-AgePHH9k.js} +1 -1
- package/dist/assets/{empty-Be-7ZZNG.js → empty-l2WFMsmR.js} +1 -1
- package/dist/assets/{epic-CGLWHopS.js → epic-bicvu32R.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-yO9QG4ws.js → gift-box-Cmt9OgIZ-DpDi_0xd.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-08AJBbmd.js → graphic-no-data-l-DU4J8fDt-BuXYRb4U.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BCEcNSIc.js → graphic-no-data-net-burn-l-CzmycA0m-ByqmOND0.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-CS6zI2jd.js → handshake-BPg58FML-3kNIzZCa.js} +1 -1
- package/dist/assets/{index-DADoWRMM.js → index-BBFuqt84.js} +1 -1
- package/dist/assets/{index-V6G13z1s.js → index-DCZwBQKq.js} +1 -1
- package/dist/assets/{index-B05X8Jld.js → index-DGlL4HjS.js} +1 -1
- package/dist/assets/{index-o0j-GZyM.js → index-DJv_Rbuz.js} +6 -6
- package/dist/assets/{index-JQjyoaIW.js → index-Gn3bmjPa.js} +1 -1
- package/dist/assets/{index-BQKUEYMa.js → index-Olo2pX0z.js} +1 -1
- package/dist/assets/{index-DEPZWJ5u.js → index-vWk_2SsD.js} +1 -1
- package/dist/assets/{lexical-DlAOaxF0.js → lexical-B7Utywn0.js} +1 -1
- package/dist/assets/{liveblocks-BZyZbty1.js → liveblocks-CCMpOb9V.js} +1 -1
- package/dist/assets/{lottie-HBX4-MpS.js → lottie-BuGJfGlI.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DuPcSiT5-DY73v-Wq.js → mapLoadingInProgressToTreeNode-C1l0d99B-98tg8j4A.js} +1 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-BHrFv_df-DKCLi29L.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-BYWr2mnE-Cet1B3G8.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-9dsEoKql-CTAmJm8r.js → mapTimeframeBalancesToTreeNode-C7w_Pv68-CqQEodHU.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CUioWHuY-fSxUB0yV.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BMNyeJt9-CIYXC4NE.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dt7Y9K0I-DMS8id7q.js} +1 -1
- package/dist/assets/{mui-CAW43Z2L.js → mui-vpVhZoFp.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-Ga1rCJlu.js → page-detail-CWX5S47F-BBqQ9hel.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-C9yV2YE9.js → panelSelectedMixin-CzfD5-Zs-D4PkbE95.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-W2nwrqQ5.js → radio-default-CiSgisfh-DiqpiNhm.js} +1 -1
- package/dist/assets/{react-BeHv7oF0.js → react-B0vTZ6LL.js} +1 -1
- package/dist/assets/{react-BURuhNYe.js → react-B4FV8YGQ.js} +1 -1
- package/dist/assets/{react-DFbroRVg.js → react-B7-MyUGd.js} +1 -1
- package/dist/assets/{react-CkHAqWHd.js → react-D-iCv7iD.js} +2 -2
- package/dist/assets/{react-Cy_jHEin.js → react-DfctpYqe.js} +1 -1
- package/dist/assets/{react-QfjvWill.js → react-Duxca6t4.js} +1 -1
- package/dist/assets/{react-C5kAuTha.js → react-Rd_Y3DMY.js} +1 -1
- package/dist/assets/{react-D70Dpky3.js → react-vvBk2zvV.js} +1 -1
- package/dist/assets/{recharts-Duslqfio.js → recharts-DVV1zL4K.js} +1 -1
- package/dist/assets/{sentry-DmQUfSE7.js → sentry-BAZEeDR7.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BSj8Drkk.js → shield-DOlUxcFf-XcL46H7b.js} +1 -1
- package/dist/assets/toCOABalancesWithID-LVMDIpDR-LI6Qd7JP.js +1 -0
- package/dist/assets/{toChartData-CcG8i49E-invCvTu2.js → toChartData-BUT_vwbW-BbFVGs8l.js} +1 -1
- package/dist/assets/{uploadAttachment-B-y1--ww-BcIqRgDj.js → uploadAttachment-B1aivsLg-CDTrk-3w.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-Df2fHyc-.js → uploadReceipts-Dge0cNF1-BGR9kJVp.js} +1 -1
- package/dist/assets/{url-hGfZCfig.js → url-B_JPZzNH.js} +1 -1
- package/dist/assets/{url-R21EGndt.js → url-CniQbZJn.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DR25cb_3.js → useLongPress-GCK2COYQ-DmHXzxyt.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-D5-lu6m5.js → usp-line-BBd1wKwW-COokDSR0.js} +1 -1
- package/dist/assets/{utils-C-XuhdQM.js → utils-Db3Jmqbx.js} +1 -1
- package/dist/assets/{zeni-epic-state-C4Tt6Qhq.js → zeni-epic-state-p-hirlWD.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-Dn7vOa-2-acu82bx-.js +0 -1
- package/dist/assets/EntityDetailPage-CvgcTamk-C6e8nDgM.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-CkEC7bfy-BTcHRx9h.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-DXqRDZvA-Cof2FQM6.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-CegOSNsV-D9w4qClx.js +0 -1
- package/dist/assets/ReimbursementApprovalRuleDetailPage-CPZfTMx--hGh26AYS.js +0 -32
- package/dist/assets/StatementItem-CKK9vnC7-CB-e2CLd.js +0 -31
- package/dist/assets/TreasuryStatementsPage-CeaExx3z-DsMw65vI.js +0 -58
- package/dist/assets/VendorACHDetailsPage-DkXoubZC-RuWRXgBi.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-CaaOskIa-DGRBzFDy.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-BZsGUDKa-4VCnAicV.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-br_rslOm-BB79AXDK.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BpOPNyk--FPICGthL.js +0 -1
- package/dist/assets/toCOABalancesWithID-DOquK-Sn-1uwfHDc8.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Q,J as v,a9 as Kt,cF as Zt,V as t,bC as Xt,ac as Qt,aR as ei,o as i,aa as ye,F as P,h3 as ti,y as R,i6 as ii,b as Ne,T as oi,ay as tt,cm as it,b3 as ot,dp as st,ct as at,k3 as rt,u as w,r as si,k4 as ai,dm as he,aZ as ri,R as ni,c as nt,p as S,ai as li,bP as _,cS as ue,g7 as pe,k5 as fe,aw as lt,a8 as dt,dw as U,fs as ct,gh as di,al as ee,il as ci,am as H,fG as hi,aV as $e,ba as me,k6 as ui,bM as ht,k7 as Re,bv as pi}from"./index-
|
|
1
|
+
import{g as Q,J as v,a9 as Kt,cF as Zt,V as t,bC as Xt,ac as Qt,aR as ei,o as i,aa as ye,F as P,h3 as ti,y as R,i6 as ii,b as Ne,T as oi,ay as tt,cm as it,b3 as ot,dp as st,ct as at,k3 as rt,u as w,r as si,k4 as ai,dm as he,aZ as ri,R as ni,c as nt,p as S,ai as li,bP as _,cS as ue,g7 as pe,k5 as fe,aw as lt,a8 as dt,dw as U,fs as ct,gh as di,al as ee,il as ci,am as H,fG as hi,aV as $e,ba as me,k6 as ui,bM as ht,k7 as Re,bv as pi}from"./index-DJv_Rbuz.js";import{a as g}from"./sentry-BAZEeDR7.js";import{n as r,c as O}from"./mui-vpVhZoFp.js";import{Gf as fi,Gg as mi,bL as X,bh as $,Eb as ut}from"./zeni-epic-state-p-hirlWD.js";import{k as gi}from"./SubTabSwitcher-OqdKA7V1-DlEB8bkr.js";import{d as pt}from"./useLongPress-GCK2COYQ-DmHXzxyt.js";import{A as ft,t as mt,a as gt,E as xt,L as bt,I as wt}from"./NotificationsListConfig-CbLnZa67-DUB7vpqM.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="564b5bf6-6675-4516-a735-e19f766e0214",e._sentryDebugIdIdentifier="sentry-dbid-564b5bf6-6675-4516-a735-e19f766e0214")}catch{}})();function xi({tabs:e,selectedTab:o,subTabs:s,selectedSubTab:a,subTabRightComponent:n,tabStyle:l,subTabStyle:c,onTabChange:d,onSubTabChange:h}){const u=v(),p=Q(),m=g.useCallback(x=>{d(x.id)},[d]),f=g.useCallback(x=>{h(x.id)},[h]);return e.length===0?null:t.jsxs(bi,{windowSize:u,children:[t.jsx(ii,{allTabs:e,selectedTab:o,containerStyle:{...l,borderBottom:`1px solid ${p.colors.grey3}`},onTabChange:m}),t.jsx(gi,{allTabs:s,selectedTab:a,containerStyle:{...c},rightComponent:n,onTabChange:f})]})}const bi=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{OpExByVendorPage-CHY5zg69-DBOqA9P_.js → OpExByVendorPage-OglN_NyF-CkDGZBsO.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as H,i5 as Ce,F as B,g as q,cd as _e,ay as xe,V as t,bO as Se,aP as we,i3 as ke,bD as ve,bC as Be,i6 as Pe,i7 as Oe,o as u,aT as Te,T as $e,y as F,b3 as ie,aD as le,aV as je,u as P,cf as De,cg as Ie,ch as Ne,bL as Ee,p as a,al as ce,b as Z,aY as Ae}from"./index-
|
|
1
|
+
import{J as H,i5 as Ce,F as B,g as q,cd as _e,ay as xe,V as t,bO as Se,aP as we,i3 as ke,bD as ve,bC as Be,i6 as Pe,i7 as Oe,o as u,aT as Te,T as $e,y as F,b3 as ie,aD as le,aV as je,u as P,cf as De,cg as Ie,ch as Ne,bL as Ee,p as a,al as ce,b as Z,aY as Ae}from"./index-DJv_Rbuz.js";import{a as C,P as Me}from"./sentry-BAZEeDR7.js";import{n as m}from"./mui-vpVhZoFp.js";import{F$ as Le}from"./zeni-epic-state-p-hirlWD.js";import{p as Fe,d as Ve,y as G,b as de,u as ee}from"./chartTypes-B6Rsb0Zj-OBtFn3Lg.js";import{V as Re}from"./toChartData-BUT_vwbW-BbFVGs8l.js";import{m as V}from"./analyticsHelper-bMQRPNSm-DckzEJTg.js";import{p as ze}from"./TimeRangeSwitcher-DDWfAebm-DQjeGwWr.js";import{M as We}from"./TimeframeSwitcherWithToggle-Bd5xmXK7-Bm0Sa4yg.js";import{C as Ke}from"./NoDataChart-C-dDAIve-DUTyXvqs.js";import{d as Ye}from"./NoDataTable-DyEdbkM0-B5A6BGGn.js";import{H as Ge,k as oe}from"./detailCommon-DjIYoB2z-BtvDTiC9.js";import{n as R}from"./getReferrerType-DjPOy76W-DRP5VHem.js";import{I as He,R as J}from"./CollapsableReportTable-DSbtzMAj-BNPGZhUx.js";import{o as pe}from"./mapTimeframeBalancesToTreeNode-CUioWHuY-fSxUB0yV.js";import{d as re}from"./mapLoadingInProgressToTreeNode-C1l0d99B-98tg8j4A.js";import{l as qe}from"./mapSpacerToTreeNode-BYWr2mnE-Cet1B3G8.js";import{N as Je,I as Ue,X as Qe,Y as Xe,J as Ze,K as eo}from"./recharts-DVV1zL4K.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";import"./TimeframeSwitcher-DNA6_eZb-C1spVBmO.js";import"./graphic-no-data-l-DU4J8fDt-BuXYRb4U.js";import"./AccountRow-D9RFsvgP-CL6TykEf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6f40d9ba-2ee4-4168-987b-fb7b76460cd3",e._sentryDebugIdIdentifier="sentry-dbid-6f40d9ba-2ee4-4168-987b-fb7b76460cd3")}catch{}})();const oo=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
`,ro=m.div`
|
|
4
4
|
flex: display;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as i,V as n}from"./index-
|
|
1
|
+
import{g as i,V as n}from"./index-DJv_Rbuz.js";import{n as r}from"./mui-vpVhZoFp.js";import"./sentry-BAZEeDR7.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./zeni-epic-state-p-hirlWD.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="4287935d-72c3-497c-b16c-fca5b815d591",e._sentryDebugIdIdentifier="sentry-dbid-4287935d-72c3-497c-b16c-fca5b815d591")}catch{}})();const d=r.div`
|
|
2
2
|
display: ${({isOpen:e})=>e?"block":"none"};
|
|
3
3
|
position: fixed;
|
|
4
4
|
top: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as o,H as N,g as I,J as T,bC as ne,F as c,r as re,aP as A,T as ie,b as ae,y as W,o as s,cd as ce,aD as le,aV as de,d as ge,cD as pe,by as me,u as $,cE as he,aT as fe,aU as ue,ba as xe,bL as we}from"./index-
|
|
1
|
+
import{V as o,H as N,g as I,J as T,bC as ne,F as c,r as re,aP as A,T as ie,b as ae,y as W,o as s,cd as ce,aD as le,aV as de,d as ge,cD as pe,by as me,u as $,cE as he,aT as fe,aU as ue,ba as xe,bL as we}from"./index-DJv_Rbuz.js";import{a as M}from"./sentry-BAZEeDR7.js";import{n as r}from"./mui-vpVhZoFp.js";import{N as Se}from"./NavBarWithPicker-47lGnOUJ-CvIv4Jtp.js";import{m as je}from"./analyticsHelper-bMQRPNSm-DckzEJTg.js";import{M as be}from"./TimeframeSwitcherWithToggle-Bd5xmXK7-Bm0Sa4yg.js";import{I as ye,a as $e}from"./CollapsableReportTable-DSbtzMAj-BNPGZhUx.js";import{M as V}from"./usp-line-BBd1wKwW-COokDSR0.js";import{F5 as Ce,F6 as Pe}from"./zeni-epic-state-p-hirlWD.js";import{D as ke,T as ze,C as Te}from"./mapSectionWithAcOnlyToTreeNode-BHrFv_df-DKCLi29L.js";import{s as G}from"./mapTimeframeBalancesToTreeNode-C7w_Pv68-CqQEodHU.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";import"./TimeframeSwitcher-DNA6_eZb-C1spVBmO.js";import"./AccountRow-D9RFsvgP-CL6TykEf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="497204b7-02a7-441f-ac4f-378bf81f26de",e._sentryDebugIdIdentifier="sentry-dbid-497204b7-02a7-441f-ac4f-378bf81f26de")}catch{}})();const J="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",Y="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ve=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -104,4 +104,4 @@ import{V as o,H as N,g as I,J as T,bC as ne,F as c,r as re,aP as A,T as ie,b as
|
|
|
104
104
|
align-items: center;
|
|
105
105
|
justify-content: center;
|
|
106
106
|
margin-bottom: ${s.sp3};
|
|
107
|
-
`,He=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:i,onClickMenuIcon:u})=>{const h=T(),f=[];for(let g=0;g<e.length;++g)f.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:f,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ae.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:p,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:u},
|
|
107
|
+
`,He=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:i,onClickMenuIcon:u})=>{const h=T(),f=[];for(let g=0;g<e.length;++g)f.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:f,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ae.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:p,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:u},b={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:a,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>m?.(g)}};return o.jsxs(We,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(Se,{...x}),i?"":o.jsx(Ue,{children:o.jsx(be,{...b})})]})},Ge=({report:e,type:t,isActualVsForecastOn:n,compareMode:a,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:m,onTableScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:u})=>{const h=I(),f=T(),[x,b]=M.useState(void 0),[g,z]=M.useState(void 0),y=!(f==="small"||f==="medium-compact"),F=n===!0?"actual_vs_forecast":"none",v=`forecast.${e.reportId}`;return ce({componentName:v,enabled:e.fetchState==="Completed"}),M.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:F,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:$e(t)===!0&&n===!1?"filter_forecast_nil_balances":"filter_actual_forecast_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:we()};if(x==null||!le(g,e)){const w=Oe(e,S,y);z(e),b(w)}else{const w=Ee(x,S,e,y);b(w)}},[t,n,e]),x!=null?o.jsx(ye,{backgroundColor:new de(h.colors.grey4),rootNodes:x,type:t,compareMode:a,isSticky:{isStickyHeader:y,isStickyName:y},treeNodePadding:{left:L.contentPaddingLeft.value(f),right:L.contentPaddingRight.value(f)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:m,onScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:u}):null};function uo({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:a,selectedForecast:l,pandLreport:d,type:m,meetingUrl:p,analytics:i,onForecastSelectionChanged:u,onTimeframeChanged:h,onForecastVsActualsCompareToggle:f,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:F,onBackClick:v,onClickMenuIcon:S}){const w=[a.fetchState,d.fetchState],R=l?.index??-1;return se(w)===!0||a.fetchState==="Completed"&&a.forecasts.length===0?o.jsx(Be,{meetingUrl:p,onBackClick:v,onClickMenuIcon:S}):H([a.fetchState])===!0?o.jsx(U,{fetchState:Ye(w)}):o.jsxs(Ve,{children:[o.jsx(He,{forecastList:a.forecasts,selectedForecastIndex:R,onForecastSelectionChanged:(j,D)=>{i?.trackForecastSwitch(N.Event.profitAndLossWithForecast,a.forecasts[D].name),u?.(j,D)},vsActualOn:t,onVsActualChanged:j=>{i?.trackForecastVsActualMode(N.Event.profitAndLossWithForecast,a.forecasts[R].name,j),f?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{i?.trackTimeframeSwitch(je(j),N.Event.profitAndLossWithForecast),h?.(j)},onBackClick:v,isPandLReportFetching:H([d.fetchState]),onClickMenuIcon:S}),d.fetchState==="In-Progress"?o.jsx(U,{fetchState:"In-Progress"}):o.jsx(Re,{children:o.jsx(Ge,{report:d,type:m,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:F})})]})}const Je=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),se=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),H=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),Ye=e=>Je(e)===!0?"Completed":se(e)===!0?"Error":"In-Progress";export{uo as default,H as isAnyInProgress};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as pe,aQ as Ne,b as te,o as u,p as H,J as le,V as i,bS as Me,g as Re,cS as Ve,aV as ae,F as ue,y as oe,bw as Fe,bV as qe,al as ke,aR as He,ae as me,u as Je,gU as Ke,am as Ge,R as Ye}from"./index-
|
|
1
|
+
import{B as pe,aQ as Ne,b as te,o as u,p as H,J as le,V as i,bS as Me,g as Re,cS as Ve,aV as ae,F as ue,y as oe,bw as Fe,bV as qe,al as ke,aR as He,ae as me,u as Je,gU as Ke,am as Ge,R as Ye}from"./index-DJv_Rbuz.js";import{P as l,a as U}from"./sentry-BAZEeDR7.js";import{n as v}from"./mui-vpVhZoFp.js";import{P as p}from"./core-ngENxsSR.js";import{F as Ze}from"./SetUpAccountSection-CFVDUb2a-COF_GK-Y.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3efc4e82-0fe0-4826-a8f5-86f561c90a30",t._sentryDebugIdIdentifier="sentry-dbid-3efc4e82-0fe0-4826-a8f5-86f561c90a30")}catch{}})();function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(r),!0).forEach(function(n){Ae(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function re(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(e){return typeof e}:re=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(t)}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Xe(t)||Qe(t,e)||et(t,e)||tt()}function Xe(t){if(Array.isArray(t))return t}function Qe(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],a=!0,s=!1,c,m;try{for(r=r.call(t);!(a=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));a=!0);}catch(o){s=!0,m=o}finally{try{!a&&r.return!=null&&r.return()}finally{if(s)throw m}}return n}}function et(t,e){if(t){if(typeof t=="string")return he(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(t,e)}}function he(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R=function(e,r,n){var a=!!n,s=l.useRef(n);l.useEffect(function(){s.current=n},[n]),l.useEffect(function(){if(!a||!e)return function(){};var c=function(){s.current&&s.current.apply(s,arguments)};return e.on(r,c),function(){e.off(r,c)}},[a,r,e,s])},se=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},J=function(e){return e!==null&&re(e)==="object"},rt=function(e){return J(e)&&typeof e.then=="function"},nt=function(e){return J(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},ye="[object Object]",at=function t(e,r){if(!J(e)||!J(r))return e===r;var n=Array.isArray(e),a=Array.isArray(r);if(n!==a)return!1;var s=Object.prototype.toString.call(e)===ye,c=Object.prototype.toString.call(r)===ye;if(s!==c)return!1;if(!s&&!n)return e===r;var m=Object.keys(e),o=Object.keys(r);if(m.length!==o.length)return!1;for(var h={},f=0;f<m.length;f+=1)h[m[f]]=!0;for(var x=0;x<o.length;x+=1)h[o[x]]=!0;var g=Object.keys(h);if(g.length!==m.length)return!1;var P=e,w=r,S=function(A){return t(P[A],w[A])};return g.every(S)},Ie=function(e,r,n){return J(e)?Object.keys(e).reduce(function(a,s){var c=!J(r)||!at(e[s],r[s]);return n.includes(s)?(c&&console.warn("Unsupported prop change: options.".concat(s," is not a mutable property.")),a):c?ge(ge({},a||{}),{},Ae({},s,e[s])):a},null):null},Ue="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ve=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;if(e===null||nt(e))return e;throw new Error(r)},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;if(rt(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(a){return ve(a,r)})};var n=ve(e,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},st=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"2.7.3"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.3",url:"https://stripe.com/docs/stripe-js/react"}))},ne=l.createContext(null);ne.displayName="ElementsContext";var Oe=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return e},ze=function(e){var r=e.stripe,n=e.options,a=e.children,s=l.useMemo(function(){return ot(r)},[r]),c=l.useState(function(){return{stripe:s.tag==="sync"?s.stripe:null,elements:s.tag==="sync"?s.stripe.elements(n):null}}),m=$e(c,2),o=m[0],h=m[1];l.useEffect(function(){var g=!0,P=function(S){h(function(j){return j.stripe?j:{stripe:S,elements:S.elements(n)}})};return s.tag==="async"&&!o.stripe?s.stripePromise.then(function(w){w&&g&&P(w)}):s.tag==="sync"&&!o.stripe&&P(s.stripe),function(){g=!1}},[s,o,n]);var f=se(r);l.useEffect(function(){f!==null&&f!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[f,r]);var x=se(n);return l.useEffect(function(){if(o.elements){var g=Ie(n,x,["clientSecret","fonts"]);g&&o.elements.update(g)}},[n,x,o.elements]),l.useEffect(function(){st(o.stripe)},[o.stripe]),l.createElement(ne.Provider,{value:o},a)};ze.propTypes={stripe:p.any,options:p.object};var it=function(e){var r=l.useContext(ne);return Oe(r,e)},ct=function(){var e=it("calls useElements()"),r=e.elements;return r};p.func.isRequired;var _e=l.createContext(null);_e.displayName="CustomCheckoutSdkContext";var lt=function(e,r){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(r," in an <CustomCheckoutProvider> provider."));return e},ut=l.createContext(null);ut.displayName="CustomCheckoutContext";p.any,p.shape({clientSecret:p.string.isRequired,elementsOptions:p.object}).isRequired;var ie=function(e){var r=l.useContext(_e),n=l.useContext(ne);if(r&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return r?lt(r,e):Oe(n,e)},dt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},C=function(e,r){var n="".concat(dt(e),"Element"),a=function(o){var h=o.id,f=o.className,x=o.options,g=x===void 0?{}:x,P=o.onBlur,w=o.onFocus,S=o.onReady,j=o.onChange,A=o.onEscape,M=o.onClick,V=o.onLoadError,F=o.onLoaderStart,B=o.onNetworksChange,$=o.onConfirm,K=o.onCancel,D=o.onShippingAddressChange,N=o.onShippingRateChange,O=ie("mounts <".concat(n,">")),_="elements"in O?O.elements:null,E="customCheckoutSdk"in O?O.customCheckoutSdk:null,z=l.useState(null),T=$e(z,2),y=T[0],W=T[1],L=l.useRef(null),q=l.useRef(null);R(y,"blur",P),R(y,"focus",w),R(y,"escape",A),R(y,"click",M),R(y,"loaderror",V),R(y,"loaderstart",F),R(y,"networkschange",B),R(y,"confirm",$),R(y,"cancel",K),R(y,"shippingaddresschange",D),R(y,"shippingratechange",N),R(y,"change",j);var G;S&&(e==="expressCheckout"?G=S:G=function(){S(y)}),R(y,"ready",G),l.useLayoutEffect(function(){if(L.current===null&&q.current!==null&&(_||E)){var I=null;E?I=E.createElement(e,g):_&&(I=_.create(e,g)),L.current=I,W(I),I&&I.mount(q.current)}},[_,E,g]);var de=se(g);return l.useEffect(function(){if(L.current){var I=Ie(g,de,["paymentRequest"]);I&&L.current.update(I)}},[g,de]),l.useLayoutEffect(function(){return function(){if(L.current&&typeof L.current.destroy=="function")try{L.current.destroy(),L.current=null}catch{}}},[]),l.createElement("div",{id:h,className:f,ref:q})},s=function(o){ie("mounts <".concat(n,">"));var h=o.id,f=o.className;return l.createElement("div",{id:h,className:f})},c=r?s:a;return c.propTypes={id:p.string,className:p.string,onChange:p.func,onBlur:p.func,onFocus:p.func,onReady:p.func,onEscape:p.func,onClick:p.func,onLoadError:p.func,onLoaderStart:p.func,onNetworksChange:p.func,onConfirm:p.func,onCancel:p.func,onShippingAddressChange:p.func,onShippingRateChange:p.func,options:p.object},c.displayName=n,c.__elementType=e,c},b=typeof window>"u",pt=l.createContext(null);pt.displayName="EmbeddedCheckoutProviderContext";var mt=function(){var e=ie("calls useStripe()"),r=e.stripe;return r};C("auBankAccount",b);C("card",b);var Se=C("cardNumber",b),Ce=C("cardExpiry",b),be=C("cardCvc",b);C("fpxBank",b);C("iban",b);C("idealBank",b);C("p24Bank",b);C("epsBank",b);C("payment",b);C("expressCheckout",b);C("paymentRequestButton",b);C("linkAuthentication",b);C("address",b);C("shippingAddress",b);C("paymentMethodMessaging",b);C("affirmMessage",b);C("afterpayClearpayMessage",b);var Te="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var gt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Te,'"]')),r=0;r<e.length;r++){var n=e[r];if(ft.test(n.src))return n}return null},xe=function(e){var r="",n=document.createElement("script");n.src="".concat(Te).concat(r);var a=document.head||document.body;if(!a)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return a.appendChild(n),n},ht=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:r})},Y=null,Q=null,ee=null,yt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},vt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return Y!==null?Y:(Y=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var a=gt();if(!(a&&e)){if(!a)a=xe(e);else if(a&&ee!==null&&Q!==null){var s;a.removeEventListener("load",ee),a.removeEventListener("error",Q),(s=a.parentNode)===null||s===void 0||s.removeChild(a),a=xe(e)}}ee=vt(r,n),Q=yt(n),a.addEventListener("load",ee),a.addEventListener("error",Q)}catch(c){n(c);return}}),Y.catch(function(r){return Y=null,Promise.reject(r)}))},Ct=function(e,r,n){if(e===null)return null;var a=e.apply(void 0,r);return ht(a,n),a},Z,We=!1,Be=function(){return Z||(Z=St(null).catch(function(e){return Z=null,Promise.reject(e)}),Z)};Promise.resolve().then(function(){return Be()}).catch(function(t){We||console.warn(t)});var bt=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];We=!0;var a=Date.now();return Be().then(function(s){return Ct(s,r,a)})};const xt={containerHeight:new oe(656,720)},wt=v.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as $e,J as I,F as y,V as t,bC as le,aP as a,bO as De,o as s,cl as Oe,cm as _e,T as U,aT as Y,cn as we,r as Le,b as be,co as Ae,aQ as Ve,cp as Me,ap as We,cq as He,cr as Be,b3 as Ue,aD as H,cs as Fe,y as $,ct as Ke,cu as je,u as b,cv as ee,ce as N,cw as Se,a9 as Ee,ac as Ze,cx as Je,cy as Qe,aJ as qe,ai as D,cz as Xe,al as O,am as te,p as A,cA as Ge,ci as ke,ba as ie,cB as Ie,bM as Ye,cC as et}from"./index-
|
|
1
|
+
import{g as $e,J as I,F as y,V as t,bC as le,aP as a,bO as De,o as s,cl as Oe,cm as _e,T as U,aT as Y,cn as we,r as Le,b as be,co as Ae,aQ as Ve,cp as Me,ap as We,cq as He,cr as Be,b3 as Ue,aD as H,cs as Fe,y as $,ct as Ke,cu as je,u as b,cv as ee,ce as N,cw as Se,a9 as Ee,ac as Ze,cx as Je,cy as Qe,aJ as qe,ai as D,cz as Xe,al as O,am as te,p as A,cA as Ge,ci as ke,ba as ie,cB as Ie,bM as Ye,cC as et}from"./index-DJv_Rbuz.js";import{P as ce,a as v}from"./sentry-BAZEeDR7.js";import{n as i}from"./mui-vpVhZoFp.js";import{oV as Ce,bg as X}from"./zeni-epic-state-p-hirlWD.js";import{T as Re}from"./RoleWithToolTip-B0JWC_SV-CXgbdRFg.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="29050cba-55ed-48e0-9496-eed1e275666d",e._sentryDebugIdIdentifier="sentry-dbid-29050cba-55ed-48e0-9496-eed1e275666d")}catch{}})();const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],B=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],tt=58;function it({userNameSticky:e,sortConfig:o,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(qe(d==="off"?S:B));v.useEffect(()=>{const n=[...p];for(const r of n)r.key===o.sortKey?r.sortOrder=o.sortOrder:r.sortOrder="ascending";x(n)},[o.sortKey,o.sortOrder]);const h=(n,r)=>{let u=r;o.sortKey===n&&(u=r==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(rt,{height:tt,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(lt,{userNameSticky:!!e&&n.key==="name",sortDataValue:o.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(dt,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(ot,{sortDataValue:o.sortKey,headerdata:n,children:t.jsx(Xe,{width:12,height:12})})]}),t.jsx(at,{isVisible:o.sortKey===n.key&&n.key!=="name",children:t.jsx(nt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const st=ce.memo(it),ot=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,P as n}from"./sentry-
|
|
1
|
+
import{a as h,P as n}from"./sentry-BAZEeDR7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="1e21bcae-92bc-4f72-b3b7-b9f34ad2806c",t._sentryDebugIdIdentifier="sentry-dbid-1e21bcae-92bc-4f72-b3b7-b9f34ad2806c")}catch{}})();const c="64px",u={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:f})=>{const[b,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(u[e]){o(u[e]);return}o(null);const y=await(await fetch(E.replace("{url}",e))).json();if(y.thumbnail_url){const g=y.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),u[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),p={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:b&&!l?`url(${b})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...p},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:l?"absolute":void 0,...p},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:d.shadow,className:"react-player__shadow"},n.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:d.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...f?{"aria-label":f}:{}},l?a:null,m||x)};var P=k;export{P as default};
|
package/dist/assets/{ProductsCarousel-rA-O8_7D-CY5GfBBq.js → ProductsCarousel-MWJmuQG1-DlT772qO.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as I,V as t,a8 as B,o as c,c2 as N,a$ as U,u as V,d8 as q,aq as G,al as T,d9 as H,p as v}from"./index-
|
|
1
|
+
import{F as I,V as t,a8 as B,o as c,c2 as N,a$ as U,u as V,d8 as q,aq as G,al as T,d9 as H,p as v}from"./index-DJv_Rbuz.js";import{a as $}from"./sentry-BAZEeDR7.js";import{n as i}from"./mui-vpVhZoFp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="a35ba651-07ee-4295-b3bd-3d2c4aa2a188",e._sentryDebugIdIdentifier="sentry-dbid-a35ba651-07ee-4295-b3bd-3d2c4aa2a188")}catch{}})();const u=I.getLocalizedStrings(),w={large:{labelComp:q,title:G,subtitle:T,seeMoreLink:T}},J={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=J.large,Y=i.div`
|
|
2
2
|
width: ${e=>e.scale*r.width}px;
|
|
3
3
|
height: ${e=>e.scale*r.height}px;
|
|
4
4
|
overflow: hidden;
|
package/dist/assets/{PromoBaseCards-C37GX90J-DqWlf7fN.js → PromoBaseCards-DG-4_luF-BJ1gMZoU.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as b,V as r,dd as m,de as v,df as y,bx as z,o as e,p as d,y as a,R as c,u as p}from"./index-
|
|
1
|
+
import{J as b,V as r,dd as m,de as v,df as y,bx as z,o as e,p as d,y as a,R as c,u as p}from"./index-DJv_Rbuz.js";import{c as i,n as g,k as f}from"./mui-vpVhZoFp.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new o.Error().stack;l&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[l]="c3ff0bab-0882-49d5-b17c-c6bc435e18d3",o._sentryDebugIdIdentifier="sentry-dbid-c3ff0bab-0882-49d5-b17c-c6bc435e18d3")}catch{}})();const t={plasticCardMarginLeft:new a(p[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(p[2],13),businessTextBottom:new a(p[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(p[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(p[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(p[2],13),visaLogoBottom:new a(p[2],13)},u={businessText:new c("extraSmallRegular","largeRegular"),promoBusinessText:new c("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:l,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=b();return r.jsxs(B,{cardPromoType:$,windowSize:n,shouldAnimate:l,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(m,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:l,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=b();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:l,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(m,{})}),r.jsx(k,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(y,{})})]})},C=f`
|
|
2
2
|
0%{
|
|
3
3
|
transform: rotate(12.4deg);
|
|
4
4
|
translate: ${e.sp0} ${e.sp0};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as y,F as r,V as n,bS as b,r as l,y as c,o as i,aq as w,al as $,af as P,bv as j,eP as v,u as t}from"./index-
|
|
1
|
+
import{J as y,F as r,V as n,bS as b,r as l,y as c,o as i,aq as w,al as $,af as P,bv as j,eP as v,u as t}from"./index-DJv_Rbuz.js";import{n as o}from"./mui-vpVhZoFp.js";import"./sentry-BAZEeDR7.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./zeni-epic-state-p-hirlWD.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="fee0d4c4-ff65-4334-bdf1-25f082e68aff",e._sentryDebugIdIdentifier="sentry-dbid-fee0d4c4-ff65-4334-bdf1-25f082e68aff")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},S=o.div`
|
|
2
2
|
border-radius: inherit;
|
|
3
3
|
max-width: 520px;
|
|
4
4
|
text-align: center;
|
package/dist/assets/{QBOSetupSection-uV3w7rHW-MEAdwA6a.js → QBOSetupSection-C7bKopiw-DrpQB1LR.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as O,F as g,V as i,r as k,o,y as a,p as c,fP as I,R as D,af as T,bv as W,eP as _,fG as B,aV as w,ai as
|
|
1
|
+
import{J as O,F as g,V as i,r as k,o,y as a,p as c,fP as I,R as D,af as T,bv as W,eP as _,fG as B,aV as w,ai as f,u as r}from"./index-DJv_Rbuz.js";import{n as s}from"./mui-vpVhZoFp.js";import E from"./QBOConnectionDialog-Ay4Pfbb9-Bb72NtKE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="41c2dc1d-f936-448f-b415-453420c71f5b",e._sentryDebugIdIdentifier="sentry-dbid-41c2dc1d-f936-448f-b415-453420c71f5b")}catch{}})();const l={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])},G={title:new D("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:$,companyName:y,updateQBOPopupState:h,handleOnConnectClick:b})=>{const n=O(),{qbo_connection:j}=g.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(V,{windowSize:n,children:[i.jsxs(A,{windowSize:n,children:[n==="small"?i.jsx(L,{children:d?i.jsx(Z,{}):i.jsx(K,{})}):null,i.jsx(F,{windowSize:n,children:S})]}),i.jsxs(H,{windowSize:n,children:[i.jsxs(N,{windowSize:n,children:[i.jsxs(R,{children:[i.jsx(q,{}),i.jsx(J,{windowSize:n}),i.jsx(M,{})]}),d?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(Q,{children:v}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(u,{windowSize:n,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(u,{windowSize:n,children:C})}):null]}),i.jsx(E,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:$,companyName:y,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=g.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(B,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new w(c.successDark),borderColor:new w(c.successDark)}})},V=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -34,7 +34,7 @@ import{J as O,F as g,V as i,r as k,o,y as a,p as c,fP as I,R as D,af as T,bv as
|
|
|
34
34
|
width: 100%;
|
|
35
35
|
display: flex;
|
|
36
36
|
margin-top: ${o.sp4};
|
|
37
|
-
`,u=s(
|
|
37
|
+
`,u=s(f)`
|
|
38
38
|
display: flex;
|
|
39
39
|
color: ${c.important};
|
|
40
40
|
`,N=s.div`
|
|
@@ -43,7 +43,7 @@ import{J as O,F as g,V as i,r as k,o,y as a,p as c,fP as I,R as D,af as T,bv as
|
|
|
43
43
|
justify-content: space-between;
|
|
44
44
|
row-gap: ${e=>l.topElementsRowGap.valuePx(e.windowSize)};
|
|
45
45
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
46
|
-
`,Q=s(
|
|
46
|
+
`,Q=s(f)`
|
|
47
47
|
display: flex;
|
|
48
48
|
margin-top: ${o.sp2};
|
|
49
49
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import{y as W,u as L,g as M,J as G,F as U,a9 as J,aQ as Q,aJ as X,cF as H,V as r,bC as K,ac as Y,aR as Z,o as b,g7 as ee}from"./index-DJv_Rbuz.js";import{a as $}from"./sentry-BAZEeDR7.js";import{n as c}from"./mui-vpVhZoFp.js";import{b as te,f as le,o as B,l as C}from"./FollowStepsSection-BM_fxalw-1p8dzh40.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./zeni-epic-state-p-hirlWD.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="675bf313-6858-4a3d-abc7-c096089bf425",e._sentryDebugIdIdentifier="sentry-dbid-675bf313-6858-4a3d-abc7-c096089bf425")}catch{}})();const T="reimbursementApprovalRuleDetailPage",k="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",ae={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:l,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:i=!1,onBackClick:s,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:w}){const F=M(),A=G(),a=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,l==="approval_create"&&!t),y=J({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=Q(u?.fetchState),{upperBound:P}=x,{allApprovalRules:d,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=d.length>1?d.length-1:0,v=d.length>0?d[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=d.findIndex(p=>p.approvalRuleId===n),v=f>0?d[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,p)=>{g(p)};return $.useEffect(()=>{const n=y.watch((p,{name:D})=>{if(D!=null&&p!=null){const O=X(p);H(()=>z(D,O))}});return()=>{n.unsubscribe()}}),$.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&w()},[R,u?.fetchState,w]),r.jsxs(ie,{children:[r.jsx(K,{title:l==="approval_create"?a.newApproval:a.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{s()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:_(T),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(te,{label:{label:i?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:n=>t?!0:n!=null&&n>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:i,additionalInfoLabel:a.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(le,{sectionId:I,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[I],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(T),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&d.length===0?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:a.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:A==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(A)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,l)=>{const{criteria:t,steps:o}=e.remiSetupApproverViewUpdateData?.data??{},i=e.allApprovalRules.length===0;return{[h]:i?[]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),B(e.allAttributes),B(e.filteredAttributes),o??[])??[],[k]:l?void 0:t!=null?t.range.min.amount??0:0,[j]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},oe=(e,l,t,o,i)=>i&&i.length>0?i.map((s,g)=>({stepIndex:g,stepType:{selectedOption:s.action,allOptions:C},actors:{allUsers:l,selectedUsers:se(e,s.actors),allNonUsers:o,selectedNonUsers:ne(t,s.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:C},actors:{allUsers:l,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,l)=>e.filter(t=>t.userId!=null&&l.findIndex(o=>o.userId===t.userId)>-1),ne=(e,l)=>e.filter(t=>l.findIndex(o=>o.subType===t.value)>-1),_=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 100%;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
+
`,de=c.div`
|
|
8
|
+
display: flex;
|
|
9
|
+
flex: 1;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
min-height: 0;
|
|
12
|
+
`,pe=c.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
16
|
+
box-shadow: ${e=>`${b.sp0} 2px ${b.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
17
|
+
border-radius: ${b.sp2};
|
|
18
|
+
`,ue=c.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
flex: 1;
|
|
22
|
+
min-height: 0;
|
|
23
|
+
overflow-y: auto;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
align-items: center;
|
|
26
|
+
`,ce=c.div`
|
|
27
|
+
display: flex;
|
|
28
|
+
flex: 1;
|
|
29
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
30
|
+
min-height: 1px;
|
|
31
|
+
max-height: 1px;
|
|
32
|
+
`;export{ae as D,Re as default,_ as uniqueFormName,Pe as uniqueName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as F,J as N,F as j,V as t,bC as G,T as V,aP as m,o,y as r,al as M,aN as P,bT as T,cp as q,cq as J,cr as K,d0 as O,u as l,b9 as Z,R as k,b8 as Q,p as z,cZ as X,bt as Y,b as ee}from"./index-
|
|
1
|
+
import{g as F,J as N,F as j,V as t,bC as G,T as V,aP as m,o,y as r,al as M,aN as P,bT as T,cp as q,cq as J,cr as K,d0 as O,u as l,b9 as Z,R as k,b8 as Q,p as z,cZ as X,bt as Y,b as ee}from"./index-DJv_Rbuz.js";import{n as i}from"./mui-vpVhZoFp.js";import{a as te}from"./sentry-BAZEeDR7.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./zeni-epic-state-p-hirlWD.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="613f4777-e2d2-4c75-b28d-8055ed9c4f70",e._sentryDebugIdIdentifier="sentry-dbid-613f4777-e2d2-4c75-b28d-8055ed9c4f70")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},E={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:g=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[w,x]=te.useState(!1),n=N(),{range:h}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{x(!0)},U={onOkClick:()=>{x(!1),y?.(p)},onCancelClick:()=>{x(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},d.userId))]},H))})}),w?t.jsx(q,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(J,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as Mt,a8 as Rt,J as Pt,g as Bt,cd as Nt,y as m,F as et,gh as Lt,gj as _t,gk as Ot,V as t,cp as Ae,cq as Me,cr as Re,bC as Pe,aP as y,bo as Wt,dw as Et,gl as Ft,gw as Be,o as a,gm as Ne,fi as b,gp as w,fl as x,aN as Le,fh as _e,b as V,gr as Oe,aR as Kt,ao as Ut,gs as Vt,gt as re,bx as Gt,gu as Ht,C as Yt,R as qt,c as Jt,al as tt,b9 as it,p as G,am as Xt,bV as Zt,ai as Qt,gO as ei,gK as ti,u as c,ci as ii,cX as ai}from"./index-o0j-GZyM.js";import{a as p}from"./sentry-DmQUfSE7.js";import{n as r}from"./mui-CAW43Z2L.js";import{a as ri}from"./liveblocks-BZyZbty1.js";import{bL as oi,bP as ni,FL as li}from"./zeni-epic-state-C4Tt6Qhq.js";import si from"./InvoiceUploadSection-Md8EHqPI-B2FbeYFD.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-yiE_iOc0.js";import"./lottie-HBX4-MpS.js";import"./recharts-Duslqfio.js";import"./analytics-DH0nG_g5.js";import"./lexical-DlAOaxF0.js";import"./utils-C-XuhdQM.js";import"./AttachmentView-gjYAbjdi-CLgD0hYn.js";import"./uploadReceipts-Dge0cNF1-Df2fHyc-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="fe2771e4-cdae-4cf2-a69d-f5ad2e52dfe5",e._sentryDebugIdIdentifier="sentry-dbid-fe2771e4-cdae-4cf2-a69d-f5ad2e52dfe5")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new qt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,q]=p.useState(!1),[ct,J]=p.useState(!1),[X,Z]=p.useState("approved"),N=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ye?.():S.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:S.title}),descriptionComponent:t.jsx(Me,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(qe,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,j.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.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,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:M},text:l.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,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,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:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),j.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,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:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&q(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:X==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||X==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.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:X==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>q(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!B&&Ct===!0?t.jsx(ji,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>q(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
1
|
+
import{aw as Mt,a8 as Rt,J as Pt,g as Bt,cd as Nt,y as m,F as et,gh as Lt,gj as _t,gk as Ot,V as t,cp as Ae,cq as Me,cr as Re,bC as Pe,aP as y,bo as Wt,dw as Et,gl as Ft,gw as Be,o as a,gm as Ne,fi as b,gp as w,fl as x,aN as Le,fh as _e,b as V,gr as Oe,aR as Kt,ao as Ut,gs as Vt,gt as re,bx as Gt,gu as Ht,C as Yt,R as qt,c as Jt,al as tt,b9 as it,p as G,am as Xt,bV as Zt,ai as Qt,gO as ei,gK as ti,u as c,ci as ii,cX as ai}from"./index-DJv_Rbuz.js";import{a as p}from"./sentry-BAZEeDR7.js";import{n as r}from"./mui-vpVhZoFp.js";import{a as ri}from"./liveblocks-CCMpOb9V.js";import{bL as oi,bP as ni,FL as li}from"./zeni-epic-state-p-hirlWD.js";import si from"./InvoiceUploadSection-4uu3l-_9-CxlUEph1.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-ngENxsSR.js";import"./lottie-BuGJfGlI.js";import"./recharts-DVV1zL4K.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";import"./AttachmentView-BFg-facO-CaH95CKg.js";import"./uploadReceipts-Dge0cNF1-BGR9kJVp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="40f9e380-8e5d-44bf-8e2d-264449972961",e._sentryDebugIdIdentifier="sentry-dbid-40f9e380-8e5d-44bf-8e2d-264449972961")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new qt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[Y,q]=p.useState(!1),[ct,J]=p.useState(!1),[X,Z]=p.useState("approved"),N=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ye?.():S.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:S.title}),descriptionComponent:t.jsx(Me,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(qe,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,j.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.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,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:M},text:l.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,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,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:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),j.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:je,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,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:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),Y===!0&&q(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:X==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||X==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.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:X==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&Y?t.jsx(Ut,{onClickAway:()=>q(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!B&&Ct===!0?t.jsx(ji,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>q(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as ne,g as S,J as k,aQ as le,V as e,aP as a,ft as ae,bC as de,r as u,ae as d,F,o as r,aq as ce,d as me,aT as E,am as pe,y as xe,p as z,cE as he,aU as ue,ba as ge,u as we}from"./index-
|
|
1
|
+
import{aw as ne,g as S,J as k,aQ as le,V as e,aP as a,ft as ae,bC as de,r as u,ae as d,F,o as r,aq as ce,d as me,aT as E,am as pe,y as xe,p as z,cE as he,aU as ue,ba as ge,u as we}from"./index-DJv_Rbuz.js";import{a as j}from"./sentry-BAZEeDR7.js";import{n as s}from"./mui-vpVhZoFp.js";import{FK as je,bT as be}from"./zeni-epic-state-p-hirlWD.js";import{C as fe}from"./VideoPopup-DQ01Zj2Y-zyTi_sd6.js";import{M as v}from"./usp-line-BBd1wKwW-COokDSR0.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";import"./VideoPlayer-DJKEc9Gu-Cc5wpx11.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="bc3b31b1-da60-413a-85be-767234d554ec",i._sentryDebugIdIdentifier="sentry-dbid-bc3b31b1-da60-413a-85be-767234d554ec")}catch{}})();const V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ee,J as Ve,aQ as N,a9 as Ge,cF as qe,F as Te,aV as Ce,V as t,fb as Je,p as J,y as s,bC as Ze,T as Qe,ac as Xe,fu as ve,dR as Ke,fv as Ye,bw as et,dH as tt,aR as it,o as a,fx as nt,u as n,ci as ot,cS as at,c_ as lt,fG as ke,fH as $e,gg as st,r as rt,aP as Pe,R as Ae,bM as
|
|
1
|
+
import{g as Ee,J as Ve,aQ as N,a9 as Ge,cF as qe,F as Te,aV as Ce,V as t,fb as Je,p as J,y as s,bC as Ze,T as Qe,ac as Xe,fu as ve,dR as Ke,fv as Ye,bw as et,dH as tt,aR as it,o as a,fx as nt,u as n,ci as ot,cS as at,c_ as lt,fG as ke,fH as $e,gg as st,r as rt,aP as Pe,R as Ae,bM as dt,ai as ct,bt as ut}from"./index-DJv_Rbuz.js";import{a as o}from"./sentry-BAZEeDR7.js";import{n as i}from"./mui-vpVhZoFp.js";import{bJ as mt}from"./zeni-epic-state-p-hirlWD.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-DHgW1eCQ-eDz3OZIL.js";import"./liveblocks-CCMpOb9V.js";import"./core-ngENxsSR.js";import"./recharts-DVV1zL4K.js";import"./lottie-BuGJfGlI.js";import"./analytics-CzRVJ6MY.js";import"./lexical-B7Utywn0.js";import"./utils-Db3Jmqbx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="f2bd5b8c-d6d6-444c-a07d-bd3b80fa9c82",e._sentryDebugIdIdentifier="sentry-dbid-f2bd5b8c-d6d6-444c-a07d-bd3b80fa9c82")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:Q},trigger:X}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:d,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:Y}=Te.getLocalizedStrings(),{reimbursement:ee}=Y,[S,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Vt,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
|
|
@@ -14,7 +14,7 @@ import{g as Ee,J as Ve,aQ as N,a9 as Ge,cF as qe,F as Te,aV as Ce,V as t,fb as J
|
|
|
14
14
|
`,wt=i.div`
|
|
15
15
|
${e=>`${ge.title.style(e.windowSize)}`};
|
|
16
16
|
color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
|
|
17
|
-
`,St=i(
|
|
17
|
+
`,St=i(ct)`
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
20
|
justify-content: flex-start;
|
|
@@ -68,7 +68,7 @@ import{g as Ee,J as Ve,aQ as N,a9 as Ge,cF as qe,F as Te,aV as Ce,V as t,fb as J
|
|
|
68
68
|
`,At=i.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
|
-
`,jt=i.div``,Dt=i(
|
|
71
|
+
`,jt=i.div``,Dt=i(dt)`
|
|
72
72
|
color: ${e=>e.theme.colors.comingSoon};
|
|
73
73
|
margin-left: ${a.sp3};
|
|
74
74
|
`,Et=i.div`
|
|
@@ -103,7 +103,7 @@ import{g as Ee,J as Ve,aQ as N,a9 as Ge,cF as qe,F as Te,aV as Ce,V as t,fb as J
|
|
|
103
103
|
&:hover {
|
|
104
104
|
color: ${e=>e.theme.colors.primary};
|
|
105
105
|
}
|
|
106
|
-
`,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",G="remiAccount",q="remiMileage",Kt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:
|
|
106
|
+
`,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",G="remiAccount",q="remiMileage",Kt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:c,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Q,onBusinessVerificationSectionClick:X,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onEstablishConnectionSuccess:F,updateMileageDetails:w,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:K,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:Re,companyBillPayInfo:he,mileageRateConfig:ze,isRefreshingViewInBackground:Me,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),be=N(se.fetchState),we=N(re.fetchState),R=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||be==="In-Progress"&&se.fetchState==="Completed"||we==="In-Progress"&&re.fetchState==="Completed")&&R.reset(pe(e))},[_,v,R,e,be,se.fetchState,we,re.fetchState]);const Ue=R.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),He=async(A,M)=>{const m=M[G];if(A.includes(G)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const b=fe.find(me=>me.id===m.fundingAccount.selectedOption);b!=null&&K(m.fundingAccount.selectedOption,b.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.zeniAccountId!=m.account.selectedOption){const b=m.account.allOptions.find(me=>me.value===m.account.selectedOption);b!=null&&typeof b.label=="string"&&l.trackConnectBankLink(b.value,b.label,"reimbursement"),U(m.account.selectedOption,C.id,C.accType)}}else if(A.includes(q)){const b=M[q];w(b)}};o.useEffect(()=>{const A=R.watch((M,{name:m})=>{m!=null&&M!=null&&qe(()=>He(m,M))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&V()},[V,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:z}=Be,{setUp:k}=Se,de=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&ze?.denominationConversions.amount!=null,ce=Re?.isReimbursementEnabled===!0,Oe=de?Se.setUp.setupVerifiedSubTitle:z.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new Ce(W.colors.brandColorJadeLight):new Ce(W.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?I(!0):X?.()};return t.jsxs(Rt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:c,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:z.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:Q,showMenuIcon:!ce&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Mt,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Qe,{size:"ExtraLarge",start:!0})}):t.jsx(Xe,{...R,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ke,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Me}),t.jsx(Ye,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:G,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:q,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:z.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),de&&!ce&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:z.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ie.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:z.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:de&&!ce,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},Rt=i.div`
|
|
107
107
|
display: flex;
|
|
108
108
|
min-height: 100%;
|
|
109
109
|
flex-direction: column;
|
|
@@ -137,4 +137,4 @@ import{g as Ee,J as Ve,aQ as N,a9 as Ge,cF as qe,F as Te,aV as Ce,V as t,fb as J
|
|
|
137
137
|
display: flex;
|
|
138
138
|
flex-direction: column;
|
|
139
139
|
row-gap: ${e=>g.sectionRowGap.valuePx(e.windowSize)};
|
|
140
|
-
`,pe=e=>{const{allBankAccounts:p,allFundingAccounts:$,mileageDetails:j,primaryFundingAccount:P}=e,{localData:
|
|
140
|
+
`,pe=e=>{const{allBankAccounts:p,allFundingAccounts:$,mileageDetails:j,primaryFundingAccount:P}=e,{localData:c}=j;return{[G]:{fundingAccount:{selectedOption:P?.id,allOptions:$.map(r=>({label:r.label,value:r.id,isRecommended:r.accType==="depositAccount"}))},account:{selectedOption:P?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[q]:{mileageAmount:c?.mileageUnitAmount?.amount,mileageCurrencyCode:c?.mileageCurrencyCode??"USD",mileageCurrencySymbol:c?.mileageCurrencySymbol??"$",mileageUnit:c?.mileageUnit??"",description:c?.description??"",mileageAmountInDenomination:c?.mileageAmountInDenomination,denomination:c?.denomination??"dollars",denominationSymbol:c?.denominationSymbol??""}}},De=e=>`${e}_form`;export{Kt as default,De as uniqueName};
|