@zeniai/web-cockpit-ui 1.15.26-qa → 1.15.27-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-CxpLuJpQ-D8_DWqQH.js → ACHDetailsPage-49jTvZnX-Be-zaLi0.js} +1 -1
- package/dist/assets/{AIPerformancePage-BtDuOBey-Bez8_W10.js → AIPerformancePage-DJea2aE9-B9iO1fyz.js} +1 -1
- package/dist/assets/AccountInfoPage-Dv1rJn72-BUHG0zde.js +18 -0
- package/dist/assets/{AccountInfoPageContent-BLF92_vF-CaBSQ7ha.js → AccountInfoPageContent-zf4BRg29-DZX6BB3M.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-AsMkXu1I-C-QK_nbk.js → AccountLockedInfoModal-CxoC-scs-DZJuQo5m.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CkaBrm5K-BMliP8gz.js → AccountReconDetailsDrawerPage-DI40FQGK-9O64pVIg.js} +1 -1
- package/dist/assets/{AccountRow-aEmcYP8T-Cl0RXej_.js → AccountRow-CxEUX108-Ctuhzest.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-C0At5pn8-D7r1CqCa.js → AccountsPromoCardStack-ugkcP4hS-Bj_Nb7Iz.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CbjThbsA-BwCuIFI9.js → AddAddressForCardDrawer-KZ-LVrwR-BRcI_JTS.js} +1 -1
- package/dist/assets/{AddToWalletPage-CMJwUbgf-BbnK5SDf.js → AddToWalletPage-CmBtO-Jx-CFwvepkh.js} +1 -1
- package/dist/assets/{AgingReportsPage-B_BSfude-C_FYdrkT.js → AgingReportsPage-BgZqIoFH-CBXVGn8J.js} +1 -1
- package/dist/assets/{AllUserItems-CGlWa60t-C3pz-rmk.js → AllUserItems-CMkg4gXl-Dbiuf_va.js} +3 -3
- package/dist/assets/{ApAgingDetailPage-DT3vkmLG-D5XFP6HN.js → ApAgingDetailPage-CIc4rs2--CTxo3gfJ.js} +1 -1
- package/dist/assets/{AppBasePage-CDy7wPlv-BeCjs7W0.js → AppBasePage-Ch3JOqQA-CkD3FaNp.js} +1 -1
- package/dist/assets/{AppDrawerContent-CEsXm_i6-uqFijiJh.js → AppDrawerContent-DK3tTd88-Ebl_NVYT.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-CB2_4-2f-C2FP4JEY.js → ApprovalRulesSettingsPage-8myNAB_M-Bfi0yOAc.js} +1 -1
- package/dist/assets/{ArAgingChart-qxhWsIQb-GForpAEV.js → ArAgingChart-D8yl6Fco-iPMSgvYP.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BbzQryp_-DkvGyUny.js → ArAgingDetailPage-DMPLqLKl-D3301L0t.js} +4 -4
- package/dist/assets/{AttachmentView-duTVxc9g-ScUNtTmh.js → AttachmentView-Cxyodtel-B24U0bgX.js} +1 -1
- package/dist/assets/{BankAccountSection-CAwAf9xK-CS7ylayD.js → BankAccountSection-DGuhn7CN-DmUf2oBe.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CaDnP9_--uUCVdcq3.js → BankAccountWarningSection-l79_AN7P-wzRxiGEn.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CDV7O8cl-Bcmudska.js → BankConnectionsSettingsPage-CkF3K8e8-C4TR4rEL.js} +1 -1
- package/dist/assets/{BillDetailPage-DJxh2CIc-CiN30l4I.js → BillDetailPage-CaAXVwe3-C9NFzEPg.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-B2ZPbqtr-Dmjrh0x3.js → BillPayApprovalRuleDetailPage-CFiMiJVw-BuCRs1eu.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-MM7v8ZMx-KOYMw-l8.js → BillPayApprovalRulesPage-qpF8Wy4I-B3HFhggf.js} +1 -1
- package/dist/assets/{BillPayPromoPage-JK-VOx4W-CjtFHOzB.js → BillPayPromoPage-CNUoM-3L-1wklXGZ-.js} +7 -7
- package/dist/assets/{BillPaySetUpPage-h0uoCWMl-Cj2xzAhQ.js → BillPaySetUpPage-D_hRCBF5-Imf9v1rc.js} +1 -1
- package/dist/assets/{BillingSettingsPage-gJG9OxD6-CzuX_q6r.js → BillingSettingsPage-BfvQsRnJ-VinZfITV.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-CPPDFsZt-Cw50nOC3.js → BillsBulkReviewDrawerPage-BRVd0a8c-DFmDsImO.js} +1 -1
- package/dist/assets/{BoxItem-CYe_gTmA-93ej9UZX.js → BoxItem-COPJh7Lh-BtEwjrhv.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Dos8Bnvb-CTGDkcnR.js → BusinessVerificationPage-CdRHA3h2-CIWKUgi1.js} +1 -1
- package/dist/assets/{CardNumberSubText-CFDhtij8-DWYmJS-d.js → CardNumberSubText-Md18DQb7-Ci7Q_wrC.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BBGGzKh7-F2rDTgmL.js → CashbackDetailPage-CfB0mGdX-DgwWmp2K.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BQhago53-C4F47zGk.js → ChargeCardDetailPage-ByOcHh0H-DEou_IlL.js} +1 -1
- package/dist/assets/{ChargeCardListPage-B0E-C3RH-LZD5j-yi.js → ChargeCardListPage-9aL08yGW-Ba0oB6VC.js} +1 -1
- package/dist/assets/{ChargeCardListTable-ByGv0xWl-NawU-7AB.js → ChargeCardListTable-CbqF_9f3-C6X1RqBh.js} +16 -16
- package/dist/assets/{ChargeCardPaymentHistoryPage-LCY9rFqO-BRBN0Zdo.js → ChargeCardPaymentHistoryPage-Dp_vLjiJ-C_QznI13.js} +1 -1
- package/dist/assets/ChargeCardPromoPage-8Oz0DmQv-CtVY_-8P.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BHv2VOdc-SuQ6Yb17.js → ChargeCardSetupPage-DYOCe46h-e0p7QaI6.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-UpRXyPTS-irRrI3za.js → ChargeCardStatementsPage-BLws2jOd-DH79p6d7.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-0zbTQ3Fa-Cykeqrse.js → CheckDepositDrawerPage-Bc3a4vVO-QMFCIXbb.js} +1 -1
- package/dist/assets/{CollapsableReportTable-DlYIKSlQ-BqvITvys.js → CollapsableReportTable-4-6Wne7j-Bn8DnqeK.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Ck0xqZ0d-DuMewE5F.js → CompanyOfficerDetailsSection-C_S5WXms-iJZMGPb2.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DeVPuuje-BuSa0Fzy.js → CompanyPassportCard-DPwqwt8k-UccZMyh-.js} +2 -2
- package/dist/assets/{CompanyPassportPage-F_GUET9a-C8wIIeX0.js → CompanyPassportPage-DDjpq5T1-zONxBEPm.js} +13 -13
- package/dist/assets/{CompleteProfile-Y6HwKtpz-mlU_Lnh9.js → CompleteProfile-C6o_Ez-L-Do1B6QH5.js} +1 -1
- package/dist/assets/{ConfettiBurst-BGE3Okwr-_KME7UV8.js → ConfettiBurst-DNR3qv8X-ptw_T_Cq.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-B7FYHCKx.js → ConstrainedInnerElement-BeIpAPjB-DchKqY-F.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BlZe6gmh-CSTXLjlO.js → CreateOrEditVendorPage-Bcj3U0s_-5vJHklRM.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-flPmyCaF-BwWxi_XW.js → CreditCardPaymentDrawerPage-CI3GD2-u-DH6MMFER.js} +1 -1
- package/dist/assets/{CurrencySelectField-RiKAivD8-BksRM4rB.js → CurrencySelectField-98tevzzy-BlqO4MuW.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-B7dLMk4g-BJmm3nal.js → CustomerOnboardingActivationPage-BSsdFKhb-BMSgiMMy.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DgiK94cf-CHSTlWE8.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-AWsst0XH-BnN37yfD.js → CustomerOnboardingDetailPageSkeleton-D5gblIdv-CFqfFpT0.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-Bqid4-rH-Dtat8bQW.js → CustomerOnboardingNoStepsPage-DCt6wtfH-Cjj8y-RZ.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-B5LrMzZS-CrukYZMz.js → CustomerOnboardingPage-_HuMZOrd-CaMRm4tt.js} +4 -4
- package/dist/assets/{CustomerOnboardingProductSuitePage-DqgoBLWp-DGZ2IBPS.js → CustomerOnboardingProductSuitePage-DcX7v8VV-DCl6Er8S.js} +3 -3
- package/dist/assets/{Dashboard-D0KlujCx-CaX9_ir_.js → Dashboard-C12cMR4f-BJHxNm8C.js} +1 -1
- package/dist/assets/{DashboardReportPage-bxKyMsG7-Bz2x5Wjz.js → DashboardReportPage-C8FygWL_-zsIsDvlx.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Ch0OiH1g-rX5svgXp.js → DashboardSidebarBackgroundAnimation-eTAs_vdL-CSWEzD2n.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BdZVCAx--DSGTNCEN.js → DepositAccTransactionItem-BuwWbrWB-LoOAd3VM.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-LU0QMdSV-Daycs7AM.js → DepositAccTransactionListPage-C1XXM6Qy-C72sFA4v.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CFt5GgZ1-Bs5DiWKb.js → DomesticWireDetailsPage-t6W8wYH8-BW3aYQzE.js} +1 -1
- package/dist/assets/{DownloadOverlay-CH_bA3On-BHg1nZjl.js → DownloadOverlay-CJYnXgCn-odTawGXc.js} +1 -1
- package/dist/assets/{DrawerPage-Cpdp-IFb-4VvN-IwZ.js → DrawerPage-isFPi2CS-BP0DVAOi.js} +1 -1
- package/dist/assets/{EditPeoplePage-BYnuNojX-CUAXLz7m.js → EditPeoplePage-4fN2aCBr-BHmm7eYD.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DnyyPZ26--iJDDA6V.js → EditReimbursementDetailPage-CVMvR_xa-Y5W6LDDw.js} +1 -1
- package/dist/assets/EntityDetailPage-C8dRi0hQ-ChhHQBUx.js +18 -0
- package/dist/assets/{EntitySummarySection-BFpgAYAM-CvJuZuaZ.js → EntitySummarySection-BXo9RrQK-BuIKOVzl.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-YjOVm_Bw-BVAZfsV6.js → ExpenseAutomationOverviewPage-DPfeujDA-5Pkl4JAF.js} +59 -59
- package/dist/assets/ExpenseAutomationPage-CWEo8JL8-DDq4rvWb.js +1700 -0
- package/dist/assets/{ExpressPayPage-CKqPEfbR-D1bSY9da.js → ExpressPayPage-Dlku9oMT-sidjttl1.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Cs1Y3nP0-DwGyVUFX.js → FeaturePreviewPage-qJmxWW10-BCL41LPf.js} +1 -1
- package/dist/assets/{FollowStepsSection-BCyL8Jdr-D1x5wOfa.js → FollowStepsSection-DxAp4i9T-Cs3p7RFB.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CBQFcVHd-CNAri0Gq.js → GlobalReviewListPage-Cadf7AIC-BB24FYDU.js} +1 -1
- package/dist/assets/{InformationCardStack-nFMetrAy-S6OfgFLB.js → InformationCardStack-BZhYP37l-Dd2otSYf.js} +1 -1
- package/dist/assets/{InsightsCardStack-CEMeGJXy-T-H7kH_u.js → InsightsCardStack-CPZtVqq5-BUF_fSK4.js} +1 -1
- package/dist/assets/{InsightsSection-BYiN2xB7-DnISGJLF.js → InsightsSection-0ekovQH4-BlPNJh_U.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-BQ7g3a3K-ChxLIdDV.js → IntegrationsSettingsPage-CNis_Wk3-DA1OiLg5.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-BHRYsZgm-DxcAvHSv.js → InternationalWireSwiftDetailsPage-8g16Kgfi-B71tbLSL.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-tJbVtzQP-T9PeDRMa.js → InternationalWireVerificationPage-ofzwcymr-CT3lnfto.js} +1 -1
- package/dist/assets/{InviteFormPage-BVXte8w8-B---KuG2.js → InviteFormPage-pQDs7n3f-Dvolqiav.js} +1 -1
- package/dist/assets/{InvitePageListView-DFPyLLrA-Dt36CnHt.js → InvitePageListView-DJYwE5Il-BdRMo6ep.js} +1 -1
- package/dist/assets/{InvitePeoplePage-B-uxjkke-YzKTCQz_.js → InvitePeoplePage-CgSGdi3i-BzFWBUb-.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-B9q7nIs0-Bul_AbD5.js → InvoiceUploadSection-BEp8eQB4-DHRScRES.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-BuLj1bOl-8i7kiGE_.js → IssueChargeCardPage-DX3kJ72T--bI6SGG9.js} +1 -1
- package/dist/assets/{LabeledAddressValue-D2t8ti-C-DAgCkLW4.js → LabeledAddressValue-DWDFf_hN-e4LanhXy.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DMcor_I8-DcH2ZThX.js → LabeledAddressValueField-Ckm80g0_-fddiRWcN.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-B6w2HGJK-C11VW6dj.js → LabeledControlledCheckBoxField-Dhta-oad-BOgGTnpX.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DHNAX5Pu-jqxRDHbV.js → LabeledCreatableSingleSelectField-CWhimq6W-CiffZWxa.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Bx1u7vv_-CY-yp38K.js → LabeledDocumentField-z2O1tykl-BOR0XPyM.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BBS4da2b-DVk0LByT.js → LabeledDropDownFormattedTextField-BZu90SFF-CT4k7JQd.js} +1 -1
- package/dist/assets/{LabeledText-zjKn4Cw--YLsk-TbJ.js → LabeledText-DlIRkA7r-DGwEr03s.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-BOoBK2j4.js → LabeledUserSingleSelectWithSubtitlesField-CXwZdQ0K-DDygkuei.js} +3 -3
- package/dist/assets/{LabeledZeniRolesDropDownField-DiBtAWQ3-Dfgdfs2r.js → LabeledZeniRolesDropDownField-CWui0vqF-DJaOZiml.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-D66bzDh_-CVCLmVkW.js → LinkJETransactionPage-DJfFhIWc-DH9uk_Nk.js} +1 -1
- package/dist/assets/{LockCardPage-B1g2TZWL-DSI1imlj.js → LockCardPage-Cv9rUAY7-DKakaJGE.js} +6 -6
- package/dist/assets/{LowBalancePopup-DbtHeVY--BmWpKubs.js → LowBalancePopup-DnRpH2rk-CPocaNr6.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-CdmfROQK-B3EIdmd3.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BqqCZBUT-3K5d9lKn.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-QDfBddvz-DxlDIcb0.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-BkxuITX--9pTpV3Ii.js → MagicLinkSuccessPage-ABpq3GEM-347FQa8F.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CqkZ9wOf-BV8PoZba.js → MagicLinkTitleSection-ygghGjqi-CPCSmIlY.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DRFGCM2W-Df4NDMjP.js → MailingDetailsSection-DtuTgXeV-BAt57tta.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CE2ZqHBJ-Dj34a5Ib.js → MyBankConnectionsSettingsPage-BRy7gQIK-D0ljHEmg.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BffxXDZg-D9Pw7itJ.js → MyPendingActivationChargeCardListPage-eCLt21RY-DdeT-VxA.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DrsAlesY-B8Fmgkua.js → MyProfileSettingsPage-C-GlfSxD-BPv3bj5w.js} +5 -5
- package/dist/assets/{NavBarWithPicker-C4VfP_Kw-C9LoglkJ.js → NavBarWithPicker-MP4pdS6O-ETw04dfI.js} +1 -1
- package/dist/assets/{NavigationArrow-DCCxx6H7-DFr_M9lC.js → NavigationArrow-CxS8-9O0-BQImrbmZ.js} +1 -1
- package/dist/assets/{NavigationDots-tWCw6Bpk-CDFZbVA_.js → NavigationDots--7KEcIuu-eftMXpdw.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-UIA8zAjd-BgtMdkzY.js → NewGlobalMerchantPage-wYBwn2dL-D2xZN2Wq.js} +1 -1
- package/dist/assets/{NoDataChart-Bvetk9za-DZEcALCn.js → NoDataChart-Bd0aKX8D-BMtoTVvu.js} +1 -1
- package/dist/assets/{NoDataTable-9xF1_3XS-DKuCMxmf.js → NoDataTable-Bjbt7lt9-QawSofKO.js} +1 -1
- package/dist/assets/{NotFoundPage-CdH-3upl-BbsmWMZo.js → NotFoundPage-CxAhFmy2-D61A-JG3.js} +7 -7
- package/dist/assets/{NotificationSettingsPage-DP2gGIz1-DLZddDdI.js → NotificationSettingsPage-BwTc94Y4-DxMem3GE.js} +1 -1
- package/dist/assets/{NotificationsListConfig-DG-DH2Aj-DJh7Oe2k.js → NotificationsListConfig-f-Y-UtEy-BzHeGbqt.js} +1 -1
- package/dist/assets/{NotificationsPage-CgFMmR2X-CamiuoZq.js → NotificationsPage-Cds6qhVt-Dyww7PRK.js} +1 -1
- package/dist/assets/{OpExByVendorPage-eUvIAWzt-Bokql7Bs.js → OpExByVendorPage-CF6Q-SV2-DWalefYD.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-CayKpuTb.js → OverlayContainerPage-D4QU0p4o-DiYJgmmr.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-8S06Nyi5-DBveFMsr.js → PandLWithForecastPage-DwWcx5eK-szNL9FCt.js} +2 -2
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQtrANhI-DYBak-1n.js → PaymentAccountSetupBillingAddressSection-DIP_uznB-B7DNBV4H.js} +1 -1
- package/dist/assets/{PeoplePage-D1BLHtO0-BbRVrBGI.js → PeoplePage-BgP7kTw9-CG9DTLLQ.js} +1 -1
- package/dist/assets/{Preview-BjSuSI7X.js → Preview-CyY8fFSj.js} +1 -1
- package/dist/assets/{ProductsCarousel-BKSXWnFR-C7YSe0g-.js → ProductsCarousel-CJlGSrBH-C82GY9tH.js} +1 -1
- package/dist/assets/{PromoBaseCards-BYT9nEJT-Ccbt3B8c.js → PromoBaseCards-fx9bhHkF-5GD0MDQm.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-C2-omQMZ-CQInDhbT.js → QBOConnectionDialog-CGAr0mXC-CrSLQG4V.js} +1 -1
- package/dist/assets/{QBOSetupSection-lgv5wVlg-BuAgL-EC.js → QBOSetupSection-D-fnn99E-yQD39UVj.js} +7 -7
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CbJViS3x-9wOX2uX5.js → ReimbursementApprovalRuleDetailPage-DvhdOKpF-CHqGgBzD.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BuNt-Bmb-CFj1CuJD.js → ReimbursementApprovalRulesPage-BB4c1_YZ-B3-dzOHa.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CK3-Jqkd-BNspJlAb.js → ReimbursementDetailPage-DpWhzOF9-Dixn1uCw.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-fptOAJna-_HCem7ug.js → ReimbursementPromoPage-CYS1ZeFL-DbUZbWTa.js} +8 -8
- package/dist/assets/{ReimbursementSetUpPage-CidrpT2g-C2WrkYYn.js → ReimbursementSetUpPage-CoOFmpfw-CzqYPddc.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cy_Hediw-BNPGhyOT.js → ReimbursementsBulkReviewDrawerPage-DAYEgH4V-CKgr6iyS.js} +1 -1
- package/dist/assets/{ReloadCard-C81rGzOp-DFlKYcW1.js → ReloadCard-clq1KPzy-DLLVDS4G.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-neRSjrhV-BkLf86Vv.js → ReportTableViewSelector-CU3PZ-xy-CDmAbwqP.js} +1 -1
- package/dist/assets/{ReportsPage-BhzQVaer-DroWIM-W.js → ReportsPage-C5QPXAa--D9Rm-qp8.js} +5 -5
- package/dist/assets/{RevenueChart-x7uTbFlm-DbSvnjIg.js → RevenueChart-BM8cNGoZ-OoJdgTQW.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-jXZCylzg-BzkmGW6Z.js → ReviewDetailsPage-Dp29TV8A-pDKCfw94.js} +2 -2
- package/dist/assets/{ReviewOverlay-nlm2HnGw-0h8O5Gsr.js → ReviewOverlay-OXnAkRJ_-Di_D_VlI.js} +1 -1
- package/dist/assets/{RoleWithToolTip-C29QOzxS-DDwRD3YV.js → RoleWithToolTip-BCeMfqCC-DiZyrWD_.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CkPzofLN-ZkvdDelI.js → ScheduleDetailsFixedAssetsPage-BUWOvDMW-DaI6ZQoZ.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BSZefKOh-Lao8_CRx.js → ScheduleDetailsPage-F2KQ46TD-VVV77yxd.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BW5M7Zfq-C4Wr3YEf.js → ScheduleSequenceTable-c-8N2OvE-DWSKrTJR.js} +1 -1
- package/dist/assets/{ScreenRoutes-3--BP3dQ.js → ScreenRoutes-BYoqwzEO.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C703iFL6-CB-x39kX.js → SetUpAccountSection-CPw8BhAT-Bu28TndH.js} +1 -1
- package/dist/assets/{SignIn-D9K5FklU-ErPt7eV_.js → SignIn-DT4-gKMD-DgVi8USa.js} +6 -6
- package/dist/assets/{SignInScreen-CRT7QevQ.js → SignInScreen-CdADJVAt.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-CBNtC74m-DHKZfQIJ.js → SpendManagementListViewPage-YoHK4LrJ-DYhZa44h.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-D_sa7WRd-DcKlayyT.js → SpendManagementPerTabPage-CEJxlQwu-D8XVtvOY.js} +1 -1
- package/dist/assets/{SpendManagementSection-DpZUTV6m-YVn8oLNw.js → SpendManagementSection-Dbk_Ojop-DcKtjVjR.js} +1 -1
- package/dist/assets/{StatementItem-DvdSsb8I-DOY7J3f4.js → StatementItem-DO9WpE-R-Do-IIiY-.js} +5 -5
- package/dist/assets/StatementsPage-Cf8pwDhO-RC289M0h.js +58 -0
- package/dist/assets/{StatusSwitcher-hKYgwNLC-DgNQeM48.js → StatusSwitcher-B523Fhna-CVWspTKV.js} +1 -1
- package/dist/assets/{SubTabSwitcher-aeDd9xiF-IQYV5jWC.js → SubTabSwitcher-Dgwgj3Si-U0zspkd_.js} +1 -1
- package/dist/assets/SummaryCard-CGteKBHk-27q94esm.js +1 -0
- package/dist/assets/{TaskManagementPage-D2Ooq8DR-B4CILg_v.js → TaskManagementPage-CIQeYwEY-C7-23Lr5.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DEqlZxa6-0m9X1pzy.js → TimeRangeSwitcher-8lNpLdVr-Dj19rYPc.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-BppC6giF-Dj6iiZx4.js → TimeframeSwitcher-B-l9fJ1Q-ByHm5vUq.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-CbX9ElMN-q3bNmxt9.js → TimeframeSwitcherWithToggle-3yKIUhvE-DaSH_yQW.js} +2 -2
- package/dist/assets/{TopExCard-Cy6tPVSx-BKtUObR2.js → TopExCard-C-CBza7t-C8HWdf71.js} +1 -1
- package/dist/assets/{TopExDetailPage-Rtrcdkcp-CpeHlBi7.js → TopExDetailPage-Dx_w2Wmt-By36tBTS.js} +8 -8
- package/dist/assets/{TransactionActivityLogPage-DbwSsjPJ-DBDY7klu.js → TransactionActivityLogPage-CA6FGjPI-DoUnK6pL.js} +1 -1
- package/dist/assets/{TransactionDetailPage-D-vXAAB7-BO7VlHs9.js → TransactionDetailPage-CpNGUBqP-gfLrfFlK.js} +1 -1
- package/dist/assets/{TransactionList-BruCNjQg-QGZvhCnu.js → TransactionList-CvRmT2Lq-C1JZRVpn.js} +1 -1
- package/dist/assets/{TransactionListBig-bp7q3prH-BjdaMTKR.js → TransactionListBig-v8qd1Ec7-hwFVnuVq.js} +1 -1
- package/dist/assets/{TransactionListPage-ZfJsaVb8-CqalSW4h.js → TransactionListPage-C23zWqxy-DgePPgum.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CldkuO2--DkzTZ-pl.js → TransactionVendorDetailPage-vpDqNBSu-BIkJjCOi.js} +1 -1
- package/dist/assets/{TransferDrawerPage-DswS6KZf-DXuxVLU4.js → TransferDrawerPage-5FY_zDCE-DJ5J1SOB.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DWo7iRpO-D6Zu8aSf.js → TreasuryOverviewPage-DDjaj1jW-B4JtoLhv.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DQxCF3-4-CpDxyIla.js → TreasuryPromoPage-D3y0Te0d-DmBRPB0W.js} +1 -1
- package/dist/assets/TreasuryStatementsPage-BF_EZUjg-suQxt6u_.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-DH3su_rX-CTO71UU_.js → TreasuryTaxLetterPage-C1nYfVbO-eUqGz6CJ.js} +2 -2
- package/dist/assets/{TrendChart-BMHDaOeh-DkxaXm9c.js → TrendChart-DwYxYNR7-JcI7qpjF.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DDLrmIrt-DK3AzuE_.js → TrendWithTransactions-BJnpKKqL-DKCgJJvT.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-3SW8Gj0Z-2HGOL2fq.js → UncategorizedAccountsMappingPage-CxlG2JUW-Cij2klA0.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-DPMy8dXP-BEwmhtiJ.js → UnitIntegrationPage-DaIJxSo2-GGpI7ByY.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BHpT2al--D9tVOJr4.js → UploadAdditionalDocumentOverlay-Bw9ymrDY-BTVIu0dz.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-C6gEOhUv-D393yaM2.js → Vendor2FAPopup-DxlOTzWL-DAG_NkfZ.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-CQ6OiO4V-vWpnVdE1.js +1 -0
- package/dist/assets/{VendorDetailPage-BC1FhaQA-Cih4hObU.js → VendorDetailPage-BGrtc6EE-DmQ5F0In.js} +1 -1
- package/dist/assets/VendorDomesticWireDetailsPage-D5yME16K-CGPyvaCT.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DYyPOA8D-CmmLPOPD.js → VendorFiling1099EditablePage-A5wcCVBF-DUjQTYJL.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-Cpmk7rDk-BUDXATpi.js → VendorFirstReviewPage-Dr6MMvIq-LfXi6VDf.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CWAWq6kq-Bu8qF4QT.js → VendorInternationalWireDetailsPage-BJUaxg9g-C6pvbY6G.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-v2icyO6w-6aTsJwry.js +1 -0
- package/dist/assets/{VendorsAccountsSection-CGQ35Mhp-B1f40k92.js → VendorsAccountsSection-B9OpiDDc-Ck5imuYH.js} +1 -1
- package/dist/assets/{VerifyDevice-CfMJW1Vh-CfGn1f2S.js → VerifyDevice-CViWQbOn-CG6KWpvG.js} +7 -7
- package/dist/assets/{VideoPlayer-BNBpjXJk-Ci86uK0H.js → VideoPlayer-D5QP-myQ-CVNLOpWk.js} +2 -2
- package/dist/assets/{VideoPopup-BF6lmB7l-CORel6we.js → VideoPopup-_4nnxGFK-rc_W8uy0.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-Crj70lnR-CskR51nP.js → WarningsDrawerPage-D8X9a6pX-DcE35uzS.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CaA6m3tQ-B7Wr8tNB.js → ZeniAccountDetailPage-B2gRhBJz-BpnCGmCc.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-x_51gDs1-VJ-m66dM.js → ZeniAccountListViewPage-Dc4IWyQw-6oEyCUyL.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Csr24dri-Bx5ehodw.js → ZeniAccountNavBarPieces-CYTd-7fg-D7gLlXGG.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-lxKBk2r5-Cj7NRVl6.js → ZeniAccountPromoPage-B5rTE2aZ-DtGW6mZ_.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DUI4-2Zw-6keQaK8x.js → ZeniAccountSetupPage-BlS6FEcT-D8fD5QNH.js} +1 -1
- package/dist/assets/{ZeniCopyright-DxEZ4DiK-DuN0VY_D.js → ZeniCopyright-DbOXr6hr-D49zDt7K.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-4Nq4Sm9J-B1R78ZqF.js → ZeniTransferAmountSlider-DMdKnrKk-BOekYkfn.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-D4w2vdRB.js → add-to-wallet-DgdBD8_G-Z21-4-a3.js} +1 -1
- package/dist/assets/{analytics-r9EGBu1Q.js → analytics-Dd9GkS_R.js} +1 -1
- package/dist/assets/{analyticsHelper-CL-t3Y2i-BSVrCF9s.js → analyticsHelper-BLLOc8oW-Bb5BI_Zu.js} +1 -1
- package/dist/assets/{analyticsHelper-0wzylLgc.js → analyticsHelper-Cn36jH2S.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-BtOzciV2.js → arrow-south-east-round-PEovUgvH-K7zlCGlW.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-NVyeb_ve.js → auto-transfer-rule-mbafm5D3-rBHUDSkc.js} +1 -1
- package/dist/assets/{chartTypes-B3501CSI-Bjfolb4j.js → chartTypes-zuOlWPZo-CqRIct--.js} +1 -1
- package/dist/assets/{commonDimensions-YcBBlmYP-sxjRe92c.js → commonDimensions-aMGDpjmW-UhXAGxHS.js} +1 -1
- package/dist/assets/{constants-Byf26qQt.js → constants-BydUCFaZ.js} +1 -1
- package/dist/assets/{core-DhC75twd.js → core-DjXOmtSJ.js} +1 -1
- package/dist/assets/{dash.all.min-Dz8mJGxF.js → dash.all.min-CWcs0-Ft.js} +1 -1
- package/dist/assets/{detailCommon-C19MYPnq-C3AWPuOr.js → detailCommon-CdZh0YNF-Bty6HpPL.js} +2 -2
- package/dist/assets/{downloadPdf-DPAqxw6u-nEtfy2Dz.js → downloadPdf-BnXVGESU-CGO5_V0v.js} +1 -1
- package/dist/assets/{empty-DffAZ-ep.js → empty-Be_kj3Mu.js} +1 -1
- package/dist/assets/{empty-BErF0eSj.js → empty-BpWqyf7V.js} +1 -1
- package/dist/assets/{epic-CfMotuSj.js → epic-B6XzQXM_.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-DMwGMUF4.js → gift-box-Cmt9OgIZ-DJPtxuMD.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-BYeW_TLG.js → graphic-no-data-l-DU4J8fDt-znOHf3Hs.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BJYF6A7J.js → graphic-no-data-net-burn-l-CzmycA0m-53oymvWB.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BkE1U-MB.js → handshake-BPg58FML-ttNYOOdS.js} +1 -1
- package/dist/assets/{index-BByeCcLN.js → index-B0Fm_ZMY.js} +1 -1
- package/dist/assets/{index-tU-PJ6R1.js → index-BsyBnYxZ.js} +1 -1
- package/dist/assets/{index-TMJZ-FGP.js → index-COyPtNQ2.js} +1 -1
- package/dist/assets/{index-Cp0C-GJL.js → index-DhICZ-la.js} +1 -1
- package/dist/assets/{index-6S2g5oxD.js → index-Dm-b67Hf.js} +7 -7
- package/dist/assets/{index-DGyJHjKE.js → index-SgTym3_u.js} +1 -1
- package/dist/assets/{index-CFLxAI5t.js → index-w81TKwF8.js} +1 -1
- package/dist/assets/{lexical-B4ox-Oq6.js → lexical-C3TbZeLl.js} +1 -1
- package/dist/assets/{liveblocks-DxN2_B8G.js → liveblocks-EGukjQZF.js} +1 -1
- package/dist/assets/{lottie-BNYbcum9.js → lottie-DiLnfF8e.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-B0oj9Ot5-CWtpcdPC.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BDWD3x8r-CQ9YZcDz.js → mapSectionWithAcOnlyToTreeNode-rtn-dPyU-DWwT8Nhv.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-8mFwNdh5-CeSJa54a.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BkHI2m3e-DSk1PCnB.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-bQ2VDSub-CJiyKqIU.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CcMctgAq-lqSBZOT1.js +1 -0
- package/dist/assets/{mui-wtLp0vbS.js → mui-BLkKBV85.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BgaUjC8m.js → page-detail-CWX5S47F-D6GzdE4M.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-DHibecP7.js → panelSelectedMixin-CzfD5-Zs-CBMeGjo8.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-Cgp5Mneh.js → radio-default-CiSgisfh-B552CYET.js} +1 -1
- package/dist/assets/{react-DXX_RLcv.js → react-4oUCwWHz.js} +1 -1
- package/dist/assets/{react-CkJMfDPX.js → react-BCL5SMXn.js} +1 -1
- package/dist/assets/{react-u7HeP0bB.js → react-BDnWTul0.js} +1 -1
- package/dist/assets/{react-B-KpdB-_.js → react-CXrmdcVg.js} +1 -1
- package/dist/assets/{react-CUfRZ-Uw.js → react-ChBDOzx3.js} +2 -2
- package/dist/assets/{react-Kxbs6xJM.js → react-CkV5VFp3.js} +1 -1
- package/dist/assets/{react-DTrvUpxc.js → react-DiNjY5yl.js} +1 -1
- package/dist/assets/{react-BlNFeO1p.js → react-FSAp6Eni.js} +1 -1
- package/dist/assets/{recharts-Bks4lV7q.js → recharts-B8tzuQ8V.js} +1 -1
- package/dist/assets/{sentry-B1J7wTBN.js → sentry-C2Rgx3zV.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DVQc_Wp-.js → shield-DOlUxcFf-BI7xxvqa.js} +1 -1
- package/dist/assets/toCOABalancesWithID-DUpgxtrc-n-6zkqkw.js +1 -0
- package/dist/assets/{toChartData-DzatRnt8-DShu11CR.js → toChartData-BNPIbcXQ-DT2tu_Ad.js} +1 -1
- package/dist/assets/{uploadAttachment-Bq8dk-Sm-B9eWwh9n.js → uploadAttachment-4MEQNz0J-C1Mi8_qq.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-DojRU-mv.js → uploadReceipts-Dge0cNF1-C7ahzxC1.js} +1 -1
- package/dist/assets/{url-G0KDqCof.js → url-DdNhcJXF.js} +1 -1
- package/dist/assets/{url-CJCgjt4g.js → url-i42p6QIP.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DSmKJJot.js → useLongPress-GCK2COYQ-Cz3dEUgW.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BaFJ2GDx.js → usp-line-BBd1wKwW-DBnWZzCO.js} +1 -1
- package/dist/assets/{utils-OImZ5lg2.js → utils-CQTOz44B.js} +1 -1
- package/dist/assets/{zeni-epic-state-Cs1j8aUi.js → zeni-epic-state-TdgpFmku.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/AccountInfoPage-DkpBGfrR-DNZbbbLx.js +0 -18
- package/dist/assets/ChargeCardPromoPage-CKEnOseD-BsvvJ3tS.js +0 -222
- package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-DA-pVnHE.js +0 -1
- package/dist/assets/EntityDetailPage-DSfZZ1JW-Du-oUIAb.js +0 -18
- package/dist/assets/ExpenseAutomationPage-DlhH-R-e-BdT46CCv.js +0 -1700
- package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-BWmT-DIS.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-pkYJ3gJj.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-Q4lIsHtG-nDThOfAW.js +0 -1
- package/dist/assets/StatementsPage-73jGj5P2-CL54j91-.js +0 -58
- package/dist/assets/SummaryCard-CK8Gxbiu-C9CjILlZ.js +0 -1
- package/dist/assets/TreasuryStatementsPage-CYkPtmaT-DH4Z2_YL.js +0 -58
- package/dist/assets/VendorACHDetailsPage-LNCcubjL-CvsvIZ5X.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-CLudahOt-nl_9mczl.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-Dni1qcRr.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--rA-kTA8R.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-Blr3egSm-p4Fnx_HR.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-CR_1ELft.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-Di4b6V4c.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-BEgZ9YHD.js +0 -1
- package/dist/assets/toCOABalancesWithID-D35Fk0m2-Ck4Ztuj_.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as L,cT as B,aR as T,c$ as P,F as S,y as n,V as a,cJ as f,cL as w,cZ as R,b2 as A,o as g,eX as D,eY as V,aQ as z,u as t,T as q,al as H}from"./index-
|
|
1
|
+
import{J as L,cT as B,aR as T,c$ as P,F as S,y as n,V as a,cJ as f,cL as w,cZ as R,b2 as A,o as g,eX as D,eY as V,aQ as z,u as t,T as q,al as H}from"./index-Dm-b67Hf.js";import{a as C}from"./sentry-C2Rgx3zV.js";import{n as b}from"./mui-BLkKBV85.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="51b0ce78-bf83-4577-a3ac-e04140507466",e._sentryDebugIdIdentifier="sentry-dbid-51b0ce78-bf83-4577-a3ac-e04140507466")}catch{}})();const E=b.div`
|
|
2
2
|
color: ${e=>e.theme.colors.primary};
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as $,V as n,aQ as u,bU as f,o as i,y as t,c3 as b,N as x,a as y,F as k,p as s,q as v,al as z,u as o}from"./index-
|
|
1
|
+
import{J as $,V as n,aQ as u,bU as f,o as i,y as t,c3 as b,N as x,a as y,F as k,p as s,q as v,al as z,u as o}from"./index-Dm-b67Hf.js";import{n as a}from"./mui-BLkKBV85.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="3997e9ab-90ff-41f4-9236-db1311d252ab",e._sentryDebugIdIdentifier="sentry-dbid-3997e9ab-90ff-41f4-9236-db1311d252ab")}catch{}})();const{common:{navBar:{back:j}}}=k.getLocalizedStrings(),d={navBarContainerPadding:new t(10,o[3]),customTitleMarginBottom:new t(o[0],o[3]),customTitleMarginLeft:new t(o[3],o[6]),customTitleMarginRight:new t(o[5],o[8])},P={formTitle:new x("h6Medium","h5Medium")},R=({header:e,isDirty:r,isMagicLink:g,onBackClick:m,setShowConfirmationPopup:p})=>{const l=$();return n.jsxs(n.Fragment,{children:[l==="small"?n.jsxs(B,{windowSize:l,children:[g?null:n.jsx(w,{onClick:()=>r?p?.(!0):m?.(),"data-testid":u("bank-account-page-back-click-mobile")}),n.jsx(h,{windowSize:l,children:e})]}):n.jsx(S,{children:g?null:n.jsx(f,{title:j,enterDelay:600,placement:"bottom",children:n.jsx(w,{onClick:()=>r?p?.(!0):m?.(),"data-testid":u("bank-account-page-back-click")})})}),l!=="small"?n.jsx(h,{windowSize:l,children:e}):null]})},h=a(y)`
|
|
2
2
|
${e=>`${P.formTitle.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.primary};
|
|
4
4
|
margin-bottom: ${e=>d.customTitleMarginBottom.valuePx(e.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as be,J as je,a9 as Xe,cG as Qe,V as t,bD as Ze,o as i,F as re,y as P,am as et,al as W,T as se,cn as tt,ac as nt,bU as it,u as v,ba as ot,b as Ne,N as at,a8 as ze,cT as ct,aR as J,aW as fe,fB as Te,c$ as lt,bx as He,fC as _e,fD as st,fE as qe,c0 as Oe,fF as rt,fG as dt,fH as ge,fI as we,fJ as Ie,aO as Se,cf as xe,aQ as ut,bL as pt,dP as Je,p as ne,ai as B,fK as ht,fL as mt,fM as ft,bj as gt,fN as wt}from"./index-
|
|
1
|
+
import{e as be,J as je,a9 as Xe,cG as Qe,V as t,bD as Ze,o as i,F as re,y as P,am as et,al as W,T as se,cn as tt,ac as nt,bU as it,u as v,ba as ot,b as Ne,N as at,a8 as ze,cT as ct,aR as J,aW as fe,fB as Te,c$ as lt,bx as He,fC as _e,fD as st,fE as qe,c0 as Oe,fF as rt,fG as dt,fH as ge,fI as we,fJ as Ie,aO as Se,cf as xe,aQ as ut,bL as pt,dP as Je,p as ne,ai as B,fK as ht,fL as mt,fM as ft,bj as gt,fN as wt}from"./index-Dm-b67Hf.js";import{a as r}from"./sentry-C2Rgx3zV.js";import{n}from"./mui-BLkKBV85.js";import{r as Pe}from"./core-DjXOmtSJ.js";import{bJ as St,bK as ie,bL as Ee}from"./zeni-epic-state-TdgpFmku.js";import{a as xt}from"./SetUpAccountSection-CPw8BhAT-Bu28TndH.js";import"./liveblocks-EGukjQZF.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="7af567b0-425e-449a-88f2-80277af04ddc",e._sentryDebugIdIdentifier="sentry-dbid-7af567b0-425e-449a-88f2-80277af04ddc")}catch{}})();const{settings:{bankConnectionHeader:de}}=re.getLocalizedStrings().common,yt={value:de.productType,width:new P(100,19)},bt={value:de.primaryAccount,width:new P(100,36)},vt={value:de.linkAccount,width:new P(100,22)},kt={value:de.status,width:new P(12,12)},$t={value:de.balance,width:new P(12,13)},N=[yt,bt,vt,kt,$t],{common:{settings:Fe,strings:{hyphen:ve}},commonSetUp:{setUp:Be}}=re.getLocalizedStrings(),T={containerPadding:new P(v[3],v[4]),containerRightPadding:new P(v[3],v[8]),iconContainerMaxWidthHeight:new P(v[6],v[7]),iconWidthHeight:new P(20,v[4]),iconPadding:new P(v[1],12),productTypeContainerMarginBottom:new P(v[3],v[0]),linkAccountContainerMarginTop:new P(v[3],v[0]),productTypeIconSize:new P(v[3],v[4])},At="bankConnectionsSettingsPage",Ct=({productType:e,windowSize:d})=>{switch(e){case"bill_pay":return t.jsx(Ht,{windowSize:d,children:t.jsx(gt,{})});case"reimbursement":return t.jsx(qt,{windowSize:d,children:t.jsx(ft,{})});case"zeni_accounts":return t.jsx(Jt,{windowSize:d,children:t.jsx(He,{})});case"zeni_treasury":return t.jsx(Kt,{windowSize:d,children:t.jsx(mt,{})});case"charge_cards":default:return t.jsx(Gt,{windowSize:d,children:t.jsx(ht,{})})}},jt=({allBankAccounts:e,setupView:d,connectedAccountProvider:H,onFetchLinkTokenClick:R,onUpdatePaymentAccountStatus:_,onEstablishConnectionClick:I,onEstablishConnectionSuccess:D})=>{const A=be(),c=je(),f=ze().analytics,{trigger:w,formState:{errors:U}}=ct(),{plaidConnectionDetails:M,allFundingAccounts:a,primaryFundingAccount:o,productType:l}=d,m=M.link_account,k=M.update_account,[p,C]=r.useState(void 0),[q,b]=r.useState(!1),V=()=>{b(!0)},u=p==="update_account"?k:m,[S,L]=r.useState(u.linkToken??null),[$,z]=r.useState(!1),g=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";let h,O,s,j=!1;o!=null&&(o.accType==="depositAccount"?h={code:"verified",name:"Verified"}:(h=o.providerVerificationStatus,O=o?.institutionDetails,s=h?.code,j=o?.isLoginRequired??!1));const Y=J(m.updateStatus.fetchState),X=J(k.updateStatus.fetchState),Z=J(k.fetchStatus.fetchState),E=A.mode==="light"?new fe(A.colors.brandColorJadeLight):new fe(A.colors.brandColorJadeDark),G=r.useCallback((x,K)=>{f.trackConnectBankSuccess(l,"Settings");const Le=K.accounts.find(Ye=>Ye.id===o?.providerAccountId)??K.accounts[0];o?.id!=null&&p==="update_account"&&Le?.verification_status!=null&&!j?_(Le?.verification_status,o.id,"update_account",y(l),l):I(x,y(l),l),C(void 0),z(!1)},[f,l,o?.id,o?.providerAccountId,p,j,_,I]),ee=r.useCallback((x,K)=>{x!=null&&(f.trackConnectBankFailure(l,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&o?.id!=null&&_("verification_failed",o.id,"update_account",y(l),l),console.log("Plaid Connection Error",x,K)),C(void 0),z(!1)},[f,l,o?.id,_]),{open:Q,ready:ue}=Te({token:S,onSuccess:G,onExit:ee});r.useEffect(()=>{(Y==="In-Progress"&&m.updateStatus.fetchState==="Completed"||X==="In-Progress"&&k.updateStatus.fetchState==="Completed")&&(St(s??"")||(R("link_account",y(l)),D(y(l),l)))},[m.updateStatus.fetchState,D,R,o?.providerVerificationStatus?.code,o?.id,Y,X,k.updateStatus.fetchState,s,l]),r.useEffect(()=>{(ie(s??"")||s==="verification_failed")&&!$&&p!=null&&u.linkToken===S&&u.fetchStatus.fetchState==="Completed"&&ue&&z(!0)},[ue,S,u.fetchStatus.fetchState,u.linkToken,s,p,$]);const oe=$e(At,"primaryAccountSection"),F=lt(U,oe);r.useEffect(()=>{u.fetchStatus.fetchState==="Completed"&&u.linkToken!=null&&u.linkToken!==S&&L(u.linkToken)},[u.fetchStatus.fetchState,u.linkToken,S]),r.useEffect(()=>{$&&Q()},[$,Q]),r.useEffect(()=>{!o?.zeniAccountId&&!F&&w(oe)},[o?.id]),r.useEffect(()=>{(s==null||s==="verification_failed"||s==="verification_expired"||ie(s))&&(Ee(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&R("link_account",y(l))},[]);const te=()=>{f.trackConnectBankGetBalance(l,"Settings"),C("update_account"),R("update_account",y(l),o?.id)},ae=`${o?.accountSubType?.name!=null?o?.accountSubType?.name.substring(0,1).toUpperCase().concat(o?.accountSubType?.name.substring(1)):""} ${o?.maskedAccountNumber??""}`.trim(),pe=O?.zeniInstitutionId.toLowerCase()==="chase",Ge=a.findIndex(x=>x.id===o?.id),Ke={element:t.jsx(He,{width:T.iconWidthHeight.valuePx(c)}),color:E};return t.jsxs(zt,{windowSize:c,children:[q===!0?Pe.createPortal(t.jsx(_e,{connectedAccountProvider:H,action:{onBackClick:()=>b(!1)}}),document.body):null,t.jsxs(Tt,{windowSize:c,wrapperWidth:N[0].width,children:[t.jsx(It,{windowSize:c,isDarkMode:A.mode==="dark",children:t.jsx(Ct,{productType:l,windowSize:c})}),t.jsx(_t,{children:Fe.productNameByType[l]})]}),t.jsx(Pt,{windowSize:c,wrapperWidth:N[1].width,children:t.jsxs(Rt,{windowSize:c,children:[o!=null&&c!=="small"?t.jsx(Bt,{isDisabled:j,children:st(Ke,c,A.mode==="dark",o,Ge,!1)}):null,t.jsxs(Dt,{windowSize:c,className:"fundingAccount",children:[t.jsx(qe,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:A.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:v[4],fontWeight:Oe.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:A.colors.hero,weight:Oe.medium},name:$e(l,"primaryAccountSection"),placeholder:Be.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,K)=>dt(a,x,K),valueToSubLabels:(x,K)=>rt(a,x,K,!1),defaultValue:{selectedOption:o?.id,allOptions:a.map(x=>({label:x.label,value:x.id,isRecommended:x.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:g?"disabled":void 0,showLoadingIcon:g,onClickCreateOption:()=>{f.trackConnectBank(l,"Settings"),C("link_account"),m.linkToken==null||Ee(new Date().toISOString()).isAfter(m.expiration)?R("link_account",y(l)):S!==m.linkToken?L(m.linkToken):$?Q():z(!0)}}),t.jsxs(Lt,{isDisabled:j,children:[ae?t.jsxs(t.Fragment,{children:[t.jsx(Ot,{children:ae}),c!=="small"&&(s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe)?t.jsx(Ft,{}):null]}):null,c==="small"&&h!=null?t.jsx(ge,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:h.name,textColor:we(h.code)}):null,s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe?t.jsx(Ie,{productType:l,isUpdateLinkClicked:p==="update_account",isLoginRequired:j,isPendingVerification:s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:k.fetchStatus,updateStatus:k.updateStatus,linkFetchStatus:m.fetchStatus,linkUpdateStatus:m.updateStatus,prevFetchState:Z,prevUpdateState:X},onUpdateLinkTokenClick:te,onChaseInfoClick:V}):null]})]}),c==="small"?t.jsxs(Mt,{children:[o?.accountBalance?.available?t.jsx(Re,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:ve}),o?.accountBalance?.lastRefreshTime?t.jsx(De,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Wt,{windowSize:c,isDisabled:j,wrapperWidth:N[2].width,onClick:x=>x.stopPropagation(),"data-testid":ut("bank-account-section",l),className:"qboLinkAcc",children:[c==="small"?t.jsx(Et,{children:Fe.bankConnectionHeader.linkAccount}):null,t.jsx(Nt,{isDisabled:j?"disabled":void 0,name:$e(l,"bankAccountSection"),placeholder:Be.zeniCashAccountPlaceholder,defaultValue:{selectedOption:o?.zeniAccountId??"",allOptions:e.map(x=>({label:x.accountName,value:x.accountId}))},controlProperty:{highlightOnHover:!0},isOptionRemovable:!1,textAlignment:"left",registerOptions:{required:!1},style:{width:c==="small"?"calc(100% - 135px)":"100%",marginLeft:c==="small"?i.sp0:`-${i.sp3}`}})]}),c!=="small"?t.jsx(Vt,{windowSize:c,wrapperWidth:N[3].width,children:h!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:h.name,textColor:we(h.code)}):t.jsx(ke,{children:ve})}):null,c!=="small"?t.jsxs(Ut,{windowSize:c,wrapperWidth:N[4].width,children:[o?.accountBalance?.available?t.jsx(Re,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:ve}),o?.accountBalance?.lastRefreshTime?t.jsx(De,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},zt=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
4
4
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
package/dist/assets/{BillDetailPage-DJxh2CIc-CiN30l4I.js → BillDetailPage-CaAXVwe3-C9NFzEPg.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Zn,aw as Un,e as Kn,gi as Vn,gj as Hn,gk as Xn,gl as qn,ce as Gn,aR as Yn,y,V as t,f9 as ct,fa as Qn,o as a,fb as Jn,fc as ea,fd as ta,aO as Se,fe as na,aQ as b,bD as pt,bp as mt,dx as ut,cq as yt,cr as ht,cs as bt,gm as aa,gn as ia,go as la,gp as oa,fj as I,gq as $,fl as A,fm as k,fi as ra,b as gt,p as oe,fk as Ot,fs as sa,fn as da,fo as ca,gr as pa,gs as ma,aS as ua,ao as ft,bU as ve,gt as ya,gu as L,F as ha,u as s,ag as ba,c3 as ga,gv as fa,c as xa,gw as wa,ft as xt,N as Ta,d5 as va,cj as Da,gx as wt,b8 as ja,ba as Ia,d as $a,bW as Ft,d6 as Aa,gy as ka,ai as Et,av as Sa,b6 as Ca,bu as Pa,gz as Ba,al as Ra}from"./index-6S2g5oxD.js";import{a as p}from"./sentry-B1J7wTBN.js";import{n as i}from"./mui-wtLp0vbS.js";import{a as za}from"./liveblocks-DxN2_B8G.js";import{bO as Ma,bL as Na,bP as La,FL as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-Cs1j8aUi.js";import{o as Wa,t as Za}from"./LowBalancePopup-DbtHeVY--BmWpKubs.js";import"./core-DhC75twd.js";import"./lottie-BNYbcum9.js";import"./recharts-Bks4lV7q.js";import"./analytics-r9EGBu1Q.js";import"./lexical-B4ox-Oq6.js";import"./utils-OImZ5lg2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="77cbbdba-f11a-4039-ada6-a5c6193040ff",e._sentryDebugIdIdentifier="sentry-dbid-77cbbdba-f11a-4039-ada6-a5c6193040ff")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Xa,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:jt,title:{comments:Ga}}}}=ha.getLocalizedStrings(),je=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Xt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:P}=Xn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,X,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Xe]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,In=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${In}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(Ii,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{J as Zn,aw as Un,e as Kn,gi as Vn,gj as Hn,gk as Xn,gl as qn,ce as Gn,aR as Yn,y,V as t,f9 as ct,fa as Qn,o as a,fb as Jn,fc as ea,fd as ta,aO as Se,fe as na,aQ as b,bD as pt,bp as mt,dx as ut,cq as yt,cr as ht,cs as bt,gm as aa,gn as ia,go as la,gp as oa,fj as I,gq as $,fl as A,fm as k,fi as ra,b as gt,p as oe,fk as Ot,fs as sa,fn as da,fo as ca,gr as pa,gs as ma,aS as ua,ao as ft,bU as ve,gt as ya,gu as L,F as ha,u as s,ag as ba,c3 as ga,gv as fa,c as xa,gw as wa,ft as xt,N as Ta,d5 as va,cj as Da,gx as wt,b8 as ja,ba as Ia,d as $a,bW as Ft,d6 as Aa,gy as ka,ai as Et,av as Sa,b6 as Ca,bu as Pa,gz as Ba,al as Ra}from"./index-Dm-b67Hf.js";import{a as p}from"./sentry-C2Rgx3zV.js";import{n as i}from"./mui-BLkKBV85.js";import{a as za}from"./liveblocks-EGukjQZF.js";import{bO as Ma,bL as Na,bP as La,FL as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-TdgpFmku.js";import{o as Wa,t as Za}from"./LowBalancePopup-DnRpH2rk-CPocaNr6.js";import"./core-DjXOmtSJ.js";import"./lottie-DiLnfF8e.js";import"./recharts-B8tzuQ8V.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="cef61fc6-a556-48be-ace3-a8565ac37d14",e._sentryDebugIdIdentifier="sentry-dbid-cef61fc6-a556-48be-ace3-a8565ac37d14")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Xa,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:jt,title:{comments:Ga}}}}=ha.getLocalizedStrings(),je=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Xt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:P}=Xn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,X,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Xe]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,In=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${In}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(Ii,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
2
|
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Qn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),G=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!G&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,qe,r)},rt=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Ge(!0),rt()},Fn=()=>{Qt(),Xe(!1),qe&&Ge(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Qa(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(G,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:j},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:j},text:ie.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:j},text:ie.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:j},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:j},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:j},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:j},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:j},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:j},text:r.billable!=null?jn(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:j},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(Ie,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:j},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Gt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ja(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Q(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!G&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!G&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(si,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!G&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Ga,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Qa=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Ja=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as O,u as L,J as G,F as U,a9 as M,aR as W,aK as J,cG as K,V as r,bD as X,ac as H,aS as Q,o as u,g8 as Y}from"./index-
|
|
1
|
+
import{y as O,u as L,J as G,F as U,a9 as M,aR as W,aK as J,cG as K,V as r,bD as X,ac as H,aS as Q,o as u,g8 as Y}from"./index-Dm-b67Hf.js";import{a as T}from"./sentry-C2Rgx3zV.js";import{n as h}from"./mui-BLkKBV85.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-DxAp4i9T-Cs3p7RFB.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="8684ca0d-0b4f-49ea-901b-c67405fb7e16",e._sentryDebugIdIdentifier="sentry-dbid-8684ca0d-0b4f-49ea-901b-c67405fb7e16")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=G(),t=U.getLocalizedStrings().commonSetUp.approval,P=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=M({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=W(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let b=p.length>1?p.length-1:0,v=p.length>0?p[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=p.findIndex(d=>d.approvalRuleId===i),v=b>0?p[b-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),z=async(i,d)=>{s(d)};return T.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const q=J(d);K(()=>z($,q))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(H,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:V,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(Q,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[m]:n?[]:[m],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,F as S,V as t,bD as G,T as V,aQ as f,y as r,al as N,o as i,aO as z,bU as P,cq as q,cr as O,cs as F,d1 as K,u as l,ba as J,N as T,b9 as Q,p as j,c_ as X,bu as Y,b as Z}from"./index-
|
|
1
|
+
import{J as W,F as S,V as t,bD as G,T as V,aQ as f,y as r,al as N,o as i,aO as z,bU as P,cq as q,cr as O,cs as F,d1 as K,u as l,ba as J,N as T,b9 as Q,p as j,c_ as X,bu as Y,b as Z}from"./index-Dm-b67Hf.js";import{n as o}from"./mui-BLkKBV85.js";import{a as ee}from"./sentry-C2Rgx3zV.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="d869069e-da18-4e52-a3fb-63d67cf9f96e",e._sentryDebugIdIdentifier="sentry-dbid-d869069e-da18-4e52-a3fb-63d67cf9f96e")}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(-1,-4)},U={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:b,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,M=()=>{h(!0)},_={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(k,{}),t.jsx(le,{}),t.jsx(k,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(R,{$isDisabled:!0,"data-testid":f("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(R,{onClick:M,"data-testid":f("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":f("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{b(x)},"data-testid":f("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,E)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,H)=>t.jsxs(A,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${H}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},E))})}),v?t.jsx(q,{titleComponent:t.jsx(F,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(O,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:_}):null]})},oe=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-JK-VOx4W-CjtFHOzB.js → BillPayPromoPage-CNUoM-3L-1wklXGZ-.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as W,J as
|
|
1
|
+
import{aw as W,J as f,aR as Y,V as e,fu as ee,bD as ie,i as B,aQ as C,ae as m,F as I,o as s,aq as se,R as le,e as U,aU as D,am as oe,y as re,p as $,cF as te,aV as ae,bb as ne,u as de}from"./index-Dm-b67Hf.js";import{a as g}from"./sentry-C2Rgx3zV.js";import{n as l}from"./mui-BLkKBV85.js";import{FA as ce,bS as pe,FB as me}from"./zeni-epic-state-TdgpFmku.js";import{C as xe}from"./VideoPopup-_4nnxGFK-rc_W8uy0.js";import{M as b}from"./usp-line-BBd1wKwW-DBnWZzCO.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./VideoPlayer-D5QP-myQ-CVNLOpWk.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]="8d54b042-673d-4379-80aa-aa8781f9ee26",i._sentryDebugIdIdentifier="sentry-dbid-8d54b042-673d-4379-80aa-aa8781f9ee26")}catch{}})();const M="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -12,7 +12,7 @@ import{aw as W,J as j,aR as Y,V as e,fu as ee,bD as ie,i as B,aQ as C,ae as m,F
|
|
|
12
12
|
margin: auto;
|
|
13
13
|
padding: ${s.sp7} ${s.sp0};
|
|
14
14
|
color: ${i=>i.theme.colors.primary};
|
|
15
|
-
`,
|
|
15
|
+
`,ye=l(se)`
|
|
16
16
|
max-width: 600px;
|
|
17
17
|
margin: auto;
|
|
18
18
|
padding: ${s.sp5} ${s.sp0};
|
|
@@ -23,7 +23,7 @@ import{aw as W,J as j,aR as Y,V as e,fu as ee,bD as ie,i as B,aQ as C,ae as m,F
|
|
|
23
23
|
align-items: center;
|
|
24
24
|
justify-content: center;
|
|
25
25
|
margin-bottom: ${i=>he.midContainerMarginBottom.valuePx(i.windowSize)};
|
|
26
|
-
`,
|
|
26
|
+
`,je=l.div``,x=l.img``,R=l.div`
|
|
27
27
|
width: ${i=>i.windowSize==="small"?"auto":"376px"};
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
@@ -57,9 +57,9 @@ import{aw as W,J as j,aR as Y,V as e,fu as ee,bD as ie,i as B,aQ as C,ae as m,F
|
|
|
57
57
|
color: ${i=>i.theme.colors.champion};
|
|
58
58
|
`,w=l(ae)`
|
|
59
59
|
color: ${i=>i.theme.colors.champion};
|
|
60
|
-
`,
|
|
60
|
+
`,y=l(D)`
|
|
61
61
|
color: ${i=>i.theme.colors.champion};
|
|
62
|
-
`,
|
|
62
|
+
`,j=l(te)`
|
|
63
63
|
color: ${i=>i.theme.colors.champion};
|
|
64
64
|
`,d=l.div``,c=l.div`
|
|
65
65
|
padding-left: ${s.sp3};
|
|
@@ -69,7 +69,7 @@ import{aw as W,J as j,aR as Y,V as e,fu as ee,bD as ie,i as B,aQ as C,ae as m,F
|
|
|
69
69
|
color: ${$.graphColor09Dark};
|
|
70
70
|
`,H=l(b)`
|
|
71
71
|
color: ${$.graphColor28Dark};
|
|
72
|
-
`,
|
|
72
|
+
`,fe=l(oe)`
|
|
73
73
|
margin: ${s.sp3} auto;
|
|
74
74
|
max-width: 719px;
|
|
75
75
|
color: ${i=>i.theme.colors.hero};
|
|
@@ -81,4 +81,4 @@ import{aw as W,J as j,aR as Y,V as e,fu as ee,bD as ie,i as B,aQ as C,ae as m,F
|
|
|
81
81
|
`,be=l(D)`
|
|
82
82
|
margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
|
|
83
83
|
color: ${i=>i.theme.colors.grey1};
|
|
84
|
-
`,r=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Fe=({billPaySetupView:i,analytics:o,meetingUrl:S,videoUrl:Z,onButtonClick:J,onBackClick:O,onSetupBillPaySuccess:z,onClickMenuIcon:Q})=>{const h=W(),a=
|
|
84
|
+
`,r=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Fe=({billPaySetupView:i,analytics:o,meetingUrl:S,videoUrl:Z,onButtonClick:J,onBackClick:O,onSetupBillPaySuccess:z,onClickMenuIcon:Q})=>{const h=W(),a=f(),{billPayTermsDetails:p}=i,[q,G]=g.useState(!1),[K,k]=g.useState(!1),v=Y(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const N=()=>{o?.trackBillPayPromoScheduleDemo(),k(!0)},X=ce(h.loggedInUserRoleMap),P=pe(h.loggedInUserRoleMap)&&!X,T=P?r.setupNonAccessableUsersPromoText:r.promoText;return e.jsxs(ge,{children:[q===!0?e.jsx(xe,{onCancelClick:()=>{G(!1)},videoUrl:Z}):null,K===!0?e.jsx(ee,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ie,{title:r.title,onBackClick:O,showBackButton:!me(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:Q,source:"BillPayPromoPage"}),e.jsxs(ue,{windowSize:a,children:[a==="small"?e.jsx(ye,{children:T}):e.jsx(we,{children:T}),a==="small"?e.jsx(Se,{}):e.jsx(ze,{}),P===!1?e.jsxs(je,{children:[e.jsxs($e,{windowSize:a,children:[e.jsx(B,{variant:"secondary",label:r.scheduleDemoButton,onClick:N,"data-testid":C("billpay-schedule-demo-button")}),e.jsx(be,{windowSize:a,children:r.orText}),e.jsx(B,{variant:"primary",label:r.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:J,"data-testid":C("billpay-setup-button")})]}),e.jsxs(fe,{children:[r.terms.terms1,e.jsx(m,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(m,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(m,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(o?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(m,{href:t.tosUrl,onZeniLinkClick:()=>(o?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,r.terms.terms3]})]}):null]})]})},Se=()=>{const i=U(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsx(V,{windowSize:o,children:e.jsx(F,{windowSize:o,children:i.mode==="dark"?e.jsx(x,{src:A,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(x,{src:M,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(R,{windowSize:o,children:[e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(H,{})}),e.jsxs(c,{children:[e.jsx(j,{children:r.fullyManagedText.bold}),e.jsx(y,{children:r.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(j,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(c,{children:[e.jsx(j,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]})]})]})},ze=()=>{const i=U(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsxs(R,{windowSize:o,children:[e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(H,{})}),e.jsxs(c,{children:[e.jsx(w,{children:r.fullyManagedText.bold}),e.jsx(u,{children:r.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(w,{children:r.multiLevelApprovalText.bold}),e.jsx(u,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(c,{children:[e.jsx(w,{children:r.aiPoweredText.bold}),e.jsx(u,{children:r.aiPoweredText.regular})]})]})]}),e.jsx(V,{windowSize:o,children:e.jsx(F,{windowSize:o,children:i.mode==="dark"?e.jsx(x,{src:A,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(x,{src:M,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Fe as default};
|
package/dist/assets/{BillPaySetUpPage-h0uoCWMl-Cj2xzAhQ.js → BillPaySetUpPage-D_hRCBF5-Imf9v1rc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as _e,J as $e,aR as E,a9 as Oe,cG as Re,F as Ue,aW as Z,V as t,fc as ze,p as He,aQ as Le,y as u,bD as qe,T as Me,ac as Ne,fv as z,dS as Ge,fw as Je,bx as Qe,dI as Ye,bU as Ze,fx as Ke,aS as Xe,o as L,fy as et,u as a,al as tt,bL as it}from"./index-
|
|
1
|
+
import{e as _e,J as $e,aR as E,a9 as Oe,cG as Re,F as Ue,aW as Z,V as t,fc as ze,p as He,aQ as Le,y as u,bD as qe,T as Me,ac as Ne,fv as z,dS as Ge,fw as Je,bx as Qe,dI as Ye,bU as Ze,fx as Ke,aS as Xe,o as L,fy as et,u as a,al as tt,bL as it}from"./index-Dm-b67Hf.js";import{a as m}from"./sentry-C2Rgx3zV.js";import{n as b}from"./mui-BLkKBV85.js";import{bJ as nt}from"./zeni-epic-state-TdgpFmku.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-Bw9ymrDY-BTVIu0dz.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="2bb38b39-d08b-4c12-b025-277e1c8da9e1",e._sentryDebugIdIdentifier="sentry-dbid-2bb38b39-d08b-4c12-b025-277e1c8da9e1")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},K="billPaySetUpPage",D="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=_e(),i=$e(),[A,S]=m.useState(!1),M=m.useRef(null),{fetchState:f,updateStatus:x,accountUpdateStatus:ke,plaidConnectionDetails:W,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,_=W.link_account.updateStatus,$=W.update_account.updateStatus,j=E(f),J=E(x.fetchState),Q=E(_.fetchState),Y=E($.fetchState),P=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>H(e),[e]),values:H(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&j==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed"||Y==="In-Progress"&&$.fetchState==="Completed")&&P.reset(H(e))},[j,f,P,e,Q,_.fetchState,Y,$.fetchState]);const Ve=P.handleSubmit(w=>{y.trackEnableBillPay(),me()}),je=async(w,F)=>{const o=F[D];if(w.includes(D)){if(w.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=N.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const w=P.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>je(o,F))});return()=>{w.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&x.fetchState==="Completed"&&q()},[q,J,x.fetchState]);const{commonSetUp:Be,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Be,{billPaySetup:l}=Fe.billPay,O=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=O?r.setupVerifiedSubTitle:l.setupSubTitle,De=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=k.mode==="light"?new Z(k.colors.brandColorJadeLight):new Z(k.colors.brandColorJadeDark),We=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:He.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:x,onEditFileName:Se,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:M,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),De?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...P,children:t.jsx("form",{id:X(K),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(z,{onClick:We,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:N,plaidConnectionDetails:W,allBankAccounts:Ae,sectionId:D,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(z,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(z,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ze,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&V.length>0?t.jsx(Xe,{formId:X(K),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:x.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:O&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as we,J as be,a9 as xe,cG as Ce,aW as k,F as Pe,V as t,y as C,bD as Ie,T as Ae,ac as ve,bx as je,cH as ke,aS as $e,o as s,hM as Te,e_ as Ve,e$ as De,u as P,al as Be,gV as Ee,p as ze,N as Le}from"./index-
|
|
1
|
+
import{e as we,J as be,a9 as xe,cG as Ce,aW as k,F as Pe,V as t,y as C,bD as Ie,T as Ae,ac as ve,bx as je,cH as ke,aS as $e,o as s,hM as Te,e_ as Ve,e$ as De,u as P,al as Be,gV as Ee,p as ze,N as Le}from"./index-Dm-b67Hf.js";import{a as H}from"./sentry-C2Rgx3zV.js";import{n as r}from"./mui-BLkKBV85.js";import{M as Oe,r as W,o as Me}from"./PaymentAccountSetupBillingAddressSection-DIP_uznB-B7DNBV4H.js";import{F as _e}from"./SetUpAccountSection-CPw8BhAT-Bu28TndH.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="c99773b5-9510-4adc-8215-128812a58923",e._sentryDebugIdIdentifier="sentry-dbid-c99773b5-9510-4adc-8215-128812a58923")}catch{}})();const p={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,P[5],P[5]),iconWidthHeight:new C(20,P[4]),subTitlePaddingTop:new C(12,P[3])},He={title:new Le("standardSemiBold","largeSemiBold")},R="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:U,stripeKey:G,googleAPIKey:J,companyId:K,onUpdateAccountClick:q,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:Q,onEstablishConnectionClick:X,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(i),values:F(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(K)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:w}=a[n].street,j=Ve(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:De(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&q(g.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Ce(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=b.mode==="light"?new k(b.colors.brandColorJadeLight):new k(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=Pe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,z=h.cardsList.length>0,L=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,x=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(L).name}),color:new k(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=H.useState(!1);return t.jsxs(Re,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(We,{windowSize:o,children:[t.jsx(Fe,{windowSize:o,children:ge}),ue?t.jsx(Ne,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(qe,{children:t.jsx("form",{id:N(R),onSubmit:pe,children:t.jsxs(Ue,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:X,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:Q,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ge(o,l.headers.billingAddress,ce,J,d)]})})})}),ke(f.formState.dirtyFields)?t.jsx($e,{formId:N(R),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:U.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:G,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},F=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as
|
|
1
|
+
import{V as f,cq as V,cr as q,cs as M,k9 as W,aZ as Z,F as z}from"./index-Dm-b67Hf.js";import{a as b}from"./sentry-C2Rgx3zV.js";import{Gh as G}from"./zeni-epic-state-TdgpFmku.js";import{u as K}from"./ReviewOverlay-OXnAkRJ_-Di_D_VlI.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./mui-BLkKBV85.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="9809a74c-978e-4c79-8040-71f40d6d864f",e._sentryDebugIdIdentifier="sentry-dbid-9809a74c-978e-4c79-8040-71f40d6d864f")}catch{}})();const{common:s,spendManagement:{billPay:x}}=z.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=b.useState(!1),[n,v]=b.useState(T(e,u)),[p,k]=b.useState(u),[B,E]=b.useState(0),[y,j]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Y(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[C?f.jsx(V,{titleComponent:f.jsx(M,{children:y.title}),descriptionComponent:f.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(K,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:Z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&G(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=W([...l,t.isRecurring?"recurring":"one-time"])}),l},Y=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as l,V as s,aQ as b,o as e}from"./index-
|
|
1
|
+
import{J as l,V as s,aQ as b,o as e}from"./index-Dm-b67Hf.js";import{n as a}from"./mui-BLkKBV85.js";import{o as p}from"./commonDimensions-aMGDpjmW-UhXAGxHS.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="2be375f6-5995-4036-ba1d-3b46012f6736",o._sentryDebugIdIdentifier="sentry-dbid-2be375f6-5995-4036-ba1d-3b46012f6736")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ct,J as dt,aR as Te,V as a,ae as M,a9 as mt,cU as ut,ay as pt,cG as ft,aZ as ve,aP as Ie,gb as yt,i as ht,bD as gt,aQ as xt,cH as St,cq as wt,cr as bt,cs as Ct,T as Dt,ac as Tt,aS as vt,o,y as O,am as Ve,F as Le,gc as It,fz as $e,e_ as $t,R as kt,c as Pt,al as Fe,N as Nt,a as jt,u as k}from"./index-6S2g5oxD.js";import{a as V}from"./sentry-B1J7wTBN.js";import{n as d}from"./mui-wtLp0vbS.js";import{ER as Ot,bi as W}from"./zeni-epic-state-Cs1j8aUi.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-Ck0xqZ0d-DuMewE5F.js";import"./liveblocks-DxN2_B8G.js";import"./core-DhC75twd.js";import"./recharts-Bks4lV7q.js";import"./lottie-BNYbcum9.js";import"./analytics-r9EGBu1Q.js";import"./lexical-B4ox-Oq6.js";import"./utils-OImZ5lg2.js";import"./LabeledAddressValueField-DMcor_I8-DcH2ZThX.js";import"./LabeledCreatableSingleSelectField-DHNAX5Pu-jqxRDHbV.js";import"./LabeledDocumentField-Bx1u7vv_-CY-yp38K.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]="b967450b-8197-4666-971f-659d9e2f9cf6",e._sentryDebugIdIdentifier="sentry-dbid-b967450b-8197-4666-971f-659d9e2f9cf6")}catch{}})();const x={width:new O(343,580,726),titleWidth:new O(343,580,726,826),subTitlePaddingTop:new O(12,k[3]),subTitlePaddingBottom:new O(k[3],k[3]),verificationDetailsRowGap:new O(12,k[5],k[5]),termsPaddingLeftRight:new O(k[0],k[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",C="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:Pe,footer:Ne,strings:{empty:At}}}=Le.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:T,verficationDetailsFetchState:P,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:N,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,onSendForVerificationClick:ze,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ge,onCompanyOfficerUpdated:Me,saveNewAddressInLocalStore:re,onSaveDetailsClick:We,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Je})=>{const Ke=ct(),m=dt(),{updateStatus:z,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Qe=Te(z.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Xe=U==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(M,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(M,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(M,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(M,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ze,J]=V.useState(!1),[G,oe]=V.useState("save"),[K,He]=V.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,B,E,T)}),{isValid:Ye}=u.formState,Q=F?.company.company.companyBillPayInfo,X=F?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?X?.companyVerificationStatus:Q?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,$=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?W(fe):void 0,he=l?.companyDescription,Y=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?W(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;s!=null&&f!=null&&b!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&Y!=null&&xe!=null&&Se!=null&&ge!=null&&Y!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:Y,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${D}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Z!=null&&Z?.length>0)return u.trigger(`${D}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(G!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${D}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(t.concat(s)).fetchState!=="In-Progress"&&Ye&&(et(),ze?.(I),q===!0&&Je?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(D)&&Me?.(s[D])},nt=V.useCallback(pt((t,s)=>{st(t,s)},300),[]);V.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Z=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{J(!1),L();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${D}.${f}.fileIds`).forEach($=>{b.includes($)||t.push($)})}),t.length!==0&&Ge?.(t)},onCancelClick:()=>{J(!1)}},lt=ve(Ie(p),p,Pe.currencySymbol).toUpperCase(),H=j?.code==="pending_review"||j?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Qe==="In-Progress"&&z.fetchState==="Completed"?a.jsxs(Yt,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Ht,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Ke.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?J(!0):L()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ze===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),P==="In-Progress"||P==="Not-Started"?a.jsx(Gt,{children:a.jsx(Dt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:je(ke),onSubmit:it,children:[h&&S===!0&&a.jsxs(Rt,{children:[a.jsxs(Jt,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:H?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!H&&a.jsx(Qt,{children:a.jsxs(Xt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Zt,{})]})})]}),a.jsx(_e,{isReadonly:H,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Mt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:T,allOfficers:Z??[],sectionId:D,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:r,authParams:A,isPopupOpen:K,openPopup:He,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Wt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),P==="Completed"&&(y==="zeni_treasury"?X?.companyVerificationStatus?.code!=="pending_review"&&X?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:je(ke),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:G==="verification"&&z.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:G==="save"&&z.fetchState==="In-Progress",onClick:()=>{if(S)L();else{const t=w[I],s=l?.primaryContactLocalData;G!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?W(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?W(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),We?.(I))}}},helperText:Xe,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Bt=(e,T,P,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=e,B=Le.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:T?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[D]:Object.values(A).map((p,N)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${N+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:P?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,n?.userFiles??[],h),back:$e(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},je=e=>`${e}_form`,Et=d.div`
|
|
1
|
+
import{e as ct,J as dt,aR as Te,V as a,ae as M,a9 as mt,cU as ut,ay as pt,cG as ft,aZ as ve,aP as Ie,gb as yt,i as ht,bD as gt,aQ as xt,cH as St,cq as wt,cr as bt,cs as Ct,T as Dt,ac as Tt,aS as vt,o,y as O,am as Ve,F as Le,gc as It,fz as $e,e_ as $t,R as kt,c as Pt,al as Fe,N as Nt,a as jt,u as k}from"./index-Dm-b67Hf.js";import{a as V}from"./sentry-C2Rgx3zV.js";import{n as d}from"./mui-BLkKBV85.js";import{ER as Ot,bi as W}from"./zeni-epic-state-TdgpFmku.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-C_S5WXms-iJZMGPb2.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./LabeledAddressValueField-Ckm80g0_-fddiRWcN.js";import"./LabeledCreatableSingleSelectField-CWhimq6W-CiffZWxa.js";import"./LabeledDocumentField-z2O1tykl-BOR0XPyM.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]="f82e7c9b-5331-4f4c-acbe-66fae8dc1ed6",e._sentryDebugIdIdentifier="sentry-dbid-f82e7c9b-5331-4f4c-acbe-66fae8dc1ed6")}catch{}})();const x={width:new O(343,580,726),titleWidth:new O(343,580,726,826),subTitlePaddingTop:new O(12,k[3]),subTitlePaddingBottom:new O(k[3],k[3]),verificationDetailsRowGap:new O(12,k[5],k[5]),termsPaddingLeftRight:new O(k[0],k[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",C="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:Pe,footer:Ne,strings:{empty:At}}}=Le.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:T,verficationDetailsFetchState:P,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:N,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,onSendForVerificationClick:ze,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ge,onCompanyOfficerUpdated:Me,saveNewAddressInLocalStore:re,onSaveDetailsClick:We,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Je})=>{const Ke=ct(),m=dt(),{updateStatus:z,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Qe=Te(z.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Xe=U==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(M,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(M,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(M,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(M,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ze,J]=V.useState(!1),[G,oe]=V.useState("save"),[K,He]=V.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,B,E,T)}),{isValid:Ye}=u.formState,Q=F?.company.company.companyBillPayInfo,X=F?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?X?.companyVerificationStatus:Q?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,$=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?W(fe):void 0,he=l?.companyDescription,Y=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?W(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;s!=null&&f!=null&&b!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&Y!=null&&xe!=null&&Se!=null&&ge!=null&&Y!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:Y,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${D}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Z!=null&&Z?.length>0)return u.trigger(`${D}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(G!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${D}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(t.concat(s)).fetchState!=="In-Progress"&&Ye&&(et(),ze?.(I),q===!0&&Je?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(D)&&Me?.(s[D])},nt=V.useCallback(pt((t,s)=>{st(t,s)},300),[]);V.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Z=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{J(!1),L();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${D}.${f}.fileIds`).forEach($=>{b.includes($)||t.push($)})}),t.length!==0&&Ge?.(t)},onCancelClick:()=>{J(!1)}},lt=ve(Ie(p),p,Pe.currencySymbol).toUpperCase(),H=j?.code==="pending_review"||j?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Qe==="In-Progress"&&z.fetchState==="Completed"?a.jsxs(Yt,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Ht,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Ke.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?J(!0):L()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ze===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),P==="In-Progress"||P==="Not-Started"?a.jsx(Gt,{children:a.jsx(Dt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:je(ke),onSubmit:it,children:[h&&S===!0&&a.jsxs(Rt,{children:[a.jsxs(Jt,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:H?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!H&&a.jsx(Qt,{children:a.jsxs(Xt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Zt,{})]})})]}),a.jsx(_e,{isReadonly:H,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Mt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:T,allOfficers:Z??[],sectionId:D,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:r,authParams:A,isPopupOpen:K,openPopup:He,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Wt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),P==="Completed"&&(y==="zeni_treasury"?X?.companyVerificationStatus?.code!=="pending_review"&&X?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:je(ke),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:G==="verification"&&z.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:G==="save"&&z.fetchState==="In-Progress",onClick:()=>{if(S)L();else{const t=w[I],s=l?.primaryContactLocalData;G!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?W(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?W(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),We?.(I))}}},helperText:Xe,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Bt=(e,T,P,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=e,B=Le.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:T?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[D]:Object.values(A).map((p,N)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${N+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:P?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,n?.userFiles??[],h),back:$e(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},je=e=>`${e}_form`,Et=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as f,V as r,F as m,b as y,o as a,N as w,a as x}from"./index-
|
|
1
|
+
import{J as f,V as r,F as m,b as y,o as a,N as w,a as x}from"./index-Dm-b67Hf.js";import{n as o}from"./mui-BLkKBV85.js";import{a as c}from"./sentry-C2Rgx3zV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="ae1b84e7-b3b0-49b9-8fed-c5e205e2ede5",e._sentryDebugIdIdentifier="sentry-dbid-ae1b84e7-b3b0-49b9-8fed-c5e205e2ede5")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=m.getLocalizedStrings(),C={subText:new w("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=f(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,b=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${b}`,children:[h,r.jsx(H,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},v=o(x)`
|
|
2
2
|
${e=>e.forDetailPage?{...y.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|