@zeniai/web-cockpit-ui 1.15.10-dev → 1.15.11-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-BtE9TY6d-C9maaZu_.js → ACHDetailsPage-CR6ypd9o-CPuvu8Ya.js} +1 -1
- package/dist/assets/{AIPerformancePage-BkDJ2ST0-Dzxt81Gg.js → AIPerformancePage-C1OU9y7O-Cy2fQhSN.js} +12 -12
- package/dist/assets/{AccountInfoPage-CTbeJLI7-C29oNV5j.js → AccountInfoPage-CyJ0eFqc-oDTaIYye.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BUTcEduM-DVKpBXHq.js → AccountInfoPageContent-CrSVf_Od-DxUVjtpH.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-v6aQO7JB-xH0-ZPkG.js → AccountLockedInfoModal-DNU_J1FV-BrQt7SPM.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DIAg-5PN-B1-bYNLU.js → AccountReconDetailsDrawerPage-DghCIWni-WUADgsvH.js} +1 -1
- package/dist/assets/{AccountRow-BVKk7u7h-CDJSAP1l.js → AccountRow-CYv0Uw-I-DQCZ-Htb.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CM2kVta7-D4DDSl1Z.js → AccountsPromoCardStack-BANu3wYt-CQ0iVQrx.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DDTSYpDb-gu3pix_O.js → AddAddressForCardDrawer-D1XOklKz-D41jak46.js} +1 -1
- package/dist/assets/{AddToWalletPage-D2Qg0MR_-DL2aRvxj.js → AddToWalletPage-C8keLYK6-Bn2sefuz.js} +1 -1
- package/dist/assets/{AgingReportsPage-_mSqD2hW-Boesp-Ca.js → AgingReportsPage-L84_Ka8x-B6lkNbiG.js} +1 -1
- package/dist/assets/{AllUserItems-CLsMcXeg-B7yfRaza.js → AllUserItems-Duwm6ypi-CNUX4dOE.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BsJuvMuy-C0lGm0Hq.js → ApAgingDetailPage-MH7SN7mP-D7GEtWSd.js} +7 -7
- package/dist/assets/{AppBasePage-BxGd2ny5-CxKcTkZB.js → AppBasePage-DpK4Drat-Bt4q9XbU.js} +1 -1
- package/dist/assets/{AppDrawerContent-DzQ2jw8d-B8p2K7qi.js → AppDrawerContent-CR_WXwBz-CFNPiFQp.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-6n8xLG5c-9HDMDjw5.js → ApprovalRulesSettingsPage-DD2E4NU5-DpHAD8Ti.js} +1 -1
- package/dist/assets/{ArAgingChart-B3T4qk8t-CVyLgEv4.js → ArAgingChart-q1DoAAzl-IMdyrhPv.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-pdf0VjeI-BUmI9Ihk.js → ArAgingDetailPage-BKqFTdkz-kMEm6GPZ.js} +1 -1
- package/dist/assets/{AttachmentView-BJfqJ9hP-BtlO-7I1.js → AttachmentView-CwbFyo5O-DSfNvuAU.js} +1 -1
- package/dist/assets/{BankAccountSection-Cd_h3co--DCzIyA5D.js → BankAccountSection-DNYhcdas-Ddz8QKzl.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Cz9fzMVv-CvaYS3T_.js → BankAccountWarningSection-B6AIe7nT-BcHAPM_q.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-P-hobvq_-BOnK_glB.js → BankConnectionsSettingsPage-BQSAz9yS-R3TufSTo.js} +1 -1
- package/dist/assets/{BillDetailPage-B-_gbDGZ-BtpvnzvD.js → BillDetailPage-CJMkS2TO-CUCvdJLF.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CyoqtTu1-C1sdR4PX.js → BillPayApprovalRuleDetailPage-CWCmHWbz-BO-G290w.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CTRvfoZN-BLcwl2yw.js → BillPayApprovalRulesPage-0_wlhyx9-CKOGyW5d.js} +1 -1
- package/dist/assets/{BillPayPromoPage-OYlocjA7-7DEWsR0V.js → BillPayPromoPage-CKOYCq5V-C6OfnMF1.js} +5 -5
- package/dist/assets/{BillPaySetUpPage-B8_IEgff-CAWPUMJX.js → BillPaySetUpPage-Dibv-FD4-kIfalP85.js} +4 -4
- package/dist/assets/{BillingSettingsPage-DqO-9dDI-7RCoKyM1.js → BillingSettingsPage-CG9gklV0-CGGGPaut.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-B-nfpiM2-CiONs4dM.js → BillsBulkReviewDrawerPage-Cgof7dpG-BwYBq9-d.js} +1 -1
- package/dist/assets/{BoxItem-C-LLQ7NS-CyKsGaF0.js → BoxItem-DD7d5_ky-D2d9aLr-.js} +5 -5
- package/dist/assets/{BusinessVerificationPage-BD-G0QbW-BuRfqr04.js → BusinessVerificationPage-KfKed7nf-Bzkiryv0.js} +1 -1
- package/dist/assets/{CardNumberSubText-CPcuTV6V-CmAy0kVV.js → CardNumberSubText-sE2DGwYG-B174guLL.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CzEHO7NM-DhooXBnW.js → CashbackDetailPage-D1ejnH4R-BltiUdCI.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DpA9C48D-Cg9lUs5_.js → ChargeCardDetailPage-Cvs-BEKp-Bqa3oM5k.js} +1 -1
- package/dist/assets/{ChargeCardListPage-igseWp-z-CgO4ULTe.js → ChargeCardListPage-CW0WF8w6-DBIJI8Xw.js} +1 -1
- package/dist/assets/{ChargeCardListTable-C-nM1SEM-CukpO46W.js → ChargeCardListTable-43l6tEOp-BbcKoGZ2.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-TCuBt2Cv-BDmH-kNH.js → ChargeCardPaymentHistoryPage-fpQhp74g-BLq-AFt8.js} +1 -1
- package/dist/assets/ChargeCardPromoPage-D0np03A--Bpq9wCjH.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-zdLpdeJV-CBsuPE8U.js → ChargeCardSetupPage-CFR2KfLW-Bj3pYNfL.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-D42XfAtE-RchDbumz.js → ChargeCardStatementsPage-BMYUlzTk-CZ02SfTF.js} +2 -2
- package/dist/assets/{CheckDepositDrawerPage-DC1L83fB-BCa5n7-H.js → CheckDepositDrawerPage-BXWeeMR7-BYN5c48i.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BWfFYJbH-BIiPdpTy.js → CollapsableReportTable-CZJ_4MUf-TH_6P-Y_.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-TNyVByDX-D2759MDx.js → CompanyOfficerDetailsSection-b2itwQOK-DbOlSBag.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DjBkQwpn-Dd7qvLcE.js → CompanyPassportCard-C5C3AykH-DcHAKmoT.js} +2 -2
- package/dist/assets/{CompanyPassportPage-CrqL6_wm-C8yNeeq6.js → CompanyPassportPage-D9zWgLlj-CWyCqrqW.js} +12 -12
- package/dist/assets/{CompleteProfile-BP-MRXpZ-BD6u4U_v.js → CompleteProfile-CMnTwbXr-DZqd8rFQ.js} +1 -1
- package/dist/assets/{ConfettiBurst-D2FdlxTA-BPfMfLCc.js → ConfettiBurst-BRie0bid-CKCgsLzT.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D2Cuyhtu-CjSilO-g.js → CreateOrEditVendorPage-CthcMxEa-PQhPjSjB.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-LQiWqyEO-5RaHGm67.js → CreditCardPaymentDrawerPage-LD349Ert-C4Wbd8yP.js} +1 -1
- package/dist/assets/{CurrencySelectField-Dpcv7_rA-DStJFuSr.js → CurrencySelectField-iXGB-cNy-BRjQHy5W.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BRWiLUVc-B8_ST9_b.js → CustomerOnboardingActivationPage-BuZrVCRr-DQvZbF43.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DrNstqxI-DBMIRSp3.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D4fUQLXG-BvBHzbJv.js → CustomerOnboardingDetailPageSkeleton-L4WssPjU-BL2-a44j.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CxF6ZEAa-CMxQsxHY.js → CustomerOnboardingNoStepsPage-Bqv6vbYJ-B4xhs9JC.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DKcr5stz-DRi352cJ.js → CustomerOnboardingPage-D7YVlzdy-GqcXPa-d.js} +1 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-DLzC-lxj-pVKJNYgp.js +202 -0
- package/dist/assets/{Dashboard-DMAOn7Hi-CGGVivU9.js → Dashboard-BgpeTLE--ZF2wZzkh.js} +1 -1
- package/dist/assets/{DashboardReportPage-UUd1-ITz-DMCD3HWG.js → DashboardReportPage-DJtJdsj5-D0j90p2O.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BuINHqA--61tWJjrX.js → DashboardSidebarBackgroundAnimation-CL6vWi6p-DaXPDfmE.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BE8LeqlM-hlhKmXR8.js → DepositAccTransactionItem-B8Kledeo-BlVCqg6w.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DyH-aZDX-DTHKAa1Z.js → DepositAccTransactionListPage-DYBIAd7n-gVv7-TK3.js} +2 -2
- package/dist/assets/{DomesticWireDetailsPage-Bk5AZOQt-CMcHRFaW.js → DomesticWireDetailsPage-Bm-bfxSa-rYZYhMWI.js} +1 -1
- package/dist/assets/{DownloadOverlay-BOYOF8Po-BwD6Afat.js → DownloadOverlay-CAfyh0W2-BJk2KPOA.js} +1 -1
- package/dist/assets/{DrawerPage-BGGHNo0X-DCBr8o9E.js → DrawerPage-DUeVKq0Q-DB8bkP9s.js} +1 -1
- package/dist/assets/{EditPeoplePage-CEiwvizd-D-zbL-nU.js → EditPeoplePage-dVrpOcc1-DgbweCi9.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DBLDLvqO-C54aQF5d.js → EditReimbursementDetailPage-xWwm-k8T-Hs0cdO6C.js} +1 -1
- package/dist/assets/EntityDetailPage-Cpdbw3XR-C8k1xBJc.js +18 -0
- package/dist/assets/{EntitySummarySection-Ddaj1RmO-DBcpL5Yc.js → EntitySummarySection-CTU-YsQl-CSwZth_c.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-B_BlqiWf-CaFabiLU.js → ExpenseAutomationOverviewPage-DCbcWM84-DHrtqP9f.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-DfUf0zEN-B6VJ2UJy.js → ExpenseAutomationPage-DbFQ6EeA-C0i_UBmZ.js} +1 -1
- package/dist/assets/{ExpressPayPage-Da8lLZso-Cwv7Clar.js → ExpressPayPage-DMLKT4Nf-6YIrNvk0.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CmrPDUFU-5rcSl0eb.js → FeaturePreviewPage-DFsZRRmZ-KGYTIegX.js} +1 -1
- package/dist/assets/{FollowStepsSection-DbxSUIzC-BaXmlzKU.js → FollowStepsSection-DkBj9-hs-mJdSbXed.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-Du_3tupM--fNfq6rW.js → GlobalReviewListPage-D1fbfssG-CByDE9EN.js} +1 -1
- package/dist/assets/{InformationCardStack-Bx_9X95v-xPOrStCv.js → InformationCardStack-CBsOTiOc-CgAe3fDD.js} +2 -2
- package/dist/assets/{InsightsCardStack-Xn2rGwX0-BAx1TkHE.js → InsightsCardStack-BEpCIgoE-Bd7MJjyH.js} +2 -2
- package/dist/assets/{InsightsSection-CwyGEE7C-BgS40gth.js → InsightsSection-DcKb1p5B-QoDxUPcZ.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-CEL26-eE-DfibyIun.js → IntegrationsSettingsPage-CMEV5P0b-3g_v4D8X.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-IUz-DwAH-CGr6Gc70.js → InternationalWireSwiftDetailsPage-Bukfo0LC-DGIPKWPe.js} +4 -4
- package/dist/assets/{InternationalWireVerificationPage-C66rHdsi-fqJ5C72A.js → InternationalWireVerificationPage-nZvCemaM-DntrzxyD.js} +1 -1
- package/dist/assets/{InviteFormPage-Do-6PG8h-C-rzmYCh.js → InviteFormPage-BpgeFttq-BbrTw2ZL.js} +1 -1
- package/dist/assets/{InvitePageListView-DYKcMtIL-nvuj34Qe.js → InvitePageListView-B6wJomGk-pTRfOIaC.js} +1 -1
- package/dist/assets/{InvitePeoplePage-C2SmS7y8-BN_wFYgu.js → InvitePeoplePage-BArRXjlz-BHQlwXvg.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-rCCcSbbj-CFzlgKg9.js → InvoiceUploadSection-CTqSftrm-CyVrgEkl.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DZvVosb3-C2W1gOfV.js → IssueChargeCardPage-DYG5IXrC-D-2m3p9R.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CAX5YTSE-BfVvpzvP.js → LabeledAddressValue-D09c5wJR-784mespz.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BraOMDrG-CfBm_XIY.js → LabeledAddressValueField-Cac2YPpN-Ba7qdzlE.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DBcPQa79-B_0nrSFr.js → LabeledControlledCheckBoxField--EmdYCME-BUoRkObt.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-DYid8vvM-BfPOTgp8.js → LabeledCountryMultiSelectField-DdqOGBwp-DSHkYk9h.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DzB7KPXf-BwfCQ3vj.js → LabeledCreatableSingleSelectField-K0xUavli-THytCXMe.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BdQjt44W-EnLXAA71.js → LabeledDocumentField--JZn0qDn-Ck_rkdmF.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BheK7sFg-D0D4XYai.js → LabeledDropDownFormattedTextField-Dms9ziRv-CJQkVxrk.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-m2Y_IFK_-DBGqM9Nr.js → LabeledMultiSelectField-X5GGPnfG-0qUfOlj0.js} +1 -1
- package/dist/assets/{LabeledText-C6M4paXi-dAFR23d7.js → LabeledText-BJrI_PVT-oE-g3K8U.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-i7qOybJ3-QdNWRUWG.js → LabeledUserSingleSelectWithSubtitlesField-BmMN3W3F-BzPJ9P_-.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-BhNbXDjb-DgKv1slV.js → LabeledZeniRolesDropDownField-PsaKyCCY-EbSrXIJy.js} +1 -1
- package/dist/assets/{LinkJETransactionPage--sqluuih-VivXIc5D.js → LinkJETransactionPage-BDIpw0zn-B_cGLw9N.js} +1 -1
- package/dist/assets/{LockCardPage-Bq0Tu8g8-C6m1-JJ1.js → LockCardPage-ChGk6VJX-BzQI96FY.js} +6 -6
- package/dist/assets/{LowBalancePopup-hlu_jjTZ-DZ1z8xe6.js → LowBalancePopup-Bv3kKmAV-DSB2Ymlf.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-D4Vmz8ms-ItRZ63_N.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-B7C30ROh-C843OBvj.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DVFrpmvm-COXfeIQs.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-D6ZDRs5F-DQNiPx3u.js → MagicLinkSuccessPage-ySlQc8oV-BspPWH9Z.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-e9WYeJQA-BdMlQ905.js → MagicLinkTitleSection-C_OYT1do-NbVFRCAZ.js} +1 -1
- package/dist/assets/MailingDetailsSection-CTPCXpZR-Dv3Iye8Q.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-Bb7UZRJf-B5XKMom_.js → MyBankConnectionsSettingsPage-CxaXh1Aj-CwKK_h51.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BToJWGM8-CjAx4TXN.js → MyPendingActivationChargeCardListPage-B9mNbLDd-Db1Atl2l.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CGxf42bP-Cc5RApxz.js → MyProfileSettingsPage-DDERIXlZ-CjalvgMv.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DcDs1pe7-RUEHjYNa.js → NavBarWithPicker-BJ_8PHPv-B6R9nMuM.js} +1 -1
- package/dist/assets/{NavigationArrow-DGSdnTKQ-CgfnFgIs.js → NavigationArrow-9HOMBxoh-CWFuMeOE.js} +1 -1
- package/dist/assets/{NavigationDots-BPsFQiss-Dqh0y0c_.js → NavigationDots-DPf5iy8f-DNlf5jCf.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-od2IF__o-BUeowAQW.js → NewGlobalMerchantPage-1MfUlwkA-Dx3DZ-ZO.js} +1 -1
- package/dist/assets/{NoDataChart-qG0jmc8Z-Dctec7eR.js → NoDataChart-CDHiYyiO-DHWgty-U.js} +1 -1
- package/dist/assets/{NoDataTable-CgKT7NGU-CuzMQ4sx.js → NoDataTable-BoAJZxdS-ClNYPP1-.js} +1 -1
- package/dist/assets/{NotFoundPage-CdUJ7M5p-DbLXvN2b.js → NotFoundPage-C-EoeDss-DqOvJ6YN.js} +6 -6
- package/dist/assets/{NotificationSettingsPage-D1PKq-ED-ChTF7VDn.js → NotificationSettingsPage-BfFNx-vu-Byo7BJZr.js} +1 -1
- package/dist/assets/{NotificationsListConfig-Ctfr3h3b-B2C7Z_Di.js → NotificationsListConfig-CBQwRqMo-DVBdjTys.js} +1 -1
- package/dist/assets/{NotificationsPage-_5Yn9uTy-mxWdg1FN.js → NotificationsPage-BPfRskWZ-_QOFXGgt.js} +1 -1
- package/dist/assets/{OpExByVendorPage-Dqr805s1-CqYYgxC3.js → OpExByVendorPage-BLI8h8LP-PGQ9bnDo.js} +1 -1
- package/dist/assets/{OverlayContainerPage-IDTUbuAC-YfbThdai.js → OverlayContainerPage-IDTUbuAC-B16J5Isr.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CQ5IMW_B-BHtqAaTy.js → PandLWithForecastPage-DvT1WQdL-CPylI6Uc.js} +4 -4
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DtOeyTmL-DXDwBnq6.js → PaymentAccountSetupBillingAddressSection-CyfKYJV3-CnunCi1o.js} +7 -7
- package/dist/assets/{PeoplePage-DEp24LGx-BkYkgzLW.js → PeoplePage-BHfn-oLF-CGOapKvG.js} +1 -1
- package/dist/assets/{Preview-XG6ky5VX.js → Preview-B9tjpKKL.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dgwws_g9-_dPrFjDV.js → ProductsCarousel-ChWN6HhX-DEhcI5NW.js} +1 -1
- package/dist/assets/{PromoBaseCards-wfvFaqMw-CY2jDhRy.js → PromoBaseCards-BWpqciJW-DEw7mp3r.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CSMrKgrY-gVbZ-mZ8.js → QBOConnectionDialog-D9wVm2ga-jv2cIUQM.js} +1 -1
- package/dist/assets/{QBOSetupSection--FQKYLxN-LYuddynp.js → QBOSetupSection-CR7JQ_H9-CokKwnfI.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Dzg2pNcJ-BdMg1RhW.js → ReimbursementApprovalRuleDetailPage-RTvnT_vl-D0AOYl_B.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-eyZWsjXs-Du4OL-aC.js → ReimbursementApprovalRulesPage-Dbs4lLSo-5JjLiWWQ.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DnSo6uTd-B2fnQcOh.js → ReimbursementDetailPage-COF-QqKR-BLj9_Zcn.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-0st3rBmg-BJkFCzXz.js → ReimbursementPromoPage-DSHynwPv-CMfUTDoh.js} +8 -8
- package/dist/assets/{ReimbursementSetUpPage-DCMgwGAM-CVZuk20s.js → ReimbursementSetUpPage-CafAtAVr-BdH5_Uu6.js} +7 -7
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cx7BlVAb-BW2L-YXt.js → ReimbursementsBulkReviewDrawerPage-Cz8keUEO-C42JglzT.js} +1 -1
- package/dist/assets/{ReloadCard-8Tiu9Mq9-WidMrFBg.js → ReloadCard-Bf1jxC4B-CjPHohhm.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BwBEG73W-D23xRsEe.js → ReportTableViewSelector-DOQm7O9r-DcS436ql.js} +1 -1
- package/dist/assets/{ReportsPage-BxXxsNBv-dsPUH8v1.js → ReportsPage-Deg59aYB-VaMTaqOC.js} +5 -5
- package/dist/assets/{RevenueChart-D13bncyo-DisVSBsZ.js → RevenueChart-C1RR_51e-Bn1LRvSc.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-C5q0Abn_-DCYfD4eU.js → ReviewDetailsPage-D3bqGZYb-DmpMCAqo.js} +52 -52
- package/dist/assets/{ReviewOverlay-BNnNWFdW-Dc8TbL95.js → ReviewOverlay-CKB9LulM-CUNk2W-s.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DvYf0VUz-DfyQTHhc.js → RoleWithToolTip-BGlbeXtJ-BQ5iinOT.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DqrwF4kG-YxjHzQUp.js → ScheduleDetailsFixedAssetsPage-D4OkyPNa-6prKuM88.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-CH2lKmlN-Db_nhPQU.js → ScheduleDetailsPage-9oUScaFD-Czq02-r0.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BzDIvZ9H-BagpGi8M.js → ScheduleSequenceTable-CuOC0Niz-BzAvMkBB.js} +1 -1
- package/dist/assets/{ScreenRoutes-l2ZSRE3X.js → ScreenRoutes-DhG0rKVC.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DOvqcC8t-DxYvNTsg.js → SetUpAccountSection-CK2Ibij3-DvyPJ8FZ.js} +1 -1
- package/dist/assets/{SignIn-CBRwaiPC-DSZbn4tf.js → SignIn-CLLS0cqt-G1jKv-f1.js} +1 -1
- package/dist/assets/{SignInScreen-DA-QJIMK.js → SignInScreen-BdhVUUiU.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BjdD7zHz-duCSBxrR.js → SpendManagementListViewPage-C1hg05PB-BMXGChah.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-S5zX9fWg-B69ncWCU.js → SpendManagementPerTabPage-7uggjzlM-BBdEOhcD.js} +1 -1
- package/dist/assets/{SpendManagementSection-vo9WEGWQ-DV0kvnxH.js → SpendManagementSection-DFiL_yNI-ca-vlRub.js} +1 -1
- package/dist/assets/StatementItem-CdytKcBE-CavJc8fo.js +31 -0
- package/dist/assets/{StatementsPage-0BpH6B2F-c3HeY-pH.js → StatementsPage-DU32IYXF-Dj_pMhMm.js} +1 -1
- package/dist/assets/{StatusSwitcher-Cj2oyfqn-GHqh8PSV.js → StatusSwitcher-DPzwQ_o1-DkaIBc47.js} +1 -1
- package/dist/assets/{SubTabSwitcher-B-gfkK-k-9khtx1-k.js → SubTabSwitcher-Dztt2rN9-DqHo5u0Z.js} +1 -1
- package/dist/assets/SummaryCard-D3ev0zFr-CHfcyxTY.js +1 -0
- package/dist/assets/{TaskManagementPage-DND-MEly-DfQOsUTI.js → TaskManagementPage-BRAt26fv-om-zuIgh.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BCfDT5nQ-BnXndCyZ.js → TimeRangeSwitcher-DMCbeOcI-C4mgjK4U.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-CCMyvSSI-DIRa_Jc4.js → TimeframeSwitcher-YCgPbEnk-CJUz-kg1.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Di1hQ-WC-DVlTpSsC.js → TimeframeSwitcherWithToggle-BBJP1nmh-D1jTbV4O.js} +2 -2
- package/dist/assets/{TopExCard-B4CpuO-v-CxDodwtl.js → TopExCard-LesAF7Ot-CWhGtv9n.js} +1 -1
- package/dist/assets/{TopExDetailPage-BWdJnu-c-DDcIl_DR.js → TopExDetailPage-BTG2W95T-CAgJv3QR.js} +5 -5
- package/dist/assets/{TransactionDetailPage-CL_VbaJy-BG7mpSq_.js → TransactionDetailPage-BqHVfK2K-CBoMen48.js} +1 -1
- package/dist/assets/{TransactionList-CSfzB0gM-Dw6vqliW.js → TransactionList-CGmpQyNM-BGohJsUE.js} +1 -1
- package/dist/assets/{TransactionListBig-Dkdt0pvn-BZrDL6CH.js → TransactionListBig-CSYpIxGa-Bd2xJZzC.js} +1 -1
- package/dist/assets/{TransactionListPage-DBAqpKkc-SGyXtVgm.js → TransactionListPage-CV5U_pA6-DsUhS_R3.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-BPb6IGMd-D5zJvpum.js → TransactionVendorDetailPage-DvqHmq7y-C8mjIShR.js} +1 -1
- package/dist/assets/{TransferDrawerPage-oyNu_G0D-C-dL6Rya.js → TransferDrawerPage-Cm5reG35-B5qd6-NU.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DIPEykKC-C5rL0Wer.js → TreasuryOverviewPage-CwcehiRb-BBfaI9Ls.js} +9 -9
- package/dist/assets/{TreasuryPromoPage-wmxtzW1N-BB1K5PqR.js → TreasuryPromoPage-BagqhZgO-BswlnynL.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-vHS-mb3R-Ddrpn04Q.js → TreasuryStatementsPage-o-ID2nvn-DTg8AAgQ.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-3fiYxv2D-Dg0xbQQQ.js → TreasuryTaxLetterPage-D9f3ohGF-DEP20r26.js} +2 -2
- package/dist/assets/{TrendChart-dVd4QdGQ-CLKuTzb2.js → TrendChart-CqxpheW7-DiPHNgeC.js} +1 -1
- package/dist/assets/{TrendWithTransactions-zZUv_Qrs-BElxtx49.js → TrendWithTransactions-CK_je__x-C1Qk91i9.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-CcyG64pA-0yQuhcbM.js → UncategorizedAccountsMappingPage-BBYQFJxE-nEmuJTEW.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-BL6g4XY0-fYnhKg75.js → UnitIntegrationPage-ULhazfl5-DPlYAGvC.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CBg0WhaZ-C_8-7GFi.js → UploadAdditionalDocumentOverlay-BPNLdaLG-DQNAWd7N.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CF5AV8a5-BsgzaDOa.js → Vendor2FAPopup-C3Z-3poJ-Cxx265s1.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-DnB2b-v_-C755XLlO.js +1 -0
- package/dist/assets/{VendorDetailPage-C168zV-E-B3dEwSOF.js → VendorDetailPage-DPiVnh93-CAOlBr9d.js} +5 -5
- package/dist/assets/VendorDomesticWireDetailsPage-BbfatdWd-DhsLa-3A.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DVrk7af6-wOFW-4Wi.js → VendorFiling1099EditablePage-CFrvW8qi-C-v6Mx4-.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-kiMBuYID-CtvtJJUg.js → VendorFirstReviewPage-CRLGuw2s-wfeT2fAg.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CtGJurq9-CCXwNCAZ.js → VendorInternationalWireDetailsPage-CV11lzdw-BWhlaMax.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-D3asjWH_-BXIinpkC.js +1 -0
- package/dist/assets/{VendorsAccountsSection-B9Ik1T2V-BaqvYUX_.js → VendorsAccountsSection-vd0V4UXY-BNPavepY.js} +1 -1
- package/dist/assets/{VerifyDevice-DfX9VA7b-BdOPIyEo.js → VerifyDevice-DbyjJVTH-_0YHPiw6.js} +3 -3
- package/dist/assets/{VideoPlayer-_FcQClfH-cuN5RcOe.js → VideoPlayer-CoI7aj8a-B3tmTxCF.js} +2 -2
- package/dist/assets/{VideoPopup-D0XTfD6q-CZBktelE.js → VideoPopup-Bp7fCV1r-BulLqsQx.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-DIwWkX4B-B-UdjfAF.js → WarningsDrawerPage-jMslD0FX-CrUmOPLP.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-mo0trXHB-B20udciT.js → ZeniAccountDetailPage-C1Vq8cMd-BzjwyTwn.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CVzyx1Sx-CoJhvG_N.js → ZeniAccountListViewPage-BNTb04x5-DcvhdCN4.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CbXVnnp9-Dnxyvh_X.js → ZeniAccountNavBarPieces-ByYrxg3x-w6kmpmKh.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-gZMYr_Ux-DJicJ7wt.js → ZeniAccountPromoPage-BCkk0NbR-juw5u7mQ.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DPOLAjZV-DJVpJ_Nd.js → ZeniAccountSetupPage-ClZTjZhF-C_sOqJTM.js} +1 -1
- package/dist/assets/{ZeniCopyright-BDUQdaKP-B6B-IB0N.js → ZeniCopyright-C8wXM9Gr-qMGnv8al.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-B-nq8t_K-ANSQo16z.js → ZeniTransferAmountSlider-NAR_1h8K-DARDrTsk.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-BBEivBdQ.js → add-to-wallet-DgdBD8_G-flwj0i1s.js} +1 -1
- package/dist/assets/{analytics-DO1unY4G.js → analytics-EizVTK6x.js} +1 -1
- package/dist/assets/{analyticsHelper-ZZI8M_53.js → analyticsHelper-BRPQgKH6.js} +1 -1
- package/dist/assets/{analyticsHelper-7cF4XxuH-_xEf-TSd.js → analyticsHelper-DjynPp_X-s29on7ka.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-CV7FSM6U.js → arrow-south-east-round-PEovUgvH-DbFUNUBk.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CJUhOMj-.js → auto-transfer-rule-mbafm5D3-T83isyAA.js} +1 -1
- package/dist/assets/{chartTypes-DjzTOuyH-BFNN0c4F.js → chartTypes-CXNoxZp_-CJ_wyUtd.js} +1 -1
- package/dist/assets/{commonDimensions-CtIrih5r-CfslRtQI.js → commonDimensions-i9Qxk1O2-XYIUogON.js} +1 -1
- package/dist/assets/{commonTypes-9h2Y-L4i-CJG-nO2R.js → commonTypes-CcEHeA3z-sEqnsPbS.js} +1 -1
- package/dist/assets/{constants-pYZADjo8.js → constants-BGXrwDfx.js} +1 -1
- package/dist/assets/{core-B9Znwqny.js → core-C5wq1_Bk.js} +1 -1
- package/dist/assets/{dash.all.min-CS5kHJkT.js → dash.all.min-B4_top4V.js} +1 -1
- package/dist/assets/{detailCommon-CEOeZl26-CdFIe8qF.js → detailCommon-DVTOw71--Wk0Evzej.js} +5 -5
- package/dist/assets/{downloadPdf-Pyk_BhF7-WEbr68vS.js → downloadPdf-1-N8Pf0G-CMW67koi.js} +1 -1
- package/dist/assets/{empty-CpGZk5F5.js → empty-DuP8pCf7.js} +1 -1
- package/dist/assets/{empty-ChJVx-YB.js → empty-fb3xJ2Vb.js} +1 -1
- package/dist/assets/{epic-C_GKKQik.js → epic-4LjfR2JF.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-DNEMczKk.js → gift-box-Cmt9OgIZ-BtixTK1k.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-Bx_mQw5e.js → graphic-no-data-l-DU4J8fDt--UnjJCr0.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-C46dJM7J.js → graphic-no-data-net-burn-l-CzmycA0m-8oQBXM_J.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-C6X_P0qB.js → handshake-BPg58FML-BSCdA5zo.js} +1 -1
- package/dist/assets/{index-1k0W8uO3.js → index-CzJUh-iK.js} +1 -1
- package/dist/assets/{index-BhvUwV_v.js → index-DVgY55Ab.js} +7 -7
- package/dist/assets/{index-POT-Iy9l.js → index-DqRCO-H6.js} +1 -1
- package/dist/assets/{index-CfJ2tiIp.js → index-J8KI2Uyc.js} +1 -1
- package/dist/assets/{index-BFgzVTwo.js → index-Ko3PkHk3.js} +1 -1
- package/dist/assets/{index-DpdT_X0L.js → index-_TIifI_v.js} +1 -1
- package/dist/assets/{index-CPEwTrV2.js → index-tW1FBxGF.js} +1 -1
- package/dist/assets/{lexical-DSIpBzCF.js → lexical-xuKHFvUb.js} +1 -1
- package/dist/assets/{liveblocks-BqcT5iTZ.js → liveblocks-B14TpO3l.js} +1 -1
- package/dist/assets/{lottie-oQfNS8l-.js → lottie-BIQaRIZs.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DoHalh0I-DytjKdZ3.js → mapLoadingInProgressToTreeNode-UA-QQZJo-DsDuha6V.js} +1 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode--y3nO5uZ-DP42yTzT.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-BOG_274U-C0W1M9EX.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Btd_0ZvL-CEgQnhXV.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-LWHXAvJU-B42MwYQ_.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Bz1bR9oN-BR28SX0V.js → mapTimeframeHeaderLoadingInProgressToTreeNode-aD-96xtj-BAIV3Qln.js} +1 -1
- package/dist/assets/{mui-DqYnCiYu.js → mui-CR-wYMmN.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-C4YmGfRe.js → page-detail-CWX5S47F-Dp0GDjdb.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-C5tnzklf.js → radio-default-CiSgisfh-CInIhD3e.js} +1 -1
- package/dist/assets/{react-xLrt57tQ.js → react-BHi_eEiU.js} +1 -1
- package/dist/assets/{react-D2eQzOPv.js → react-BW87X3sj.js} +1 -1
- package/dist/assets/{react-Bu5BHG8O.js → react-C8urvt-z.js} +1 -1
- package/dist/assets/{react-DbRD5tNt.js → react-CCZeJYV_.js} +1 -1
- package/dist/assets/{react-CBiOQOL3.js → react-CcqTmi2W.js} +1 -1
- package/dist/assets/{react-B-LXbQdG.js → react-D2cRiLcJ.js} +1 -1
- package/dist/assets/{react-DEOv3QaS.js → react-DHV7aTmN.js} +2 -2
- package/dist/assets/{react-BPazyT0C.js → react-D_2r5dmn.js} +1 -1
- package/dist/assets/{recharts-D7E0WJGk.js → recharts-C3mrSjO2.js} +1 -1
- package/dist/assets/{sentry-DgGQRl6g.js → sentry-DMXY90dB.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DK1OxwF6.js → shield-DOlUxcFf-BYs2EC5i.js} +1 -1
- package/dist/assets/toCOABalancesWithID-C_7wlYeT-C3P4q5bp.js +1 -0
- package/dist/assets/{toChartData-BFuIgA2L-C4IkmCYG.js → toChartData-Dv-QcYgv-C4sd-ifC.js} +1 -1
- package/dist/assets/{uploadAttachment-ux9baWqa-BwjN4G2_.js → uploadAttachment-DSmux1Yp-Dl4ms4pR.js} +1 -1
- package/dist/assets/{uploadReceipts-DJRtId-4-xnWXJPvb.js → uploadReceipts-DJRtId-4-CHJq-raT.js} +1 -1
- package/dist/assets/{url-CW650CMO.js → url-20Ls3nS_.js} +1 -1
- package/dist/assets/{url-DxcM52GB.js → url-DojBAuFA.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-D9KvmRO7.js → useLongPress-GCK2COYQ-C5_U_XBl.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-EmNWFdhU.js → usp-line-BBd1wKwW-l2et8N9o.js} +1 -1
- package/dist/assets/{utils-C_quS4m3.js → utils-BCuN6woZ.js} +1 -1
- package/dist/assets/{zeni-epic-state-WWg2r7iB.js → zeni-epic-state-BXMuLX_S.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ChargeCardPromoPage-DEjWh0Ax-DtQMu7KS.js +0 -222
- package/dist/assets/CustomerOnboardingContainerPage-BLGGDdc6-DSwc8Dwv.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-B84wAHDe-CoEVNP5O.js +0 -202
- package/dist/assets/EntityDetailPage-Cd3eku5o-D0l7oH4S.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-C1pJBTPa-Dk0xalTl.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-C77X02bo-Dbss_Tqv.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DUHpAm8_-BkDmu3l4.js +0 -1
- package/dist/assets/MailingDetailsSection--Lx7QBGW-BxmiDkr6.js +0 -21
- package/dist/assets/StatementItem-BxnOzchG-C1vR7F9V.js +0 -31
- package/dist/assets/SummaryCard-D92z4WU0-Dk2J87_c.js +0 -1
- package/dist/assets/VendorACHDetailsPage-B_wVoMw5-D4XhjcJ1.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-cAu_hGIj-CosrcI_S.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Cy8QoA_b-vnefUABQ.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CjiNTI8L-BE28qPgb.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-Di-_Qhw7-nEHRbBKZ.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BaIl_VbE-C25WmKnk.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-mMtwXmJx-B8gyB0Lt.js +0 -1
- package/dist/assets/toCOABalancesWithID-CjVmQxAs-8r-ogQXf.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as o,G as A,g as I,Q as v,bB as ne,F as c,r as re,aP as F,T as
|
|
1
|
+
import{V as o,G as A,g as I,Q as v,bB as ne,F as c,r as re,aP as F,T as ae,b as ie,y as W,o as s,cc as ce,aD as le,aV as de,M as ge,cC as pe,by as me,u as $,cD as he,aT as fe,aU as ue,ba as xe,bK as we}from"./index-DVgY55Ab.js";import{a as N}from"./sentry-DMXY90dB.js";import{n as r}from"./mui-CR-wYMmN.js";import{R as Se}from"./NavBarWithPicker-BJ_8PHPv-B6R9nMuM.js";import{m as je}from"./analyticsHelper-DjynPp_X-s29on7ka.js";import{M as be}from"./TimeframeSwitcherWithToggle-BBJP1nmh-D1jTbV4O.js";import{I as ye,a as $e}from"./CollapsableReportTable-CZJ_4MUf-TH_6P-Y_.js";import{M as E}from"./usp-line-BBd1wKwW-l2et8N9o.js";import{F1 as Ce,F2 as Pe}from"./zeni-epic-state-BXMuLX_S.js";import{D as ke,T as ze,C as ve}from"./mapSectionWithAcOnlyToTreeNode--y3nO5uZ-DP42yTzT.js";import{s as H}from"./mapTimeframeBalancesToTreeNode-Btd_0ZvL-CEgQnhXV.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";import"./TimeframeSwitcher-YCgPbEnk-CJUz-kg1.js";import"./AccountRow-CYv0Uw-I-DQCZ-Htb.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]="aa34cdc5-3fb9-4ba1-add7-2ad5559f5d27",e._sentryDebugIdIdentifier="sentry-dbid-aa34cdc5-3fb9-4ba1-add7-2ad5559f5d27")}catch{}})();const Q="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",Te=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -70,7 +70,7 @@ import{V as o,G as A,g as I,Q as v,bB as ne,F as c,r as re,aP as F,T as ie,b as
|
|
|
70
70
|
margin: ${s.sp3} auto;
|
|
71
71
|
max-width: 422px;
|
|
72
72
|
color: ${e=>e.theme.colors.hero};
|
|
73
|
-
`,Ne=()=>{const e=I(),t=v();return o.jsxs(q,{windowSize:t,children:[o.jsx(J,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:Q,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(K,{windowSize:t,children:[o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(V,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(V,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(V,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},_e=()=>{const e=I(),t=v();return o.jsxs(q,{windowSize:t,children:[o.jsxs(K,{windowSize:t,children:[o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(J,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:Q,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},Be=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const
|
|
73
|
+
`,Ne=()=>{const e=I(),t=v();return o.jsxs(q,{windowSize:t,children:[o.jsx(J,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:Q,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(K,{windowSize:t,children:[o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(V,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(V,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(V,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},_e=()=>{const e=I(),t=v();return o.jsxs(q,{windowSize:t,children:[o.jsxs(K,{windowSize:t,children:[o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(J,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:Y,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:Q,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},Be=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const i=I(),l=v(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(Te,{"data-testid":F("forecast-promo-page"),children:[o.jsx(ne,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:i.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(Le,{"data-testid":F("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Me,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Ie,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Ne,{}):o.jsx(_e,{}),o.jsxs(Ae,{"data-testid":F("forecast-promo-bottom-container"),children:[o.jsx(re,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Fe,{children:c.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})]})};function Oe(e,t,n=!0){const i=c.getLocalizedStrings().reports,l=e.filter.balancesRange.numberOfPeriods,d=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?e.sections.expenses.balances:e.sections.income!=null?e.sections.income.balances:[],m=H({balances:d,config:t}),p=[];return p.push(m),e.idsInOrder.forEach(a=>{if(Ce(a)===!0){const u=e.sections[a];if(u==null)return;u.accountGroups.length>0?p.push(ke({section:e.sections[a],sectionType:a,numOfBalances:l,title:i.sections[a],isLastNode:!0,config:t})):p.push(ze({sectionWithAcOnly:e.sections[a],sectionType:a,numOfBalances:l,title:i.sections[a],isLastNode:!0,config:t}))}else Pe(a)===!0&&p.push(ve({calculatedSection:e.calculatedSections[a],numOfBalances:l,title:i.sections[a],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[m]:[],contentNodes:p}}function Ve(e,t,n,i=!0){Object.assign(e.config,t);const l=n.sections.expenses.balances.length>0?[...n.sections.expenses.balances,...n.sections.expenses.additionalBalances]:[...n.sections.income.balances,...n.sections.income.additionalBalances],d=H({balances:l,config:t,nodeId:e.contentNodes[0].id}),m=e.contentNodes.slice(1);return m.forEach(p=>te(p,t)),{config:t,headerNodes:i?[d]:[],contentNodes:[d,...m]}}function te(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>te(n,t))}const L={contentPaddingLeft:new W($[3],$[3],$[8]),contentPaddingRight:new W($[3],$[3],$[8])},Ee=r.div`
|
|
74
74
|
display: flex;
|
|
75
75
|
flex: 1 1 auto;
|
|
76
76
|
min-height: 100%;
|
|
@@ -92,7 +92,7 @@ import{V as o,G as A,g as I,Q as v,bB as ne,F as c,r as re,aP as F,T as ie,b as
|
|
|
92
92
|
justify-content: center;
|
|
93
93
|
align-items: center;
|
|
94
94
|
background-color: ${e=>e.theme.colors.grey4};
|
|
95
|
-
`,U=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?o.jsx(De,{children:o.jsx(
|
|
95
|
+
`,U=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?o.jsx(De,{children:o.jsx(ae,{size:"ExtraLarge",start:!0})}):null,We=r.div`
|
|
96
96
|
display: flex;
|
|
97
97
|
width: 100%;
|
|
98
98
|
flex-direction: column;
|
|
@@ -104,4 +104,4 @@ import{V as o,G as A,g as I,Q as v,bB as ne,F as c,r as re,aP as F,T as ie,b as
|
|
|
104
104
|
align-items: center;
|
|
105
105
|
justify-content: center;
|
|
106
106
|
margin-bottom: ${s.sp3};
|
|
107
|
-
`,Ge=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:
|
|
107
|
+
`,Ge=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:i,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:a,onClickMenuIcon:u})=>{const h=v(),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:ie.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:a},onBackClick:p,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:u},b={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:i,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}),a?"":o.jsx(Ue,{children:o.jsx(be,{...b})})]})},He=({report:e,type:t,isActualVsForecastOn:n,compareMode:i,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:m,onTableScroll:p,nodeOpenStatus:a,onNodeCollapseToggled:u})=>{const h=I(),f=v(),[x,b]=N.useState(void 0),[g,z]=N.useState(void 0),y=!(f==="small"||f==="medium-compact"),M=n===!0?"actual_vs_forecast":"none",T=`forecast.${e.reportId}`;return ce({componentName:T,enabled:e.fetchState==="Completed"}),N.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:M,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=Ve(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:i,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:a,onNodeCollapseToggled:u}):null};function uo({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:i,selectedForecast:l,pandLreport:d,type:m,meetingUrl:p,analytics:a,onForecastSelectionChanged:u,onTimeframeChanged:h,onForecastVsActualsCompareToggle:f,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:M,onBackClick:T,onClickMenuIcon:S}){const w=[i.fetchState,d.fetchState],R=l?.index??-1;return se(w)===!0||i.fetchState==="Completed"&&i.forecasts.length===0?o.jsx(Be,{meetingUrl:p,onBackClick:T,onClickMenuIcon:S}):G([i.fetchState])===!0?o.jsx(U,{fetchState:Ye(w)}):o.jsxs(Ee,{children:[o.jsx(Ge,{forecastList:i.forecasts,selectedForecastIndex:R,onForecastSelectionChanged:(j,D)=>{a?.trackForecastSwitch(A.Event.profitAndLossWithForecast,i.forecasts[D].name),u?.(j,D)},vsActualOn:t,onVsActualChanged:j=>{a?.trackForecastVsActualMode(A.Event.profitAndLossWithForecast,i.forecasts[R].name,j),f?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{a?.trackTimeframeSwitch(je(j),A.Event.profitAndLossWithForecast),h?.(j)},onBackClick:T,isPandLReportFetching:G([d.fetchState]),onClickMenuIcon:S}),d.fetchState==="In-Progress"?o.jsx(U,{fetchState:"In-Progress"}):o.jsx(Re,{children:o.jsx(He,{report:d,type:m,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:M})})]})}const Qe=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),se=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),G=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),Ye=e=>Qe(e)===!0?"Completed":se(e)===!0?"Error":"In-Progress";export{uo as default,G as isAnyInProgress};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{B as ue,aQ as Ne,b as ee,o as u,p as q,Q as ce,V as s,bR as Ue,g as je,cI as Me,aV as ne,F as ke,y as oe,bw as Ve,bU as Fe,al as Ae,aR as qe,ae as de,u as He,gT as Ke,am as Je,a as Ge}from"./index-
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=function(e,r,n){var o=!!n,i=l.useRef(n);l.useEffect(function(){i.current=n},[n]),l.useEffect(function(){if(!o||!e)return function(){};var c=function(){i.current&&i.current.apply(i,arguments)};return e.on(r,c),function(){e.off(r,c)}},[o,r,e,i])},ie=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},H=function(e){return e!==null&&te(e)==="object"},tt=function(e){return H(e)&&typeof e.then=="function"},rt=function(e){return H(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},he="[object Object]",nt=function t(e,r){if(!H(e)||!H(r))return e===r;var n=Array.isArray(e),o=Array.isArray(r);if(n!==o)return!1;var i=Object.prototype.toString.call(e)===he,c=Object.prototype.toString.call(r)===he;if(i!==c)return!1;if(!i&&!n)return e===r;var p=Object.keys(e),a=Object.keys(r);if(p.length!==a.length)return!1;for(var h={},f=0;f<p.length;f+=1)h[p[f]]=!0;for(var
|
|
1
|
+
import{B as ue,aQ as Ne,b as ee,o as u,p as q,Q as ce,V as s,bR as Ue,g as je,cI as Me,aV as ne,F as ke,y as oe,bw as Ve,bU as Fe,al as Ae,aR as qe,ae as de,u as He,gT as Ke,am as Je,a as Ge}from"./index-DVgY55Ab.js";import{P as l,a as L}from"./sentry-DMXY90dB.js";import{n as y}from"./mui-CR-wYMmN.js";import{P as d}from"./core-C5wq1_Bk.js";import{n as ae}from"./commonTypes-CcEHeA3z-sEqnsPbS.js";import{F as Ye}from"./SetUpAccountSection-CK2Ibij3-DvyPJ8FZ.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]="2dd87370-5802-4cd0-a8ee-8215bc95276a",t._sentryDebugIdIdentifier="sentry-dbid-2dd87370-5802-4cd0-a8ee-8215bc95276a")}catch{}})();function pe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function fe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pe(Object(r),!0).forEach(function(n){Ie(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function te(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(e){return typeof e}:te=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(t)}function Ie(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 Qe(t)||Ze(t,e)||Xe(t,e)||et()}function Qe(t){if(Array.isArray(t))return t}function Ze(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],o=!0,i=!1,c,p;try{for(r=r.call(t);!(o=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));o=!0);}catch(a){i=!0,p=a}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw p}}return n}}function Xe(t,e){if(t){if(typeof t=="string")return me(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 me(t,e)}}function me(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 et(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=function(e,r,n){var o=!!n,i=l.useRef(n);l.useEffect(function(){i.current=n},[n]),l.useEffect(function(){if(!o||!e)return function(){};var c=function(){i.current&&i.current.apply(i,arguments)};return e.on(r,c),function(){e.off(r,c)}},[o,r,e,i])},ie=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},H=function(e){return e!==null&&te(e)==="object"},tt=function(e){return H(e)&&typeof e.then=="function"},rt=function(e){return H(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},he="[object Object]",nt=function t(e,r){if(!H(e)||!H(r))return e===r;var n=Array.isArray(e),o=Array.isArray(r);if(n!==o)return!1;var i=Object.prototype.toString.call(e)===he,c=Object.prototype.toString.call(r)===he;if(i!==c)return!1;if(!i&&!n)return e===r;var p=Object.keys(e),a=Object.keys(r);if(p.length!==a.length)return!1;for(var h={},f=0;f<p.length;f+=1)h[p[f]]=!0;for(var x=0;x<a.length;x+=1)h[a[x]]=!0;var m=Object.keys(h);if(m.length!==p.length)return!1;var w=e,b=r,S=function(I){return t(w[I],b[I])};return m.every(S)},Oe=function(e,r,n){return H(e)?Object.keys(e).reduce(function(o,i){var c=!H(r)||!nt(e[i],r[i]);return n.includes(i)?(c&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),o):c?fe(fe({},o||{}),{},Ie({},i,e[i])):o},null):null},Le="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.",ge=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le;if(e===null||rt(e))return e;throw new Error(r)},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le;if(tt(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(o){return ge(o,r)})};var n=ge(e,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},at=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"}))},re=l.createContext(null);re.displayName="ElementsContext";var Re=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},Te=function(e){var r=e.stripe,n=e.options,o=e.children,i=l.useMemo(function(){return ot(r)},[r]),c=l.useState(function(){return{stripe:i.tag==="sync"?i.stripe:null,elements:i.tag==="sync"?i.stripe.elements(n):null}}),p=$e(c,2),a=p[0],h=p[1];l.useEffect(function(){var m=!0,w=function(S){h(function(E){return E.stripe?E:{stripe:S,elements:S.elements(n)}})};return i.tag==="async"&&!a.stripe?i.stripePromise.then(function(b){b&&m&&w(b)}):i.tag==="sync"&&!a.stripe&&w(i.stripe),function(){m=!1}},[i,a,n]);var f=ie(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=ie(n);return l.useEffect(function(){if(a.elements){var m=Oe(n,x,["clientSecret","fonts"]);m&&a.elements.update(m)}},[n,x,a.elements]),l.useEffect(function(){at(a.stripe)},[a.stripe]),l.createElement(re.Provider,{value:a},o)};Te.propTypes={stripe:d.any,options:d.object};var it=function(e){var r=l.useContext(re);return Re(r,e)},st=function(){var e=it("calls useElements()"),r=e.elements;return r};d.func.isRequired;var _e=l.createContext(null);_e.displayName="CustomCheckoutSdkContext";var ct=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},lt=l.createContext(null);lt.displayName="CustomCheckoutContext";d.any,d.shape({clientSecret:d.string.isRequired,elementsOptions:d.object}).isRequired;var se=function(e){var r=l.useContext(_e),n=l.useContext(re);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?ct(r,e):Re(n,e)},ut=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},v=function(e,r){var n="".concat(ut(e),"Element"),o=function(a){var h=a.id,f=a.className,x=a.options,m=x===void 0?{}:x,w=a.onBlur,b=a.onFocus,S=a.onReady,E=a.onChange,I=a.onEscape,U=a.onClick,M=a.onLoadError,V=a.onLoaderStart,D=a.onNetworksChange,$=a.onConfirm,K=a.onCancel,B=a.onShippingAddressChange,N=a.onShippingRateChange,R=se("mounts <".concat(n,">")),_="elements"in R?R.elements:null,P="customCheckoutSdk"in R?R.customCheckoutSdk:null,T=l.useState(null),z=$e(T,2),g=z[0],W=z[1],j=l.useRef(null),F=l.useRef(null);k(g,"blur",w),k(g,"focus",b),k(g,"escape",I),k(g,"click",U),k(g,"loaderror",M),k(g,"loaderstart",V),k(g,"networkschange",D),k(g,"confirm",$),k(g,"cancel",K),k(g,"shippingaddresschange",B),k(g,"shippingratechange",N),k(g,"change",E);var J;S&&(e==="expressCheckout"?J=S:J=function(){S(g)}),k(g,"ready",J),l.useLayoutEffect(function(){if(j.current===null&&F.current!==null&&(_||P)){var O=null;P?O=P.createElement(e,m):_&&(O=_.create(e,m)),j.current=O,W(O),O&&O.mount(F.current)}},[_,P,m]);var le=ie(m);return l.useEffect(function(){if(j.current){var O=Oe(m,le,["paymentRequest"]);O&&j.current.update(O)}},[m,le]),l.useLayoutEffect(function(){return function(){if(j.current&&typeof j.current.destroy=="function")try{j.current.destroy(),j.current=null}catch{}}},[]),l.createElement("div",{id:h,className:f,ref:F})},i=function(a){se("mounts <".concat(n,">"));var h=a.id,f=a.className;return l.createElement("div",{id:h,className:f})},c=r?i:o;return c.propTypes={id:d.string,className:d.string,onChange:d.func,onBlur:d.func,onFocus:d.func,onReady:d.func,onEscape:d.func,onClick:d.func,onLoadError:d.func,onLoaderStart:d.func,onNetworksChange:d.func,onConfirm:d.func,onCancel:d.func,onShippingAddressChange:d.func,onShippingRateChange:d.func,options:d.object},c.displayName=n,c.__elementType=e,c},C=typeof window>"u",dt=l.createContext(null);dt.displayName="EmbeddedCheckoutProviderContext";var pt=function(){var e=se("calls useStripe()"),r=e.stripe;return r};v("auBankAccount",C);v("card",C);var ye=v("cardNumber",C),Se=v("cardExpiry",C),ve=v("cardCvc",C);v("fpxBank",C);v("iban",C);v("idealBank",C);v("p24Bank",C);v("epsBank",C);v("payment",C);v("expressCheckout",C);v("paymentRequestButton",C);v("linkAuthentication",C);v("address",C);v("shippingAddress",C);v("paymentMethodMessaging",C);v("affirmMessage",C);v("afterpayClearpayMessage",C);var ze="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var mt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(ze,'"]')),r=0;r<e.length;r++){var n=e[r];if(ft.test(n.src))return n}return null},Ce=function(e){var r="",n=document.createElement("script");n.src="".concat(ze).concat(r);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},ht=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:r})},G=null,Z=null,X=null,gt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},yt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return G!==null?G:(G=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var o=mt();if(!(o&&e)){if(!o)o=Ce(e);else if(o&&X!==null&&Z!==null){var i;o.removeEventListener("load",X),o.removeEventListener("error",Z),(i=o.parentNode)===null||i===void 0||i.removeChild(o),o=Ce(e)}}X=yt(r,n),Z=gt(n),o.addEventListener("load",X),o.addEventListener("error",Z)}catch(c){n(c);return}}),G.catch(function(r){return G=null,Promise.reject(r)}))},vt=function(e,r,n){if(e===null)return null;var o=e.apply(void 0,r);return ht(o,n),o},Y,We=!1,De=function(){return Y||(Y=St(null).catch(function(e){return Y=null,Promise.reject(e)}),Y)};Promise.resolve().then(function(){return De()}).catch(function(t){We||console.warn(t)});var Ct=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];We=!0;var o=Date.now();return De().then(function(i){return vt(i,r,o)})};const xt={containerHeight:new oe(656,720)},bt=y.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
gap: 20px;
|
|
@@ -24,7 +24,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
24
24
|
flex-direction: row;
|
|
25
25
|
align-items: flex-start;
|
|
26
26
|
justify-content: center;
|
|
27
|
-
max-height: ${t=>
|
|
27
|
+
max-height: ${t=>xt.containerHeight.valuePx(t.windowSize)};
|
|
28
28
|
width: ${t=>t.windowSize==="small"?"90%":"544px"};
|
|
29
29
|
|
|
30
30
|
.InputContainer input {
|
|
@@ -71,7 +71,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
71
71
|
flex-direction: column;
|
|
72
72
|
align-items: flex-start;
|
|
73
73
|
height: ${u.sp8};
|
|
74
|
-
`,
|
|
74
|
+
`,xe=y.span`
|
|
75
75
|
height: ${u.sp8};
|
|
76
76
|
display: none;
|
|
77
77
|
`,Be=y(Ae)`
|
|
@@ -82,14 +82,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
82
82
|
color: ${q.important};
|
|
83
83
|
width: 434px;
|
|
84
84
|
text-align: center;
|
|
85
|
-
`,{cardPayment:A,common:{footer:
|
|
85
|
+
`,{cardPayment:A,common:{footer:be}}=ke.getLocalizedStrings(),Tt=y(Je)`
|
|
86
86
|
color: ${t=>t.theme.colors.hero};
|
|
87
87
|
text-align: center;
|
|
88
88
|
margin-top: ${u.sp2};
|
|
89
|
-
`,we=t=>`${t}_form`,Pe="CardPaymentPaymentForm",_t=({cardPaymentView:t,clientSecret:e,cardSetupInProgress:r,handleConfirmCardSetupIntent:n,updateCardPaymentModalState:o,handleAddCardPaymentSource:i,setCardSetupInProgress:c})=>{const p=pt(),a=st(),[h,f]=L.useState(!1),[
|
|
89
|
+
`,we=t=>`${t}_form`,Pe="CardPaymentPaymentForm",_t=({cardPaymentView:t,clientSecret:e,cardSetupInProgress:r,handleConfirmCardSetupIntent:n,updateCardPaymentModalState:o,handleAddCardPaymentSource:i,setCardSetupInProgress:c})=>{const p=pt(),a=st(),[h,f]=L.useState(!1),[x,m]=L.useState(!1),[w,b]=L.useState(!1),[S,E]=L.useState(!1),I=ce(),U=t.cardSetupConfirmStatus.fetchState,M=t.addCardPaymentSourceStatus.fetchState,V=t.cardSetupIntentStatus.fetchState,[D,$]=L.useState(!1),K=async P=>{if(P.preventDefault(),!p||!a)return;const T=a.getElement(ye),z=a.getElement(Se),g=a.getElement(ve);(!T||!z||!g)&&$(!0),E(!0),c(!0),T!=null&&z!=null&&g!=null&&p.confirmCardSetup(e,{payment_method:{card:T}}).then(W=>{E(!1),n(W),W.setupIntent?.id!=null&&i("card","payment_intent",W.setupIntent?.id)}).catch(()=>{E(!1),setTimeout(()=>{c(!1)},2e3)})},B=je(),N={showIcon:!0,style:{base:{...ee.standardRegular.cssObject,color:B.colors.primary,"::placeholder":{color:B.colors.grey2}},invalid:{color:q.important,iconColor:q.important}}},R=U==="In-Progress"||M==="In-Progress"||V==="In-Progress"||S===!0||r===!0,_=h||x||w||U==="In-Progress"||M==="In-Progress"||V==="In-Progress"||S===!0||r===!0;return s.jsx(jt,{windowSize:I,children:s.jsxs(wt,{onSubmit:K,id:we(Pe),children:[s.jsxs(It,{children:[s.jsx($t,{children:s.jsx(Ot,{children:s.jsx(ye,{options:N,onChange:P=>f(!!P.error)})})}),s.jsx(Lt,{children:s.jsxs(kt,{children:[s.jsx(xe,{children:A.cardNumber}),s.jsx(Se,{options:N,onChange:P=>m(!!P.error)})]})}),s.jsx(Rt,{children:s.jsxs(At,{children:[s.jsx(xe,{children:A.CVC}),s.jsx(ve,{options:N,onChange:P=>b(!!P.error)})]})})]}),t.cardSetupConfirmStatus.error||D?s.jsx(Be,{children:A.errorMsg}):null,s.jsx(qe,{style:{width:"100%",padding:`${u.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:we(Pe),primaryBtn:{label:be.linkCard,style:{width:"104px",height:u.sp6},isLoading:R,isDisabled:_,type:"submit"},cancelBtn:{label:be.cancel,style:{width:"104px",height:u.sp6},onClick:()=>{o(!1)}}}),s.jsxs(Tt,{windowSize:I,children:[A.terms.term1,s.jsx(de,{href:A.terms.term2Link,linkText:A.terms.term2}),A.terms.term3,s.jsx(de,{href:A.terms.term4Link,linkText:A.terms.term4})]})]})})},Yt=({isCardPaymentOpen:t,cardPaymentView:e,stripeKey:r,cardSetupInProgress:n,handleConfirmCardSetupIntent:o,updateCardPaymentModalState:i,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:p,handleResetCardPaymentErrorStatuses:a,setCardSetupInProgress:h})=>{const[f,x]=L.useState(""),m=Ct(r),w=Ne(e.addCardPaymentSourceStatus.fetchState),b=e.addCardPaymentSourceStatus.fetchState;L.useEffect(()=>(c(["card"]),()=>{i(!1),x(""),a()}),[]),L.useEffect(()=>{a()},[t]),L.useEffect(()=>{w==="In-Progress"&&b==="Error"?(h(!1),setTimeout(()=>{i(!1)},2e3)):w==="In-Progress"&&b==="Completed"&&(c(["card"]),setTimeout(()=>{i(!1),h(!1)},2e3))},[w,b]),L.useEffect(()=>{(e.cardSetupConfirmStatus.error||e.addCardPaymentSourceStatus.error)&&(c(["card"]),setTimeout(()=>{h(!1)},2e3))},[e.cardSetupConfirmStatus.error,e.addCardPaymentSourceStatus.error]),L.useEffect(()=>{e.clientSecret!=null&&x(e.clientSecret)},[e.clientSecret]);const S={theme:"stripe",variables:{borderRadius:u.sp1,fontSizeBase:ee.standardRegular.fontSize,fontFamily:ee.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${q.neutralGrey3Light}`,borderRadius:u.sp1,padding:"10px",fontSize:ee.standardRegular.fontSize}}},E={clientSecret:f,appearance:S},I=ce();return s.jsx(Ue,{open:t,children:s.jsxs(bt,{windowSize:I,isError:!!e.cardSetupConfirmStatus.error,children:[s.jsx(Pt,{children:A.title}),s.jsx(Et,{children:A.subtitle}),f&&m!=null?s.jsx(Te,{options:E,stripe:m,children:s.jsx(_t,{clientSecret:f,handleConfirmCardSetupIntent:o,updateCardPaymentModalState:i,handleAddCardPaymentSource:p,cardPaymentView:e,cardSetupInProgress:n,setCardSetupInProgress:h})}):s.jsx(Be,{children:A.errorMsg})]})})},Q={sectionWidth:new oe(343,580,726),iconWidthHeight:new oe(20,He[4])},zt={title:new Ge("standardSemiBold","largeSemiBold")},Ee=t=>t?ae[t]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Wt=(t,e,r,n)=>({header:t,title:`${ue(ae[n.cardsList[0]?.brand]?.name??"")} ${e}`,subtitle:`${ue(ae[n.cardsList[0]?.brand]?.name??"")} ${r} ${n.cardsList[0]?.last4}`,status:n.cardsList[0]?.status}),Dt=y.img`
|
|
90
90
|
width: ${t=>t.width}px;
|
|
91
91
|
height: ${t=>t.height}px;
|
|
92
|
-
`,Qt=({paymentAccount:t,plaidConnectionDetails:e,connectedAccountProvider:r,sectionId:n,isDisabled:o,hasError:i=!1,isValid:c,style:p,analytics:a,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:
|
|
92
|
+
`,Qt=({paymentAccount:t,plaidConnectionDetails:e,connectedAccountProvider:r,sectionId:n,isDisabled:o,hasError:i=!1,isValid:c,style:p,analytics:a,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:w,updateCardPaymentModalState:b,cardPaymentView:S,resetCardPaymentViewState:E,cardSetupInProgress:I=!1,googleAPIKey:U,subscriptionBillingAddress:M,subscriptionBillingAddressSectionId:V})=>{const D=je(),$=ce(),{register:K}=Me(),B=D.mode==="light"?new ne(D.colors.brandColorJadeLight):new ne(D.colors.brandColorJadeDark),{common:N,customerOnboardingPage:{sections:{link_payment_account:{title:R,text:_,subText:P},card_payment_method:T}}}=ke.getLocalizedStrings(),z=S.cardsList.length>0,g=S.cardsList[0]?.brand??"other",W=S.addCardPaymentSourceStatus.fetchState,j=Wt(T.header,T.titleText,T.protectedCardNo,S);let F;return z&&(F={header:j.header,title:j.title,subtitle:j.subtitle,status:j.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:s.jsx(Dt,{src:Ee(g).iconURL,width:Q.iconWidthHeight.valuePx($),height:Q.iconWidthHeight.valuePx($),alt:Ee(g).name,loading:"lazy"}),color:new ne(B)},showCompletedIcon:!1,isError:W==="Error",isLoading:W==="In-Progress",isCompleted:!0,showRightArrow:!1}),s.jsxs(Nt,{windowSize:$,children:[s.jsx(Ut,{type:"hidden",...K(`${n}.connected`,{validate:J=>i?J==="true":!0}),value:c?"true":"false"}),s.jsx(Ye,{connectedAccountProvider:r,paymentAccount:t,plaidConnectionDetails:e,allBankAccounts:[],header:R,sectionTitle:R,defaultSectionTitle:_,defaultSectionSubTitle:P,sectionId:n,isDisabled:o,hasError:i,showZeniAccountSection:!1,isCompleted:t?.providerVerificationStatus?.code?.includes("verified")===!0&&t?.isLoginRequired===!1,showCompletedIcon:$==="small",onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:w,style:p,icon:{element:s.jsx(Ve,{width:Q.iconWidthHeight.valuePx($),height:Q.iconWidthHeight.valuePx($)}),color:B},analytics:a,productType:"onboarding",resetCardPaymentViewState:E,cardPaymentSectionValues:F,cardPaymentView:S,updateCardPaymentModalState:b,referrer:"Onboarding",cardSetupInProgress:I}),Bt($,N.headers.billingAddress,V,a,M,U,o)]})},Bt=(t,e,r,n,o,i,c)=>{const p={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return s.jsxs(Vt,{children:[s.jsx(Mt,{windowSize:t,isDisabled:c==="disabled",children:e}),s.jsx(Ke,{googleAPIKey:i??"",addressToEdit:o,sectionId:`${r}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:a=>{if(a.target instanceof HTMLInputElement){const{placeholder:h}=a.target;if(h){const f=p[h];f&&n.trackOnboardingBillingAddress(f)}}}})]})},Nt=y.div`
|
|
93
93
|
display: flex;
|
|
94
94
|
flex-direction: column;
|
|
95
95
|
width: ${t=>Q.sectionWidth.valuePx(t.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as $e,Q as I,F as y,V as t,bB as le,aP as a,bN as De,o as s,ck as Oe,cl as _e,T as U,aT as Y,cm as we,r as Le,b as be,cn as Ae,aQ as Ve,co as Me,ap as We,cp as Be,cq as He,b3 as Ue,aD as B,cr as Ke,y as $,cs as Ee,ct as je,u as b,cu as ee,cd as N,cv as Se,a9 as Fe,ac as Ze,cw as qe,cx as Qe,aJ as Je,ai as D,cy as Xe,al as O,am as te,p as A,cz as Ge,ch as ke,ba as ie,cA as Ie,bL as Ye,cB as et}from"./index-
|
|
1
|
+
import{g as $e,Q as I,F as y,V as t,bB as le,aP as a,bN as De,o as s,ck as Oe,cl as _e,T as U,aT as Y,cm as we,r as Le,b as be,cn as Ae,aQ as Ve,co as Me,ap as We,cp as Be,cq as He,b3 as Ue,aD as B,cr as Ke,y as $,cs as Ee,ct as je,u as b,cu as ee,cd as N,cv as Se,a9 as Fe,ac as Ze,cw as qe,cx as Qe,aJ as Je,ai as D,cy as Xe,al as O,am as te,p as A,cz as Ge,ch as ke,ba as ie,cA as Ie,bL as Ye,cB as et}from"./index-DVgY55Ab.js";import{P as ce,a as v}from"./sentry-DMXY90dB.js";import{n as i}from"./mui-CR-wYMmN.js";import{oV as Ce,bg as X}from"./zeni-epic-state-BXMuLX_S.js";import{T as Re}from"./RoleWithToolTip-BGlbeXtJ-BQ5iinOT.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.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]="1dac0028-7e4e-4c7c-97d4-125164a0331a",e._sentryDebugIdIdentifier="sentry-dbid-1dac0028-7e4e-4c7c-97d4-125164a0331a")}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)}],H=[{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(Je(d==="off"?S:H));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-DMXY90dB.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-Dgwws_g9-_dPrFjDV.js → ProductsCarousel-ChWN6HhX-DEhcI5NW.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as D,V as t,a8 as B,o as c,c1 as N,a$ as U,u as V,d6 as q,aq as G,al as T,d7 as H,p as v}from"./index-
|
|
1
|
+
import{F as D,V as t,a8 as B,o as c,c1 as N,a$ as U,u as V,d6 as q,aq as G,al as T,d7 as H,p as v}from"./index-DVgY55Ab.js";import{a as $}from"./sentry-DMXY90dB.js";import{n as i}from"./mui-CR-wYMmN.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]="35aab6a8-e086-4cb1-a970-fa4a4051f904",e._sentryDebugIdIdentifier="sentry-dbid-35aab6a8-e086-4cb1-a970-fa4a4051f904")}catch{}})();const u=D.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-wfvFaqMw-CY2jDhRy.js → PromoBaseCards-BWpqciJW-DEw7mp3r.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as b,V as a,db as m,dc as v,dd as y,bx as z,o as e,p as d,y as r,a as c,u as p}from"./index-
|
|
1
|
+
import{Q as b,V as a,db as m,dc as v,dd as y,bx as z,o as e,p as d,y as r,a as c,u as p}from"./index-DVgY55Ab.js";import{c as i,n as g,k as f}from"./mui-CR-wYMmN.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new o.Error().stack;h&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="9917682f-43bc-49b5-975f-26b3954cbe8c",o._sentryDebugIdIdentifier="sentry-dbid-9917682f-43bc-49b5-975f-26b3954cbe8c")}catch{}})();const t={plasticCardMarginLeft:new r(p[6],120),plasticCardMarginTop:new r(12,-9),businessTextRight:new r(p[2],13),businessTextBottom:new r(p[8],81),chargeCardWidth:new r(240,384),chargeCardHeight:new r(153,243),styledLogoWidth:new r(47,76),styledLogoHeight:new r(46,74),styledFullLogoTop:new r(12,28),styledFullLogoRight:new r(p[2],13),styledFullLogoHeight:new r(20,34),styledFullLogoWidth:new r(88,142),chipLogoWidth:new r(31,50),chipLogoHeight:new r(p[4],39),visaLogoWidth:new r(52,84),visaLogoHeight:new r(17,27),visaLogoRight:new r(p[2],13),visaLogoBottom:new r(p[2],13)},u={businessText:new c("extraSmallRegular","largeRegular"),promoBusinessText:new c("tinyLight","tinyLight")},R=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=b();return a.jsxs(B,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&a.jsx(P,{windowSize:n,forDashboard:s,children:a.jsx(m,{})}),a.jsx(j,{windowSize:n,forDashboard:s,forListPage:l,children:a.jsx(z,{})}),a.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),a.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:a.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=b();return a.jsxs(H,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&a.jsx(P,{windowSize:n,forDashboard:s,children:a.jsx(m,{})}),a.jsx(k,{windowSize:n,forDashboard:s,forListPage:l,children:a.jsx(v,{})}),a.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),a.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:a.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{Q as f,F as r,V as n,bR as y,r as l,y as c,o as i,aq as w,al as $,af as j,bv as P,eM as v,u as t}from"./index-
|
|
1
|
+
import{Q as f,F as r,V as n,bR as y,r as l,y as c,o as i,aq as w,al as $,af as j,bv as P,eM as v,u as t}from"./index-DVgY55Ab.js";import{n as o}from"./mui-CR-wYMmN.js";import"./sentry-DMXY90dB.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./zeni-epic-state-BXMuLX_S.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.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]="8e8db6a4-4174-422c-b5da-a5366977725e",e._sentryDebugIdIdentifier="sentry-dbid-8e8db6a4-4174-422c-b5da-a5366977725e")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},_=o.div`
|
|
2
2
|
border-radius: inherit;
|
|
3
3
|
max-width: 520px;
|
|
4
4
|
text-align: center;
|
package/dist/assets/{QBOSetupSection--FQKYLxN-LYuddynp.js → QBOSetupSection-CR7JQ_H9-CokKwnfI.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as O,F as u,V as i,r as k,o,y as a,p as c,fN as I,a as T,af as E,bv as B,eM as D,fE as Q,aV as h,ai as f,u as r}from"./index-
|
|
1
|
+
import{Q as O,F as u,V as i,r as k,o,y as a,p as c,fN as I,a as T,af as E,bv as B,eM as D,fE as Q,aV as h,ai as f,u as r}from"./index-DVgY55Ab.js";import{n}from"./mui-CR-wYMmN.js";import W from"./QBOConnectionDialog-D9wVm2ga-jv2cIUQM.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]="44fac22f-7232-4fb9-94fc-dbe93b33e56a",e._sentryDebugIdIdentifier="sentry-dbid-44fac22f-7232-4fb9-94fc-dbe93b33e56a")}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])},_={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:w,handleOnConnectClick:b})=>{const s=O(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(F,{windowSize:s,children:[i.jsxs(G,{windowSize:s,children:[s==="small"?i.jsx(J,{children:d?i.jsx(K,{}):i.jsx(U,{})}):null,i.jsx(N,{windowSize:s,children:S})]}),i.jsxs(V,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[i.jsxs(M,{children:[i.jsx(q,{}),i.jsx(L,{windowSize:s}),i.jsx(R,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>w(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(H,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(W,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>w(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(Q,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new h(c.successDark),borderColor:new h(c.successDark)}})},F=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as W,u as L,g as M,Q as G,F as U,a9 as Q,aQ as J,aJ as X,cE as H,V as r,bB as K,ac as Y,aR as Z,o as b,g5 as ee}from"./index-
|
|
1
|
+
import{y as W,u as L,g as M,Q as G,F as U,a9 as Q,aQ as J,aJ as X,cE as H,V as r,bB as K,ac as Y,aR as Z,o as b,g5 as ee}from"./index-DVgY55Ab.js";import{a as B}from"./sentry-DMXY90dB.js";import{n as c}from"./mui-CR-wYMmN.js";import{b as te,f as ae,o as T,l as $}from"./FollowStepsSection-DkBj9-hs-mJdSbXed.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./zeni-epic-state-BXMuLX_S.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.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]="8499c958-7e3b-471c-887d-f1c463456785",e._sentryDebugIdIdentifier="sentry-dbid-8499c958-7e3b-471c-887d-f1c463456785")}catch{}})();const k="reimbursementApprovalRuleDetailPage",C="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:a,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const V=M(),S=G(),l=U.getLocalizedStrings().commonSetUp.approval,w=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,a==="approval_create"&&!t),y=Q({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=J(u?.fetchState),{upperBound:P}=x,{allApprovalRules:i,allAccountingClasses:F,remiSetupApproverViewUpdateData:m}=e;let f=i.length>1?i.length-1:0,v=i.length>0?i[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=i.findIndex(d=>d.approvalRuleId===n),v=f>0?i[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,d)=>{g(d)};return B.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=X(d);H(()=>z(D,O))}});return()=>{n.unsubscribe()}}),B.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&A()},[R,u?.fetchState,A]),r.jsxs(ie,{children:[r.jsx(K,{title:a==="approval_create"?l.newApproval:l.editApproval,backgroundColor:V.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:_(k),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(te,{label:{label:s?w.amountPerRemiGreaterLabel:w.amountPerRemiLabel},firstText:{type:"number",name:C,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:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(ae,{sectionId:I,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[I],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(k),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:a==="approval_create"?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,a)=>{const{criteria:t,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),T(e.allAttributes),T(e.filteredAttributes),o??[])??[],[C]:a?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,a,t,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:$},actors:{allUsers:a,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(t,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},actors:{allUsers:a,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,a)=>e.filter(t=>t.userId!=null&&a.findIndex(o=>o.userId===t.userId)>-1),ne=(e,a)=>e.filter(t=>a.findIndex(o=>o.subType===t.value)>-1),_=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as F,Q as N,F as j,V as t,bB as G,T as V,aP as m,o,y as r,al as M,aN as P,bS as T,co as q,cp as J,cq as K,c_ as O,u as l,b9 as Q,a as k,b8 as Z,p as z,cZ as X,bt as Y,b as ee}from"./index-
|
|
1
|
+
import{g as F,Q as N,F as j,V as t,bB as G,T as V,aP as m,o,y as r,al as M,aN as P,bS as T,co as q,cp as J,cq as K,c_ as O,u as l,b9 as Q,a as k,b8 as Z,p as z,cZ as X,bt as Y,b as ee}from"./index-DVgY55Ab.js";import{n as i}from"./mui-CR-wYMmN.js";import{a as te}from"./sentry-DMXY90dB.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./zeni-epic-state-BXMuLX_S.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.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]="3c064886-73de-446a-9f26-4d7f1d711a16",e._sentryDebugIdIdentifier="sentry-dbid-3c064886-73de-446a-9f26-4d7f1d711a16")}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:b,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[x,w]=te.useState(!1),n=N(),{range:u}=b.criteria[0],{steps:$,approvalRuleId:p}=b,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},U={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(he,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),u.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e?c?t.jsx(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((h,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),h.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},`${d.subType}_${_}`)),h.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),h.operator!="is"?t.jsx(L,{className:"operator",children:h.operator}):null]},d.userId))]},H))})}),x?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,Q as Pt,g as Bt,cc as Nt,y as m,F as et,gg as Lt,gi as _t,gj as Ot,V as t,co as Ae,cp as Me,cq as Re,bB as Pe,aP as y,bo as Wt,dt as Et,gk as Ft,gv as Be,o as a,gl as Ne,fg as b,go as w,fj as x,aN as Le,ff as _e,b as V,gq as Oe,aR as Kt,ao as Ut,gr as Vt,gs as re,bx as Gt,gt as Ht,x as Yt,a as qt,d as Jt,al as tt,b9 as it,p as G,am as Qt,bU as Zt,ai as Xt,gN as ei,gJ as ti,u as c,ch as ii,cY as ai}from"./index-BhvUwV_v.js";import{a as p}from"./sentry-DgGQRl6g.js";import{n as r}from"./mui-DqYnCiYu.js";import{a as ri}from"./liveblocks-BqcT5iTZ.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-WWg2r7iB.js";import si from"./InvoiceUploadSection-rCCcSbbj-CFzlgKg9.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-B9Znwqny.js";import"./lottie-oQfNS8l-.js";import"./recharts-D7E0WJGk.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.js";import"./AttachmentView-BJfqJ9hP-BtlO-7I1.js";import"./uploadReceipts-DJRtId-4-xnWXJPvb.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]="20381c8c-3d77-4b54-b1fb-d81e0794be54",e._sentryDebugIdIdentifier="sentry-dbid-20381c8c-3d77-4b54-b1fb-d81e0794be54")}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),[Q,Z]=p.useState("approved"),N=p.useRef(null),[S,X]=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=()=>{X({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=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({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(Xe,{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(Qe,{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(Xe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{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:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="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:Q==="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,Q as Pt,g as Bt,cc as Nt,y as m,F as et,gg as Lt,gi as _t,gj as Ot,V as t,co as Ae,cp as Me,cq as Re,bB as Pe,aP as y,bo as Wt,dt as Et,gk as Ft,gv as Be,o as a,gl as Ne,fg as b,go as w,fj as x,aN as Le,ff as _e,b as V,gq as Oe,aR as Kt,ao as Ut,gr as Vt,gs as re,bx as Gt,gt as Ht,x as Yt,a as qt,d as Jt,al as tt,b9 as it,p as G,am as Qt,bU as Zt,ai as Xt,gN as ei,gJ as ti,u as c,ch as ii,cY as ai}from"./index-DVgY55Ab.js";import{a as p}from"./sentry-DMXY90dB.js";import{n as r}from"./mui-CR-wYMmN.js";import{a as ri}from"./liveblocks-B14TpO3l.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-BXMuLX_S.js";import si from"./InvoiceUploadSection-CTqSftrm-CyVrgEkl.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-C5wq1_Bk.js";import"./lottie-BIQaRIZs.js";import"./recharts-C3mrSjO2.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";import"./AttachmentView-CwbFyo5O-DSfNvuAU.js";import"./uploadReceipts-DJRtId-4-CHJq-raT.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]="92f8624c-1f49-48e2-b9ce-36820fc49e82",e._sentryDebugIdIdentifier="sentry-dbid-92f8624c-1f49-48e2-b9ce-36820fc49e82")}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),[Q,Z]=p.useState("approved"),N=p.useRef(null),[S,X]=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=()=>{X({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=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({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(Xe,{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(Qe,{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(Xe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{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:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="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:Q==="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,Q as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,ae as d,F,o as t,aq as
|
|
1
|
+
import{aw as ne,g as S,Q as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,ae as d,F,o as t,aq as me,M as ce,aT as E,am as pe,y as xe,p as z,cD as he,aU as ue,ba as ge,u as we}from"./index-DVgY55Ab.js";import{a as j}from"./sentry-DMXY90dB.js";import{n as s}from"./mui-CR-wYMmN.js";import{FG as je,bT as fe}from"./zeni-epic-state-BXMuLX_S.js";import{f as be}from"./VideoPopup-Bp7fCV1r-BulLqsQx.js";import{M as v}from"./usp-line-BBd1wKwW-l2et8N9o.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";import"./VideoPlayer-CoI7aj8a-B3tmTxCF.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]="ddfd3339-72d3-44f1-be24-111fdd12aac4",i._sentryDebugIdIdentifier="sentry-dbid-ddfd3339-72d3-44f1-be24-111fdd12aac4")}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%;
|
|
@@ -7,12 +7,12 @@ import{aw as ne,g as S,Q as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,a
|
|
|
7
7
|
`,Se=s.div`
|
|
8
8
|
padding: ${i=>i.windowSize==="small"?`${t.sp0} ${t.sp3}`:`${t.sp0} ${t.sp8}`};
|
|
9
9
|
text-align: center;
|
|
10
|
-
`,ke=s(
|
|
10
|
+
`,ke=s(ce)`
|
|
11
11
|
max-width: 648px;
|
|
12
12
|
margin: auto;
|
|
13
13
|
padding: ${t.sp7} ${t.sp0};
|
|
14
14
|
color: ${i=>i.theme.colors.primary};
|
|
15
|
-
`,ze=s(
|
|
15
|
+
`,ze=s(me)`
|
|
16
16
|
max-width: 600px;
|
|
17
17
|
margin: auto;
|
|
18
18
|
padding: ${t.sp5} ${t.sp0};
|
|
@@ -47,7 +47,7 @@ import{aw as ne,g as S,Q as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,a
|
|
|
47
47
|
border-radius: 12px;
|
|
48
48
|
border: ${i=>`1px solid ${i.theme.colors.grey3}`};
|
|
49
49
|
padding: 15px;
|
|
50
|
-
`,
|
|
50
|
+
`,m=s.div`
|
|
51
51
|
border-radius: ${t.sp12};
|
|
52
52
|
border: ${i=>`1px solid ${i.theme.colors.grey2}`};
|
|
53
53
|
padding: ${i=>i.windowSize==="small"?`${t.sp2} ${t.sp4} ${t.sp2} ${t.sp0}`:`${t.sp3} ${t.sp5} ${t.sp3} ${t.sp0}`};
|
|
@@ -58,15 +58,15 @@ import{aw as ne,g as S,Q as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,a
|
|
|
58
58
|
align-items: center;
|
|
59
59
|
text-align: start;
|
|
60
60
|
box-sizing: border-box;
|
|
61
|
-
`,
|
|
61
|
+
`,f=s(ge)`
|
|
62
62
|
color: ${i=>i.theme.colors.champion};
|
|
63
|
-
`,
|
|
63
|
+
`,b=s(ue)`
|
|
64
64
|
color: ${i=>i.theme.colors.champion};
|
|
65
65
|
`,y=s(E)`
|
|
66
66
|
color: ${i=>i.theme.colors.champion};
|
|
67
67
|
`,$=s(he)`
|
|
68
68
|
color: ${i=>i.theme.colors.champion};
|
|
69
|
-
`,
|
|
69
|
+
`,c=s.div``,p=s.div`
|
|
70
70
|
padding-left: ${t.sp3};
|
|
71
71
|
`,L=s(E)`
|
|
72
72
|
margin: ${i=>i.windowSize==="small"?t.sp1:`auto ${t.sp5}`};
|
|
@@ -81,4 +81,4 @@ import{aw as ne,g as S,Q as k,aQ as le,V as e,aP as a,fr as ae,bB as de,r as u,a
|
|
|
81
81
|
margin: ${t.sp3} auto;
|
|
82
82
|
max-width: 772px;
|
|
83
83
|
color: ${i=>i.theme.colors.hero};
|
|
84
|
-
`,r=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsx(N,{windowSize:o,children:e.jsx(Q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(H,{windowSize:o,children:[e.jsxs(
|
|
84
|
+
`,r=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsx(N,{windowSize:o,children:e.jsx(Q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(H,{windowSize:o,children:[e.jsxs(m,{windowSize:o,children:[e.jsx(c,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.simplestText.bold}),e.jsx(y,{children:r.simplestText.regular})]})]}),e.jsxs(m,{windowSize:o,children:[e.jsx(c,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]}),e.jsxs(m,{windowSize:o,children:[e.jsx(c,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsxs(H,{windowSize:o,children:[e.jsxs(m,{windowSize:o,style:{width:"376px"},children:[e.jsx(c,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx(b,{children:r.simplestText.bold}),e.jsx(f,{children:r.simplestText.regular})]})]}),e.jsxs(m,{windowSize:o,style:{width:"376px"},children:[e.jsx(c,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(b,{children:r.aiPoweredText.bold}),e.jsx(f,{children:r.aiPoweredText.regular})]})]}),e.jsxs(m,{windowSize:o,style:{width:"376px"},children:[e.jsx(c,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx(b,{children:r.multiLevelApprovalText.bold}),e.jsx(f,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsx(N,{windowSize:o,children:e.jsx(Q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},He=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:W,analytics:x,onSetupButtonClick:J,onCreateNewRemiButtonClick:K,onBackClick:X,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[re,R]=j.useState(!1),te=S(),l=k(),{remiTermsDetails:h}=i,I=le(h?.fetchStatus.fetchState),se=je(P.loggedInUserRoleMap),w=fe(P.loggedInUserRoleMap)&&!se,oe=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,B=w?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;j.useEffect(()=>{I==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[I,C,h?.fetchStatus]);const A=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(be,{onCancelClick:()=>{ie(!1)},videoUrl:W,"data-testid":a("remi-promo-page-video-popup")}):null,re===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:r.title,backgroundColor:te.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:B}):e.jsx(ke,{children:B}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:U&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:A,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(L,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[r.terms.createTerms1,e.jsx(d,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(d,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:A,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(L,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:J,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[r.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{He as default};
|