@zeniai/web-cockpit-ui 1.15.32-dev → 1.15.32-qa
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-tTJc_EMP-DYpFLcu6.js → ACHDetailsPage-tTJc_EMP-pFM2fg72.js} +1 -1
- package/dist/assets/{AIPerformancePage-ByUb4gCe-JuDAfC8h.js → AIPerformancePage-ByUb4gCe-BpY_28ry.js} +1 -1
- package/dist/assets/{AccountInfoPage-VLhd4vnL-DXlupn44.js → AccountInfoPage-VLhd4vnL-CH82haoP.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BHD9tOzB-DoEbtT2v.js → AccountInfoPageContent-BHD9tOzB-AWgn_gJD.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DNjLeZYt-D2fsUG4f.js → AccountLockedInfoModal-DNjLeZYt-Bs65R2RY.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BEfA1bsG-I47iAx1D.js → AccountReconDetailsDrawerPage-BEfA1bsG-DKbBe1NR.js} +1 -1
- package/dist/assets/{AccountRow-CK5HLVrf-CkNAMQ2u.js → AccountRow-CK5HLVrf-UG4bFvLH.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CaTnaSn3-FCk-ULE2.js → AccountsPromoCardStack-CaTnaSn3-BAAExahP.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DmajBqRK-DEh9VlDB.js → AddAddressForCardDrawer-DmajBqRK-Bglsboq5.js} +1 -1
- package/dist/assets/{AddToWalletPage-BSzuByT6-nwQQhLJ_.js → AddToWalletPage-BSzuByT6-Dm4W0lec.js} +1 -1
- package/dist/assets/{AgingReportsPage-D2gPAJKw-DtSYadID.js → AgingReportsPage-D2gPAJKw-DagIPPcQ.js} +1 -1
- package/dist/assets/{AllUserItems-BIf1v0a5-B9sgoKVP.js → AllUserItems-BIf1v0a5-BynkIHDp.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-pfP6vTc2-DNdR70Vv.js → ApAgingDetailPage-pfP6vTc2-CsBIM524.js} +1 -1
- package/dist/assets/{AppBasePage-BGPY0zrb-Cgw6EXRu.js → AppBasePage-BGPY0zrb-O6l_YflO.js} +1 -1
- package/dist/assets/{AppDrawerContent-6AX5Y5tK-C6Pu2n78.js → AppDrawerContent-6AX5Y5tK-Df5QiTFM.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-BurRfT7n-D8ylQviU.js → ApprovalRulesSettingsPage-BurRfT7n-DLBMbfnE.js} +1 -1
- package/dist/assets/{ArAgingChart-Dx8jVL0O-CupzM74j.js → ArAgingChart-Dx8jVL0O-BY7MvW1O.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BcrHD5zT-BoHizRsh.js → ArAgingDetailPage-BcrHD5zT-cjUS8p2Z.js} +1 -1
- package/dist/assets/{AttachmentView-CdIA5zLk-Ccm-n9L1.js → AttachmentView-CdIA5zLk-DjhxS6PZ.js} +1 -1
- package/dist/assets/{BankAccountSection-Qe9eRUmE-B6lQ-JzW.js → BankAccountSection-Qe9eRUmE-CRFQvuOn.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-BfN1KiTF-CqPWwbNY.js → BankAccountWarningSection-BfN1KiTF-C9ZxCC52.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Dmub7xxp-BTbJWWvl.js → BankConnectionsSettingsPage-Dmub7xxp-BaAXkeuP.js} +1 -1
- package/dist/assets/{BillDetailPage-DHCP-PUd-DpbXdVFf.js → BillDetailPage-DHCP-PUd-JAT5qs12.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DS31MPI0-Dn-T4Njh.js → BillPayApprovalRuleDetailPage-DS31MPI0-C9Q2W2Un.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-Cc3wkV9k-DMlp8m1G.js → BillPayApprovalRulesPage-Cc3wkV9k-CrZiJM7w.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DslCxm8f-Be4WJJK2.js → BillPayPromoPage-DslCxm8f-wNvwA7jN.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-DnabCnSI-3IQFcnkB.js → BillPaySetUpPage-DnabCnSI-BNAsga33.js} +1 -1
- package/dist/assets/{BillingSettingsPage-B91NuvxJ-DIg4E4pn.js → BillingSettingsPage-B91NuvxJ-Cln83Dgl.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-BOulFH2M-CfBwEemW.js → BillsBulkReviewDrawerPage-BOulFH2M--tmU5d5v.js} +1 -1
- package/dist/assets/{BoxItem-Dhk2kQlB-ymoj_NmA.js → BoxItem-Dhk2kQlB-OXDFCfkn.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BU2b5oF1-tm8Rn4Pv.js → BusinessVerificationPage-BU2b5oF1-Cp2j4jmM.js} +1 -1
- package/dist/assets/{CardNumberSubText-CRjU8jZf-DzA9ggM9.js → CardNumberSubText-CRjU8jZf-B61mqdHQ.js} +1 -1
- package/dist/assets/{CashbackDetailPage-GNwtsA01-PgGpZ01a.js → CashbackDetailPage-GNwtsA01-CwMIozV5.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DspeEPRm-DHY-84Ch.js → ChargeCardDetailPage-DspeEPRm-DX8S13cV.js} +1 -1
- package/dist/assets/{ChargeCardListPage-C4N76196-CL7LpKYX.js → ChargeCardListPage-C4N76196-CFTGE-JV.js} +1 -1
- package/dist/assets/{ChargeCardListTable-ObawcMuP-BDRD6_-S.js → ChargeCardListTable-ObawcMuP-D7RrGUiq.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-NBxH70YE-Cj3oOuEC.js → ChargeCardPaymentHistoryPage-NBxH70YE-D7h0WCak.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CN9d98ht-4K-amLMG.js → ChargeCardPromoPage-CN9d98ht-CGg8c_iQ.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-Cie4HjPR-ZtUOiOiR.js → ChargeCardSetupPage-Cie4HjPR-DUAArCS_.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DSUakLyb-fNOGZHcg.js → ChargeCardStatementsPage-DSUakLyb-C7z6gjiV.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BK6iLLEA-jWxLf2wl.js → CheckDepositDrawerPage-BK6iLLEA-DAevKQH4.js} +1 -1
- package/dist/assets/{CollapsableReportTable-vwzu1AgW-BTLj3VXb.js → CollapsableReportTable-vwzu1AgW-DzNYdKmj.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CtptCfIN-apBFYZGi.js → CompanyOfficerDetailsSection-CtptCfIN-89z_6sIF.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DyasR99R-CYkEVZS_.js → CompanyPassportCard-DyasR99R-CqrqSNIG.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Xp8Bn6ev-Bfcf_ruC.js → CompanyPassportPage-Xp8Bn6ev-BoMenRos.js} +1 -1
- package/dist/assets/{CompleteProfile-CyoPiiWR-xf-bWpXE.js → CompleteProfile-CyoPiiWR-p8lxuq0E.js} +1 -1
- package/dist/assets/{ConfettiBurst-BWYsiO3O-BTrtU6ii.js → ConfettiBurst-BWYsiO3O-CIZ2tXMa.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DDbvqxn6.js → ConstrainedInnerElement-BeIpAPjB-BuR98b4z.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CecROHGm-D41yC84M.js → CreateOrEditVendorPage-CecROHGm-DnY7d0xA.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-C6Tx5HFf-oVWkJDzH.js → CreditCardPaymentDrawerPage-C6Tx5HFf-Bu8CgyKP.js} +1 -1
- package/dist/assets/{CurrencySelectField-DAmYUy85-BWbCVGju.js → CurrencySelectField-DAmYUy85-DDMFBLrk.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CsBXicnS-QAit89b5.js → CustomerOnboardingActivationPage-CsBXicnS-DCn13rS5.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CNJZIVlJ-ascDihrH.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BrWGFePj-DMstYizh.js → CustomerOnboardingDetailPageSkeleton-BrWGFePj-Ds9-Mxye.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-EIhXr3Tb-DznkXuZH.js → CustomerOnboardingNoStepsPage-EIhXr3Tb-DEDcrzmt.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DXoS8Lvh-C2VugePi.js → CustomerOnboardingPage-DXoS8Lvh-CdTg6bFx.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BRXSZWKm-BD_syEun.js → CustomerOnboardingProductSuitePage-BRXSZWKm-D4VNiush.js} +1 -1
- package/dist/assets/{Dashboard-Bd774Cwk-AzSeLKy1.js → Dashboard-Bd774Cwk-BiBHVVjT.js} +1 -1
- package/dist/assets/{DashboardReportPage-CdyFzIwd-DfVPg9E3.js → DashboardReportPage-CdyFzIwd-CENkhRPW.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-NYtLjb5A-C-FYqFtS.js → DashboardSidebarBackgroundAnimation-NYtLjb5A-NDFzmC83.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DZk4h7x--C88hUVsA.js → DepositAccTransactionItem-DZk4h7x--DStMa87L.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-CKgbbZOW-BgK9Zw4Y.js → DepositAccTransactionListPage-CKgbbZOW-xrRCjgCc.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CY2Pv6jd-CheyQF2l.js → DomesticWireDetailsPage-CY2Pv6jd-CZpQJ0AI.js} +1 -1
- package/dist/assets/{DownloadOverlay-BflHtA84-B4UfqjFr.js → DownloadOverlay-BflHtA84-Dgd7Di67.js} +1 -1
- package/dist/assets/{DrawerPage-5Q_xvjmz-Co18igPQ.js → DrawerPage-5Q_xvjmz-BKcMK-GB.js} +1 -1
- package/dist/assets/{EditPeoplePage-Dq02jvsi-b5H5H_8q.js → EditPeoplePage-Dq02jvsi-j390bxpH.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-CYnqM-2--BRFle9yb.js → EditReimbursementDetailPage-CYnqM-2--BwY5-Ddb.js} +1 -1
- package/dist/assets/{EntityDetailPage-s91tl4Wk-BAN18nGN.js → EntityDetailPage-s91tl4Wk-i0t5a6gG.js} +1 -1
- package/dist/assets/{EntitySummarySection-BUjGJmFT-CjfLlHfk.js → EntitySummarySection-BUjGJmFT-CMsMBxCr.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-D7_-NOLq-Bds1x68a.js → ExpenseAutomationOverviewPage-D7_-NOLq-DeUtB9RJ.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CFxbvTbd-VTUN9rRL.js → ExpenseAutomationPage-CFxbvTbd-ClLCPndq.js} +1 -1
- package/dist/assets/{ExpressPayPage-gyFQBzLO-BnlxI_0_.js → ExpressPayPage-gyFQBzLO-C6dnfK-c.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BT-WJozX-m5nY8Cr0.js → FeaturePreviewPage-BT-WJozX-CdiwymXi.js} +1 -1
- package/dist/assets/{FollowStepsSection-Du2gzmC6-LTRvUZJY.js → FollowStepsSection-Du2gzmC6-BFmlLj4P.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-B0MxdV0g-O7Eaq9sr.js → GlobalReviewListPage-B0MxdV0g-DFUtbtez.js} +1 -1
- package/dist/assets/{InformationCardStack-rAU0N5_N-BNWO8W3c.js → InformationCardStack-rAU0N5_N-Bpb93aCt.js} +1 -1
- package/dist/assets/{InsightsCardStack-CEkmuCB6-CpJ0Ou6A.js → InsightsCardStack-CEkmuCB6-7rLEVZll.js} +1 -1
- package/dist/assets/{InsightsSection-CK6L0ggh-DiYoPBIp.js → InsightsSection-CK6L0ggh-DL07e_ih.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-Do41V6J0-CYPG6GBQ.js → IntegrationsSettingsPage-Do41V6J0-BNqW6pQ9.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-BnsnrM3q-TCK2vz36.js → InternationalWireSwiftDetailsPage-BnsnrM3q-D08d2r-3.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-C3EEqPT--COWTCQVg.js → InternationalWireVerificationPage-C3EEqPT--1lsgQwcy.js} +1 -1
- package/dist/assets/{InviteFormPage-x40AE2Pw-DcL74k0M.js → InviteFormPage-x40AE2Pw--eSbjVv2.js} +1 -1
- package/dist/assets/{InvitePageListView-CiVNaN8z-BNxs-kv2.js → InvitePageListView-CiVNaN8z-CNunN-fU.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DGTYEet3-q8LMzEbG.js → InvitePeoplePage-DGTYEet3-BlDrbErX.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-C4K602QO-edDVc4Pa.js → InvoiceUploadSection-C4K602QO-j04b6EK9.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-BVmxvrlx-Ca71cuKs.js → IssueChargeCardPage-BVmxvrlx-SodVw846.js} +1 -1
- package/dist/assets/{LabeledAddressValue-aejn380k-DwlaPoVh.js → LabeledAddressValue-aejn380k-6bOQCaWd.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DSU3b6xx-SFUhns2M.js → LabeledAddressValueField-DSU3b6xx-DU3RU-Xv.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CKE6Nln6-BoFyY4Lg.js → LabeledControlledCheckBoxField-CKE6Nln6-CveaZyGJ.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-D1bMiaZj-DHyO4cp8.js → LabeledCountryMultiSelectField-D1bMiaZj-D_cuEzq1.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-amXDv508-ayE33Uzo.js → LabeledCreatableSingleSelectField-amXDv508-BEfCmbSB.js} +1 -1
- package/dist/assets/{LabeledDocumentField-2_VcrmJN-NvvTwxvI.js → LabeledDocumentField-2_VcrmJN-DCZEjsHf.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-C6sW-5j7-DVIx7gwf.js → LabeledDropDownFormattedTextField-C6sW-5j7-DG93NVb6.js} +1 -1
- package/dist/assets/{LabeledText-CrAhx4_P-BV766MG2.js → LabeledText-CrAhx4_P-DQXa0efi.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BVZg_rlX-BekpWR05.js → LabeledUserSingleSelectWithSubtitlesField-BVZg_rlX-Ca8hFAhm.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DS1icRVA-0u4rotdW.js → LabeledZeniRolesDropDownField-DS1icRVA-BoNqT3FC.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-VdBxLFQc-55c5hzn3.js → LinkJETransactionPage-VdBxLFQc-D0_xsYh2.js} +1 -1
- package/dist/assets/{LockCardPage-Bs8xkpNa-BjwEOKdz.js → LockCardPage-Bs8xkpNa-BOx3YTh4.js} +1 -1
- package/dist/assets/{LowBalancePopup-B0-WExEI-lrmES1sf.js → LowBalancePopup-B0-WExEI-OOySxY8i.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BitHcc3I-C98ytwJK.js → MagicLinkACHDetailsPage-BitHcc3I-BpBn_rcA.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BFfxbnHp-N-D8lO-1.js → MagicLinkDomesticWireDetailsPage-BFfxbnHp-DqwLlbEF.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BncWaxsb-Bxijl5E3.js → MagicLinkInternationalWireDetailsPage-BncWaxsb-B9LeQj-o.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DRcOlHnh-CSKpgnmw.js → MagicLinkSuccessPage-DRcOlHnh-C5ZimEkU.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-vMBVJSVF-Cq6tgd4r.js → MagicLinkTitleSection-vMBVJSVF-CUcVl9OA.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CKtLfBik-Pke0GJpe.js → MailingDetailsSection-CKtLfBik-D2rQr7FB.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-D6Gjqgv2-CIp3b4Hf.js → MyBankConnectionsSettingsPage-D6Gjqgv2-Coya0PHS.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-y9U4DJm9-CBr9crJC.js → MyPendingActivationChargeCardListPage-y9U4DJm9-BgIst2oF.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-D7btjvQI-mZy4329L.js → MyProfileSettingsPage-D7btjvQI-wsMFdDt-.js} +1 -1
- package/dist/assets/{NavBarWithPicker-B_vr1zc6-DAolNzoK.js → NavBarWithPicker-B_vr1zc6-B78EMf2U.js} +1 -1
- package/dist/assets/{NavigationArrow-suk7KbA1-xl7E8Abj.js → NavigationArrow-suk7KbA1-_Qdpwk69.js} +1 -1
- package/dist/assets/{NavigationDots-Dqcv5rrC-DzoP8t9X.js → NavigationDots-Dqcv5rrC-CsL6s_T6.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-CRg1E4PG-_ea1Cd7Q.js → NewGlobalMerchantPage-CRg1E4PG-BMj9iBmO.js} +1 -1
- package/dist/assets/{NoDataChart-CGab-TiT-zyPeOkqC.js → NoDataChart-CGab-TiT-BSxr0LZ_.js} +1 -1
- package/dist/assets/{NoDataTable-B2CS7NPq-CvFUjFVv.js → NoDataTable-B2CS7NPq-DFxRK9hD.js} +1 -1
- package/dist/assets/{NotFoundPage-DGMaZUli-aSvAxp7G.js → NotFoundPage-DGMaZUli-CMxXoGKv.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CMkB3Lv2-DA8e_wrR.js → NotificationSettingsPage-CMkB3Lv2-BqwX2dDB.js} +1 -1
- package/dist/assets/{NotificationsListConfig-8zpkH26L-DVh3_eXQ.js → NotificationsListConfig-8zpkH26L-CFcp6Snl.js} +1 -1
- package/dist/assets/{NotificationsPage-D7bHfgsd-B-yh8id7.js → NotificationsPage-D7bHfgsd-DqNHUM5X.js} +1 -1
- package/dist/assets/{OpExByVendorPage-PfMkiQRt-CA9khm55.js → OpExByVendorPage-PfMkiQRt-Ck8CzP8b.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-DAP8RqtI.js → OverlayContainerPage-D4QU0p4o-D0K2qZsb.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CtFnhBki-D2LFAlVU.js → PandLWithForecastPage-CtFnhBki-BP3oehJ3.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-gaNLv-zU-S6LvrwnZ.js → PaymentAccountSetupBillingAddressSection-gaNLv-zU-CLnKHkn3.js} +1 -1
- package/dist/assets/{PeoplePage-3Fux2UtP-BH9APgOv.js → PeoplePage-3Fux2UtP-BFn0D1Nd.js} +1 -1
- package/dist/assets/{Preview-C8AzcAoJ.js → Preview-CE6jWq-B.js} +1 -1
- package/dist/assets/{ProductsCarousel-BPUh4FO7-CHB-qbx5.js → ProductsCarousel-BPUh4FO7-CpPxTAyT.js} +1 -1
- package/dist/assets/{PromoBaseCards-Dmg5PtKw-t6EmiKvL.js → PromoBaseCards-Dmg5PtKw-D3DSnX_g.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CLBqmpI8-DH4pGPEG.js → QBOConnectionDialog-CLBqmpI8-E3J_oINf.js} +1 -1
- package/dist/assets/{QBOSetupSection-DwqXfi9i-B1C_WaXE.js → QBOSetupSection-DwqXfi9i-DJb-5pZO.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BrfP2xcW-DQMVrjws.js → ReimbursementApprovalRuleDetailPage-BrfP2xcW-DZrhgFZ5.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BmVVfYZD-BmlPhGFM.js → ReimbursementApprovalRulesPage-BmVVfYZD-Cp_k3PlY.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-j-kNxeWY-ZsW0KMFD.js → ReimbursementDetailPage-j-kNxeWY-C5-D4Jtc.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-D2kh5AHM-CtzDBBo_.js → ReimbursementPromoPage-D2kh5AHM-5UDGWk-P.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-D2890NEZ-Dgq0MW27.js → ReimbursementSetUpPage-D2890NEZ-COjSxlqT.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-qXtPaXjg-CLjTJ8gQ.js → ReimbursementsBulkReviewDrawerPage-qXtPaXjg-eksVGh7G.js} +1 -1
- package/dist/assets/{ReloadCard-IEyjck4Y-Bypr7i2O.js → ReloadCard-IEyjck4Y-jIdRTFHd.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CQjyJkzR-DZEqJbuf.js → ReportTableViewSelector-CQjyJkzR-6mmaPr6p.js} +1 -1
- package/dist/assets/{ReportsPage-Bzz6If8N-i375FFbW.js → ReportsPage-Bzz6If8N-BpN-nXAO.js} +1 -1
- package/dist/assets/{RevenueChart-B00OufPH-B5M-AM4i.js → RevenueChart-B00OufPH-DzraRy-W.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-NnD1LDcO-CZs19GX2.js → ReviewDetailsPage-NnD1LDcO-pm3CMn8c.js} +1 -1
- package/dist/assets/{ReviewOverlay-CFouRoKn-DAQDEDmS.js → ReviewOverlay-CFouRoKn-IqHvi0g_.js} +1 -1
- package/dist/assets/{RoleWithToolTip-BBbrv_x_-D8MqiafD.js → RoleWithToolTip-BBbrv_x_-khaZx97h.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-B5gQXUI9-DH6Yv6F_.js → ScheduleDetailsFixedAssetsPage-B5gQXUI9-mjk2lFA_.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-B1Kb9usK-BWyyTA9a.js → ScheduleDetailsPage-B1Kb9usK-BwqUApR9.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-B973PTTc-C5HNHoNO.js → ScheduleSequenceTable-B973PTTc-Cn8Mt1kT.js} +1 -1
- package/dist/assets/{ScreenRoutes-BUhhsxeL.js → ScreenRoutes-vg5Qh2QR.js} +1 -1
- package/dist/assets/{SetUpAccountSection-D6dn2jSD-B2ahVHn3.js → SetUpAccountSection-D6dn2jSD-COqxBUBF.js} +1 -1
- package/dist/assets/{SignIn-CUOfBh48-Cs6fsPrc.js → SignIn-CUOfBh48-B5sdlKsu.js} +1 -1
- package/dist/assets/{SignInScreen-B9_ZQMfW.js → SignInScreen-Df51Zz91.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DOkp7pHa-D_rDsyPi.js → SpendManagementListViewPage-DOkp7pHa-DElHMVzZ.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-D_LO55uU-DKDZqq7t.js → SpendManagementPerTabPage-D_LO55uU-DEB41f1D.js} +1 -1
- package/dist/assets/{SpendManagementSection-CEMNFPRO-DOfjR_1U.js → SpendManagementSection-CEMNFPRO-DjGbh5je.js} +1 -1
- package/dist/assets/{StatementItem-BDCdJuBz-C5KxKZf9.js → StatementItem-BDCdJuBz-Cukh55mB.js} +1 -1
- package/dist/assets/{StatementsPage-CgbyzDo5-dOiBmz6G.js → StatementsPage-CgbyzDo5-B-HL3yp7.js} +1 -1
- package/dist/assets/{StatusSwitcher-BjvUftXD-BmCBIDA6.js → StatusSwitcher-BjvUftXD-CgODhKcT.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CqTYhJ6K-C6tI5OUk.js → SubTabSwitcher-CqTYhJ6K-DRHPT4Gt.js} +1 -1
- package/dist/assets/{SummaryCard-BrsOKcrF-DWcUToK_.js → SummaryCard-BrsOKcrF-C9Fgtyre.js} +1 -1
- package/dist/assets/{TaskManagementPage-C5vXcK0R-BbbjC-Tz.js → TaskManagementPage-C5vXcK0R-DLw6brQ0.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BR-bT1hY-DWqBq-hp.js → TimeRangeSwitcher-BR-bT1hY-BnYpIRKj.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-B7EXKmdi-DuvH5agU.js → TimeframeSwitcher-B7EXKmdi-BIFNruRJ.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-D265f15Y-T64K-skP.js → TimeframeSwitcherWithToggle-D265f15Y-9VCHe3zs.js} +1 -1
- package/dist/assets/{TopExCard-l-xo9Vzj-B1PmkJWv.js → TopExCard-l-xo9Vzj-A7l3G4J7.js} +1 -1
- package/dist/assets/{TopExDetailPage-DJlHcjKS-Bho9tEuD.js → TopExDetailPage-DJlHcjKS-WRDcqwSE.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-HLwrGJCG-BzrsUVPS.js → TransactionActivityLogPage-HLwrGJCG-CqmMiMh1.js} +1 -1
- package/dist/assets/{TransactionDetailPage-63dqDjgt-B4iYNZGu.js → TransactionDetailPage-63dqDjgt-dQr_ArB9.js} +1 -1
- package/dist/assets/{TransactionList-BFD8ZfJ--BUbGyMLK.js → TransactionList-BFD8ZfJ--Dty_zXem.js} +1 -1
- package/dist/assets/{TransactionListBig-Cd05cE1H-CAcC3Nig.js → TransactionListBig-Cd05cE1H-Vr7G0Bc_.js} +1 -1
- package/dist/assets/{TransactionListPage-klQ0oBzv-C-lEqqat.js → TransactionListPage-klQ0oBzv-CWOUv_bA.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-D93V6PtT-CNzgHcFV.js → TransactionVendorDetailPage-D93V6PtT-DCMoFIDM.js} +1 -1
- package/dist/assets/{TransferDrawerPage-B_Hy3gOY-Clor74dq.js → TransferDrawerPage-B_Hy3gOY-BUE_mbSQ.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CJrfTwBd-BzblsfCt.js → TreasuryOverviewPage-CJrfTwBd-yztXDS6Z.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BRwTbEqr-C3oIH7Gd.js → TreasuryPromoPage-BRwTbEqr-DJ3jZwXW.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CpVaxZhO-BbzJpZN2.js → TreasuryStatementsPage-CpVaxZhO-BWcDVJZb.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-CUHNWUy--WkFWI_33.js → TreasuryTaxLetterPage-CUHNWUy--BR32YlOa.js} +1 -1
- package/dist/assets/{TrendChart-DLex57el-Bd2WzCxo.js → TrendChart-DLex57el-zv0zZoaP.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CwB4wDSN-BMowh4TY.js → TrendWithTransactions-CwB4wDSN-JWXbfBke.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-CO7p4-Kx-BZ0VCWbX.js → UncategorizedAccountsMappingPage-CO7p4-Kx-cn_CS851.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-BDUTrQY0-SS19l8Xm.js → UnitIntegrationPage-BDUTrQY0-BmW62ymv.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DID6dcux-DPsjTLN9.js → UploadAdditionalDocumentOverlay-DID6dcux-Ckv79ZZi.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DySyuG4R-82OgFcz6.js → Vendor2FAPopup-DySyuG4R-UvuUDcWA.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CS0fu-kk-0b8QPMYJ.js → VendorACHDetailsPage-CS0fu-kk-rcZYGPYP.js} +1 -1
- package/dist/assets/{VendorDetailPage-DRgwiRee-B2tPGfn4.js → VendorDetailPage-DRgwiRee-wWBBFy59.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-B3mJqOdK-BoqOh8HT.js → VendorDomesticWireDetailsPage-B3mJqOdK-Ct4fxfW0.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CtReDQX3-DVZfKoI-.js → VendorFiling1099EditablePage-CtReDQX3-CRg4vCPx.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-BGVFKcId-7yTwYSjG.js → VendorFirstReviewPage-BGVFKcId-BGA-fUcs.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DtFlzIWc-CYBlV4Tg.js → VendorInternationalWireDetailsPage-DtFlzIWc-BlGWDfHV.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CfWP7ILx-BygrRGvT.js → VendorInternationalWireSwiftDetailsPage-CfWP7ILx-vSo4LXrT.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DlCCF8w7-CQtCi0t6.js → VendorsAccountsSection-DlCCF8w7-DMjGoMkr.js} +1 -1
- package/dist/assets/{VerifyDevice-CDChzTa5-fyUSUzra.js → VerifyDevice-CDChzTa5-CiqDyP7N.js} +1 -1
- package/dist/assets/{VideoPlayer-D6snpLby-D_sf9SSM.js → VideoPlayer-D6snpLby-KoCddYjs.js} +2 -2
- package/dist/assets/{VideoPopup-SylQ4T6l-DUuwzYmi.js → VideoPopup-SylQ4T6l-CF5IwZgl.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-D67GprmZ-Dc_Jo6Z8.js → WarningsDrawerPage-D67GprmZ-CgplxM3B.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BfYIZPob-DCZW5ugr.js → ZeniAccountDetailPage-BfYIZPob-BFuF25mI.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-B5luRVEl-ntYaih24.js → ZeniAccountListViewPage-B5luRVEl-C9hBOJjc.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-BQXOnqhc-D38WZkNq.js → ZeniAccountNavBarPieces-BQXOnqhc-B7qq09hp.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CHCmIfff-DDgdwEph.js → ZeniAccountPromoPage-CHCmIfff-DNkyjRLb.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-BzCqTug2-BN8jteFY.js → ZeniAccountSetupPage-BzCqTug2-oVmLSJku.js} +1 -1
- package/dist/assets/{ZeniCopyright-CiZTMpf7-C6VWdJm_.js → ZeniCopyright-CiZTMpf7-CB2iOEjv.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-C--qNr-a-BTUYZm1a.js → ZeniTransferAmountSlider-C--qNr-a-BuYongFg.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-Cna2JrPi.js → add-to-wallet-DgdBD8_G-UQIq3ULm.js} +1 -1
- package/dist/assets/{analytics-Cz7GTPb4.js → analytics-DHdlb_9-.js} +1 -1
- package/dist/assets/{analyticsHelper-D0FSznOb.js → analyticsHelper-C30Y_u4j.js} +1 -1
- package/dist/assets/{analyticsHelper-DEOt00qX-3E5keIK0.js → analyticsHelper-DEOt00qX-B6cD_X-w.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-D7Guqwvj.js → arrow-south-east-round-PEovUgvH-IpjDLrJq.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DemMuLOK.js → auto-transfer-rule-mbafm5D3-C8thnZnF.js} +1 -1
- package/dist/assets/{chartTypes-BqKhmkSG-DaJzMpYW.js → chartTypes-BqKhmkSG-Dm79UsfR.js} +1 -1
- package/dist/assets/{commonDimensions-DbvjFx29-M5i-B_2F.js → commonDimensions-DbvjFx29-Devka240.js} +1 -1
- package/dist/assets/{commonTypes-TAIHQ3fk-BCFWsh3s.js → commonTypes-TAIHQ3fk-CTXmlKHC.js} +1 -1
- package/dist/assets/{constants-DAniohK4.js → constants-0pWd-y33.js} +1 -1
- package/dist/assets/{core-BHxev_Cl.js → core-C93jO8kN.js} +1 -1
- package/dist/assets/{dash.all.min-CtGtyz3U.js → dash.all.min-f6NrshQA.js} +1 -1
- package/dist/assets/{detailCommon-BEEE23XQ-C9xvv1qO.js → detailCommon-BEEE23XQ-CugPzv3_.js} +1 -1
- package/dist/assets/{downloadPdf-CDTl_Ev--DwC3gr_X.js → downloadPdf-CDTl_Ev--WijadWQi.js} +1 -1
- package/dist/assets/{empty-ycUigo07.js → empty-CJZxu4sg.js} +1 -1
- package/dist/assets/{empty-BjQqAnEr.js → empty-DxMunrtX.js} +1 -1
- package/dist/assets/{epic-ouf99YlI.js → epic-3MonQhFP.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-DQLMM0Jc.js → gift-box-Cmt9OgIZ-Bn1I3mGT.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-EQfaFxjc.js → graphic-no-data-l-DU4J8fDt-pCVDNzvm.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-iUVSxIP-.js → graphic-no-data-net-burn-l-CzmycA0m-4_ToNcB7.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-SL3xJab2.js → handshake-BPg58FML-BdUt6D3B.js} +1 -1
- package/dist/assets/{helper-Cl1NuKS2-BXsdA-OL.js → helper-Cl1NuKS2-DA3i4vMs.js} +1 -1
- package/dist/assets/{index-BCs-C6Pl.js → index-B8Ldv4P_.js} +1 -1
- package/dist/assets/{index-BVl75ift.js → index-BFMYnSsH.js} +1 -1
- package/dist/assets/{index-CZ6iVFod.js → index-BQimDr1m.js} +1 -1
- package/dist/assets/{index-DKIaTfNE.js → index-BbPJ4ye9.js} +1 -1
- package/dist/assets/{index-DDBZjEhE.js → index-CF5L0BgD.js} +1 -1
- package/dist/assets/{index-DOsjGhSZ.js → index-Dt6WXxS3.js} +7 -7
- package/dist/assets/{index-wXhIQbLd.js → index-xxKEhi3t.js} +1 -1
- package/dist/assets/{lexical-Dja08wvc.js → lexical-CQmVV2hl.js} +1 -1
- package/dist/assets/{liveblocks-KFxhhSr3.js → liveblocks-BaVa0z_w.js} +1 -1
- package/dist/assets/{lottie-DDoT_sT4.js → lottie-YhRXW_KK.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-CBq8hzRN-DunJzr3i.js → mapLoadingInProgressToTreeNode-CBq8hzRN-fGP5_RZ_.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DtYXgw-F-TAq1Mekz.js → mapSectionWithAcOnlyToTreeNode-DtYXgw-F-D7bXRkXn.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-ycecmJKa-Hd0mRrjF.js → mapSpacerToTreeNode-ycecmJKa-1F2tGVv_.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-ByLaAQOt-Biy9DgAh.js → mapTimeframeBalancesToTreeNode-ByLaAQOt-XwplQjMo.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-C8E1dOPs-B00cM4ms.js → mapTimeframeBalancesToTreeNode-C8E1dOPs-D2GkQkjw.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-v8qXI-n8-DJfWjA89.js → mapTimeframeHeaderLoadingInProgressToTreeNode-v8qXI-n8-DD_bXjhO.js} +1 -1
- package/dist/assets/{mui-B2MHg-Mu.js → mui-C6eJTEkq.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-Dqz3fZ9M.js → page-detail-CWX5S47F-Yb4axvR4.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-CL2f5PJh.js → panelSelectedMixin-CzfD5-Zs-BRINm6JS.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CIrmE0sr.js → radio-default-CiSgisfh-CqH5-CYp.js} +1 -1
- package/dist/assets/{react-BzzxkC3X.js → react-5ECLxGDi.js} +1 -1
- package/dist/assets/{react-GWLRtgTU.js → react-BTY-_4sf.js} +1 -1
- package/dist/assets/{react-B5mg5_zl.js → react-Bk6Q-9i6.js} +2 -2
- package/dist/assets/{react-DJSfrAX2.js → react-C1NlxPKy.js} +1 -1
- package/dist/assets/{react-CciBBuhn.js → react-C7dlYMdK.js} +1 -1
- package/dist/assets/{react-Dn-7aN5D.js → react-CipOZtev.js} +1 -1
- package/dist/assets/{react-BWSczdFz.js → react-DlLFRVcG.js} +1 -1
- package/dist/assets/{react-DqyAh0nx.js → react-QJ7nsstW.js} +1 -1
- package/dist/assets/{recharts-B7o7FzH2.js → recharts-VA_e6pfv.js} +1 -1
- package/dist/assets/{sentry-otjdlEta.js → sentry-A6dpAzWc.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DDxUv5Gm.js → shield-DOlUxcFf-CqkP4FZZ.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DKhXdLyk-D9LH1M_c.js → toCOABalancesWithID-DKhXdLyk-CihwMX25.js} +1 -1
- package/dist/assets/{toChartData-B3G_wqcy-uAjzhvaS.js → toChartData-B3G_wqcy-B07RZtI8.js} +1 -1
- package/dist/assets/{uploadAttachment-CLjjVoJ0-Do2BBtK7.js → uploadAttachment-CLjjVoJ0-64KjHpia.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-BhANrZur.js → uploadReceipts-Dge0cNF1-C900EqcY.js} +1 -1
- package/dist/assets/{url-DCdUzyOP.js → url-DKba5ZIL.js} +1 -1
- package/dist/assets/{url-Dy00DrU7.js → url-DSFPtAKP.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-Sm0Bw4m0.js → useLongPress-GCK2COYQ-pJzwdnez.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BmAEJQI7.js → usp-line-BBd1wKwW-Cjh_pCgj.js} +1 -1
- package/dist/assets/{utils-BbmM3Vsp.js → utils-DmFXC2Xt.js} +1 -1
- package/dist/assets/{zeni-epic-state-DVinyIRY.js → zeni-epic-state-BGx2roB-.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CNJZIVlJ-BZqVU5dg.js +0 -1
package/dist/assets/{BillDetailPage-DHCP-PUd-DpbXdVFf.js → BillDetailPage-DHCP-PUd-JAT5qs12.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Zn,aw as Un,d as Kn,gk as Vn,gl as Hn,gm as qn,gn as Xn,ce as Gn,aR as Yn,y,V as t,fb as ct,fc as Qn,o as a,fd as Jn,fe as ea,ff as ta,aO as Se,fg as na,aQ as b,bD as pt,bp as mt,dw as ut,cq as yt,cr as ht,cs as bt,go as aa,gp as ia,gq as la,gr as oa,fl as j,gs as A,fn as $,fo as k,fk as ra,b as gt,p as oe,fm as Ot,fu as sa,fp as da,fq as ca,gt as pa,gu as ma,aS as ua,ao as ft,bU as ve,gv as ya,gw as L,F as ha,u as s,ag as ba,c3 as ga,gx as fa,x as xa,gy as wa,fv as xt,H as Ta,d4 as va,cj as Da,gz as wt,b8 as Ia,ba as ja,c as Aa,bW as Ft,d5 as $a,gA as ka,ai as Et,av as Sa,b6 as Ca,bu as Pa,gB as Ba,al as Ra}from"./index-DOsjGhSZ.js";import{a as p}from"./sentry-otjdlEta.js";import{n as i}from"./mui-B2MHg-Mu.js";import{a as za}from"./liveblocks-KFxhhSr3.js";import{bO as Ma,bL as Na,bP as La,FR as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-DVinyIRY.js";import{o as Wa,t as Za}from"./LowBalancePopup-B0-WExEI-lrmES1sf.js";import"./core-BHxev_Cl.js";import"./lottie-DDoT_sT4.js";import"./recharts-B7o7FzH2.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="ae8f3988-d68a-42c6-b6ed-a983af14bd9e",e._sentryDebugIdIdentifier="sentry-dbid-ae8f3988-d68a-42c6-b6ed-a983af14bd9e")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:qa,edit:Xa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Ga}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:qt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:Xt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:q,isLoading:P}=qn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:q.filter(r=>r.resolved===!1&&!r.id.includes(Xn)),[q,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&q.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,q,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,qe]=p.useState(!1),[Xe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,X=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&X?.code?X:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:X?.code!=null&&(ae?.code=="approved"||X.code==="mark_as_paid")?X:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&qt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Xt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),In=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",An=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,$n=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Ii,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?$a(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{J as Zn,aw as Un,d as Kn,gk as Vn,gl as Hn,gm as qn,gn as Xn,ce as Gn,aR as Yn,y,V as t,fb as ct,fc as Qn,o as a,fd as Jn,fe as ea,ff as ta,aO as Se,fg as na,aQ as b,bD as pt,bp as mt,dw as ut,cq as yt,cr as ht,cs as bt,go as aa,gp as ia,gq as la,gr as oa,fl as j,gs as A,fn as $,fo as k,fk as ra,b as gt,p as oe,fm as Ot,fu as sa,fp as da,fq as ca,gt as pa,gu as ma,aS as ua,ao as ft,bU as ve,gv as ya,gw as L,F as ha,u as s,ag as ba,c3 as ga,gx as fa,x as xa,gy as wa,fv as xt,H as Ta,d4 as va,cj as Da,gz as wt,b8 as Ia,ba as ja,c as Aa,bW as Ft,d5 as $a,gA as ka,ai as Et,av as Sa,b6 as Ca,bu as Pa,gB as Ba,al as Ra}from"./index-Dt6WXxS3.js";import{a as p}from"./sentry-A6dpAzWc.js";import{n as i}from"./mui-C6eJTEkq.js";import{a as za}from"./liveblocks-BaVa0z_w.js";import{bO as Ma,bL as Na,bP as La,FR as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-BGx2roB-.js";import{o as Wa,t as Za}from"./LowBalancePopup-B0-WExEI-OOySxY8i.js";import"./core-C93jO8kN.js";import"./lottie-YhRXW_KK.js";import"./recharts-VA_e6pfv.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="ae8f3988-d68a-42c6-b6ed-a983af14bd9e",e._sentryDebugIdIdentifier="sentry-dbid-ae8f3988-d68a-42c6-b6ed-a983af14bd9e")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:qa,edit:Xa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Ga}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:qt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:Xt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:q,isLoading:P}=qn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:q.filter(r=>r.resolved===!1&&!r.id.includes(Xn)),[q,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&q.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,q,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,qe]=p.useState(!1),[Xe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,X=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&X?.code?X:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:X?.code!=null&&(ae?.code=="approved"||X.code==="mark_as_paid")?X:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&qt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Xt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),In=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",An=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,$n=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Ii,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?$a(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
2
|
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Qn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),G=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!G&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,Xe,r)},rt=()=>{qe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Ge(!0),rt()},Fn=()=>{Qt(),qe(!1),Xe&&Ge(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx($t,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx($t,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Qa(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(G,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:I},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(gi,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recipientAmount",u)}`},children:t.jsx(A,{label:{label:n.amount,width:I},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("lineDescription",u)}`},children:t.jsx(A,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("account",u)}`},children:t.jsx(A,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("class",u)}`},children:t.jsx(A,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billable",u)}`},children:t.jsx(A,{label:{label:n.billable,width:I},text:r.billable!=null?In(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("customer",u)}`},children:t.jsx(A,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs(Ae,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?An:d.paymentToPI!=null?d.paymentToPI.displayText:$n,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(Ai,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Gt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ja(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Q(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!G&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(At,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(At,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!G&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(si,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!G&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Ga,threads:q,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:It.resolveComment,threadUnResolve:It.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Qa=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs($i,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Ja=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as O,u as L,J as G,F as U,a9 as M,aR as W,aK as J,cG as K,V as r,bD as X,ac as H,aS as Q,o as u,ga as Y}from"./index-
|
|
1
|
+
import{y as O,u as L,J as G,F as U,a9 as M,aR as W,aK as J,cG as K,V as r,bD as X,ac as H,aS as Q,o as u,ga as Y}from"./index-Dt6WXxS3.js";import{a as T}from"./sentry-A6dpAzWc.js";import{n as h}from"./mui-C6eJTEkq.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-Du2gzmC6-BFmlLj4P.js";import"./liveblocks-BaVa0z_w.js";import"./core-C93jO8kN.js";import"./recharts-VA_e6pfv.js";import"./zeni-epic-state-BGx2roB-.js";import"./lottie-YhRXW_KK.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="4d146a0a-07a9-4b41-b891-436b67ba6963",e._sentryDebugIdIdentifier="sentry-dbid-4d146a0a-07a9-4b41-b891-436b67ba6963")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",N="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:E,onSaveRuleSuccess:I}){const S=G(),t=U.getLocalizedStrings().commonSetUp.approval,P=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=M({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=W(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let b=p.length>1?p.length-1:0,v=p.length>0?p[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=p.findIndex(d=>d.approvalRuleId===i),v=b>0?p[b-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{E()}),q=async(i,d)=>{s(d)};return T.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const z=J(d);K(()=>q($,z))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(H,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:V,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:N,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(Q,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[m]:n?[]:[m],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[N]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,F as S,V as t,bD as G,T as V,aQ as y,y as r,al as U,o as i,aO as z,bU as P,cq as q,cr as O,cs as F,d0 as K,u as l,ba as J,H as T,b9 as Q,p as j,c$ as X,bu as Y,b as Z}from"./index-
|
|
1
|
+
import{J as W,F as S,V as t,bD as G,T as V,aQ as y,y as r,al as U,o as i,aO as z,bU as P,cq as q,cr as O,cs as F,d0 as K,u as l,ba as J,H as T,b9 as Q,p as j,c$ as X,bu as Y,b as Z}from"./index-Dt6WXxS3.js";import{n as o}from"./mui-C6eJTEkq.js";import{a as ee}from"./sentry-A6dpAzWc.js";import"./liveblocks-BaVa0z_w.js";import"./core-C93jO8kN.js";import"./recharts-VA_e6pfv.js";import"./zeni-epic-state-BGx2roB-.js";import"./lottie-YhRXW_KK.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2277117d-57d9-4827-9ec9-85d45a362935",e._sentryDebugIdIdentifier="sentry-dbid-2277117d-57d9-4827-9ec9-85d45a362935")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},M={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,H=()=>{h(!0)},N={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(k,{}),t.jsx(le,{}),t.jsx(k,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(R,{$isDisabled:!0,"data-testid":y("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(R,{onClick:H,"data-testid":y("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":y("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{f(x)},"data-testid":y("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,E)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(A,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},E))})}),v?t.jsx(q,{titleComponent:t.jsx(F,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(O,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:N}):null]})},oe=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-DslCxm8f-Be4WJJK2.js → BillPayPromoPage-DslCxm8f-wNvwA7jN.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as X,J as j,aR as Y,V as e,fw as ee,bD as ie,i as C,aQ as B,ae as m,F as I,o as s,aq as se,R as le,d as U,aU as D,am as oe,y as re,p as $,cF as te,aV as ae,bb as ne,u as de}from"./index-
|
|
1
|
+
import{aw as X,J as j,aR as Y,V as e,fw as ee,bD as ie,i as C,aQ as B,ae as m,F as I,o as s,aq as se,R as le,d as U,aU as D,am as oe,y as re,p as $,cF as te,aV as ae,bb as ne,u as de}from"./index-Dt6WXxS3.js";import{a as g}from"./sentry-A6dpAzWc.js";import{n as l}from"./mui-C6eJTEkq.js";import{FG as ce,bS as pe,FH as me}from"./zeni-epic-state-BGx2roB-.js";import{C as xe}from"./VideoPopup-SylQ4T6l-CF5IwZgl.js";import{M as b}from"./usp-line-BBd1wKwW-Cjh_pCgj.js";import"./liveblocks-BaVa0z_w.js";import"./core-C93jO8kN.js";import"./recharts-VA_e6pfv.js";import"./lottie-YhRXW_KK.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";import"./VideoPlayer-D6snpLby-KoCddYjs.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="a4796aef-ddca-4f74-af0b-f919a0469a77",i._sentryDebugIdIdentifier="sentry-dbid-a4796aef-ddca-4f74-af0b-f919a0469a77")}catch{}})();const M="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-DnabCnSI-3IQFcnkB.js → BillPaySetUpPage-DnabCnSI-BNAsga33.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as _e,J as $e,aR as E,a9 as Oe,cG as Re,F as Ue,aW as Z,V as t,fe as ze,p as He,aQ as Le,y as u,bD as qe,T as Me,ac as Ne,fx as z,dR as Ge,fy as Je,bx as Qe,dH as Ye,bU as Ze,fz as Ke,aS as Xe,o as L,fA as et,u as a,al as tt,bL as it}from"./index-
|
|
1
|
+
import{d as _e,J as $e,aR as E,a9 as Oe,cG as Re,F as Ue,aW as Z,V as t,fe as ze,p as He,aQ as Le,y as u,bD as qe,T as Me,ac as Ne,fx as z,dR as Ge,fy as Je,bx as Qe,dH as Ye,bU as Ze,fz as Ke,aS as Xe,o as L,fA as et,u as a,al as tt,bL as it}from"./index-Dt6WXxS3.js";import{a as m}from"./sentry-A6dpAzWc.js";import{n as b}from"./mui-C6eJTEkq.js";import{bJ as nt}from"./zeni-epic-state-BGx2roB-.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DID6dcux-Ckv79ZZi.js";import"./liveblocks-BaVa0z_w.js";import"./core-C93jO8kN.js";import"./recharts-VA_e6pfv.js";import"./lottie-YhRXW_KK.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="fd410dc9-7f28-4283-a6b4-8c12f6e41961",e._sentryDebugIdIdentifier="sentry-dbid-fd410dc9-7f28-4283-a6b4-8c12f6e41961")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},K="billPaySetUpPage",D="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=_e(),i=$e(),[A,S]=m.useState(!1),M=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:W,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,_=W.link_account.updateStatus,$=W.update_account.updateStatus,j=E(f),J=E(P.fetchState),Q=E(_.fetchState),Y=E($.fetchState),x=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>H(e),[e]),values:H(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&j==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed"||Y==="In-Progress"&&$.fetchState==="Completed")&&x.reset(H(e))},[j,f,x,e,Q,_.fetchState,Y,$.fetchState]);const Ve=x.handleSubmit(w=>{y.trackEnableBillPay(),me()}),je=async(w,F)=>{const o=F[D];if(w.includes(D)){if(w.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=N.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const w=x.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>je(o,F))});return()=>{w.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,J,P.fetchState]);const{commonSetUp:Be,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Be,{billPaySetup:l}=Fe.billPay,O=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=O?r.setupVerifiedSubTitle:l.setupSubTitle,De=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=k.mode==="light"?new Z(k.colors.brandColorJadeLight):new Z(k.colors.brandColorJadeDark),We=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:He.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:M,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),De?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...x,children:t.jsx("form",{id:X(K),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(z,{onClick:We,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:N,plaidConnectionDetails:W,allBankAccounts:Ae,sectionId:D,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(z,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(z,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ze,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&V.length>0?t.jsx(Xe,{formId:X(K),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:O&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as be,J as we,a9 as xe,cG as Ce,aW as k,F as Pe,V as t,y as C,bD as Ie,T as Ae,ac as ve,bx as je,cH as ke,aS as Te,o as a,hO as $e,f0 as De,f1 as Ve,u as P,al as Be,gX as Ee,p as Oe,H as ze}from"./index-
|
|
1
|
+
import{d as be,J as we,a9 as xe,cG as Ce,aW as k,F as Pe,V as t,y as C,bD as Ie,T as Ae,ac as ve,bx as je,cH as ke,aS as Te,o as a,hO as $e,f0 as De,f1 as Ve,u as P,al as Be,gX as Ee,p as Oe,H as ze}from"./index-Dt6WXxS3.js";import{a as H}from"./sentry-A6dpAzWc.js";import{n as r}from"./mui-C6eJTEkq.js";import{M as Le,o as W,t as Me}from"./PaymentAccountSetupBillingAddressSection-gaNLv-zU-CLnKHkn3.js";import{F as _e}from"./SetUpAccountSection-D6dn2jSD-COqxBUBF.js";import"./liveblocks-BaVa0z_w.js";import"./core-C93jO8kN.js";import"./recharts-VA_e6pfv.js";import"./zeni-epic-state-BGx2roB-.js";import"./lottie-YhRXW_KK.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";import"./commonTypes-TAIHQ3fk-CTXmlKHC.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="448d9719-f645-4f4d-85bb-21911fb78130",e._sentryDebugIdIdentifier="sentry-dbid-448d9719-f645-4f4d-85bb-21911fb78130")}catch{}})();const p={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,P[5],P[5]),iconWidthHeight:new C(20,P[4]),subTitlePaddingTop:new C(12,P[3])},He={title:new ze("standardSemiBold","largeSemiBold")},R="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:G,stripeKey:J,googleAPIKey:K,companyId:N,onUpdateAccountClick:q,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:Q,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:T,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:se,onBillingAddressSave:ae,onAddressEditHandler:re})=>{const w=be(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:$},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,D=y?.providerVerificationStatus,ue=$.fetchState==="In-Progress"||$.fetchState==="Not-Started",f=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(i),values:U(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{ae(N)}),V=i.subscriptionBillingAddressSaveStatus,me=async(c,s)=>{const g=s[I];if(c.includes(n)&&s[n]!=null){const v=f.getValues(`${n}`).country;let u=s[n];if(c.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:b}=s[n].street,j=De(b?.country);u={street:s[n].street??l.strings.empty,city:b?.locality??l.strings.empty,state:b?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:b?.countryCode??l.strings.empty,postalCode:b?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Ve(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&q(g.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=f.watch((s,{name:g})=>{g!=null&&s!=null&&Ce(()=>me(g,s))});return()=>{c.unsubscribe()}});const B=w.mode==="light"?new k(w.colors.brandColorJadeLight):new k(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=Pe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,O=h.cardsList.length>0,z=h?.cardsList[0]?.brand??"other",L=h?.addCardPaymentSourceStatus.fetchState,x=Le(S.header,S.titleText,S.protectedCardNo,h);let M;O&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:O===!0,icon:{element:t.jsx("img",{src:W(z).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(z).name}),color:new k(B)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=H.useState(!1);return t.jsxs(Re,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(We,{windowSize:o,children:[t.jsx(Ue,{windowSize:o,children:ge}),ue?t.jsx(Fe,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(qe,{children:t.jsx("form",{id:F(R),onSubmit:pe,children:t.jsxs(Ge,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:Q,onEstablishConnectionSuccess:ee,isError:D?.code==="require_info"||D?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:T,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Je(o,l.headers.billingAddress,ce,K,d)]})})})}),ke(f.formState.dirtyFields)?t.jsx(Te,{formId:F(R),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:V?.fetchState==="In-Progress",isDisabled:V?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:T,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:G.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:se,stripeKey:J,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},U=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:$e(n,e.subscriptionBillingAddress)[n]}},We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as v,cq as V,cr as q,cs as M,kb as W,aZ as Z,F as z}from"./index-
|
|
1
|
+
import{V as v,cq as V,cr as q,cs as M,kb as W,aZ as Z,F as z}from"./index-Dt6WXxS3.js";import{a as f}from"./sentry-A6dpAzWc.js";import{Gn as G}from"./zeni-epic-state-BGx2roB-.js";import{u as K}from"./ReviewOverlay-CFouRoKn-IqHvi0g_.js";import"./liveblocks-BaVa0z_w.js";import"./core-C93jO8kN.js";import"./recharts-VA_e6pfv.js";import"./mui-C6eJTEkq.js";import"./lottie-YhRXW_KK.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="aeb0f2c0-57b6-4d9f-8a0f-bf3eb9e7185c",e._sentryDebugIdIdentifier="sentry-dbid-aeb0f2c0-57b6-4d9f-8a0f-bf3eb9e7185c")}catch{}})();const{common:s,spendManagement:{billPay:x}}=z.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,b]=f.useState(T(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{b(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&b(T(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Y(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},D={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:F,description:N}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(V,{titleComponent:v.jsx(M,{children:y.title}),descriptionComponent:v.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(K,{title:F,description:{content:N,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:Z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&G(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=W([...l,t.isRecurring?"recurring":"one-time"])}),l},Y=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let b="",p="";return e==="Completed"&&!t?(b=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(b=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:b,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as l,V as s,aQ as b,o as e}from"./index-
|
|
1
|
+
import{J as l,V as s,aQ as b,o as e}from"./index-Dt6WXxS3.js";import{n as a}from"./mui-C6eJTEkq.js";import{o as p}from"./commonDimensions-DbvjFx29-Devka240.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="9b30b1f1-f6cb-42c2-b3f4-9c1bfc6aa47e",o._sentryDebugIdIdentifier="sentry-dbid-9b30b1f1-f6cb-42c2-b3f4-9c1bfc6aa47e")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as dt,J as ut,aR as Te,V as a,ae as G,a9 as pt,cW as mt,ay as ft,cG as yt,aZ as ve,aP as Oe,gd as ht,i as gt,bD as xt,aQ as St,cH as wt,cq as Ct,cr as Dt,cs as bt,T as Tt,ac as vt,aS as Ot,o as l,y as F,am as Ve,F as je,ge as It,fB as Ie,f0 as Nt,R as $t,x as kt,al as Ae,H as Pt,a as Ft,u as N}from"./index-DOsjGhSZ.js";import{a as V}from"./sentry-otjdlEta.js";import{n as d}from"./mui-B2MHg-Mu.js";import{ER as Vt,bi as Y,Fm as jt,Fl as At,Fn as _t}from"./zeni-epic-state-DVinyIRY.js";import{r as Lt,z as Bt}from"./CompanyOfficerDetailsSection-CtptCfIN-apBFYZGi.js";import"./liveblocks-KFxhhSr3.js";import"./core-BHxev_Cl.js";import"./recharts-B7o7FzH2.js";import"./lottie-DDoT_sT4.js";import"./analytics-Cz7GTPb4.js";import"./lexical-Dja08wvc.js";import"./utils-BbmM3Vsp.js";import"./helper-Cl1NuKS2-BXsdA-OL.js";import"./LabeledAddressValueField-DSU3b6xx-SFUhns2M.js";import"./LabeledCountryMultiSelectField-D1bMiaZj-DHyO4cp8.js";import"./LabeledCreatableSingleSelectField-amXDv508-ayE33Uzo.js";import"./LabeledDocumentField-2_VcrmJN-NvvTwxvI.js";import"./commonTypes-TAIHQ3fk-BCFWsh3s.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new t.Error().stack;S&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="c4d49190-e09c-4d31-b019-f94271c9dc89",t._sentryDebugIdIdentifier="sentry-dbid-c4d49190-e09c-4d31-b019-f94271c9dc89")}catch{}})();const x={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,N[3]),subTitlePaddingBottom:new F(N[3],N[3]),verificationDetailsRowGap:new F(12,N[5],N[5]),termsPaddingLeftRight:new F(N[0],N[3])},zt={stepTitle:new Pt("h6Regular","h5Regular")},Ne="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:Et,currency:$e,footer:ke,strings:{empty:Rt}}}=je.getLocalizedStrings(),va=({businessVerificationDetails:t,allNationalityCountries:S,verficationDetailsFetchState:$,isRefreshingViewInBackground:L,filesEndPoint:i,authParams:B,productType:y,allIndustries:j,companyTitles:z,maxInsuredAmount:m,isDisabled:k,isSettings:r=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:Z=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Le,onBackClick:A,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:Ye,onExecuteTreasuryTransfer:Ze})=>{const qe=dt(),u=ut(),{updateStatus:R,companyView:_,companyDetailsLocalData:o,companyOfficerLocalData:C}=t,He=Te(R.fetchState),U=_?.company.company.featuresActivationInfo.connectedAccountProvider,Je=U==="unit"?a.jsxs(Jt,{children:[s.terms.term1,a.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ke,q]=V.useState(!1),[M,oe]=V.useState("save"),[H,Qe]=V.useState(!1),p=pt({mode:"all",reValidateMode:"onChange",defaultValues:Ut(t,j,z,S)}),{isValid:Xe}=p.formState,W=_?.company.company.companyBillPayInfo,J=_?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?J?.companyVerificationStatus:W?.companyVerificationStatus,v=Object.values(C).findIndex(e=>e?.isSelectedForVerification===!0),O=`Officer_${v<0?1:v+1}`,et=()=>{const e=C[O],n=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,D=e?.firstName,I=e?.lastName,ue=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,me=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?Y(fe):void 0,he=o?.companyDescription,X=o?.companyLegalName,ge=o?.companyIndustry,xe=o?.phone,Se=o?.website,we=o?.addressStatus?.addressToCreate!=null?Y(o?.addressStatus?.addressToCreate):void 0,ee=o?.primaryContactLocalData,Ce=ee?.firstName,De=ee?.lastName,be=ee?.email;n!=null&&f!=null&&D!=null&&I!=null&&c!=null&&ue!=null&&me!=null&&ye!=null&&pe!=null&&he!=null&&X!=null&&xe!=null&&Se!=null&&ge!=null&&X!=null&&we!=null&&Ce!=null&&De!=null&&be!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:D,lastName:I,companyRole:ue,phone:me,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:X,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:De,email:be},y,r?"Settings":void 0)},tt=()=>{const e=C[O],n=o?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,D=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):D&&!I?((!n?.firstName||!n?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=C[O],n=o?.primaryContactLocalData,c=e?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||K!=null&&K?.length>0)return p.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(M!=="verification"&&oe("verification"),U==="unit"&&C[O]?.isPhoneVerified!==!0){p.setError(`${T}.${v}.phone`,{type:"custom"});return}const e=mt(Object.values(C).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(o?.deleteFileStatusById??{}).filter(c=>c!=null);Vt(e.concat(n)).fetchState!=="In-Progress"&&Xe&&(et(),Re?.(O),Z===!0&&Ze?.())}),st=async(e,n)=>{e.includes(b)?Ue?.(n[b]):e.includes(T)&&We?.(n[T])},nt=V.useCallback(ft((e,n)=>{st(e,n)},300),[]);V.useEffect(()=>{const e=p.watch((n,{name:c})=>{c!=null&&n!=null&&yt(()=>nt(c,n))});return()=>{e.unsubscribe()}});const le=Te(t.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,p]);const ce=_?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),K=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{q(!1),A();const e=[],n=_?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{n.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const D=c?.fileIds??[];p.getValues(`${T}.${f}.fileIds`).forEach(I=>{D.includes(I)||e.push(I)})}),e.length!==0&&Me?.(e)},onCancelClick:()=>{q(!1)}},lt=ve(Oe(m),m,$e.currencySymbol).toUpperCase(),Q=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;if(y==="zeni_treasury"&&P?.code==="pending_review"&&He==="In-Progress"&&R.fetchState==="Completed")return a.jsxs(ia,{children:[a.jsxs(sa,{children:[a.jsx(ht,{}),a.jsx(na,{windowSize:u,children:Z===!0?s.submittedTitleWithTransfer:s.submittedTitle}),a.jsx(aa,{isReadonly:!1,children:Z===!0?s.submittedDescriptionWithTransfer.replace("__amount__",ve(Oe(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):s.submittedDescription})]}),a.jsx(gt,{label:s.submittedButton,onClick:()=>{A(),te?.()},variant:"primary"})]});const ct=()=>{const e=W?.companyVerificationStatus?.code==="verified",n=(o?.countriesOfOperations?.length??0)>0||o?.companySourceOfFunds!=null||o?.transactionVolume!=null||o?.purposeOfAccount!=null||o?.registeredAddressStatus!=null||o?.usNexus!=null;return e===!0&&n===!1};return a.jsxs(Mt,{isSettings:r,children:[a.jsx(xt,{title:h&&w===!0?Rt:s.header,backgroundColor:qe.colors.grey5,style:{zIndex:H?1:4},onBackClick:()=>{wt(p.formState.dirtyFields)?q(!0):A()},showBackButton:!r&&!h,showMenuIcon:r?u==="medium-compact"||u==="small":!1,onClickMenuIcon:Ye,rightSideComponent:h?a.jsx(ra,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{A(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(Ct,{titleComponent:a.jsx(bt,{children:s.discardTitle}),descriptionComponent:a.jsx(Dt,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:ot}):null,a.jsxs(Yt,{windowSize:u,children:[(!h||w===!1)&&a.jsx(Gt,{windowSize:u,children:r?Et.infoText.businessVerification:s.title}),$==="In-Progress"||$==="Not-Started"?a.jsx(Zt,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(vt,{...p,children:a.jsxs("form",{id:Pe(Ne),onSubmit:it,children:[h&&w===!0&&a.jsxs(Wt,{children:[a.jsxs(Kt,{windowSize:u,children:[a.jsx(Qt,{windowSize:u,children:Q?s.businessVerificationDetails:de?s.verifyBusinessDetails:s.verifyBusinessDetailsWithoutTransfer}),!Q&&a.jsx(Xt,{children:a.jsxs(ea,{children:[a.jsx(Fe,{}),de&&a.jsx(Fe,{}),a.jsx(ta,{})]})})]}),a.jsx(_e,{isReadonly:Q,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(qt,{children:[a.jsx(Lt,{companyOfficerData:C,allNationalityCountries:S,allOfficers:K??[],sectionId:T,isRefreshingViewInBackground:L,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:k,filesEndPoint:i,authParams:B,isPopupOpen:H,openPopup:Qe,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Bt,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:L},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",hideNewOnboardingFields:ct(),sectionId:b,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":k,fileProps:{authParams:B,filesEndPoint:i,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Le,connectedAccountProvider:U,allIndustries:j,allNationalityCountries:S})]}),y==="zeni_accounts"?a.jsx(Ht,{windowSize:u,children:s.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":W?.businessVerificationStatus?.code!=="pending_review"&&W?.businessVerificationStatus?.code!=="verified")?a.jsx(Ot,{formId:Pe(Ne),primaryBtn:{label:w?ke.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:u==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:k!=null},containerStyle:{width:u==="small"?x.width.valuePx(u):"auto",justifyContent:u==="small"?"space-between":"center"},helperStyle:{width:u==="small"?x.width.valuePx(u):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(u),paddingRight:x.termsPaddingLeftRight.valuePx(u),textAlign:u==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ke.back:s.saveDetailsButton,style:{width:u==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)A();else{const e=C[O],n=o?.primaryContactLocalData;M!=="save"&&oe("save");const c=e?.email??"",f=tt(),D=at();f&&D&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?Y(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:o?.companyDescription,legalName:o?.companyLegalName,phone:o?.phone,website:o?.website?.toString(),industry:o?.companyIndustry??"",formattedAddress:o?.addressStatus?.addressToCreate!=null?Y(o?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,r?"Settings":void 0),Ge?.(O))}}},helperText:Je,style:{padding:`12px ${l.sp3}`,zIndex:H?0:4}}):null]})},Ut=(t,S,$,L)=>{const{companyDetailsLocalData:i,companyOfficerLocalData:B,companyView:y}=t,j=je.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:i?.companyDescription??"",ein:i?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:i?.companyId??"",syncToken:i?.syncToken,companyLegalName:i?.companyLegalName??"",companyWebsite:i?.website?.toString()??"",companyAddress:i?.addressStatus?.addressToCreate,registeredAddress:i?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:i?.companyIndustry,allOptions:S?.map(m=>m.code)},companyPhone:i?.phone??"",companyTaxId:i?.taxIdOrEIN??"",primaryContactName:{firstName:i?.primaryContactLocalData?.firstName??"",lastName:i?.primaryContactLocalData?.lastName??""},primaryContactEmail:i?.primaryContactLocalData?.email??"",primaryContactUserId:i?.primaryContactLocalData?.userId,primaryContactSyncToken:i?.primaryContactLocalData?.syncToken,fileIds:i?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:i?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:i?.incDate?.toDate(),typeOfIncorporation:{selectedOption:i?.typeOfIncorporation,allOptions:j.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:i?.stateOfIncorporation,allOptions:j.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:i?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:i?.companySourceOfFunds??"",allOptions:Object.keys(s.companySourceOfFundOptions??{})},companySourceOfFundsDescription:i?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:i?.transactionVolume,allOptions:[..._t]},transactionVolumeDescription:i?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:i?.purposeOfAccount,allOptions:[...At]},purposeOfAccountDescription:i?.purposeOfAccountDescription??"",usNexus:i?.usNexus??"",usNexusTypes:{selectedOptions:i?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:i?.regulatedStatus??"",regulatedStatusDescription:i?.regulatedStatusDescription??""},[T]:Object.values(B).map((m,k)=>{const r=m,h=It(r?.documentTypeSelectedForVerification);return{userId:r?.userId,officerType:r?.officerType??`Officer_${k+1}`,name:{firstName:r?.firstName,lastName:r?.lastName},email:r?.email,fileIds:r?.fileIds??[],dob:r?.birthday?.toDate(),nationalityCountryCode:Nt(r?.nationalityCountryCode,L.map(g=>g.countryCode)),ssn:r?.ssn,role:{selectedOption:r?.titleAtCompany,allOptions:$?.map(g=>g.code)},phone:r?.phone??"",ownership:r?.ownershipInCompany,officerAddress:r?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,r?.userFiles??[],h),back:Ie(!1,r?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&k===0?!0:r?.isSelectedForVerification??!1,userVerificationStatus:r?.userVerificationStatus,treasuryUserVerificationStatus:r?.treasuryUserVerificationStatus,syncToken:r?.syncToken,isPhoneVerified:r?.isPhoneVerified,otpChallenge:r?.otpChallenge}})}},Pe=t=>`${t}_form`,Mt=d.div`
|
|
1
|
+
import{d as dt,J as ut,aR as Te,V as a,ae as G,a9 as pt,cW as mt,ay as ft,cG as yt,aZ as ve,aP as Oe,gd as ht,i as gt,bD as xt,aQ as St,cH as wt,cq as Ct,cr as Dt,cs as bt,T as Tt,ac as vt,aS as Ot,o as l,y as F,am as Ve,F as je,ge as It,fB as Ie,f0 as Nt,R as $t,x as kt,al as Ae,H as Pt,a as Ft,u as N}from"./index-Dt6WXxS3.js";import{a as V}from"./sentry-A6dpAzWc.js";import{n as d}from"./mui-C6eJTEkq.js";import{ER as Vt,bi as Y,Fm as jt,Fl as At,Fn as _t}from"./zeni-epic-state-BGx2roB-.js";import{r as Lt,z as Bt}from"./CompanyOfficerDetailsSection-CtptCfIN-89z_6sIF.js";import"./liveblocks-BaVa0z_w.js";import"./core-C93jO8kN.js";import"./recharts-VA_e6pfv.js";import"./lottie-YhRXW_KK.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";import"./helper-Cl1NuKS2-DA3i4vMs.js";import"./LabeledAddressValueField-DSU3b6xx-DU3RU-Xv.js";import"./LabeledCountryMultiSelectField-D1bMiaZj-D_cuEzq1.js";import"./LabeledCreatableSingleSelectField-amXDv508-BEfCmbSB.js";import"./LabeledDocumentField-2_VcrmJN-DCZEjsHf.js";import"./commonTypes-TAIHQ3fk-CTXmlKHC.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new t.Error().stack;S&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="c4d49190-e09c-4d31-b019-f94271c9dc89",t._sentryDebugIdIdentifier="sentry-dbid-c4d49190-e09c-4d31-b019-f94271c9dc89")}catch{}})();const x={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,N[3]),subTitlePaddingBottom:new F(N[3],N[3]),verificationDetailsRowGap:new F(12,N[5],N[5]),termsPaddingLeftRight:new F(N[0],N[3])},zt={stepTitle:new Pt("h6Regular","h5Regular")},Ne="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:Et,currency:$e,footer:ke,strings:{empty:Rt}}}=je.getLocalizedStrings(),va=({businessVerificationDetails:t,allNationalityCountries:S,verficationDetailsFetchState:$,isRefreshingViewInBackground:L,filesEndPoint:i,authParams:B,productType:y,allIndustries:j,companyTitles:z,maxInsuredAmount:m,isDisabled:k,isSettings:r=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:Z=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Le,onBackClick:A,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:Ye,onExecuteTreasuryTransfer:Ze})=>{const qe=dt(),u=ut(),{updateStatus:R,companyView:_,companyDetailsLocalData:o,companyOfficerLocalData:C}=t,He=Te(R.fetchState),U=_?.company.company.featuresActivationInfo.connectedAccountProvider,Je=U==="unit"?a.jsxs(Jt,{children:[s.terms.term1,a.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ke,q]=V.useState(!1),[M,oe]=V.useState("save"),[H,Qe]=V.useState(!1),p=pt({mode:"all",reValidateMode:"onChange",defaultValues:Ut(t,j,z,S)}),{isValid:Xe}=p.formState,W=_?.company.company.companyBillPayInfo,J=_?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?J?.companyVerificationStatus:W?.companyVerificationStatus,v=Object.values(C).findIndex(e=>e?.isSelectedForVerification===!0),O=`Officer_${v<0?1:v+1}`,et=()=>{const e=C[O],n=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,D=e?.firstName,I=e?.lastName,ue=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,me=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?Y(fe):void 0,he=o?.companyDescription,X=o?.companyLegalName,ge=o?.companyIndustry,xe=o?.phone,Se=o?.website,we=o?.addressStatus?.addressToCreate!=null?Y(o?.addressStatus?.addressToCreate):void 0,ee=o?.primaryContactLocalData,Ce=ee?.firstName,De=ee?.lastName,be=ee?.email;n!=null&&f!=null&&D!=null&&I!=null&&c!=null&&ue!=null&&me!=null&&ye!=null&&pe!=null&&he!=null&&X!=null&&xe!=null&&Se!=null&&ge!=null&&X!=null&&we!=null&&Ce!=null&&De!=null&&be!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:D,lastName:I,companyRole:ue,phone:me,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:X,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:De,email:be},y,r?"Settings":void 0)},tt=()=>{const e=C[O],n=o?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,D=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):D&&!I?((!n?.firstName||!n?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=C[O],n=o?.primaryContactLocalData,c=e?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||K!=null&&K?.length>0)return p.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(M!=="verification"&&oe("verification"),U==="unit"&&C[O]?.isPhoneVerified!==!0){p.setError(`${T}.${v}.phone`,{type:"custom"});return}const e=mt(Object.values(C).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(o?.deleteFileStatusById??{}).filter(c=>c!=null);Vt(e.concat(n)).fetchState!=="In-Progress"&&Xe&&(et(),Re?.(O),Z===!0&&Ze?.())}),st=async(e,n)=>{e.includes(b)?Ue?.(n[b]):e.includes(T)&&We?.(n[T])},nt=V.useCallback(ft((e,n)=>{st(e,n)},300),[]);V.useEffect(()=>{const e=p.watch((n,{name:c})=>{c!=null&&n!=null&&yt(()=>nt(c,n))});return()=>{e.unsubscribe()}});const le=Te(t.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,p]);const ce=_?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),K=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{q(!1),A();const e=[],n=_?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{n.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const D=c?.fileIds??[];p.getValues(`${T}.${f}.fileIds`).forEach(I=>{D.includes(I)||e.push(I)})}),e.length!==0&&Me?.(e)},onCancelClick:()=>{q(!1)}},lt=ve(Oe(m),m,$e.currencySymbol).toUpperCase(),Q=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;if(y==="zeni_treasury"&&P?.code==="pending_review"&&He==="In-Progress"&&R.fetchState==="Completed")return a.jsxs(ia,{children:[a.jsxs(sa,{children:[a.jsx(ht,{}),a.jsx(na,{windowSize:u,children:Z===!0?s.submittedTitleWithTransfer:s.submittedTitle}),a.jsx(aa,{isReadonly:!1,children:Z===!0?s.submittedDescriptionWithTransfer.replace("__amount__",ve(Oe(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):s.submittedDescription})]}),a.jsx(gt,{label:s.submittedButton,onClick:()=>{A(),te?.()},variant:"primary"})]});const ct=()=>{const e=W?.companyVerificationStatus?.code==="verified",n=(o?.countriesOfOperations?.length??0)>0||o?.companySourceOfFunds!=null||o?.transactionVolume!=null||o?.purposeOfAccount!=null||o?.registeredAddressStatus!=null||o?.usNexus!=null;return e===!0&&n===!1};return a.jsxs(Mt,{isSettings:r,children:[a.jsx(xt,{title:h&&w===!0?Rt:s.header,backgroundColor:qe.colors.grey5,style:{zIndex:H?1:4},onBackClick:()=>{wt(p.formState.dirtyFields)?q(!0):A()},showBackButton:!r&&!h,showMenuIcon:r?u==="medium-compact"||u==="small":!1,onClickMenuIcon:Ye,rightSideComponent:h?a.jsx(ra,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{A(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(Ct,{titleComponent:a.jsx(bt,{children:s.discardTitle}),descriptionComponent:a.jsx(Dt,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:ot}):null,a.jsxs(Yt,{windowSize:u,children:[(!h||w===!1)&&a.jsx(Gt,{windowSize:u,children:r?Et.infoText.businessVerification:s.title}),$==="In-Progress"||$==="Not-Started"?a.jsx(Zt,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(vt,{...p,children:a.jsxs("form",{id:Pe(Ne),onSubmit:it,children:[h&&w===!0&&a.jsxs(Wt,{children:[a.jsxs(Kt,{windowSize:u,children:[a.jsx(Qt,{windowSize:u,children:Q?s.businessVerificationDetails:de?s.verifyBusinessDetails:s.verifyBusinessDetailsWithoutTransfer}),!Q&&a.jsx(Xt,{children:a.jsxs(ea,{children:[a.jsx(Fe,{}),de&&a.jsx(Fe,{}),a.jsx(ta,{})]})})]}),a.jsx(_e,{isReadonly:Q,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(qt,{children:[a.jsx(Lt,{companyOfficerData:C,allNationalityCountries:S,allOfficers:K??[],sectionId:T,isRefreshingViewInBackground:L,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:k,filesEndPoint:i,authParams:B,isPopupOpen:H,openPopup:Qe,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Bt,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:L},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",hideNewOnboardingFields:ct(),sectionId:b,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":k,fileProps:{authParams:B,filesEndPoint:i,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Le,connectedAccountProvider:U,allIndustries:j,allNationalityCountries:S})]}),y==="zeni_accounts"?a.jsx(Ht,{windowSize:u,children:s.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":W?.businessVerificationStatus?.code!=="pending_review"&&W?.businessVerificationStatus?.code!=="verified")?a.jsx(Ot,{formId:Pe(Ne),primaryBtn:{label:w?ke.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:u==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:k!=null},containerStyle:{width:u==="small"?x.width.valuePx(u):"auto",justifyContent:u==="small"?"space-between":"center"},helperStyle:{width:u==="small"?x.width.valuePx(u):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(u),paddingRight:x.termsPaddingLeftRight.valuePx(u),textAlign:u==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ke.back:s.saveDetailsButton,style:{width:u==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)A();else{const e=C[O],n=o?.primaryContactLocalData;M!=="save"&&oe("save");const c=e?.email??"",f=tt(),D=at();f&&D&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?Y(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:o?.companyDescription,legalName:o?.companyLegalName,phone:o?.phone,website:o?.website?.toString(),industry:o?.companyIndustry??"",formattedAddress:o?.addressStatus?.addressToCreate!=null?Y(o?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,r?"Settings":void 0),Ge?.(O))}}},helperText:Je,style:{padding:`12px ${l.sp3}`,zIndex:H?0:4}}):null]})},Ut=(t,S,$,L)=>{const{companyDetailsLocalData:i,companyOfficerLocalData:B,companyView:y}=t,j=je.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:i?.companyDescription??"",ein:i?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:i?.companyId??"",syncToken:i?.syncToken,companyLegalName:i?.companyLegalName??"",companyWebsite:i?.website?.toString()??"",companyAddress:i?.addressStatus?.addressToCreate,registeredAddress:i?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:i?.companyIndustry,allOptions:S?.map(m=>m.code)},companyPhone:i?.phone??"",companyTaxId:i?.taxIdOrEIN??"",primaryContactName:{firstName:i?.primaryContactLocalData?.firstName??"",lastName:i?.primaryContactLocalData?.lastName??""},primaryContactEmail:i?.primaryContactLocalData?.email??"",primaryContactUserId:i?.primaryContactLocalData?.userId,primaryContactSyncToken:i?.primaryContactLocalData?.syncToken,fileIds:i?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:i?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:i?.incDate?.toDate(),typeOfIncorporation:{selectedOption:i?.typeOfIncorporation,allOptions:j.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:i?.stateOfIncorporation,allOptions:j.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:i?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:i?.companySourceOfFunds??"",allOptions:Object.keys(s.companySourceOfFundOptions??{})},companySourceOfFundsDescription:i?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:i?.transactionVolume,allOptions:[..._t]},transactionVolumeDescription:i?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:i?.purposeOfAccount,allOptions:[...At]},purposeOfAccountDescription:i?.purposeOfAccountDescription??"",usNexus:i?.usNexus??"",usNexusTypes:{selectedOptions:i?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:i?.regulatedStatus??"",regulatedStatusDescription:i?.regulatedStatusDescription??""},[T]:Object.values(B).map((m,k)=>{const r=m,h=It(r?.documentTypeSelectedForVerification);return{userId:r?.userId,officerType:r?.officerType??`Officer_${k+1}`,name:{firstName:r?.firstName,lastName:r?.lastName},email:r?.email,fileIds:r?.fileIds??[],dob:r?.birthday?.toDate(),nationalityCountryCode:Nt(r?.nationalityCountryCode,L.map(g=>g.countryCode)),ssn:r?.ssn,role:{selectedOption:r?.titleAtCompany,allOptions:$?.map(g=>g.code)},phone:r?.phone??"",ownership:r?.ownershipInCompany,officerAddress:r?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,r?.userFiles??[],h),back:Ie(!1,r?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&k===0?!0:r?.isSelectedForVerification??!1,userVerificationStatus:r?.userVerificationStatus,treasuryUserVerificationStatus:r?.treasuryUserVerificationStatus,syncToken:r?.syncToken,isPhoneVerified:r?.isPhoneVerified,otpChallenge:r?.otpChallenge}})}},Pe=t=>`${t}_form`,Mt=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as m,V as r,F as y,b as w,o as a,H as b,a as x}from"./index-
|
|
1
|
+
import{J as m,V as r,F as y,b as w,o as a,H as b,a as x}from"./index-Dt6WXxS3.js";import{n as o}from"./mui-C6eJTEkq.js";import{a as c}from"./sentry-A6dpAzWc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="c744afd6-d4ee-42b4-8042-a784f5ac0338",e._sentryDebugIdIdentifier="sentry-dbid-c744afd6-d4ee-42b4-8042-a784f5ac0338")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(H,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,r.jsx(v,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},H=o(x)`
|
|
2
2
|
${e=>e.forDetailPage?{...w.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as k,J as f,V as t,bD as te,fk as L,b as u,b4 as X,c0 as ie,o as i,F as w,p as B,y as h,al as v,di as oe,u as l,aZ as re,aO as T,bS as ae,ai as $,aQ as z,jl as Q,jm as Z,j1 as se,cA as ne,cD as de,am as O,j2 as le,j3 as ce}from"./index-
|
|
1
|
+
import{d as k,J as f,V as t,bD as te,fk as L,b as u,b4 as X,c0 as ie,o as i,F as w,p as B,y as h,al as v,di as oe,u as l,aZ as re,aO as T,bS as ae,ai as $,aQ as z,jl as Q,jm as Z,j1 as se,cA as ne,cD as de,am as O,j2 as le,j3 as ce}from"./index-Dt6WXxS3.js";import{n as o}from"./mui-C6eJTEkq.js";import{Ge as b,bh as he}from"./zeni-epic-state-BGx2roB-.js";import{P as R,a as K}from"./sentry-A6dpAzWc.js";import{F as pe}from"./InsightsSection-CK6L0ggh-DL07e_ih.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as fe}from"./recharts-VA_e6pfv.js";import"./liveblocks-BaVa0z_w.js";import"./core-C93jO8kN.js";import"./lottie-YhRXW_KK.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";import"./NavigationDots-Dqcv5rrC-CsL6s_T6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="99d3635c-6123-44ef-a50f-82c4c6a6584c",e._sentryDebugIdIdentifier="sentry-dbid-99d3635c-6123-44ef-a50f-82c4c6a6584c")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=k();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(J,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(J,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,je=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as at,J as Ie,aw as Lt,a8 as Dt,h0 as br,hF as Ti,aW as et,h1 as $r,aR as tt,V as t,h4 as Ai,bD as Ri,u as h,fY as vr,aO as qe,aQ as Q,bC as Ei,bU as ta,p as c,o as a,F as ke,j7 as kr,b as _,cq as Fi,j8 as Pi,fe as zi,gS as Mi,j9 as Vi,bG as Oi,bP as jr,aU as aa,y as T,b8 as ra,bL as Ir,ai as Ce,eH as Hi,bb as ia,iX as Ni,aV as Lr,h as ft,h3 as Dr,ce as Bi,T as Ct,b4 as Wi,dp as _i,cu as Ui,ja as Gi,jb as Tr,jc as dt,G as Zi,b0 as qi,jd as Yi,je as Xi,cr as Ki,d6 as Ji,hC as Qi,al as ze,bW as eo,av as Ut,jf as Ma,jg as to,dj as ao,H as Va,a as Ar,ba as ro,aC as io,iR as mt,j0 as oo,j5 as no,j6 as so,dw as Oa,eY as co,i as Rr,cA as Er,i_ as lo,bZ as ho,c as Fr,jh as po,au as kt,c0 as Ha,by as uo,df as mo,aq as go,am as lt,g$ as Co,x as fo,bH as wo,ji as Tt,fr as xo,jj as Pr,gC as zr,jk as It,ij as Mr,i7 as Vr,bS as yo,ek as Or,j1 as So,cD as bo,dR as $o,d0 as vo,j2 as ko,j3 as jo,eq as Io,ch as Lo,ci as Do}from"./index-
|
|
1
|
+
import{d as at,J as Ie,aw as Lt,a8 as Dt,h0 as br,hF as Ti,aW as et,h1 as $r,aR as tt,V as t,h4 as Ai,bD as Ri,u as h,fY as vr,aO as qe,aQ as Q,bC as Ei,bU as ta,p as c,o as a,F as ke,j7 as kr,b as _,cq as Fi,j8 as Pi,fe as zi,gS as Mi,j9 as Vi,bG as Oi,bP as jr,aU as aa,y as T,b8 as ra,bL as Ir,ai as Ce,eH as Hi,bb as ia,iX as Ni,aV as Lr,h as ft,h3 as Dr,ce as Bi,T as Ct,b4 as Wi,dp as _i,cu as Ui,ja as Gi,jb as Tr,jc as dt,G as Zi,b0 as qi,jd as Yi,je as Xi,cr as Ki,d6 as Ji,hC as Qi,al as ze,bW as eo,av as Ut,jf as Ma,jg as to,dj as ao,H as Va,a as Ar,ba as ro,aC as io,iR as mt,j0 as oo,j5 as no,j6 as so,dw as Oa,eY as co,i as Rr,cA as Er,i_ as lo,bZ as ho,c as Fr,jh as po,au as kt,c0 as Ha,by as uo,df as mo,aq as go,am as lt,g$ as Co,x as fo,bH as wo,ji as Tt,fr as xo,jj as Pr,gC as zr,jk as It,ij as Mr,i7 as Vr,bS as yo,ek as Or,j1 as So,cD as bo,dR as $o,d0 as vo,j2 as ko,j3 as jo,eq as Io,ch as Lo,ci as Do}from"./index-Dt6WXxS3.js";import{a as o,P as To}from"./sentry-A6dpAzWc.js";import{n as r,c as we,k as Hr}from"./mui-C6eJTEkq.js";import{EP as At,bh as Ao,bf as Ro,Gd as Eo}from"./zeni-epic-state-BGx2roB-.js";import{k as Fo}from"./NavigationDots-Dqcv5rrC-CsL6s_T6.js";import{A as Po,i as zo,a as Mo,l as Vo,r as Oo,t as Ho,n as No}from"./add-to-wallet-DgdBD8_G-UQIq3ULm.js";import{L as Gt}from"./lottie-YhRXW_KK.js";import{j as Bo}from"./CardNumberSubText-CRjU8jZf-B61mqdHQ.js";import{l as Wo}from"./panelSelectedMixin-CzfD5-Zs-BRINm6JS.js";import{r as Nr}from"./core-C93jO8kN.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-C900EqcY.js";import{L as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-Bs8xkpNa-BOx3YTh4.js";import"./liveblocks-BaVa0z_w.js";import"./recharts-VA_e6pfv.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";import"./RoleWithToolTip-BBbrv_x_-khaZx97h.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="3d596988-8cce-46fd-9da8-a223b728c3d2",e._sentryDebugIdIdentifier="sentry-dbid-3d596988-8cce-46fd-9da8-a223b728c3d2")}catch{}})();const Wr=ke.getLocalizedStrings().spendManagement.chargeCard,qo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:w,chargeCardDetailView:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:A,setWalletType:b,setIsAddToWalletDrawerOpen:z,isDebitCard:M})=>{const y=Dt().analytics,{isIPadScreen:G}=Yi(),{isAndroidScreen:Y}=Xi(),X=Lt(),R=At(X.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:R,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(j,"_blank")}}):Y===!0?t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:R,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{b("apple"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:R,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),z(!0)}}),t.jsx(Qt,{onClick:()=>{b("google"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:R,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),z(!0)}})]})})},Qt=({onClick:e})=>{const i=at();return t.jsx(Rr,{prefixIcon:t.jsx(Xo,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=at();return t.jsx(Rr,{prefixIcon:t.jsx(Ko,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-apple-wallet-button")})},Yo=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a8 as Za,aR as z,aw as er,fX as tr,iR as W,J as Pe,o as a,d as ta,V as t,bD as ar,g9 as rr,fk as ie,b as M,bU as nt,p,aO as me,aQ as V,aZ as st,F as Fe,y as H,ai as q,H as ir,a as or,c_ as nr,as as aa,bL as sr,b0 as ct,aU as dr,am as lt,a9 as cr,gV as lr,ew as ur,ao as hr,ac as mr,gf as pr,i as Nt,u as _,d8 as ra,aq as Cr,al as gr,R as br,cZ as fr,bw as xr,bW as yr}from"./index-
|
|
1
|
+
import{a8 as Za,aR as z,aw as er,fX as tr,iR as W,J as Pe,o as a,d as ta,V as t,bD as ar,g9 as rr,fk as ie,b as M,bU as nt,p,aO as me,aQ as V,aZ as st,F as Fe,y as H,ai as q,H as ir,a as or,c_ as nr,as as aa,bL as sr,b0 as ct,aU as dr,am as lt,a9 as cr,gV as lr,ew as ur,ao as hr,ac as mr,gf as pr,i as Nt,u as _,d8 as ra,aq as Cr,al as gr,R as br,cZ as fr,bw as xr,bW as yr}from"./index-Dt6WXxS3.js";import{a as l}from"./sentry-A6dpAzWc.js";import{n as r,c as ut,k as Sr}from"./mui-C6eJTEkq.js";import{EP as wr,Gc as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-BGx2roB-.js";import{t as vr}from"./SpendManagementSection-CEMNFPRO-DjGbh5je.js";import{D as oe,r as jr,i as Lr}from"./ChargeCardListTable-ObawcMuP-D7RrGUiq.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-CN9d98ht-CGg8c_iQ.js";import{N as Er,J as Pr}from"./PromoBaseCards-Dmg5PtKw-D3DSnX_g.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-Bs8xkpNa-BOx3YTh4.js";import{r as Dr,i as Mr}from"./graphic-no-data-net-burn-l-CzmycA0m-4_ToNcB7.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-IpjDLrJq.js";import"./liveblocks-BaVa0z_w.js";import"./core-C93jO8kN.js";import"./recharts-VA_e6pfv.js";import"./lottie-YhRXW_KK.js";import"./analytics-DHdlb_9-.js";import"./lexical-CQmVV2hl.js";import"./utils-DmFXC2Xt.js";import"./RoleWithToolTip-BBbrv_x_-khaZx97h.js";import"./CardNumberSubText-CRjU8jZf-B61mqdHQ.js";import"./NavigationDots-Dqcv5rrC-CsL6s_T6.js";import"./usp-line-BBd1wKwW-Cjh_pCgj.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="ab2eb76a-4e8b-4d6d-9fb6-262a49e48618",e._sentryDebugIdIdentifier="sentry-dbid-ab2eb76a-4e8b-4d6d-9fb6-262a49e48618")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Ee=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Pe(),A=$!==void 0,G=$==="rejected"?Ee.status.requestRejected:$==="under_review"?Ee.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:A,children:[t.jsxs(na,{children:[A?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),A?null:t.jsx(Jr,{children:n})]}),!A&&t.jsxs(qr,{children:[t.jsx(Kr,{}),m.length>0&&t.jsx(dt,{slideUpCount:m.length,children:m.map((ne,se)=>t.jsx(sa,{children:ne},`card-promo-${se.toString()}`))}),t.jsx(Yr,{})]}),U!=null&&A?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:A,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Pe();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Ee.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Ee.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ce as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,d as Fe,h0 as hi,iS as pi,iT as ui,iU as mi,aS as gi,o as i,aQ as X,cn as xi,b as Be,p as I,b4 as wi,cu as Ci,iV as fi,iW as yi,bU as ye,cx as Ve,bP as Si,aU as ki,y as C,eH as vi,bb as ji,iX as $i,aV as bi,h as Ii,ai as ee,h3 as Li,am as G,al as J,u as p,cK as Fi,eF as zi,iY as Ai,iZ as Pi,H as ft,bZ as yt,i_ as St,i$ as Ri,bS as Bi,cA as Ge,j0 as kt,dw as Di,dx as q,aO as ce,cw as vt,T as jt,j1 as _i,cD as Ei,iK as Je,bL as $t,bN as bt,j2 as Ti,j3 as Vi,aW as je,bu as Oi,b_ as Ui,b$ as Ni,j4 as Mi}from"./index-DOsjGhSZ.js";import{P as pe,a as f}from"./sentry-otjdlEta.js";import{n as o,c as Ze}from"./mui-B2MHg-Mu.js";import{T as It}from"./RoleWithToolTip-BBbrv_x_-D8MqiafD.js";import{j as Oe}from"./CardNumberSubText-CRjU8jZf-DzA9ggM9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="e1d9b59c-7161-4fd9-aaa7-09bba7e48fe4",e._sentryDebugIdIdentifier="sentry-dbid-e1d9b59c-7161-4fd9-aaa7-09bba7e48fe4")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Ye={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Qe={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Ye,width:new C(0,0),value:Wi},Qe,et,tt,it,ot]:[Ye,Qe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:j}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Xi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:$,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),F=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=F||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{$(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,z=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(V)}${Hi}`})}):null]}),Z=a.type.code,_=j.cardList.tooltip[Z],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Zi,{onClick:M,"data-testid":X("card-row",a.id),children:t.jsxs(Qi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:z[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:j.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:z[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx(jt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":X("send-reminder",a.id),children:j.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&R(!0)},onMouseLeave:()=>{A&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:j.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Ft=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Yi,{}),t.jsx(fe,{children:j.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:j.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:j.cardDetails.moreOptions.lock})]}),t.jsx($e,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:j.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Fe(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new je(I.success);case"request_on_hold":return new je(I.graphColor36);case"inactive":return new je(I.alert);default:return new je(s.colors.grey1)}},T=o(J)`
|
|
1
|
+
import{ce as ni,V as t,a9 as li,ac as di,F as le,J as ie,aw as Se,a8 as ci,d as Fe,h0 as hi,iS as pi,iT as ui,iU as mi,aS as gi,o as i,aQ as X,cn as xi,b as Be,p as I,b4 as wi,cu as Ci,iV as fi,iW as yi,bU as ye,cx as Ve,bP as Si,aU as ki,y as C,eH as vi,bb as ji,iX as $i,aV as bi,h as Ii,ai as ee,h3 as Li,am as G,al as J,u as p,cK as Fi,eF as zi,iY as Ai,iZ as Pi,H as ft,bZ as yt,i_ as St,i$ as Ri,bS as Bi,cA as Ge,j0 as kt,dw as Di,dx as q,aO as ce,cw as vt,T as jt,j1 as _i,cD as Ei,iK as Je,bL as $t,bN as bt,j2 as Ti,j3 as Vi,aW as je,bu as Oi,b_ as Ui,b$ as Ni,j4 as Mi}from"./index-Dt6WXxS3.js";import{P as pe,a as f}from"./sentry-A6dpAzWc.js";import{n as o,c as Ze}from"./mui-C6eJTEkq.js";import{T as It}from"./RoleWithToolTip-BBbrv_x_-khaZx97h.js";import{j as Oe}from"./CardNumberSubText-CRjU8jZf-B61mqdHQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="e1d9b59c-7161-4fd9-aaa7-09bba7e48fe4",e._sentryDebugIdIdentifier="sentry-dbid-e1d9b59c-7161-4fd9-aaa7-09bba7e48fe4")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Ye={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Qe={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Ye,width:new C(0,0),value:Wi},Qe,et,tt,it,ot]:[Ye,Qe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:j}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Xi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:$,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),F=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=F||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{$(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,z=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(V)}${Hi}`})}):null]}),Z=a.type.code,_=j.cardList.tooltip[Z],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Zi,{onClick:M,"data-testid":X("card-row",a.id),children:t.jsxs(Qi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:z[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:j.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:z[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx(jt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":X("send-reminder",a.id),children:j.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&R(!0)},onMouseLeave:()=>{A&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:j.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Ft=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Yi,{}),t.jsx(fe,{children:j.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:j.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:j.cardDetails.moreOptions.lock})]}),t.jsx($e,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:j.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Fe(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new je(I.success);case"request_on_hold":return new je(I.graphColor36);case"inactive":return new je(I.alert);default:return new je(s.colors.grey1)}},T=o(J)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(J)`
|
|
4
4
|
color: ${I.important};
|