@zeniai/web-cockpit-ui 1.14.62-qa → 1.14.63-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-C9GD0hCH-BjgIixGR.js → ACHDetailsPage-QkOAxB4j-BwmsngrU.js} +1 -1
- package/dist/assets/{AIPerformancePage-B0Adp0wg-BENvGSD8.js → AIPerformancePage-POiv6dgZ-BKgnVS14.js} +1 -1
- package/dist/assets/{AccountInfoPage-BSxUquf3-CVXqrpiM.js → AccountInfoPage-DpzAjyd0-CKJdFzLl.js} +3 -3
- package/dist/assets/{AccountInfoPageContent-8V3PDzEc-Co1a4vxf.js → AccountInfoPageContent-BrPhtN53-CjBlOxg5.js} +15 -15
- package/dist/assets/{AccountLockedInfoModal-7bhpExx3-DWUCsu-t.js → AccountLockedInfoModal-D1ZHYvRy-C9tYFXcu.js} +4 -4
- package/dist/assets/{AccountReconDetailsDrawerPage-jTH8M9iA-Aoa7lkw7.js → AccountReconDetailsDrawerPage-CubIO376-CtKM65LB.js} +12 -12
- package/dist/assets/{AccountRow-BpoPw0Cq-6rjrYRQx.js → AccountRow-DTdcfEa8-U3MpTECA.js} +12 -12
- package/dist/assets/{AccountsPromoCardStack-gsG5tf8_-DHp17pPu.js → AccountsPromoCardStack-CwDbKaNJ-1hCsTiEX.js} +9 -9
- package/dist/assets/{AddAddressForCardDrawer-CMF3Il-u-Cpb6hsZ-.js → AddAddressForCardDrawer-CniAAcX8-D363vOD8.js} +2 -2
- package/dist/assets/{AddToWalletPage-CpWP7Kpn-CSqVUMRE.js → AddToWalletPage-DOG6ubAY-BGRDDIey.js} +12 -12
- package/dist/assets/{AgingReportsPage-DEQ2pO0Y-yRrwplt0.js → AgingReportsPage-Dbtn1PKG-CbUghZ5Y.js} +5 -5
- package/dist/assets/{AllUserItems-D0SR0Oue-DtcPCB6_.js → AllUserItems-Dth5Uovp-tGFNdHax.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-BA-wKCiF-DQrPP1v5.js → ApAgingDetailPage-C6C-aYG7-Dbv3SH4D.js} +2 -2
- package/dist/assets/{AppBasePage-DFn4TCyI-Cc5DLAg0.js → AppBasePage-CtnXt_EV-BSPuX6dn.js} +6 -6
- package/dist/assets/{AppDrawerContent-CBG4Ybue-ByqvB6J0.js → AppDrawerContent-DnrQdYVp-D2qog1EV.js} +2 -2
- package/dist/assets/{ApprovalRulesSettingsPage-CpjHazzI-Cks7NfZS.js → ApprovalRulesSettingsPage-BEOQl822-CbUsx0mD.js} +4 -4
- package/dist/assets/{ArAgingChart-BDISnDae-CyesneCU.js → ArAgingChart-B9rpCcBM-q8jdb__E.js} +5 -5
- package/dist/assets/{ArAgingDetailPage-Cgqf_0fL-Cq89JxEo.js → ArAgingDetailPage-BKsCQCpu-jNIcx6Tl.js} +1 -1
- package/dist/assets/{AttachmentView-X1k01Vtr-B7_QU-hD.js → AttachmentView-DEE6AWkv-B1086jMd.js} +1 -1
- package/dist/assets/{BankAccountSection-CrxSDsgw-ktUyjJcn.js → BankAccountSection-D8_5fjrd-BCE6WYWF.js} +4 -4
- package/dist/assets/{BankAccountWarningSection-Dpt8yOKi-CoN6e059.js → BankAccountWarningSection-CMrRr8aa-BT7FUFGR.js} +7 -7
- package/dist/assets/{BankConnectionsSettingsPage-Uzhaoi7g-mD1d5FDq.js → BankConnectionsSettingsPage-BUwkPoK_-Baxx5R77.js} +41 -41
- package/dist/assets/{BillDetailPage-DcyikS7i-BdNFKGGl.js → BillDetailPage-DcGxex6B-g3MH8yQi.js} +10 -10
- package/dist/assets/{BillPayApprovalRuleDetailPage-aM8F15Nu-CKOcRZID.js → BillPayApprovalRuleDetailPage-B4OuTcAA-Bkq-QU-5.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B46FwPVR-D-g0Yiyo.js → BillPayApprovalRulesPage-DaCdVMRx-DKi7a9ar.js} +4 -4
- package/dist/assets/{BillPayPromoPage-DtVzdlsy-C9OmQlVi.js → BillPayPromoPage-DBlGsv9D-BevFRtNT.js} +8 -8
- package/dist/assets/{BillPaySetUpPage-BKdNiQf7-Cc4m50Uo.js → BillPaySetUpPage-A4zcT_mP-BkNiC1Xc.js} +2 -2
- package/dist/assets/{BillingSettingsPage-3AgPTFzN-DilAG0t1.js → BillingSettingsPage-CujTn-BW-DGU5_gJ4.js} +1 -1
- package/dist/assets/BillsBulkReviewDrawerPage-Cs779Xc4-D5R5rhwS.js +1 -0
- package/dist/assets/{BoxItem-Dsoq6QyZ-B-WatMIw.js → BoxItem-imggFWL_-C8e_yZct.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DSkBV_II-D7barBYM.js → BusinessVerificationPage-U_lU2O0k-B63nfdcn.js} +4 -4
- package/dist/assets/{CardNumberSubText-Crk5WDQr-DYNdDxcR.js → CardNumberSubText-Ct0mJOMk-DQXdeyZe.js} +2 -2
- package/dist/assets/{CashbackDetailPage-BZAFRMGW-DHwMsEnN.js → CashbackDetailPage-GMncsgDy-DzCIgTYK.js} +17 -17
- package/dist/assets/ChargeCardDetailPage-BQvjt_rh-Dc8yPFPr.js +1462 -0
- package/dist/assets/{ChargeCardListPage-CIV1XQK1-D6N1OvLo.js → ChargeCardListPage-BJgzJ53p-D4N85pU_.js} +9 -9
- package/dist/assets/{ChargeCardListTable-Dxn8Y17P-YJscyrM8.js → ChargeCardListTable-BD4N2FtO-DrTuKtln.js} +49 -49
- package/dist/assets/{ChargeCardPromoPage-B6yTGsIY-DmZGR1jp.js → ChargeCardPromoPage-BQMfHfHp-DuUPUl6t.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-HHFdpsmJ-D4Ma056g.js → ChargeCardSetupPage-DO1cXZF4-CWlYdj31.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-tuV67f3k-CgpUYkHr.js → ChargeCardStatementsPage-0rBvkIU1-NpKk50PX.js} +5 -5
- package/dist/assets/ChargeCardUtils-Cy5rZlIH-BILI0sIl.js +1 -0
- package/dist/assets/{ChaseOverlay-B2pqFXTT-Df2Ezv28.js → ChaseOverlay-Dqg_bWdn-C8vTlyWM.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-DDXZ3m54-qWYP5ABn.js → CheckDepositDrawerPage-BzzWhLjb-CVED41XL.js} +15 -15
- package/dist/assets/{CollapsableReportTable-BLDh7Osv-DfaYwLVz.js → CollapsableReportTable-CwhNUlX5-CGrdBCh6.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Dg3sn5Sh-Cu3GX4FJ.js → CompanyOfficerDetailsSection-BHXF7g6M-BrZ1ZKbF.js} +1 -1
- package/dist/assets/{CompanyPassportCard-2HnVDVVi-zGfwT0EU.js → CompanyPassportCard-Dd4Modb9-C23aPg6a.js} +6 -6
- package/dist/assets/{CompanyPassportPage-DlGllnaL-QVy4YULg.js → CompanyPassportPage-Bh2JSIAW-rjC4pxXL.js} +20 -20
- package/dist/assets/{CompleteProfile-kFGIESms-Dkk-z6t0.js → CompleteProfile-CAtziP70-DuSPFP1s.js} +1 -1
- package/dist/assets/{ConfettiBurst-D5IgJ5P3-E65_x1se.js → ConfettiBurst-DvSGcRZX-C_PjMyTg.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D8IFFcdA-StbUiZfz.js → CreateOrEditVendorPage-Csorfbun-CNt6xuOL.js} +9 -9
- package/dist/assets/{CreditCardPaymentDrawerPage-Xu0psAw0-D0gZCtxQ.js → CreditCardPaymentDrawerPage-DAw1GyrP-BNs6qoGC.js} +12 -12
- package/dist/assets/{CreditCardPaymentPlgSection-CqvgalYj-CUdjrO8S.js → CreditCardPaymentPlgSection-HikR7OVv-BCZXDr8I.js} +6 -6
- package/dist/assets/{CurrencySelectField-hwgVPqTt-B9olol6q.js → CurrencySelectField-BW71th1E-DHxO3UVa.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CBFhWSJz-D-QIEuJy.js → CustomerOnboardingActivationPage-t4YirGGH-BQcXqlYq.js} +7 -7
- package/dist/assets/CustomerOnboardingContainerPage-BFE2DU3a-C9v_itD5.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B2q2tdnD-Dfe_cett.js → CustomerOnboardingDetailPageSkeleton-CWWXhhJn-DacLmheB.js} +10 -10
- package/dist/assets/{CustomerOnboardingNoStepsPage-BsNq90nq-DjNSGy04.js → CustomerOnboardingNoStepsPage-YdWEMnwL-BhhMIya_.js} +2 -2
- package/dist/assets/{CustomerOnboardingPage-BbGV3jtT-Bcwahrb4.js → CustomerOnboardingPage-C-WAF_MK-0e07LkOq.js} +5 -5
- package/dist/assets/{CustomerOnboardingProductSuitePage-R2PJEOqZ-BTVhd0Re.js → CustomerOnboardingProductSuitePage-CxwXw5lA-8eL0zyfM.js} +10 -10
- package/dist/assets/{Dashboard-Cw4u8_9e-DbBlW7ig.js → Dashboard-Cp0UY0M3-DrmBKQin.js} +1 -1
- package/dist/assets/{DashboardReportPage-ls_MMfAh-Cmzgt21g.js → DashboardReportPage-Bsr_1Vfu-CrZaa5CE.js} +6 -6
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C_9jGJQn-CW-EldD9.js → DashboardSidebarBackgroundAnimation-BvgNiAXF-CXiqzdPm.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BLgpyexV-DDsSN6D0.js → DepositAccTransactionItem-Cm5lhc_H-Db7mfK10.js} +2 -2
- package/dist/assets/{DepositAccTransactionListPage-r4UVSUOl-WIgqF2oB.js → DepositAccTransactionListPage-CHwS-_Nr-DFBxFwkp.js} +3 -3
- package/dist/assets/{DomesticWireDetailsPage-BSXsHwf5-CyInh1Li.js → DomesticWireDetailsPage-mqJgiAC--4FLLq-KS.js} +1 -1
- package/dist/assets/{DownloadOverlay-DKpj3Vwl-jr69kEjZ.js → DownloadOverlay-DwPR_SsY-EUTGOsKd.js} +21 -21
- package/dist/assets/{DrawerPage-Cxz5I3Mb-CqHagX_L.js → DrawerPage-CR2L2ry3-DOZs2EHb.js} +14 -14
- package/dist/assets/{EditPeoplePage-Dbsa013z-BNUYit4n.js → EditPeoplePage-DiNxeKXK-BiaRAv0O.js} +5 -5
- package/dist/assets/{EditReimbursementDetailPage-Clpj3Hjz-CVKUzeEp.js → EditReimbursementDetailPage-5TJ4Spw1-CpwzkfQj.js} +64 -64
- package/dist/assets/{EntityDetailPage-C73BtWIp-D8wpNNd0.js → EntityDetailPage-CYDIH-NA-wQQfd0jW.js} +3 -3
- package/dist/assets/{EntitySummarySection-BQA0g-pF-CbGAmbu8.js → EntitySummarySection-Cv7t21-t-DI0hIJYP.js} +5 -5
- package/dist/assets/{ExpenseAutomationOverviewPage-BxEr0k8F-BHqR9wAC.js → ExpenseAutomationOverviewPage-Cwl9dV2--DfcmKBVV.js} +17 -17
- package/dist/assets/{ExpenseAutomationPage-BS4M9nkW-ufxTsQbf.js → ExpenseAutomationPage-LMBRJxAv-Vn9lo85n.js} +26 -26
- package/dist/assets/{ExpressPayPage-Buxb2M1i-B9fAQlVA.js → ExpressPayPage-CCF0jSlI-C7_sWp9b.js} +6 -6
- package/dist/assets/{FeaturePreviewPage-ClfFYnHb--gXnRz9K.js → FeaturePreviewPage-POKsqSnu-BhWwdsL7.js} +2 -2
- package/dist/assets/{FollowStepsSection-CkQ-g4YK-dr6FAmOd.js → FollowStepsSection-BZdlZelr-Dgb2aUZZ.js} +21 -21
- package/dist/assets/{GlobalReviewListPage-C_DbsHsA-C6phfeex.js → GlobalReviewListPage-BnmMh-Bc-CYAA0kUn.js} +13 -13
- package/dist/assets/{HelpButton-B0ZBXPeh-BorgPtfn.js → HelpButton-Cp2LXxyy-C5Y06Y1n.js} +4 -4
- package/dist/assets/{InformationCardStack-DYdCt7zr-r9qdYJzs.js → InformationCardStack-CiYqiW7_-CbY8PLVD.js} +4 -4
- package/dist/assets/{InsightsCardStack-BSHQznep-BMkYmRhd.js → InsightsCardStack-BnVrehfR-CN-oMur2.js} +2 -2
- package/dist/assets/{InsightsSection-C37BKIiK-RNlgGAPQ.js → InsightsSection-BpVW6ov6-CBRdcxmz.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-DHAdlHrq-CMWIwf7T.js → IntegrationsSettingsPage-CaAahFPb-BYVW6C7U.js} +8 -8
- package/dist/assets/{InternationalWireSwiftDetailsPage-B64WNt28-uVg2-6eP.js → InternationalWireSwiftDetailsPage-DcwbldkC-BB32EMRa.js} +8 -8
- package/dist/assets/{InternationalWireVerificationPage-D7ttGovC-D_Anpl8k.js → InternationalWireVerificationPage-7XDbU2GY-Dyfkxo3B.js} +7 -7
- package/dist/assets/{InviteFormPage-BhbGM4dC-C9bKqONR.js → InviteFormPage-Dgv7jdgF-DVviW_Nt.js} +1 -1
- package/dist/assets/{InvitePageListView-CyRlLv60-B6D8YcCC.js → InvitePageListView-DlpINjRJ-BMeTuOsJ.js} +11 -11
- package/dist/assets/InvitePeoplePage-0YsY4Il7-B0pE52_Y.js +12 -0
- package/dist/assets/{InvoiceUploadSection-BPPgbS-r-BHrBDY3d.js → InvoiceUploadSection-DzzjJVfz-KKaBZftU.js} +5 -5
- package/dist/assets/{IssueChargeCardPage-D_qQkkfo-CSsCg8Db.js → IssueChargeCardPage-BeB9egJS-Buw9rvK5.js} +20 -20
- package/dist/assets/{LabeledAddressValue-EshVNGGW-Cb2uc0dZ.js → LabeledAddressValue-D6advpnC-6YH6AS3A.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-kgieouBM-DzNGhdp0.js → LabeledAddressValueField-DRBoA2eb-CWryzMa2.js} +2 -2
- package/dist/assets/{LabeledControlledCheckBoxField-CWABc6OK-ClMxBsh8.js → LabeledControlledCheckBoxField-Bu2WHgAQ-BgnuqupP.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B5o1KUJj-BE5hL6KZ.js → LabeledCreatableSingleSelectField-DcdF286I-C7Y6s3yv.js} +7 -7
- package/dist/assets/{LabeledDocumentField-BrXpwWfM-CV_EVAk8.js → LabeledDocumentField-B25RLa6I-jFD7YVyX.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-Cepl3y9a-BvaaA7qv.js → LabeledDropDownFormattedTextField-DoK5Zfc1-HbMH9wCe.js} +1 -1
- package/dist/assets/{LabeledText-BmFLymPb-D54qw5X_.js → LabeledText-depbwNsM-DXrsYHkA.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CBbnTiwl-DEzr-9kh.js → LabeledUserSingleSelectWithSubtitlesField-BURpXN_N-Xj7wxd7w.js} +8 -8
- package/dist/assets/{LabeledZeniRolesDropDownField-Da9mc-0B-C30aMHy1.js → LabeledZeniRolesDropDownField-TbyaA8M3-DTROc_uU.js} +7 -7
- package/dist/assets/{LinkJETransactionPage-DIhsx2g--Cp1GItTZ.js → LinkJETransactionPage-BITHs1CJ-Y1_ePi-m.js} +7 -7
- package/dist/assets/{LockCardPage-BA4Lj9Iy-DqX49N3M.js → LockCardPage-DPBKHSos-D1Lau_ZJ.js} +15 -15
- package/dist/assets/{LowBalancePopup-B1pTBmAF-DMsL8GAq.js → LowBalancePopup-D2G3wpXv-BCydjVKG.js} +3 -3
- package/dist/assets/{MagicLinkACHDetailsPage-BxzbJBWO-Wf8wA2-U.js → MagicLinkACHDetailsPage-Be7GMhBd-D3Y_9hTy.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-DB2tBUoV-BR3Unx7y.js → MagicLinkDomesticWireDetailsPage-C9d2Ea6m-DiWMiwF8.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-0B5pD_Iw-BHMic-Rc.js → MagicLinkInternationalWireDetailsPage-B2M9WztX-B6F5ppQ2.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-3I1CRYrj-Ca4cu0D0.js → MagicLinkSuccessPage-DPb0UoGh-y5M5nnWg.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-BKgwdBLy-BT7ZZklR.js → MagicLinkTitleSection-Cc-MU2bJ-DSi2szeX.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BwEd_J6R-DkUc8Lj3.js → MailingDetailsSection-8mj7Lslp--SKJjx0D.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-BpRpGSe6-DG2NWgbm.js → MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js} +1 -1
- package/dist/assets/{Menu-De_gaVnj-BIvr4lYg.js → Menu-ndvXF6cX-B4y3KuMr.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-lChXBDCb-DU5DVhxi.js → MyBankConnectionsSettingsPage-DuZFVLYx-VAbH3B5M.js} +4 -4
- package/dist/assets/{MyPendingActivationChargeCardListPage-D3di8BeS-DKJC-Hoj.js → MyPendingActivationChargeCardListPage-DDIlU_fs-C-bYuxLR.js} +2 -2
- package/dist/assets/{MyProfileSettingsPage-CYI4yK6I-lkqzLNrj.js → MyProfileSettingsPage-CccRK9mD-BRFADFUO.js} +3 -3
- package/dist/assets/{NavBarWithPicker-DcELUvq0-C5N2yjZ3.js → NavBarWithPicker-D_MqRubB-D8dMZBv7.js} +6 -6
- package/dist/assets/{NavigationArrow-W1nVj2KC-CB3-WbW2.js → NavigationArrow-CfMVfLD8-BQnWEdPn.js} +1 -1
- package/dist/assets/{NavigationDots-BKVFhe2Y-BXA4iaa-.js → NavigationDots-E2eEHB86-BK4Og9YA.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DRrjJgZt-B35zjD-s.js → NewGlobalMerchantPage-vXrz_DRg-Wc9088Ea.js} +7 -7
- package/dist/assets/{NoDataChart-BzSCComh-TCsmvHP1.js → NoDataChart-CpocQ1Pa-ChFzAJ2R.js} +1 -1
- package/dist/assets/{NoDataTable-CGWMbvak-D6mzGtG9.js → NoDataTable-937mkn0a-D0ksTITz.js} +2 -2
- package/dist/assets/{NotFoundPage-DfRFngFV-Cvi4-w7R.js → NotFoundPage-BmxF81mT-B9r6velH.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BTJH62-O-BjEAiv3V.js → NotificationSettingsPage-DyOyHW6d-DehMDImE.js} +20 -20
- package/dist/assets/{NotificationsListConfig-DPutUxp3-B-f9mabS.js → NotificationsListConfig-DVs7cr0d-wmSn6l3s.js} +1 -1
- package/dist/assets/{NotificationsPage-xu6A1hVF-PuoNi3-5.js → NotificationsPage-ntuZjRm--CaQvtRPb.js} +24 -24
- package/dist/assets/{OpExByVendorPage-BeO7iMry-ChO0CL0F.js → OpExByVendorPage-1MOdxG9V-BhrPpCQQ.js} +5 -5
- package/dist/assets/{OverlayContainerPage-CU1AAMcq-C97TuWW_.js → OverlayContainerPage-CU1AAMcq-lFQCSe-G.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-1qSy3_Ke-BkoKktpJ.js → PandLWithForecastPage-n4fiElGl-BTwNmE3c.js} +8 -8
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DnObHdjD-Dxj4lh2G.js → PaymentAccountSetupBillingAddressSection-CXcwA0ON-KeSy0gEv.js} +8 -8
- package/dist/assets/{PeoplePage-CPqz8R9j-B70ykgrs.js → PeoplePage-BvZkMpjW-D7ElTICV.js} +13 -13
- package/dist/assets/{PortfolioAllocationFormPage-C9ZM9oUf-DJFvzQ8r.js → PortfolioAllocationFormPage-B7AKufjq-BCZV66E3.js} +3 -3
- package/dist/assets/{PortfolioDetails-BJBNPfcI-BtgJ2hbs.js → PortfolioDetails-C85yA52O-BcnUojwW.js} +7 -7
- package/dist/assets/{ProductsCarousel-Ctx00P5D-BTEQtLvG.js → ProductsCarousel-ixHCR9AW-BHD947gD.js} +4 -4
- package/dist/assets/{PromoBaseCards-BGYdfmx6-Dtat0fyc.js → PromoBaseCards-DiefKKcS-CVepNaw-.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-B9yKv9hq-DoLz2hIj.js → QBOConnectionDialog-DV-xC7Yc-6uoxl-nC.js} +1 -1
- package/dist/assets/{QBOSetupSection-CTMSCXwv-CxubTHdL.js → QBOSetupSection-CI8cHWjq-CNHezBrT.js} +8 -8
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BtZUsK7H-Dzk_bMVd.js → ReimbursementApprovalRuleDetailPage-CqnCqZ5F-MbrRP60p.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DNBHPoIZ-BlN6Jytr.js → ReimbursementApprovalRulesPage-DxoNMA62-DOLuIxNO.js} +2 -2
- package/dist/assets/{ReimbursementDetailPage-BxZ5ijHe-zurm2_Gr.js → ReimbursementDetailPage-CTvPAxMB-BlP7rQJ5.js} +7 -7
- package/dist/assets/{ReimbursementPromoPage-D284EkRZ-BcIIXtzk.js → ReimbursementPromoPage-DcxPNTHd-asHPfKWE.js} +9 -9
- package/dist/assets/{ReimbursementSetUpPage-BzR91_eW-CldLpq0B.js → ReimbursementSetUpPage-SQo-xrwo-BuAAGp_P.js} +7 -7
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BMo9fFp7-CeRLlDSr.js → ReimbursementsBulkReviewDrawerPage-y4v-8gQs-b-mXMP5z.js} +1 -1
- package/dist/assets/{ReloadCard-CGUNX_x4-Dbmvt1Tw.js → ReloadCard-CWZU9IDv-lCmqRueL.js} +3 -3
- package/dist/assets/{ReportTableViewSelector-BVAek1Ui-C_slHbQ8.js → ReportTableViewSelector-t3pgCiJb-DU7QbDSE.js} +5 -5
- package/dist/assets/{ReportsPage-BzKbMWV4-nYQmduZj.js → ReportsPage-D82gQH-e-Ckp9VR2p.js} +1 -1
- package/dist/assets/{RevenueChart-CPUrVR7y-BAuj7ArI.js → RevenueChart-BMgI2BHK-I-njStGG.js} +13 -13
- package/dist/assets/{ReviewDetailsPage-B74yrCe2-VCXhCYb5.js → ReviewDetailsPage-Dc7dY-VA-CxSy8KVL.js} +3 -3
- package/dist/assets/{ReviewOverlay-DQvXSDYM-DyF1UXZO.js → ReviewOverlay-Bra2W5Jg-C_PWInnU.js} +4 -4
- package/dist/assets/{RoleWithToolTip-MwI_BmVq-Ds1A2gyK.js → RoleWithToolTip-DJ15AsI3-p10xCSND.js} +2 -2
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CbkRYKjG-CqEHYps-.js → ScheduleDetailsFixedAssetsPage-DoH2eyLG-BrozO2ME.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-CCRspH3Y-CPpcmXd0.js → ScheduleDetailsPage-BM1Paa1W-C0ySlnA2.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-55zYXNwF-DUs0PlZE.js → ScheduleSequenceTable-C8UB3y1y-CNI-a_wl.js} +7 -7
- package/dist/assets/{ScreenRoutes-Ba12Q0HX.js → ScreenRoutes-_3xGjUU-.js} +41 -41
- package/dist/assets/{SetUpAccountSection-IgQjKWEr-Bxp6vD4c.js → SetUpAccountSection-BGdUkQz3-D6CAjYv7.js} +7 -7
- package/dist/assets/{SetUpDefaultSection-shC3qOy6-C49ph3xE.js → SetUpDefaultSection-C4NnRO65-C0fyZc92.js} +10 -10
- package/dist/assets/{SignIn-CZGmLYjH-DHcDyA10.js → SignIn-BrHA4sLj-DDyEN7b5.js} +1 -1
- package/dist/assets/SignInScreen-Cx7qc3RP.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-BhTnQtma-CCGqdAUI.js → SpendManagementListViewPage-Dqb0zspN-DreMX5hh.js} +4 -4
- package/dist/assets/{SpendManagementPerTabPage-DpnIM6Nc-1ZBcChPe.js → SpendManagementPerTabPage-D5xIpojr-P0_AnHoz.js} +14 -14
- package/dist/assets/{SpendManagementSection-Hjvwgkt0-D6Yvpvz4.js → SpendManagementSection-C2iof2aM-Bp9C8eeM.js} +7 -7
- package/dist/assets/{SpendMgmtSetupAccountSection-CAWyEGGM-D_Y5M2MY.js → SpendMgmtSetupAccountSection-Dz3vQC2g-P6jfr6Bz.js} +6 -6
- package/dist/assets/{StatementItem-D8v_Laju-B8GfRoNo.js → StatementItem-BOgmKBTq-DcvmbOpL.js} +5 -5
- package/dist/assets/{StatementsPage-CEw-9UyR-BcqGoaDU.js → StatementsPage-ClMtBDGf-DWR5BFTu.js} +4 -4
- package/dist/assets/{StatusSwitcher-DoSCydJG-CoBpz-TS.js → StatusSwitcher-QwlvHg3_-DRNWj6rt.js} +2 -2
- package/dist/assets/{SubTabSwitcher-Ct1DqfgC-Bibz1hGv.js → SubTabSwitcher-CiJ1FPk5-CEwKyb-x.js} +1 -1
- package/dist/assets/{SummaryCard-CHUbuF_0-CaC0zRzW.js → SummaryCard-D1B_1H2X-Lh7q95p7.js} +1 -1
- package/dist/assets/{TaskManagementPage-Ddox5Vwh-D5D4JTV5.js → TaskManagementPage-DibwJCOk-BF0_AhRU.js} +14 -14
- package/dist/assets/{TimeRangeSwitcher-CiOSsTU--CLsRcOaL.js → TimeRangeSwitcher-Ci3SxLOE-anbVhnvw.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-D1k1Zf_U-DTp5-FTG.js → TimeframeSwitcher-DSRKJTq1-BG9pQPgY.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DXbaoDe6-yq3iZa4P.js → TimeframeSwitcherWithToggle-D_BNOfdQ-BKTbCmic.js} +1 -1
- package/dist/assets/{TopExCard-D4ZDqXZg--brQ_iDE.js → TopExCard-C5622MiP-2KEQHijQ.js} +4 -4
- package/dist/assets/{TopExDetailPage-BdPAcKwH-BWvPRR7r.js → TopExDetailPage-qOhQ-KAG-fVnbyWbs.js} +6 -6
- package/dist/assets/{TransactionDetailPage-BcjGxHy8-CFPVJudJ.js → TransactionDetailPage-DaCUZuc0-DAUodm_m.js} +13 -13
- package/dist/assets/{TransactionList-BSuMEtB3-CoYwx3Sx.js → TransactionList-CzdU-NQx-D6gdr6x7.js} +6 -6
- package/dist/assets/{TransactionListBig-MY_ZxyR3-BlvU2xVi.js → TransactionListBig-Bq7XI_xx-DjK27aH5.js} +11 -11
- package/dist/assets/{TransactionListPage-CWGrWDjK-1Jg_-UFD.js → TransactionListPage-CZDewehT-BcmO71OJ.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-DDNK9KrI-navYrc-G.js → TransactionVendorDetailPage-Bf5UUIC6-DQ0SU60H.js} +3 -3
- package/dist/assets/{TransferDrawerPage-vK0YoMro-D8CyUH8N.js → TransferDrawerPage-yQE7GKl_-BiU7RlMv.js} +17 -17
- package/dist/assets/{TreasuryOverviewPage-CQsUti1c-Ba68New5.js → TreasuryOverviewPage-CisB53k8-CkomXNIa.js} +20 -20
- package/dist/assets/{TreasuryPromoPage-Bp72hKEs-NvukScyd.js → TreasuryPromoPage-BfISVj15-BKUZCqqQ.js} +11 -11
- package/dist/assets/{TreasurySetupPage-BUKsU3nh-kC1qSXYk.js → TreasurySetupPage-SN-3mAFw-C_4PPIWf.js} +2 -2
- package/dist/assets/{TreasuryStatementsPage-Cryv1PNX-DcPIDQHV.js → TreasuryStatementsPage-DGyug1wv-CZKI-qyS.js} +5 -5
- package/dist/assets/{TreasuryTaxLetterPage-BMYTdYa5-Dj8UaOnF.js → TreasuryTaxLetterPage-BRvcOhJZ-BeVUPN4i.js} +5 -5
- package/dist/assets/{TreasuryTransferOrReviewPage-B9VwyDJa-CRkrhgNd.js → TreasuryTransferOrReviewPage-H5ohs_5r-DHIAJoBr.js} +30 -30
- package/dist/assets/{TrendChart-CqYeWLeV-htWF6W-p.js → TrendChart-ohr8bK1l-B5dRIvEy.js} +4 -4
- package/dist/assets/{TrendWithTransactions-xn1fvlLO-CerDbg3P.js → TrendWithTransactions-D5eTj9Ca-BjYM3mpG.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-B_aOzm4v-h1El0pw_.js → UncategorizedAccountsMappingPage-3NGCCdAA-DC14oDOB.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-B6LF_f7C-DF3yoEHz.js → UnitIntegrationPage-B6FOsf88-BTafkfwm.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-BlKvE3tT-BlWsi76J.js → UploadAdditionalDocumentOverlay-CH9x8nx2-CEXAXlCj.js} +1 -1
- package/dist/assets/Vendor2FAPopup-D7455GFK-DU0-h-ac.js +1 -0
- package/dist/assets/{VendorACHDetailsPage-CncDplWQ-DgiLqsWr.js → VendorACHDetailsPage-CXoxi6Qp-CrJbaYWf.js} +1 -1
- package/dist/assets/{VendorDetailPage-POan4Fo8-Y_NsPNBu.js → VendorDetailPage-C6BgYb-c-BaTlvY1P.js} +6 -6
- package/dist/assets/{VendorDomesticWireDetailsPage-B1bT0W9o-NrQ5VuHO.js → VendorDomesticWireDetailsPage-DXfnCFu1-Bhf2lnL-.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-C25iYV4w-DxH6WOrq.js → VendorFiling1099EditablePage-ByESLoQK-C5wgo9Qc.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-DY035p5C-B1sylU9C.js → VendorFirstReviewPage-iNPtUFNw-BbgJ63Tq.js} +27 -27
- package/dist/assets/{VendorInternationalWireDetailsPage-DN_mcAqY-DOkydboS.js → VendorInternationalWireDetailsPage-CqgGFU1K-CKX6n49-.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BaXgGRdu-BQ0UaHHd.js → VendorInternationalWireSwiftDetailsPage-CNzft0dg-D-n290kY.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-C2UiqXC0-BiErhc3o.js → VendorsAccountsSection-DCWhoqAP-DHjXIFFo.js} +2 -2
- package/dist/assets/{VerifyDevice-C7BWrAZ3-DJDQCedc.js → VerifyDevice-DvJEmcUq-BD1k6-81.js} +4 -4
- package/dist/assets/{VideoPlayer-BYkDTMkS-BkX7RMiM.js → VideoPlayer-Cp5DBUTp-n0gfwB0a.js} +1 -1
- package/dist/assets/{VideoPopup-Chye3pds-BhmRCag7.js → VideoPopup-97jTEw9t-C5kzDaxd.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-Cx-gJdnW-Cid-1Ovb.js → WarningsDrawerPage-CMy4FFqt-zNFC-DvY.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-BrXe6Kao-DZTAFx3o.js → ZeniAccountDetailPage-mzHK5HUV-B2AMGiBu.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CJnHvk5a-BNB1bM3y.js → ZeniAccountListViewPage-BeN4AKFd-B0XSIJvm.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-BdLOT9UG-Cokn4oEN.js → ZeniAccountNavBarPieces-Db9bLk29-BybXcA-l.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-B1I9l833-BElJ8cLy.js → ZeniAccountPromoPage-By02sVg0-BAnhqfjw.js} +11 -11
- package/dist/assets/{ZeniAccountSetupPage-CitVJnZC-B9X3YQBI.js → ZeniAccountSetupPage-DeDgKig1-lQnp_HAL.js} +1 -1
- package/dist/assets/{ZeniCopyright-DbQka65R-7ZVyc7Yg.js → ZeniCopyright-Bfc0Yl56-xItwPVZ8.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dzxu82Xw-Ml8lBAJZ.js → ZeniTransferAmountSlider-DzeU3D5r-Dnm1GguJ.js} +6 -6
- package/dist/assets/{analyticsHelper-BDL8_RGj.js → analyticsHelper-CuIvasD7.js} +1 -1
- package/dist/assets/{analyticsHelper-DgJDMdal-DIavhrOw.js → analyticsHelper-Cx9PlTZt-BYpG33i-.js} +1 -1
- package/dist/assets/{chartTypes-D1j_l919-8QXMvJet.js → chartTypes-BoA9fCCZ-7xW-fVbz.js} +1 -1
- package/dist/assets/{commonDimensions-DDu54g8x-D5ikJlMO.js → commonDimensions-BCUrWcBL-vTG5ZzmA.js} +1 -1
- package/dist/assets/{detailCommon-DXjUFoA1-D9_LRSFU.js → detailCommon-CFA4p6RP-B16mjiFN.js} +4 -4
- package/dist/assets/{downloadPdf-DChYYVaW-ZZ55IYdY.js → downloadPdf-DZ5WQt0r-Bylb-lK-.js} +1 -1
- package/dist/assets/{index-BqKtrbrP.js → index-6DHFBk74.js} +1721 -1710
- package/dist/assets/{mapLoadingInProgressToTreeNode-BC5IH44--JB4URfny.js → mapLoadingInProgressToTreeNode-DQf-1sg7-B5MxQ8jl.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CUXssP6r-DZ4GfGRq.js → mapSectionWithAcOnlyToTreeNode-D0W1f0wZ-D3CjHikv.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-sdzfy8cu-ofjZ3Daw.js → mapSpacerToTreeNode-Dzbv_N4o-CAPOe3mv.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DgOZfixy-Cw5iWKMh.js → mapTimeframeBalancesToTreeNode-2yWiGglp-Dy8oBMmS.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BROieqal-BJxVRna_.js → mapTimeframeBalancesToTreeNode-COS_auLN-CKgStlR5.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-bXb7WXAq-D3DuUS-Q.js → mapTimeframeHeaderLoadingInProgressToTreeNode-NCujclSc-BUwl6Oy8.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DqhuI8hD-CWs6fXMS.js → toCOABalancesWithID--3a-7Ohb-Dq8zIbZX.js} +1 -1
- package/dist/assets/{toChartData-DZPFiNsp-WPnYC-7p.js → toChartData-KZ92y9KA-BJN5TA9Q.js} +1 -1
- package/dist/assets/{treasuryColorHelper-D5AxfiPH-CHzWVnh9.js → treasuryColorHelper-ChFJTPyg--ivM0q9A.js} +1 -1
- package/dist/assets/{uploadAttachment-D04Fz4F1-CuQRw56o.js → uploadAttachment-BzeeOF-1-oKdmjDH7.js} +14 -14
- package/dist/assets/{uploadReceipts-9DTOr0BG-BFe5S3is.js → uploadReceipts-9DTOr0BG-BAqIaRxY.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/BillsBulkReviewDrawerPage-CFK7g3R1-CNk8ph3a.js +0 -1
- package/dist/assets/ChargeCardDetailPage-DXUoIbZa-_LUfh5la.js +0 -1813
- package/dist/assets/ChargeCardUtils-BeG5m9OQ-BnJ39MTB.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-D4zUp7hX-DHmsrQe_.js +0 -1
- package/dist/assets/InvitePeoplePage-DYpb33z0-YHgrNKtY.js +0 -12
- package/dist/assets/SignInScreen-DqIw82_G.js +0 -1
- package/dist/assets/Vendor2FAPopup-BLzf9zxl-u_Gb4R4i.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,O as re,o as i,P as se,cA as Ze,ad as et,c5 as tt,y as I,an as nt,am as N,b8 as it,C as Ne,b as ot,a9 as ze,d3 as at,aP as J,aU as fe,fG as Te,l as G,db as ct,bA as We,fO as He,fP as lt,fQ as st,cd as Oe,u as k,fH as ge,fI as we,aN as Se,cs as xe,aM as rt,bP as dt,e3 as qe,h as ie,ai as B,fN as ut,f$ as pt,g0 as ht,bm as mt,g1 as ft}from"./index-6DHFBk74.js";import{b as r,n}from"./vendor-Bs1fkIUX.js";import{r as _e}from"./mui-Ty75qFQF.js";import{A as Pe}from"./ChaseOverlay-Dqg_bWdn-C8vTlyWM.js";import{a as gt}from"./SetUpAccountSection-BGdUkQz3-D6CAjYv7.js";import{z as wt,B as Ie}from"./SpendMgmtSetupAccountSection-Dz3vQC2g-P6jfr6Bz.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./SetUpDefaultSection-C4NnRO65-C0fyZc92.js";import"./ChargeCardUtils-Cy5rZlIH-BILI0sIl.js";import"./CreditCardPaymentPlgSection-HikR7OVv-BCZXDr8I.js";const{settings:{bankConnectionHeader:de}}=re.getLocalizedStrings().common,St={value:de.productType,width:new I(100,19)},xt={value:de.primaryAccount,width:new I(100,36)},yt={value:de.linkAccount,width:new I(100,22)},vt={value:de.status,width:new I(12,12)},kt={value:de.balance,width:new I(12,13)},W=[St,xt,yt,vt,kt],{common:{settings:Ee,strings:{hyphen:ke}},commonSetUp:{setUp:Fe}}=re.getLocalizedStrings(),T={containerPadding:new I(k[3],k[4]),containerRightPadding:new I(k[3],k[8]),iconContainerMaxWidthHeight:new I(k[6],k[7]),iconWidthHeight:new I(20,k[4]),iconPadding:new I(k[1],12),productTypeContainerMarginBottom:new I(k[3],k[0]),linkAccountContainerMarginTop:new I(k[3],k[0]),productTypeIconSize:new I(k[3],k[4])},bt="bankConnectionsSettingsPage",$t=({productType:e,windowSize:h})=>{switch(e){case"bill_pay":return t.jsx(Nt,{windowSize:h,children:t.jsx(mt,{})});case"reimbursement":return t.jsx(Wt,{windowSize:h,children:t.jsx(ht,{})});case"zeni_accounts":return t.jsx(Ht,{windowSize:h,children:t.jsx(We,{})});case"zeni_treasury":return t.jsx(Gt,{windowSize:h,children:t.jsx(pt,{})});case"charge_cards":default:return t.jsx(qt,{windowSize:h,children:t.jsx(ut,{})})}},Ct=({allBankAccounts:e,setupView:h,connectedAccountProvider:H,onFetchLinkTokenClick:V,onUpdatePaymentAccountStatus:_,onEstablishConnectionClick:P,onEstablishConnectionSuccess:R})=>{const C=ve(),c=je(),f=ze().analytics,{trigger:w,formState:{errors:M}}=at(),{plaidConnectionDetails:U,allFundingAccounts:a,primaryFundingAccount:o,productType:l}=h,m=U.link_account,b=U.update_account,[u,A]=r.useState(void 0),[q,v]=r.useState(!1),D=()=>{v(!0)},d=u==="update_account"?b:m,[S,L]=r.useState(d.linkToken??null),[$,z]=r.useState(!1),g=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";let p,O,s,j=!1;o!=null&&(o.accType==="depositAccount"?p={code:"verified",name:"Verified"}:(p=o.providerVerificationStatus,O=o?.institutionDetails,s=p?.code,j=o?.isLoginRequired??!1));const Y=J(m.updateStatus.fetchState),Q=J(b.updateStatus.fetchState),ee=J(b.fetchStatus.fetchState),E=C.mode==="light"?new fe(C.colors.brandColorJadeLight):new fe(C.colors.brandColorJadeDark),K=r.useCallback((x,X)=>{f.trackConnectBankSuccess(l,"Settings");const Le=X.accounts.find(Ke=>Ke.id===o?.providerAccountId)??X.accounts[0];o?.id!=null&&u==="update_account"&&Le?.verification_status!=null&&!j?_(Le?.verification_status,o.id,"update_account",y(l),l):P(x,y(l),l),A(void 0),z(!1)},[f,l,o?.id,o?.providerAccountId,u,j,_,P]),te=r.useCallback((x,X)=>{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,X)),A(void 0),z(!1)},[f,l,o?.id,_]),{open:Z,ready:ue}=Te({token:S,onSuccess:K,onExit:te});r.useEffect(()=>{(Y==="In-Progress"&&m.updateStatus.fetchState==="Completed"||Q==="In-Progress"&&b.updateStatus.fetchState==="Completed")&&(G.isVerifiedPaymentAccountProviderStatusCode(s??"")||(V("link_account",y(l)),R(y(l),l)))},[m.updateStatus.fetchState,R,V,o?.providerVerificationStatus?.code,o?.id,Y,Q,b.updateStatus.fetchState,s,l]),r.useEffect(()=>{(G.isVerifiedStatusCode(s??"")||s==="verification_failed")&&!$&&u!=null&&d.linkToken===S&&d.fetchStatus.fetchState==="Completed"&&ue&&z(!0)},[ue,S,d.fetchStatus.fetchState,d.linkToken,s,u,$]);const oe=$e(bt,"primaryAccountSection"),F=ct(M,oe);r.useEffect(()=>{d.fetchStatus.fetchState==="Completed"&&d.linkToken!=null&&d.linkToken!==S&&L(d.linkToken)},[d.fetchStatus.fetchState,d.linkToken,S]),r.useEffect(()=>{$&&Z()},[$,Z]),r.useEffect(()=>{!o?.zeniAccountId&&!F&&w(oe)},[o?.id]),r.useEffect(()=>{(s==null||s==="verification_failed"||s==="verification_expired"||G.isVerifiedStatusCode(s))&&(G.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&V("link_account",y(l))},[]);const ne=()=>{f.trackConnectBankGetBalance(l,"Settings"),A("update_account"),V("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),Je={element:t.jsx(We,{width:T.iconWidthHeight.valuePx(c)}),color:E};return t.jsxs(At,{windowSize:c,children:[q===!0?_e.createPortal(t.jsx(Pe,{connectedAccountProvider:H,action:{onBackClick:()=>v(!1)}}),document.body):null,t.jsxs(jt,{windowSize:c,wrapperWidth:W[0].width,children:[t.jsx(Tt,{windowSize:c,isDarkMode:C.mode==="dark",children:t.jsx($t,{productType:l,windowSize:c})}),t.jsx(zt,{children:Ee.productNameByType[l]})]}),t.jsx(_t,{windowSize:c,wrapperWidth:W[1].width,children:t.jsxs(Ft,{windowSize:c,children:[o!=null&&c!=="small"?t.jsx(Et,{isDisabled:j,children:wt(Je,c,C.mode==="dark",o,Ge,!1)}):null,t.jsxs(Bt,{windowSize:c,className:"fundingAccount",children:[t.jsx(He,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:C.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:k[4],fontWeight:Oe.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:C.colors.hero,weight:Oe.medium},name:$e(l,"primaryAccountSection"),placeholder:Fe.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,X)=>st(a,x,X),valueToSubLabels:(x,X)=>lt(a,x,X,!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"),A("link_account"),m.linkToken==null||G.zeniDate(new Date().toISOString()).isAfter(m.expiration)?V("link_account",y(l)):S!==m.linkToken?L(m.linkToken):$?Z():z(!0)}}),t.jsxs(Pt,{isDisabled:j,children:[ae?t.jsxs(t.Fragment,{children:[t.jsx(It,{children:ae}),c!=="small"&&(s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe)?t.jsx(Ot,{}):null]}):null,c==="small"&&p!=null?t.jsx(ge,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:p.name,textColor:we(p.code)}):null,s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe?t.jsx(Ie,{productType:l,isUpdateLinkClicked:u==="update_account",isLoginRequired:j,isPendingVerification:s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:b.fetchStatus,updateStatus:b.updateStatus,linkFetchStatus:m.fetchStatus,linkUpdateStatus:m.updateStatus,prevFetchState:ee,prevUpdateState:Q},onUpdateLinkTokenClick:ne,onChaseInfoClick:D}):null]})]}),c==="small"?t.jsxs(Rt,{children:[o?.accountBalance?.available?t.jsx(Be,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(be,{children:ke}),o?.accountBalance?.lastRefreshTime?t.jsx(Ve,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Ut,{windowSize:c,isDisabled:j,wrapperWidth:W[2].width,onClick:x=>x.stopPropagation(),"data-testid":rt("bank-account-section",l),className:"qboLinkAcc",children:[c==="small"?t.jsx(Lt,{children:Ee.bankConnectionHeader.linkAccount}):null,t.jsx(Dt,{isDisabled:j?"disabled":void 0,name:$e(l,"bankAccountSection"),placeholder:Fe.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(Mt,{windowSize:c,wrapperWidth:W[3].width,children:p!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:p.name,textColor:we(p.code)}):t.jsx(be,{children:ke})}):null,c!=="small"?t.jsxs(Vt,{windowSize:c,wrapperWidth:W[4].width,children:[o?.accountBalance?.available?t.jsx(Be,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(be,{children:ke}),o?.accountBalance?.lastRefreshTime?t.jsx(Ve,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},At=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"};
|
|
@@ -15,7 +15,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
15
15
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
16
16
|
margin-bottom: ${e=>T.productTypeContainerMarginBottom.valuePx(e.windowSize)};
|
|
17
17
|
padding-right: ${i.sp3};
|
|
18
|
-
`,zt=n(
|
|
18
|
+
`,zt=n(N)`
|
|
19
19
|
white-space: nowrap;
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
text-overflow: ellipsis;
|
|
@@ -38,19 +38,19 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-direction: column;
|
|
40
40
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
41
|
-
`,Pt=n(
|
|
41
|
+
`,Pt=n(B)`
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
44
|
color: ${e=>e.isDisabled?e.theme.colors.grey1:"inherit"};
|
|
45
45
|
flex-wrap: wrap;
|
|
46
46
|
`,It=n.div`
|
|
47
47
|
display: flex;
|
|
48
|
-
`,
|
|
48
|
+
`,Be=n(N)`
|
|
49
49
|
display: flex;
|
|
50
50
|
justify-content: flex-end;
|
|
51
|
-
`,Ve=n(
|
|
51
|
+
`,Ve=n(B)`
|
|
52
52
|
color: ${e=>e.theme.colors.hero};
|
|
53
|
-
`,Lt=n(
|
|
53
|
+
`,Lt=n(B)`
|
|
54
54
|
color: ${e=>e.theme.colors.grey1};
|
|
55
55
|
width: 135px;
|
|
56
56
|
`,Ot=n.div`
|
|
@@ -61,13 +61,13 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
61
61
|
height: ${i.sp1};
|
|
62
62
|
cursor: inherit;
|
|
63
63
|
background-color: ${e=>e.theme.colors.grey1};
|
|
64
|
-
`,
|
|
64
|
+
`,Et=n.div`
|
|
65
65
|
display: flex;
|
|
66
66
|
opacity: ${e=>e.isDisabled?.8:1};
|
|
67
|
-
`,
|
|
67
|
+
`,Ft=n.div`
|
|
68
68
|
display: flex;
|
|
69
69
|
justify-content: flex-start;
|
|
70
|
-
`,
|
|
70
|
+
`,Bt=n.div`
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
width: ${e=>e.windowSize==="small"?"64%":"100%"};
|
|
@@ -91,12 +91,12 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
91
91
|
opacity: ${e=>e.isDisabled?.4:1};
|
|
92
92
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
93
93
|
margin-top: ${e=>T.linkAccountContainerMarginTop.valuePx(e.windowSize)};
|
|
94
|
-
`,
|
|
94
|
+
`,Dt=n(He)`
|
|
95
95
|
border-radius: ${i.sp2};
|
|
96
96
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
97
97
|
color: ${e=>e.theme.colors.hero};
|
|
98
|
-
${
|
|
99
|
-
`,
|
|
98
|
+
${Ne.smallRegular.css};
|
|
99
|
+
`,Nt=n.div`
|
|
100
100
|
width: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
101
101
|
height: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
102
102
|
display: flex;
|
|
@@ -106,7 +106,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
106
106
|
width: 100%;
|
|
107
107
|
height: 100%;
|
|
108
108
|
}
|
|
109
|
-
`,
|
|
109
|
+
`,Wt=n.div`
|
|
110
110
|
width: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
111
111
|
height: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
112
112
|
display: flex;
|
|
@@ -116,7 +116,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
116
116
|
width: 100%;
|
|
117
117
|
height: 100%;
|
|
118
118
|
}
|
|
119
|
-
`,
|
|
119
|
+
`,Ht=n.div`
|
|
120
120
|
width: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
121
121
|
height: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
122
122
|
display: flex;
|
|
@@ -126,7 +126,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
126
126
|
width: 100%;
|
|
127
127
|
height: 100%;
|
|
128
128
|
}
|
|
129
|
-
`,
|
|
129
|
+
`,qt=n.div`
|
|
130
130
|
width: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
131
131
|
height: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
132
132
|
display: flex;
|
|
@@ -146,7 +146,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
146
146
|
width: 100%;
|
|
147
147
|
height: 100%;
|
|
148
148
|
}
|
|
149
|
-
`,$e=(e,h)=>`${e}.${h}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:Ce,strings:{empty:Jt,hyphen:Kt}}}=re.getLocalizedStrings(),he={paymentAccountIconSize:new I(k[6],k[7])},Xt=()=>null,Yt=({paymentAccount:e,bankAccountList:h,balanceFetchStatus:
|
|
149
|
+
`,$e=(e,h)=>`${e}.${h}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:Ce,strings:{empty:Jt,hyphen:Kt}}}=re.getLocalizedStrings(),he={paymentAccountIconSize:new I(k[6],k[7])},Xt=()=>null,Yt=({paymentAccount:e,bankAccountList:h,balanceFetchStatus:H,connectedAccountProvider:V,onRemoveConnection:_,onFetchLinkTokenClick:P,onEstablishConnectionClick:R,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const f=ve(),w=je(),M=ze().analytics,[U,a]=r.useState(!1),[o,l]=r.useState(!1),m=()=>{l(!0)},b=e.plaidConnectionDetails.link_account,u=e.plaidConnectionDetails.update_account,[A,q]=r.useState(void 0),v=A==="update_account"?u:b,[D,d]=r.useState(v.linkToken??null),[S,L]=r.useState(!1),$=J(b.updateStatus.fetchState),z=J(u.updateStatus.fetchState),g=J(u.fetchStatus.fetchState),p=e?.providerVerificationStatus,O=e?.isLoginRequired??!1,s="other_connection",j=p?.code,Y=r.useCallback((F,ne)=>{M.trackConnectBankSuccess(s,"Settings");const ae=ne.accounts.find(pe=>pe.id===e.providerAccountId)??ne.accounts[0];e.paymentAccountId!=null&&A==="update_account"&&ae?.verification_status!=null&&!O?c(ae?.verification_status,e.paymentAccountId,"update_account",y(s),s):R(F,y(s),s),q(void 0),L(!1)},[M,s,e.paymentAccountId,e.providerAccountId,A,O,c,R]),Q=r.useCallback((F,ne)=>{F!=null&&(M.trackConnectBankFailure(s,F.error_code+" "+F.error_message,"Settings"),F.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(s),s),console.log("Plaid Connection Error",F,ne)),q(void 0),L(!1)},[M,s,e.paymentAccountId,c]),{open:ee,ready:E}=Te({token:D,onSuccess:Y,onExit:Q});r.useEffect(()=>{v.fetchStatus.fetchState==="Completed"&&v.linkToken!=null&&v.linkToken!==D&&d(v.linkToken)},[v.fetchStatus.fetchState,v.linkToken,D]),r.useEffect(()=>{S&&ee()},[S,ee]),r.useEffect(()=>{($==="In-Progress"&&b.updateStatus.fetchState==="Completed"||z==="In-Progress"&&u.updateStatus.fetchState==="Completed")&&(G.isVerifiedStatusCode(j??"")||(P("link_account",y(s)),C(y(s),s)))},[b.updateStatus.fetchState,C,P,e?.providerVerificationStatus?.code,e?.paymentAccountId,$,z,u.updateStatus.fetchState,j,s]),r.useEffect(()=>{(G.isVerifiedStatusCode(j??"")||j==="verification_failed")&&!S&&A!=null&&v.linkToken===D&&v.fetchStatus.fetchState==="Completed"&&E&&L(!0)},[E,D,v.fetchStatus.fetchState,v.linkToken,j,A,S]);const K=()=>{M.trackConnectBankGetBalance(s,"Settings"),q("update_account"),P("update_account",y(s),e.paymentAccountId)},te=f.mode==="light"?new fe(f.colors.brandColorJadeLight):new fe(f.colors.brandColorJadeDark),Z={element:t.jsx(dn,{windowSize:w,children:t.jsx(ft,{})}),color:te},ue=h.find(F=>F.accountId===e.zeniAccountId),oe=()=>{a(F=>!F)};return t.jsxs(Qt,{onMouseEnter:oe,onMouseLeave:oe,children:[o===!0?_e.createPortal(t.jsx(Pe,{connectedAccountProvider:V,action:{onBackClick:()=>l(!1)}}),document.body):null,t.jsxs(Zt,{windowSize:w,wrapperWidth:W[0].width,children:[t.jsx(en,{children:Ce.otherAccount.title}),t.jsx(tn,{children:Ce.otherAccount.subTitle})]}),t.jsxs(nn,{windowSize:w,wrapperWidth:W[1].width,children:[gt(Z,w,f.mode==="dark",e,!0),t.jsxs(un,{children:[t.jsx(pn,{children:t.jsx(gn,{windowSize:w,children:e.institutionDetails.institutionName})}),t.jsxs(hn,{windowSize:w,children:[t.jsxs(wn,{children:[t.jsx(mn,{children:e.accountSubType?.name}),t.jsx(fn,{children:e.maskedAccountNumber}),O&&t.jsx(Sn,{})]}),O&&t.jsx(Ie,{productType:"other_connection",isUpdateLinkClicked:A==="update_account",isLoginRequired:O,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:u.fetchStatus,updateStatus:u.updateStatus,linkFetchStatus:b.fetchStatus,linkUpdateStatus:b.updateStatus,prevFetchState:g,prevUpdateState:z},onUpdateLinkTokenClick:K,onChaseInfoClick:m})]})]})]}),t.jsx(on,{windowSize:w,wrapperWidth:W[2].width,children:ue?.accountName??Jt}),t.jsx(an,{windowSize:w,wrapperWidth:W[3].width,children:p!=null?t.jsx(ge,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:p.name,textColor:we(p.code)}):Kt}),t.jsxs(cn,{windowSize:w,wrapperWidth:W[4].width,children:[t.jsx(ln,{className:"balanceLabel",isRemoveHovered:U,children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(sn,{className:"balanceLabel",isRemoveHovered:U,children:xe(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null,U&&t.jsx(rn,{children:t.jsx(qe,{moreIconType:"plain",options:[{label:Ce.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:f.colors.grey5,width:"162px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ie.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:ie.important,":hover":{color:ie.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:F=>{F==="remove"&&_(e.paymentAccountId)},valueToIcon:Xt})})]})]})},Qt=n.div`
|
|
150
150
|
display: flex;
|
|
151
151
|
padding: ${i.sp4};
|
|
152
152
|
padding-right: ${i.sp8};
|
|
@@ -157,11 +157,11 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
157
157
|
flex-direction: column;
|
|
158
158
|
align-items: flex-start;
|
|
159
159
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
160
|
-
`,en=n(
|
|
160
|
+
`,en=n(N)`
|
|
161
161
|
color: ${e=>e.theme.colors.grey1};
|
|
162
162
|
display: flex;
|
|
163
163
|
align-items: center;
|
|
164
|
-
`,tn=n(
|
|
164
|
+
`,tn=n(B)`
|
|
165
165
|
color: ${e=>e.theme.colors.grey1};
|
|
166
166
|
display: flex;
|
|
167
167
|
align-items: center;
|
|
@@ -169,11 +169,11 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
169
169
|
display: flex;
|
|
170
170
|
align-items: center;
|
|
171
171
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
172
|
-
`,on=n(
|
|
172
|
+
`,on=n(N)`
|
|
173
173
|
display: flex;
|
|
174
174
|
align-items: center;
|
|
175
175
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
176
|
-
`,an=n(
|
|
176
|
+
`,an=n(N)`
|
|
177
177
|
display: flex;
|
|
178
178
|
align-items: center;
|
|
179
179
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
@@ -183,9 +183,9 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
183
183
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
184
184
|
justify-content: flex-end;
|
|
185
185
|
align-items: flex-end;
|
|
186
|
-
`,ln=n(
|
|
186
|
+
`,ln=n(N)`
|
|
187
187
|
color: ${e=>e.theme.colors.hero};
|
|
188
|
-
`,sn=n(
|
|
188
|
+
`,sn=n(B)`
|
|
189
189
|
color: ${e=>e.theme.colors.hero};
|
|
190
190
|
`,rn=n.div`
|
|
191
191
|
position: absolute;
|
|
@@ -210,12 +210,12 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
210
210
|
display: flex;
|
|
211
211
|
flex-direction: ${e=>e.windowSize==="large"||e.windowSize==="extra-large"?"row":"column"};
|
|
212
212
|
align-items: ${e=>e.windowSize==="large"||e.windowSize==="extra-large"?"center":"start"};
|
|
213
|
-
`,mn=n(
|
|
213
|
+
`,mn=n(B)`
|
|
214
214
|
text-transform: capitalize;
|
|
215
215
|
color: inherit;
|
|
216
|
-
`,fn=n(
|
|
216
|
+
`,fn=n(B)`
|
|
217
217
|
margin-left: ${i.sp1};
|
|
218
|
-
`,gn=n(
|
|
218
|
+
`,gn=n(N)`
|
|
219
219
|
max-width: ${`calc(100% - ${i.sp3})`};
|
|
220
220
|
text-transform: capitalize;
|
|
221
221
|
overflow: hidden;
|
|
@@ -230,7 +230,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
230
230
|
height: ${i.sp1};
|
|
231
231
|
cursor: inherit;
|
|
232
232
|
background-color: ${e=>e.theme.colors.grey1};
|
|
233
|
-
`,{common:{settings:me,strings:{empty:xn}}}=re.getLocalizedStrings(),yn=()=>null,vn=({paymentAccount:e,bankAccountList:h,balanceFetchStatus:
|
|
233
|
+
`,{common:{settings:me,strings:{empty:xn}}}=re.getLocalizedStrings(),yn=()=>null,vn=({paymentAccount:e,bankAccountList:h,balanceFetchStatus:H,connectedAccountProvider:V,onRemoveConnection:_,onFetchLinkTokenClick:P,onEstablishConnectionClick:R,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const f=ve(),w=ze().analytics,[M,U]=r.useState(!1),a=()=>{U(!0)},o=e.plaidConnectionDetails.link_account,l=e.plaidConnectionDetails.update_account,[m,b]=r.useState(void 0),u=m==="update_account"?l:o,[A,q]=r.useState(u.linkToken??null),[v,D]=r.useState(!1),d=J(o.updateStatus.fetchState),S=J(l.updateStatus.fetchState),L=J(l.fetchStatus.fetchState),$=e?.providerVerificationStatus,z=e?.isLoginRequired??!1,g="other_connection",p=$?.code,O=r.useCallback((E,K)=>{w.trackConnectBankSuccess(g,"Settings");const te=K.accounts.find(Z=>Z.id===e.providerAccountId)??K.accounts[0];e.paymentAccountId!=null&&m==="update_account"&&te?.verification_status!=null&&!z?c(te?.verification_status,e.paymentAccountId,"update_account",y(g),g):R(E,y(g),g),b(void 0),D(!1)},[w,g,e.paymentAccountId,e.providerAccountId,m,z,c,R]),s=r.useCallback((E,K)=>{E!=null&&(w.trackConnectBankFailure(g,E.error_code+" "+E.error_message,"Settings"),E.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(g),g),console.log("Plaid Connection Error",E,K)),b(void 0),D(!1)},[w,g,e.paymentAccountId,c]),{open:j,ready:Y}=Te({token:A,onSuccess:O,onExit:s});r.useEffect(()=>{u.fetchStatus.fetchState==="Completed"&&u.linkToken!=null&&u.linkToken!==A&&q(u.linkToken)},[u.fetchStatus.fetchState,u.linkToken,A]),r.useEffect(()=>{v&&j()},[v,j]),r.useEffect(()=>{(d==="In-Progress"&&o.updateStatus.fetchState==="Completed"||S==="In-Progress"&&l.updateStatus.fetchState==="Completed")&&(G.isVerifiedStatusCode(p??"")||(P("link_account",y(g)),C(y(g),g)))},[o.updateStatus.fetchState,C,P,e?.providerVerificationStatus?.code,e?.paymentAccountId,d,S,l.updateStatus.fetchState,p,g]),r.useEffect(()=>{(G.isVerifiedStatusCode(p??"")||p==="verification_failed")&&!v&&m!=null&&u.linkToken===A&&u.fetchStatus.fetchState==="Completed"&&Y&&D(!0)},[Y,A,u.fetchStatus.fetchState,u.linkToken,p,m,v]);const Q=()=>{w.trackConnectBankGetBalance(g,"Settings"),b("update_account"),P("update_account",y(g),e.paymentAccountId)},ee=h.find(E=>E.accountId===e.zeniAccountId);return t.jsxs(kn,{children:[M===!0?_e.createPortal(t.jsx(Pe,{connectedAccountProvider:V,action:{onBackClick:()=>U(!1)}}),document.body):null,t.jsxs(bn,{children:[t.jsx($n,{children:`${me.otherAccount.title} ${me.otherAccount.subTitleSmall}`}),t.jsx(qe,{moreIconType:"plain",options:[{label:me.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ie.boxShadowElevation}`}),option:()=>({color:f.colors.important,":hover":{color:f.colors.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:E=>{E==="remove"&&_(e.paymentAccountId)},valueToIcon:yn})]}),t.jsxs(Cn,{children:[t.jsxs(Ln,{children:[t.jsx(On,{children:t.jsx(Bn,{children:e.institutionDetails.institutionName})}),t.jsxs(Vn,{children:[t.jsx(En,{children:e.accountSubType?.name}),t.jsx(Fn,{children:e.maskedAccountNumber}),t.jsx(Tn,{children:$!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:$.name,textColor:we($.code)}):null}),z&&t.jsx(Ie,{productType:"other_connection",isUpdateLinkClicked:m==="update_account",isLoginRequired:z,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:l.fetchStatus,updateStatus:l.updateStatus,linkFetchStatus:o.fetchStatus,linkUpdateStatus:o.updateStatus,prevFetchState:L,prevUpdateState:S},onUpdateLinkTokenClick:Q,onChaseInfoClick:a})]})]}),t.jsxs(_n,{children:[t.jsx(Pn,{className:"balanceLabel",children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(In,{className:"balanceLabel",children:xe(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(An,{children:[t.jsx(jn,{children:me.bankConnectionHeader.linkAccount}),t.jsx(zn,{children:ee?.accountName??xn})]})]})},kn=n.div`
|
|
234
234
|
display: flex;
|
|
235
235
|
flex-direction: column;
|
|
236
236
|
padding: ${i.sp3};
|
|
@@ -242,7 +242,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
242
242
|
width: 100%;
|
|
243
243
|
margin-bottom: ${i.sp3};
|
|
244
244
|
justify-content: space-between;
|
|
245
|
-
`,$n=n(
|
|
245
|
+
`,$n=n(N)`
|
|
246
246
|
color: ${e=>e.theme.colors.grey1};
|
|
247
247
|
display: flex;
|
|
248
248
|
align-items: center;
|
|
@@ -254,12 +254,12 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
254
254
|
`,An=n.div`
|
|
255
255
|
display: flex;
|
|
256
256
|
align-items: center;
|
|
257
|
-
`,jn=n(
|
|
257
|
+
`,jn=n(B)`
|
|
258
258
|
color: ${e=>e.theme.colors.grey1};
|
|
259
259
|
margin-right: ${i.sp2};
|
|
260
|
-
`,zn=n(
|
|
260
|
+
`,zn=n(B)`
|
|
261
261
|
color: ${e=>e.theme.colors.hero};
|
|
262
|
-
`,Tn=n(
|
|
262
|
+
`,Tn=n(N)`
|
|
263
263
|
display: flex;
|
|
264
264
|
align-items: center;
|
|
265
265
|
margin-left: ${i.sp2};
|
|
@@ -267,9 +267,9 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
267
267
|
display: flex;
|
|
268
268
|
align-items: flex-end;
|
|
269
269
|
flex-direction: column;
|
|
270
|
-
`,Pn=n(
|
|
270
|
+
`,Pn=n(N)`
|
|
271
271
|
color: ${e=>e.theme.colors.hero};
|
|
272
|
-
`,In=n(
|
|
272
|
+
`,In=n(B)`
|
|
273
273
|
color: ${e=>e.theme.colors.hero};
|
|
274
274
|
`,Ln=n.div``,On=n.div`
|
|
275
275
|
display: flex;
|
|
@@ -277,11 +277,11 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
277
277
|
align-items: center;
|
|
278
278
|
white-space: nowrap;
|
|
279
279
|
overflow: hidden;
|
|
280
|
-
`,
|
|
280
|
+
`,En=n(B)`
|
|
281
281
|
text-transform: capitalize;
|
|
282
|
-
`,
|
|
282
|
+
`,Fn=n(B)`
|
|
283
283
|
margin-left: ${i.sp1};
|
|
284
|
-
`,
|
|
284
|
+
`,Bn=n(N)`
|
|
285
285
|
max-width: ${`calc(100% - ${i.sp3})`};
|
|
286
286
|
text-transform: capitalize;
|
|
287
287
|
overflow: hidden;
|
|
@@ -291,7 +291,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
291
291
|
align-items: center;
|
|
292
292
|
flex-wrap: wrap;
|
|
293
293
|
gap: ${i.sp2};
|
|
294
|
-
`,{settings:{bankConnectionListHeader:Ae,title:Rn,infoText:Mn}}=re.getLocalizedStrings().common,ye={pageContentPadding:new I(k[4],k[8]),subtitleSectionWidth:new I(343,580,1200),subTitleBottomMargin:new I(k[0],k[5])},Un={qboLinkAcc:new ot("smallRegular","standardRegular")},
|
|
294
|
+
`,{settings:{bankConnectionListHeader:Ae,title:Rn,infoText:Mn}}=re.getLocalizedStrings().common,ye={pageContentPadding:new I(k[4],k[8]),subtitleSectionWidth:new I(343,580,1200),subTitleBottomMargin:new I(k[0],k[5])},Un={qboLinkAcc:new ot("smallRegular","standardRegular")},Dn="bankConnectionsSettingsPage",ce="bankAccountSection",le="primaryAccountSection",Nn="bill_pay",Wn="reimbursement",Hn="zeni_accounts",qn="charge_cards",Gn="zeni_treasury",Re=e=>t.jsx(Xn,{children:W.map(h=>t.jsx(Yn,{actualDataValue:h.value,wrapperWidth:h.width,windowSize:e,children:t.jsx(Qn,{children:h.value})},h.value))}),bi=({bankSetupView:e,connectedAccountProvider:h,onBackClick:H,onUpdateAccountClick:V,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c,onClickMenuIcon:f,onUpdatePrimaryFundingAccount:w,onRemoveConnection:M})=>{const U=ve(),a=je(),{allFundingAccounts:o,primaryConnection:l}=e,m=Xe({mode:"all",reValidateMode:"onChange",defaultValues:De(e),values:De(e)}),b=m.handleSubmit(d=>{}),u=async(d,S)=>{const L=d.split("."),$=L[0],z=L[1],g=l.find(p=>p.productType===$);if($!=null&&z!=null){const p=S[$][z];if(z==="primaryAccountSection"){const O=o.find(s=>s.id===p.selectedOption)?.accType;p.selectedOption!=null&&O!=null&&w(p.selectedOption,y($),O)}else if(z==="bankAccountSection"&&g!=null&&g.primaryFundingAccount!=null&&p.selectedOption!=null){const O=g.primaryFundingAccount?.id,s=g.primaryFundingAccount?.accType;O!=null&&s!=null&&V(p.selectedOption,O,$,y($),s)}}};r.useEffect(()=>{const d=m.watch((S,{name:L})=>{L!=null&&S!=null&&Ye(()=>u(L,S))});return()=>{d.unsubscribe()}});const A=e.fetchState==="In-Progress"||e.fetchState==="Not-Started",q=e.fetchState==="Completed"&&e.allFundingAccounts.length===0,v=a==="small"?vn:Yt,D=()=>A?t.jsx(ti,{children:t.jsx(se,{size:"ExtraLarge",start:!0})}):q?t.jsx(Ze,{message:"No bank connections added."}):t.jsxs(Jn,{windowSize:a,children:[t.jsx(Ue,{children:Ae.primary}),a!=="small"?Re(a):null,t.jsx(et,{...m,children:t.jsx("form",{id:li(Dn),onSubmit:b,children:t.jsx(ni,{windowSize:a,children:e.primaryConnection.map(d=>d!=null?t.jsx(Me,{windowSize:a,children:t.jsx(Ct,{allBankAccounts:e.allBankAccounts,setupView:d,connectedAccountProvider:h,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c})},d.productType):null)})})}),e.otherPaymentAccounts.length>0?t.jsxs(Zn,{children:[t.jsx(Ue,{children:Ae.other}),t.jsx(ai,{children:t.jsx(tt,{display:"flex",placement:"right",maxWidth:"340px",title:Ae.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(ci,{})})})]}):null,a!=="small"&&e.otherPaymentAccounts.length>0?Re(a):null,e.otherPaymentAccounts.map(d=>{const S=o.find(L=>L.id===d.paymentAccountId)?.balanceFetchStatus;return t.jsx(Me,{windowSize:a,children:t.jsx(v,{paymentAccount:d,bankAccountList:e.allBankAccounts,balanceFetchStatus:S,connectedAccountProvider:h,onRemoveConnection:M,onFetchLinkTokenClick:_,onEstablishConnectionClick:C,onUpdatePaymentAccountStatus:P,onEstablishConnectionSuccess:c})},d.paymentAccountId)})]});return t.jsxs(Kn,{children:[t.jsx(Qe,{source:"BankConnectionsSettingsPage",title:Rn.bankConnections,backgroundColor:U.colors.grey4,style:{zIndex:3},onBackClick:H,showBackButton:!1,showMenuIcon:a==="medium-compact"||a==="small",onClickMenuIcon:f}),t.jsxs(ei,{windowSize:a,children:[t.jsx(ii,{windowSize:a,children:t.jsx(oi,{windowSize:a,children:Mn.bankConnections})}),D()]})]})},Jn=n.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
flex-direction: column;
|
|
297
297
|
width: 100%;
|
|
@@ -304,7 +304,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
304
304
|
row-gap: ${i.sp3};
|
|
305
305
|
width: 100%;
|
|
306
306
|
background-color: ${e=>e.theme.colors.grey4};
|
|
307
|
-
`,Xn=n(
|
|
307
|
+
`,Xn=n(B)`
|
|
308
308
|
top: ${i.sp0};
|
|
309
309
|
left: ${i.sp0};
|
|
310
310
|
min-height: ${i.sp8};
|
|
@@ -331,7 +331,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
331
331
|
padding-left: ${i.sp0};
|
|
332
332
|
box-sizing: border-box;
|
|
333
333
|
overflow: hidden;
|
|
334
|
-
`,Qn=n(
|
|
334
|
+
`,Qn=n(B)`
|
|
335
335
|
display: flex;
|
|
336
336
|
gap: 5px;
|
|
337
337
|
`,Zn=n.div`
|
|
@@ -356,7 +356,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
356
356
|
.select-value-container
|
|
357
357
|
.single-select-field__single-value {
|
|
358
358
|
color: ${e=>e.theme.colors.hero};
|
|
359
|
-
${
|
|
359
|
+
${Ne.standardRegular.css};
|
|
360
360
|
}
|
|
361
361
|
.qboLinkAcc
|
|
362
362
|
.single-select-field__control
|
|
@@ -405,7 +405,7 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
405
405
|
align-items: center;
|
|
406
406
|
width: ${e=>ye.subtitleSectionWidth.valuePx(e.windowSize)};
|
|
407
407
|
margin-bottom: ${e=>ye.subTitleBottomMargin.valuePx(e.windowSize)};
|
|
408
|
-
`,oi=n(
|
|
408
|
+
`,oi=n(N)`
|
|
409
409
|
display: flex;
|
|
410
410
|
align-items: center;
|
|
411
411
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -422,4 +422,4 @@ import{b as ve,q as je,aa as Xe,cS as Ye,j as t,bF as Qe,F as re,o as i,P as se,
|
|
|
422
422
|
width: ${i.sp3};
|
|
423
423
|
height: ${i.sp3};
|
|
424
424
|
color: ${e=>e.theme.colors.hero};
|
|
425
|
-
`,
|
|
425
|
+
`,De=e=>{const{primaryConnection:h,allBankAccounts:H,allFundingAccounts:V}=e,_=H.map(a=>({label:a.accountName,value:a.accountId})),P=V.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"})),R=h.find(a=>a.productType==="bill_pay"),C=h.find(a=>a.productType==="reimbursement"),c=h.find(a=>a.productType==="zeni_accounts"),f=h.find(a=>a.productType==="charge_cards"),w=h.find(a=>a.productType==="zeni_treasury"),M=c?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"}))??[],U=w?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="paymentAccount"}))??[];return{[Nn]:{[ce]:{selectedOption:R?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:R?.primaryFundingAccount?.id,allOptions:P}},[Wn]:{[ce]:{selectedOption:C?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:C?.primaryFundingAccount?.id,allOptions:P}},[Hn]:{[ce]:{selectedOption:c?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:c?.primaryFundingAccount?.id,allOptions:M}},[Gn]:{[ce]:{selectedOption:w?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:w?.primaryFundingAccount?.id,allOptions:U}},[qn]:{[ce]:{selectedOption:f?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:f?.primaryFundingAccount?.id,allOptions:P}}}},li=e=>`${e}_form`;export{bi as default,li as formUniqueName};
|
package/dist/assets/{BillDetailPage-DcyikS7i-BdNFKGGl.js → BillDetailPage-DcGxex6B-g3MH8yQi.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{q as Fn,ax as En,b as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP as Yn,F as Gn,y as u,j as t,l as E,fk as st,fl as Hn,o as a,fm as Xn,fn as Jn,aM as b,fo as Qn,aN as Ae,fp as qn,bF as dt,bs as ct,dN as pt,cD as mt,cE as ut,cF as yt,gv as ea,gw as ta,gx as na,gy as aa,fu as I,fv as $,fw as A,gz as k,ft as ia,C as ht,h as le,fx as Ot,fy as la,fz as oa,fA as ra,gA as sa,gB as da,aQ as ca,ap as bt,c5 as Te,gC as pa,gD as O,u as r,aj as ma,cg as ua,gE as ya,A as ha,gF as ba,gG as gt,fE as xt,O as ga,dh as xa,cw as fa,b6 as wa,b8 as Ta,s as va,c7 as Lt,gH as Da,ai as Ft,aY as ja,b4 as Ia,bx as $a,f2 as Aa,am as ka}from"./index-BqKtrbrP.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as Sa}from"./liveblocks-8ht9CoL5.js";import{o as Ca,t as Pa}from"./LowBalancePopup-B1pTBmAF-DMsL8GAq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";const Ba=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"})))),za={formTitle:new ga("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ra,common:{noText:C,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:Oa},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:La}}}}=Gn.getLocalizedStrings(),ve=Ra.visual.MMMDCommaYYYYformat,Ai=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:K,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Ut,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Be,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Re,onAddNewRule:Ht,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Oe=_n(),[nn,U]=p.useState(!1),[Le,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,Q]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:q}=p.useContext(ln),[on,Y]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Kn(T,"both",!1),f=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{q(y),Y(!1)},[q,Y]);p.useEffect(()=>{me?.threadId!=null&&G.length>0&&!P&&(q(me.threadId),_e(null))},[me,G,P,q,_e]),Un({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Ue]=p.useState(!1),[Ye,Ge]=p.useState(!1),He=()=>Ve(!1),cn=()=>Ve(!0),Xe=Yn(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),J())},[e,J,Be]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Xe,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&H?.code?H:ne,S=Fa(D,e.transactionDetails),L=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:H?.code!=null&&(ne?.code=="approved"||H.code==="mark_as_paid")?H:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),de(!1)}},gn={onOkClick:c=>{pe(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},xn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx(Ia,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
|
-
${Tt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ie=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,In=ie!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ie?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,qe=e.transactionDetails?.billPayInfo.expectedDepositDate??In,et=st(s?.paymentType?.method??"").replace("Same Day",""),$n=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Hn,{paymentTypeLabel:et,onClick:cn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,An=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Da,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,tt=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,ge=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&tt),nt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&tt),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,fe=e.zeniAssist?.isEligibleForRefund===!0,kn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Sn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||fe)&&kn===!1,we=xe||fe,Cn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,_=D?.code,Pn=!Cn&&(!Qe||D?.code==="processing"&&!B),at=!Qe,it=["small","medium-compact","medium-regular"].includes(l),X=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),F=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Bn=!X&&(_!=="processing"&&nt||_==="processing"&&!B||_==="processing"&&at||g&&F&&Se),zn=c=>{M.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,Ye,c)},lt=()=>{Ue(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Rn=()=>{Ge(!0),lt()},Mn=()=>{Jt(),Ue(!1),Ye&&Ge(!1)},Nn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),W=Ut&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Xn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,ot=()=>{Ke("approved"),Ee===!0&&Q(!1),W!=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"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},On=()=>{Ke("rejected"),W!=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"),pe(!0)},rt=p.useRef(null);return t.jsxs(qa,{windowSize:l,ref:rt,children:[t.jsx(Jn,{anchor:"right",open:sn,onClose:He,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Qn,{companyName:qn(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:et,amount:Ae("0,0.[00]",be),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:He})}),t.jsxs(ai,{windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(dt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Oe.colors.grey4,rightSideComponent:t.jsxs(St,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx($t,{})}),source:"BillDetailPage"}):t.jsx(dt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(St,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx($t,{})}),enableTitleOnScroll:!0,scrollableContent:rt,source:"BillDetailPage"})}),t.jsxs(ii,{windowSize:l,children:[Ee?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:ot,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,dn?t.jsx(Pa,{onCancel:Mn,onProceedForMarkAsPaid:zn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||se?t.jsx(mt,{titleComponent:t.jsx(yt,{children:N.title}),descriptionComponent:t.jsx(ut,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:se?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:bn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:se?Ea(l,e):null}):null,an?t.jsx(mt,{titleComponent:t.jsx(yt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ut,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:gn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(oi,{windowSize:l,children:[l!=="small"?t.jsxs(ri,{windowSize:l,children:[ye,e.isRecurring?t.jsx($e,{height:a.sp5,width:a.sp5}):null]}):null,K&&S!=null&&S.code==="deleted"?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,L!=null&&L.code?l==="small"?t.jsx(ea,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ta,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Za(X,e,W),t.jsx(na,{sectionId:aa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:ue,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:j},text:ae.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:j},text:ae.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:j},text:ae.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:j},text:ae.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(li,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),he.length>0?he.map((c,y)=>{const z=e?.transactionDetails?.lines?.find(Ln=>Ln.id===c.lineId)?.recipientAmount;return t.jsxs(ei,{children:[he.length>1?t.jsx(ti,{windowSize:l,children:t.jsx(ni,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:j},text:z!=null?Ae("0,0[.]00",z):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:j},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("account",y)}`},children:t.jsx(k,{label:{label:n.category,width:j},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("class",y)}`},children:t.jsx(k,{label:{label:n.class,width:j},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billable",y)}`},children:t.jsx(k,{label:{label:n.billable,width:j},text:c.billable!=null?wn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("customer",y)}`},children:t.jsx(k,{label:{label:n.customer,width:j},text:c.customer?.name??C,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(si,{windowSize:l,children:[t.jsx(di,{children:n.total}),t.jsx(ci,{children:be!=null?t.jsx(ia,{amount:be,integerStyles:ht.h6Medium.cssObject,decimalStyles:ht.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:le.brandColorGoldDark},additionalInfoLabel:W!=null&&w?.code==="pending_approval"?Et.addMoney:W})}),t.jsx(R,{})]}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Zt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Va,{children:la(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?Wa(e.outsideZeniPaymentInfo):st(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:j},text:s.paymentToBankAccount!=null?vn:s.paymentToPI!=null?s.paymentToPI.displayText:Dn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:jn(),additionalInfoLabel:t.jsx(Ka,{children:$n})}),An()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ra(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:oa(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(yi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(sa,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ft.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(da,{amount:fn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ht,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:_t,signedInUserId:oe?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:qt},historicActivities:e.billHistory.activities}),t.jsx(pi,{})]}),e.transactionDetails?.vendor!=null&&!ue&&!e.transactionDetails.isDeleted?t.jsx(ca,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:V||g,showCancel:!V&&g,cancelBtn:{label:it?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:On,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:_a(V,it),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:V?lt:()=>{W!=null?Q(!0):ot()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:V?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ua,{children:t.jsxs(Qa,{windowSize:l,children:[!X&&Le?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-container"),children:[_!=="processing"&&nt?t.jsx(Z,{onClick:mn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,_==="processing"&&!B?t.jsx(Z,{onClick:un,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,_==="processing"&&at?t.jsx(Z,{onClick:yn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&Se?t.jsx(Z,{onClick:Rn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(Z,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,fe?t.jsx(Z,{onClick:hn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ja,{windowSize:l,children:[Sn===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:we?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:we,"data-testid":b("other-actions-icon-container"),children:we?t.jsx(xn,{}):t.jsx(Ga,{})})}):null,!X&&ge===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Oa,placement:"top",children:t.jsx(Xa,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ha,{})})}):null,!X&&Pn===!0&&Bn?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Na,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ya,{onClick:()=>re(!Le)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Sa,{id:v,children:t.jsx(pa,{isDrawerOpen:on,allowComposer:!0,drawerTitle:La,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:Nn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>Y(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Oe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Fa=(e,x)=>{const g=e?.code;if(e!=null&&g!=null)return x?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&x?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[g].color,bgColor:O[g].bgColor,borderColor:O[g].borderColor}},Ea=(e,x)=>{const g=x.transactionDetails?.recipientTotalAmount;return t.jsxs(hi,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Rt,{children:x.withdrawFrom!=null?Ot(x.withdrawFrom,e):d})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Rt,{children:g!=null?Ae("0,0[.]00",g):C})]})]})},_a=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,Wa=e=>{const x=e.paymentMode,g=n.paymentOutsideZeni.offline;if(x==null||x==="other")return g;const K=n.paymentOutsideZeni.paymentModeOptions.find(oe=>oe.value===x)?.label;return`${g} ${Ma} ${K}`},Za=(e,x,g)=>{if(e)return t.jsx(gt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:wt.duplicateWarning.title,description:wt.duplicateWarning.description});if(g!=null){const K=`${x.withdrawFrom?.label??""} ${x.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(gt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",K)}`,description:g.replace("Low balance! ","")})}else return null},Ka=i.div``,Va=i.div``,Ua=i.div`
|
|
1
|
+
import{q as Fn,ax as En,c as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP as Yn,O as Gn,y as u,j as t,l as E,fk as st,fl as Hn,o as a,fm as Xn,fn as Jn,aM as b,fo as Qn,aN as $e,fp as qn,bF as dt,bs as ct,dN as pt,cD as mt,cE as ut,cF as yt,gv as ea,gw as ta,gx as na,gy as aa,fu as I,fv as A,fw as $,gz as k,ft as ia,C as ht,h as le,fx as Ot,fy as la,fz as oa,fA as ra,gA as sa,gB as da,aQ as ca,ap as bt,c5 as Te,gC as pa,gD as O,u as r,aj as ma,cg as ua,gE as ya,A as ha,gF as ba,gG as gt,fE as xt,b as ga,dh as xa,cw as fa,b6 as wa,b8 as Ta,s as va,c7 as Lt,gH as Da,ai as Ft,aY as ja,b4 as Ia,bx as Aa,f2 as $a,am as ka}from"./index-6DHFBk74.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as Ca}from"./liveblocks-8ht9CoL5.js";import{o as Sa,t as Pa}from"./LowBalancePopup-D2G3wpXv-BCydjVKG.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";const Ba=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"})))),za={formTitle:new ga("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ra,common:{noText:S,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:Oa},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:La}}}}=Gn.getLocalizedStrings(),ve=Ra.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:K,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Ce,isBillPayCommentingEnabled:Se,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Ut,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Be,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Re,onAddNewRule:Ht,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Oe=_n(),[nn,U]=p.useState(!1),[Le,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,Q]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:q}=p.useContext(ln),[on,Y]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Kn(T,"both",!1),f=Se&&h!=null,We=p.useMemo(()=>h==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{q(y),Y(!1)},[q,Y]);p.useEffect(()=>{me?.threadId!=null&&G.length>0&&!P&&(q(me.threadId),_e(null))},[me,G,P,q,_e]),Un({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Ue]=p.useState(!1),[Ye,Ge]=p.useState(!1),He=()=>Ve(!1),cn=()=>Ve(!0),Xe=Yn(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),J())},[e,J,Be]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Xe,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&H?.code?H:ne,C=Fa(D,e.transactionDetails),L=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:H?.code!=null&&(ne?.code=="approved"||H.code==="mark_as_paid")?H:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),de(!1)}},gn={onOkClick:c=>{pe(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},xn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx(Ia,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
|
+
${Tt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ie=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,In=ie!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ie?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,qe=e.transactionDetails?.billPayInfo.expectedDepositDate??In,et=st(s?.paymentType?.method??"").replace("Same Day",""),An=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Hn,{paymentTypeLabel:et,onClick:cn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,$n=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Da,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,tt=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,ge=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&tt),nt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&tt),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,fe=e.zeniAssist?.isEligibleForRefund===!0,kn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Cn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||fe)&&kn===!1,we=xe||fe,Sn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,_=D?.code,Pn=!Sn&&(!Qe||D?.code==="processing"&&!B),at=!Qe,it=["small","medium-compact","medium-regular"].includes(l),X=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),F=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Bn=!X&&(_!=="processing"&&nt||_==="processing"&&!B||_==="processing"&&at||g&&F&&Ce),zn=c=>{M.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,Ye,c)},lt=()=>{Ue(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Rn=()=>{Ge(!0),lt()},Mn=()=>{Jt(),Ue(!1),Ye&&Ge(!1)},Nn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),W=Ut&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Xn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,ot=()=>{Ke("approved"),Ee===!0&&Q(!1),W!=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"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},On=()=>{Ke("rejected"),W!=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"),pe(!0)},rt=p.useRef(null);return t.jsxs(qa,{windowSize:l,ref:rt,children:[t.jsx(Jn,{anchor:"right",open:sn,onClose:He,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Qn,{companyName:qn(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:et,amount:$e("0,0.[00]",be),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:He})}),t.jsxs(ai,{windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(dt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx(Ae,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Oe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(St,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx($t,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(dt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx(Ae,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(St,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx($t,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:rt,source:"BillDetailPage"})}),t.jsxs(ii,{windowSize:l,children:[Ee?t.jsx(Sa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:ot,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,dn?t.jsx(Pa,{onCancel:Mn,onProceedForMarkAsPaid:zn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||se?t.jsx(mt,{titleComponent:t.jsx(yt,{children:N.title}),descriptionComponent:t.jsx(ut,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:se?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:bn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:se?Ea(l,e):null}):null,an?t.jsx(mt,{titleComponent:t.jsx(yt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ut,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:gn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||C?t.jsxs(oi,{windowSize:l,children:[l!=="small"?t.jsxs(ri,{windowSize:l,children:[ye,e.isRecurring?t.jsx(Ae,{height:a.sp5,width:a.sp5}):null]}):null,K&&C!=null&&C.code==="deleted"?t.jsx(Pt,{color:C.color,bgColor:C.bgColor,borderColor:C.borderColor,children:C.value}):C?.value===ke.tabsById.overdue?t.jsx(Pt,{color:C.color,bgColor:C.bgColor,borderColor:C.borderColor,children:C.value}):null]}):null,L!=null&&L.code?l==="small"?t.jsx(ea,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ta,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Za(X,e,W),t.jsx(na,{sectionId:aa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Se,isBillPaid:ue,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:j},text:ae.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:j},text:ae.invoiceDate?.format(ve)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:j},text:ae.billDueDate?.format(ve)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:j},text:ae.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(li,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),he.length>0?he.map((c,y)=>{const z=e?.transactionDetails?.lines?.find(Ln=>Ln.id===c.lineId)?.recipientAmount;return t.jsxs(ei,{children:[he.length>1?t.jsx(ti,{windowSize:l,children:t.jsx(ni,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:j},text:z!=null?$e("0,0[.]00",z):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:j},text:c.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",y)}`},children:t.jsx(k,{label:{label:n.category,width:j},text:c.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",y)}`},children:t.jsx(k,{label:{label:n.class,width:j},text:c.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",y)}`},children:t.jsx(k,{label:{label:n.billable,width:j},text:c.billable!=null?wn(c.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",y)}`},children:t.jsx(k,{label:{label:n.customer,width:j},text:c.customer?.name??S,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(si,{windowSize:l,children:[t.jsx(di,{children:n.total}),t.jsx(ci,{children:be!=null?t.jsx(ia,{amount:be,integerStyles:ht.h6Medium.cssObject,decimalStyles:ht.standardMedium.cssObject}):S})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:le.brandColorGoldDark},additionalInfoLabel:W!=null&&w?.code==="pending_approval"?Et.addMoney:W})}),t.jsx(R,{})]}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Zt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Va,{children:la(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?Wa(e.outsideZeniPaymentInfo):st(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:j},text:s.paymentToBankAccount!=null?vn:s.paymentToPI!=null?s.paymentToPI.displayText:Dn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:jn(),additionalInfoLabel:t.jsx(Ka,{children:An})}),$n()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ra(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:oa(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(yi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(sa,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ft.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(da,{amount:fn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ht,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:_t,signedInUserId:oe?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:qt},historicActivities:e.billHistory.activities}),t.jsx(pi,{})]}),e.transactionDetails?.vendor!=null&&!ue&&!e.transactionDetails.isDeleted?t.jsx(ca,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:V||g,showCancel:!V&&g,cancelBtn:{label:it?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:On,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:_a(V,it),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:V?lt:()=>{W!=null?Q(!0):ot()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:V?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ua,{children:t.jsxs(Qa,{windowSize:l,children:[!X&&Le?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-container"),children:[_!=="processing"&&nt?t.jsx(Z,{onClick:mn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,_==="processing"&&!B?t.jsx(Z,{onClick:un,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,_==="processing"&&at?t.jsx(Z,{onClick:yn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&Ce?t.jsx(Z,{onClick:Rn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(Z,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,fe?t.jsx(Z,{onClick:hn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ja,{windowSize:l,children:[Cn===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:we?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:we,"data-testid":b("other-actions-icon-container"),children:we?t.jsx(xn,{}):t.jsx(Ga,{})})}):null,!X&&ge===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Oa,placement:"top",children:t.jsx(Xa,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ha,{})})}):null,!X&&Pn===!0&&Bn?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Na,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ya,{onClick:()=>re(!Le)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Ca,{id:v,children:t.jsx(pa,{isDrawerOpen:on,allowComposer:!0,drawerTitle:La,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:Nn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>Y(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Oe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Fa=(e,x)=>{const g=e?.code;if(e!=null&&g!=null)return x?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&x?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[g].color,bgColor:O[g].bgColor,borderColor:O[g].borderColor}},Ea=(e,x)=>{const g=x.transactionDetails?.recipientTotalAmount;return t.jsxs(hi,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Rt,{children:x.withdrawFrom!=null?Ot(x.withdrawFrom,e):d})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Rt,{children:g!=null?$e("0,0[.]00",g):S})]})]})},_a=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,Wa=e=>{const x=e.paymentMode,g=n.paymentOutsideZeni.offline;if(x==null||x==="other")return g;const K=n.paymentOutsideZeni.paymentModeOptions.find(oe=>oe.value===x)?.label;return`${g} ${Ma} ${K}`},Za=(e,x,g)=>{if(e)return t.jsx(gt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:wt.duplicateWarning.title,description:wt.duplicateWarning.description});if(g!=null){const K=`${x.withdrawFrom?.label??""} ${x.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(gt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",K)}`,description:g.replace("Low balance! ","")})}else return null},Ka=i.div``,Va=i.div``,Ua=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
5
|
-
`,Ya=i(
|
|
5
|
+
`,Ya=i($a)`
|
|
6
6
|
cursor: pointer;
|
|
7
7
|
color: ${e=>e.theme.colors.hero};
|
|
8
8
|
width: ${a.sp4};
|
|
@@ -26,7 +26,7 @@ import{q as Fn,ax as En,b as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP
|
|
|
26
26
|
&:hover {
|
|
27
27
|
color: ${e=>e.theme.colors.primary};
|
|
28
28
|
}
|
|
29
|
-
`,Ha=i(
|
|
29
|
+
`,Ha=i(Aa)`
|
|
30
30
|
cursor: pointer;
|
|
31
31
|
color: ${e=>e.theme.colors.hero};
|
|
32
32
|
width: ${a.sp4};
|
|
@@ -82,7 +82,7 @@ import{q as Fn,ax as En,b as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP
|
|
|
82
82
|
&:hover {
|
|
83
83
|
background-color: ${e=>e.theme.colors.background};
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
`,At=i(ua)`
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
color: ${e=>e.theme.colors.hero};
|
|
88
88
|
width: 20px;
|
|
@@ -90,7 +90,7 @@ import{q as Fn,ax as En,b as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP
|
|
|
90
90
|
&:hover {
|
|
91
91
|
color: ${e=>e.theme.colors.primary};
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
`,$t=i.div`
|
|
94
94
|
margin-top: ${e=>m.marginTop.valuePx(e.windowSize)};
|
|
95
95
|
display: flex;
|
|
96
96
|
align-items: center;
|
|
@@ -102,13 +102,13 @@ import{q as Fn,ax as En,b as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP
|
|
|
102
102
|
&:hover {
|
|
103
103
|
color: ${e=>e.theme.colors.primary};
|
|
104
104
|
}
|
|
105
|
-
`,
|
|
105
|
+
`,Ct=i.div`
|
|
106
106
|
display: flex;
|
|
107
107
|
flex-direction: row;
|
|
108
108
|
align-items: center;
|
|
109
109
|
gap: ${e=>m.rightIconsGap.valuePx(e.windowSize)};
|
|
110
110
|
margin-top: ${e=>m.closeContainerMarginTop.valuePx(e.windowSize)};
|
|
111
|
-
`,
|
|
111
|
+
`,St=i.div`
|
|
112
112
|
float: right;
|
|
113
113
|
width: ${a.sp4};
|
|
114
114
|
height: ${a.sp4};
|
|
@@ -219,7 +219,7 @@ import{q as Fn,ax as En,b as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP
|
|
|
219
219
|
margin-left: ${a.sp2};
|
|
220
220
|
margin-top: ${e=>m.iconContainerMarginTop.valuePx(e.windowSize)};
|
|
221
221
|
align-self: center;
|
|
222
|
-
|
|
222
|
+
`,Ae=i(ba)`
|
|
223
223
|
margin-left: ${a.sp2};
|
|
224
224
|
color: ${e=>e.theme.colors.hero};
|
|
225
225
|
`,yi=i.div``,hi=i.div`
|
|
@@ -263,4 +263,4 @@ import{q as Fn,ax as En,b as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP
|
|
|
263
263
|
top: 0px;
|
|
264
264
|
width: ${e=>m.navBarContainerWidth.valuePercentage(e.windowSize)};
|
|
265
265
|
z-index: 3;
|
|
266
|
-
`;export{
|
|
266
|
+
`;export{$i as default};
|