@zeniai/web-cockpit-ui 1.15.17-dev → 1.15.18-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-cAgIhKJs-bGTsqigs.js → ACHDetailsPage-BrjUad4D-BobK3aVB.js} +1 -1
- package/dist/assets/{AIPerformancePage-BPwI4kZG-BTP4khzH.js → AIPerformancePage-Dx1ituql-CUuKvJ8n.js} +16 -16
- package/dist/assets/AccountInfoPage-BGcQ2kEJ-awOqo-nC.js +18 -0
- package/dist/assets/{AccountInfoPageContent-CIjrqt8Z-xcHih_xf.js → AccountInfoPageContent-BQxwZcii-DAnRLliM.js} +14 -14
- package/dist/assets/{AccountLockedInfoModal-b0SYt4cr-DyDb_wyO.js → AccountLockedInfoModal-Q_WY8V5e-CDYJtJV8.js} +3 -3
- package/dist/assets/{AccountReconDetailsDrawerPage-CEjWEa01-aoYQi4ku.js → AccountReconDetailsDrawerPage-DuI7qAkr-CohDb_Vn.js} +25 -25
- package/dist/assets/{AccountRow-C9lnDVNf-86hTjbuw.js → AccountRow-D3aEGfjh-CGXQQRag.js} +11 -11
- package/dist/assets/{AccountsPromoCardStack-hzApdgeN-DUJB0-p0.js → AccountsPromoCardStack-BrTIGRUz-SlTiOsFA.js} +23 -23
- package/dist/assets/AddAddressForCardDrawer-D12dN-9m-CqdZIDlk.js +6 -0
- package/dist/assets/{AddToWalletPage-CgCHdO6c-CiVYqd0C.js → AddToWalletPage-DWMdtsY0-CgmcM53j.js} +24 -24
- package/dist/assets/{AgingReportsPage-B0NKfFq5-Bk4x7HpE.js → AgingReportsPage-CeFWs8X1-rGaFbgkD.js} +1 -1
- package/dist/assets/{AllUserItems-D6uMCcjF-CS_wO3mh.js → AllUserItems-PN_oWzOC-Cfg4W7I4.js} +8 -8
- package/dist/assets/{ApAgingDetailPage-CxS9o2Dj-B1fPZ2rF.js → ApAgingDetailPage-CQtY9j4b-xFY56tWP.js} +5 -5
- package/dist/assets/{AppBasePage-BnfCjFJA-CQeMBbMI.js → AppBasePage-D0S7OYzO-CJcI9UYp.js} +13 -13
- package/dist/assets/{AppDrawerContent-CwBFjBnr-CKjzuecx.js → AppDrawerContent-TIRPcJoE-BOUb6qnD.js} +6 -6
- package/dist/assets/ApprovalRulesSettingsPage-CosIHJ5R-BB8nW0VM.js +47 -0
- package/dist/assets/{ArAgingChart-6qcRcKoz-MYhKnyKG.js → ArAgingChart-CiNirxU7-C_J23wNp.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-DmUWtQsX-KXzejd7L.js → ArAgingDetailPage-CKBOlCcF-B9yZn5Tp.js} +5 -5
- package/dist/assets/{AttachmentView-B0oZITps-CNLEqH0L.js → AttachmentView-MqDuu6PB-C1zlk39q.js} +6 -6
- package/dist/assets/{BankAccountSection-C8G2PrLh-OgTv2VaB.js → BankAccountSection-DXFRyqzV-Bg8zqqhX.js} +5 -5
- package/dist/assets/{BankAccountWarningSection--DkXEMWU-jfcY3ZKV.js → BankAccountWarningSection-DJhHTBuh-D20FRc-x.js} +3 -3
- package/dist/assets/{BankConnectionsSettingsPage-DmzolLyN-BNSTT_VR.js → BankConnectionsSettingsPage-CQe2upIp-Cv47vnoF.js} +26 -26
- package/dist/assets/{BillDetailPage-BuCOe4eB-DBZDvMBw.js → BillDetailPage-B0ajOYxz-CTy3XK0i.js} +10 -10
- package/dist/assets/{BillPayApprovalRuleDetailPage-y3qBdiwE-CP9uLqPK.js → BillPayApprovalRuleDetailPage-BcWQYqjU-CZdskYSr.js} +4 -4
- package/dist/assets/{BillPayApprovalRulesPage-DpN3O_Q1-ILVegrck.js → BillPayApprovalRulesPage-mS00kg1n-C05g3Cpf.js} +14 -14
- package/dist/assets/{BillPayPromoPage-Dcly8epm-DNaDxuq-.js → BillPayPromoPage-tUxWWqMY-t6w7JDnT.js} +10 -10
- package/dist/assets/{BillPaySetUpPage-zxd0WLUm-CL6S_QEz.js → BillPaySetUpPage-w47HuYkp-CbWSaNcn.js} +2 -2
- package/dist/assets/BillingSettingsPage-Bsm7ZzIW-BChNCOOo.js +44 -0
- package/dist/assets/{BillsBulkReviewDrawerPage-gK7xRoiE-B9WwX7Kq.js → BillsBulkReviewDrawerPage-DdI0OCuE-DjrQvH-7.js} +1 -1
- package/dist/assets/BoxItem-BGrgQ_sW-cYQcyKu_.js +53 -0
- package/dist/assets/BusinessVerificationPage-p1cUyL8l-DeaLZxZn.js +138 -0
- package/dist/assets/{CardNumberSubText-CHr49_cJ-9Ya6XjXp.js → CardNumberSubText-yVfOUJpr-DRIDUYcf.js} +8 -8
- package/dist/assets/{CashbackDetailPage-BNHzTYwa-BdAtNCNi.js → CashbackDetailPage-DAX8aTFq-CX_nfeg0.js} +9 -9
- package/dist/assets/{ChargeCardDetailPage-DWyRrPSy-BvyyNVxe.js → ChargeCardDetailPage-CTdVu2LX-CXvKoTcM.js} +35 -35
- package/dist/assets/{ChargeCardListPage-D3nBV6Fu-DfN7aWAo.js → ChargeCardListPage-BTf2sf_r-BIeWCtwJ.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DBYEXr_N-7b006WJ7.js → ChargeCardListTable-DEYusOGZ-BR9KGK-S.js} +40 -40
- package/dist/assets/{ChargeCardPaymentHistoryPage-BEvuS2te-BxwCFTIZ.js → ChargeCardPaymentHistoryPage-BhIiSigy-CmcVMykk.js} +40 -40
- package/dist/assets/ChargeCardPromoPage-SMg6Bkmx-BIBCjTA5.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BgBF1U8E-DnPnCE_j.js → ChargeCardSetupPage-8jA-EjWA-SUTAHgR8.js} +6 -6
- package/dist/assets/{ChargeCardStatementsPage-UttZjyIb-CinG3Yr4.js → ChargeCardStatementsPage-CrsqrTNw-cq-ohGFk.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-sXY6MJoX-BBStJHqh.js → CheckDepositDrawerPage-BnMEa1gU-D4KA1YbO.js} +21 -21
- package/dist/assets/{CollapsableReportTable-3luMEAJg-BroWF-FL.js → CollapsableReportTable-BQsDuqwg-D4PksJ7s.js} +60 -60
- package/dist/assets/CompanyOfficerDetailsSection-CxeWrQJH-XfC5iWX1.js +260 -0
- package/dist/assets/{CompanyPassportCard-FgYHweiL-B5gr1lJ_.js → CompanyPassportCard-DUX32IvW-wDP-ayWY.js} +3 -3
- package/dist/assets/CompanyPassportPage-Cp0oulai-BQFU8qYi.js +574 -0
- package/dist/assets/{CompleteProfile-6pDQ6JjU-C7odNMQ5.js → CompleteProfile-BdeEu2dc-DABogw0l.js} +3 -3
- package/dist/assets/ConfettiBurst-C1IgWBaA-CL1o9dY6.js +1 -0
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CbQ77GJr.js → ConstrainedInnerElement-BeIpAPjB-Cr0pUg_S.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DMWtQ3qU-Bg7OoiTt.js → CreateOrEditVendorPage-iFE1nb0J-tpGth2AK.js} +12 -12
- package/dist/assets/{CreditCardPaymentDrawerPage-OzD38_F8-B8JNfyMQ.js → CreditCardPaymentDrawerPage-CaTanv1T-DKlglNsr.js} +15 -15
- package/dist/assets/{CurrencySelectField-DL4q5vKR-DqpW0Wz5.js → CurrencySelectField-BNcLy0zv-DUL30Rmr.js} +3 -3
- package/dist/assets/{CustomerOnboardingActivationPage-C8mciX-r-B9Cshw5r.js → CustomerOnboardingActivationPage-D_0kSaYs-DmoaOtfG.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-YZ4WpsDD-CT9Ps13n.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Nl6SOtES-B3qnBN4d.js → CustomerOnboardingDetailPageSkeleton-B1jJ1XJX-Ec31gEaK.js} +13 -13
- package/dist/assets/CustomerOnboardingNoStepsPage-CyxHQxxQ-B3uyPHi-.js +66 -0
- package/dist/assets/CustomerOnboardingPage-Cj_k0rfN-dr4fZ7As.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-BYC_Sp__-B35TL-cQ.js → CustomerOnboardingProductSuitePage-BPRN6xyM-BLvLQxxG.js} +10 -10
- package/dist/assets/{Dashboard-DAP7UzjW-DBsJoK5k.js → Dashboard-DYpE_H2b-WMqZzzuP.js} +1 -1
- package/dist/assets/{DashboardReportPage-iAA_QiN2-BfmuWrMe.js → DashboardReportPage-BB6dW8kR-BVA8DQgX.js} +10 -10
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CIKwGufL-B4WWY8cX.js → DashboardSidebarBackgroundAnimation-DDLCSC57-BJ_WASPh.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-D3x1jhKt-DssCTMB7.js → DepositAccTransactionItem-CxXM_Pse-aMnsSeAe.js} +6 -6
- package/dist/assets/DepositAccTransactionListPage-flz5jtjj-Tj1qKkuc.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DHUzdqCs-CeJMtDxo.js → DomesticWireDetailsPage-CswDexXc-CwmUyTco.js} +1 -1
- package/dist/assets/{DownloadOverlay-C8byijvE-DCI_09Q4.js → DownloadOverlay-Ck84lTok-DoSlSguE.js} +1 -1
- package/dist/assets/{DrawerPage-DMQ5MoIw-BlXGV-xV.js → DrawerPage-Ctqr9Qke-DbWbSJy7.js} +9 -9
- package/dist/assets/EditPeoplePage-BiGeDyr0-BP5iQ9eS.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-STVvYnku-Dyx2Oikb.js → EditReimbursementDetailPage-DHIg51AQ-Du0u5yPi.js} +37 -37
- package/dist/assets/{EntityDetailPage-20BKV_TK-B5sqJOYK.js → EntityDetailPage-BsCWH1Al-WFaE0WQF.js} +1 -1
- package/dist/assets/{EntitySummarySection-6JSSyIPA-K01fPehF.js → EntitySummarySection-ntuao-VM-fobvDD6S.js} +23 -23
- package/dist/assets/{ExpenseAutomationOverviewPage-DpoYnwJh-DSAhakn4.js → ExpenseAutomationOverviewPage-lptxncga-rbFk8U51.js} +14 -14
- package/dist/assets/{ExpenseAutomationPage--kONBcsX-DlY4RThk.js → ExpenseAutomationPage-S1iaOuA5-DRC_L2v_.js} +53 -53
- package/dist/assets/{ExpressPayPage-a31-5Bgz-B-4aw0li.js → ExpressPayPage-3UaLqRo7-BW2LLrbf.js} +14 -14
- package/dist/assets/{FeaturePreviewPage-z8BJQeL--ChibcOOA.js → FeaturePreviewPage-CLHp1LHp-eKI7eeEH.js} +1 -1
- package/dist/assets/{FollowStepsSection-Bl933px0-DXKlKasr.js → FollowStepsSection-BY0dw_SN-iqWfg0Bg.js} +23 -23
- package/dist/assets/{GlobalReviewListPage-BLPF3T4t-0m0mv8R4.js → GlobalReviewListPage-CltHFSzG-CQET8EIq.js} +11 -11
- package/dist/assets/{InformationCardStack-BTWe4X6t-DdN7cWvp.js → InformationCardStack-CVoS_Bni-DRMXWlfL.js} +4 -4
- package/dist/assets/{InsightsCardStack-CoSz_FKI-xRb_a3yi.js → InsightsCardStack-YcKupOZZ-BYS9QdSX.js} +10 -10
- package/dist/assets/{InsightsSection-DEnkGYD8-BV7sZQsr.js → InsightsSection-BuCEgcAh-DX4KP6Gi.js} +8 -8
- package/dist/assets/{IntegrationsSettingsPage-CEaBjt99-Do0dnq5V.js → IntegrationsSettingsPage-r_VwvwxS-D2fIzpgb.js} +6 -6
- package/dist/assets/{InternationalWireSwiftDetailsPage-C1i-ujyZ-DIPsBga8.js → InternationalWireSwiftDetailsPage-B2x6g-rb-BG86r2Q_.js} +14 -14
- package/dist/assets/InternationalWireVerificationPage-B-sxkGbq-BzbYdtzf.js +292 -0
- package/dist/assets/{InviteFormPage-B2Rl23Qb-D49rnAc4.js → InviteFormPage-CrFWGpJE-DomTNTMP.js} +23 -23
- package/dist/assets/{InvitePageListView-E_2j_tF7-BsS6FATD.js → InvitePageListView-BsGwCg5B-DlrJVwFE.js} +39 -39
- package/dist/assets/InvitePeoplePage-D0-MjKb2-B1ShEIts.js +12 -0
- package/dist/assets/{InvoiceUploadSection-drGgAU5w-CP2A3IhR.js → InvoiceUploadSection-BUF7Ko_U-1xPxHQJp.js} +8 -8
- package/dist/assets/{IssueChargeCardPage-Cj6pmQbt-DDVdjZ4v.js → IssueChargeCardPage-D5sn5jt4-BWcpzIYT.js} +19 -19
- package/dist/assets/{LabeledAddressValue-BjCojNni-CsHQb5xA.js → LabeledAddressValue-Ds1BeyG_-FoXd8L7U.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DyHTdGlm-CErilABA.js → LabeledAddressValueField-D_Ztmm7--tsnB0bq1.js} +4 -4
- package/dist/assets/{LabeledControlledCheckBoxField-B5Csu2og-C5h8CQSb.js → LabeledControlledCheckBoxField-DGV1Bz6o-CCbHpDl4.js} +2 -2
- package/dist/assets/{LabeledCreatableSingleSelectField-C-dLOvWU-28KwULO3.js → LabeledCreatableSingleSelectField-CTmUlcyk-Dx11AHn5.js} +4 -8
- package/dist/assets/LabeledDocumentField-BwHjf12U-ti56UUdB.js +41 -0
- package/dist/assets/{LabeledDropDownFormattedTextField-DHx90GON-Rl0wOSQX.js → LabeledDropDownFormattedTextField-BaAHosJI-CDWZK3Xu.js} +1 -1
- package/dist/assets/{LabeledText-CRJr2zA8-DRZ423PA.js → LabeledText-CVYTNBOt-LIAQJcbl.js} +5 -5
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CM0HeG1R-pTmkakCa.js → LabeledUserSingleSelectWithSubtitlesField-CnK0wLL0-CdsEapB3.js} +16 -16
- package/dist/assets/{LabeledZeniRolesDropDownField-CR8M-X5s-DPGEl74a.js → LabeledZeniRolesDropDownField-B2eu9WQ_-CXTTkytl.js} +20 -20
- package/dist/assets/{LinkJETransactionPage-DfY5sKBg-BKNhXIRx.js → LinkJETransactionPage-DTU4Piv4-CzTizu8e.js} +14 -14
- package/dist/assets/{LockCardPage-CgCv-EKl-CipF6lcu.js → LockCardPage-9rnmj-hG-Dgtzvq-m.js} +49 -49
- package/dist/assets/{LowBalancePopup-OUWtUPdo-DRkjFCjE.js → LowBalancePopup-CCl7fzh9-CRJeCFG3.js} +3 -3
- package/dist/assets/MagicLinkACHDetailsPage-B5oowluv-pi_Q89s3.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BohAWQ_F-BBgkEcbM.js +1 -0
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-B9u7g87s-YokU7IH5.js → MagicLinkInternationalWireDetailsPage-CRx-EIj--rUZQXW3V.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BwN3dPJM-CQeiTIkx.js → MagicLinkSuccessPage-q5XLFFKd-IcgduK3D.js} +3 -3
- package/dist/assets/{MagicLinkTitleSection-C_Xng7ad-D4iutPsA.js → MagicLinkTitleSection-ClWFjqQr-B7_1AUkD.js} +4 -4
- package/dist/assets/{MailingDetailsSection-Dmq45H_s-CjyySHTi.js → MailingDetailsSection-Dle_aLif-C9MEuFNg.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CNUaVzw3-CZkaA3pm.js → MyBankConnectionsSettingsPage-BC47a22v-9PSEA4Wu.js} +12 -12
- package/dist/assets/MyPendingActivationChargeCardListPage-BJ_kQQGd-lBfLcXgn.js +6 -0
- package/dist/assets/{MyProfileSettingsPage-DdlCBRiN-BYlOj9no.js → MyProfileSettingsPage-C70z69ea-CMxdjCdW.js} +9 -9
- package/dist/assets/{NavBarWithPicker-Cx9v8jpk-DJ52ZXJM.js → NavBarWithPicker-CRQ9DzK7-Cs0J7mYU.js} +4 -4
- package/dist/assets/{NavigationArrow-CNO4O4XS-DUm9WGAp.js → NavigationArrow-CWRgkV1y-5nUqXc-t.js} +1 -1
- package/dist/assets/{NavigationDots-BX9DbCj7-RHGokei7.js → NavigationDots-BDKBgUe6-CeOovYs1.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Bo_ZeDQH-CgpotWIt.js → NewGlobalMerchantPage-B_mViG5F-TkGICDRh.js} +13 -13
- package/dist/assets/{NoDataChart-JfED3unL-jJumSwoX.js → NoDataChart-CJyaj_wD-Ceo15OJ6.js} +1 -1
- package/dist/assets/{NoDataTable-BFpO3ZtS-ubjUd8M_.js → NoDataTable-BroHHbsa-C2KBPOR3.js} +1 -1
- package/dist/assets/{NotFoundPage-D_HhIdYv-DyNtigHQ.js → NotFoundPage-B-CdwYLM-04zajBZ5.js} +10 -10
- package/dist/assets/{NotificationSettingsPage-B2d-vPIZ-WS4EaJDB.js → NotificationSettingsPage-DrMp-0h0-CNJC7C_o.js} +33 -33
- package/dist/assets/{NotificationsListConfig-C4LF_8h1-ojY4Mfu-.js → NotificationsListConfig-Cl713fZg-qRofkxh7.js} +1 -1
- package/dist/assets/{NotificationsPage-7HqRmokr-0AvCCTrK.js → NotificationsPage-Dh4xulau-_5iAw31w.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CwD1U9q_-idpf-eH0.js → OpExByVendorPage-BslfnDh3-53j8zSVl.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-D2c2jURk.js → OverlayContainerPage-D4QU0p4o-CW30kf30.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CRkDr0QK-D1powlVT.js → PandLWithForecastPage-BYnaGvO3-Bs93z5El.js} +1 -1
- package/dist/assets/PaymentAccountSetupBillingAddressSection-CR6xX1bB-BwbAQyjl.js +107 -0
- package/dist/assets/{PeoplePage-D5eQETB2-DZx25X-Y.js → PeoplePage-BRC7-Yol-C9rira3P.js} +18 -18
- package/dist/assets/{Preview-Bfns_dDG.js → Preview-BY6UeCTa.js} +1 -1
- package/dist/assets/{ProductsCarousel-BXPXaIWg-Av-oVPlG.js → ProductsCarousel-BgltUKwq-Dj-tP9zJ.js} +1 -1
- package/dist/assets/{PromoBaseCards-C-S0ckZq-DcP7gArA.js → PromoBaseCards-DMleWayu-BFTkh-l1.js} +2 -2
- package/dist/assets/{QBOConnectionDialog-qqbamtpL-BeJJQ440.js → QBOConnectionDialog-BSKkJDPD-CJILPjk5.js} +6 -6
- package/dist/assets/{QBOSetupSection-CZu_mtMP-CZBINdYC.js → QBOSetupSection-YQ4TKOTA-B5TQNN0G.js} +13 -13
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BE-QC1b0-CvaYArLZ.js → ReimbursementApprovalRuleDetailPage-BFxCrrVt-CFZDA3-E.js} +3 -3
- package/dist/assets/{ReimbursementApprovalRulesPage-CXbYB3Y5-Cbew60RV.js → ReimbursementApprovalRulesPage-DQDbyY1K-B5lF3vkz.js} +6 -6
- package/dist/assets/{ReimbursementDetailPage-DXMDyCop-DlZGIADX.js → ReimbursementDetailPage-gAg8C98b-DuQNQ-y5.js} +8 -8
- package/dist/assets/{ReimbursementPromoPage-DGXHkiBN-DLifue2f.js → ReimbursementPromoPage-DtKtr2rP-C8cL3Mv7.js} +11 -11
- package/dist/assets/{ReimbursementSetUpPage-Dd1iGv5X-C_E7fz-A.js → ReimbursementSetUpPage-BdUoR2HM-CIGHv-6r.js} +15 -15
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-D46qP31Q-DT9YskKf.js → ReimbursementsBulkReviewDrawerPage-BL6oI4fi-DUFvxQjQ.js} +1 -1
- package/dist/assets/{ReloadCard-BJke_yPt-D_L8D7X-.js → ReloadCard-B3OtOvVI-DVK4TeBa.js} +6 -6
- package/dist/assets/{ReportTableViewSelector-DiYnlME4-BJ1-sTjo.js → ReportTableViewSelector-Cmv2xs7h-CJ6mu-Rp.js} +28 -28
- package/dist/assets/{ReportsPage-bmKftmYF-NgXuxPpu.js → ReportsPage-SWC6uIs--DupC08g-.js} +1 -1
- package/dist/assets/{RevenueChart-DjTdsbym-CUUEbo6t.js → RevenueChart-CZlAswBG-DPlV94YS.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-NFOdusAU-CVH2L4to.js → ReviewDetailsPage-BW3pZ3ws-BH9zDrcw.js} +20 -20
- package/dist/assets/{ReviewOverlay-Q8tlLMbm-BLu76gBy.js → ReviewOverlay-BhFwGG6t-C0m5jD2s.js} +14 -14
- package/dist/assets/RoleWithToolTip-D74SWfZd-B2mOCrt1.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CpjdnINH-Dzwzq8FX.js → ScheduleDetailsFixedAssetsPage-CdmehDsJ-Dd48HqBm.js} +13 -13
- package/dist/assets/{ScheduleDetailsPage-DVnetdnH-DhMiGzx8.js → ScheduleDetailsPage-DA1eGkzI-a0yDswoo.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-rJ0jC94w-DDWgbE_4.js → ScheduleSequenceTable-BvGIwZmi-Br-m9rdL.js} +25 -25
- package/dist/assets/{ScreenRoutes-0NyWgCAY.js → ScreenRoutes-D3PxnqOE.js} +1 -1
- package/dist/assets/{SetUpAccountSection-BCoHzvyG-CzNKWW7X.js → SetUpAccountSection-DM4CvIFN-CPQ8K94t.js} +7 -7
- package/dist/assets/{SignIn-k3DDmpFU-BAnREigf.js → SignIn-DU3HuwJr-CXMwOpi4.js} +26 -26
- package/dist/assets/SignInScreen-PoBHP4-4.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-DCfMKXfi-BWeN8ijV.js → SpendManagementListViewPage-VR4dPKBw-DHyDM03E.js} +11 -11
- package/dist/assets/{SpendManagementPerTabPage-Hv3QMqv0-CTD5vH6J.js → SpendManagementPerTabPage-CdYRrtcC-DFgavPhh.js} +27 -27
- package/dist/assets/{SpendManagementSection-BRp2eDfv-DVKGvM7g.js → SpendManagementSection-C2Uw6UXF-BRw2L3H1.js} +7 -7
- package/dist/assets/StatementItem-CS0N92J0-BsnAviIB.js +31 -0
- package/dist/assets/StatementsPage-DL8W4WLu-BH9E8ATR.js +58 -0
- package/dist/assets/{StatusSwitcher-B5nSXHv6-DTMRsMtw.js → StatusSwitcher-RY35Qzlp-DPptYPVp.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BPSCR7GS-CQQ30d6t.js → SubTabSwitcher-CIhSt1_V-BGyVDCoP.js} +3 -3
- package/dist/assets/{SummaryCard-DdYMAiws-C4w7QxN_.js → SummaryCard-iIQISRZL-Cx0NyzVM.js} +1 -1
- package/dist/assets/{TaskManagementPage-9OEooDk9-BnhlYqUu.js → TaskManagementPage-CCC1QlZS-BHBkMyad.js} +30 -30
- package/dist/assets/{TimeRangeSwitcher-BG9h3Mws-BXPl7KzE.js → TimeRangeSwitcher-BIA3BW1g-Bty5Ch9x.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-BlkN2ln5-CbPVM8iC.js → TimeframeSwitcher-BhV0yrj0-CbCl4A9y.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-r8YzbhCn-DALUFB9M.js → TimeframeSwitcherWithToggle-CIAZXHb2-orP1uTMH.js} +2 -2
- package/dist/assets/{TopExCard-CDAkgH2B-DQW-zWxw.js → TopExCard-CPsxq74q-662cwF8z.js} +4 -4
- package/dist/assets/{TopExDetailPage-BN9IdTkO-DE8PmHT3.js → TopExDetailPage-BGoq66Fs-0PJ8BVQb.js} +9 -9
- package/dist/assets/{TransactionActivityLogPage-CTl6Lo3h-Dr0PqgiK.js → TransactionActivityLogPage-BW-qVpWu-D-8WEz2X.js} +12 -12
- package/dist/assets/{TransactionDetailPage-DSR3itvE-B47s770o.js → TransactionDetailPage-D0tW8GIH-C00b9e62.js} +35 -35
- package/dist/assets/{TransactionList-wLBz-A1j-R5pqCBUj.js → TransactionList-T8gAOJc0-Dw9G55NV.js} +5 -5
- package/dist/assets/{TransactionListBig-BA00B8Vn-B52eXfHk.js → TransactionListBig-CMjxUKt2-BhSVq9fm.js} +7 -7
- package/dist/assets/{TransactionListPage-Dyi4SMpD-Bm97EAJv.js → TransactionListPage-Bx6qszUl-B-5CDbC_.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-6HbXn17w-COo-5ffY.js → TransactionVendorDetailPage-Ca7bgryb-CmVBYko3.js} +16 -16
- package/dist/assets/{TransferDrawerPage-GnqDJJ7x-u45NHhBy.js → TransferDrawerPage-DG6q94Ch-Cqord4XL.js} +28 -28
- package/dist/assets/{TreasuryOverviewPage-7s3XhxYc-CoT8RYIQ.js → TreasuryOverviewPage-YNlUL3px-B_35sSeA.js} +32 -32
- package/dist/assets/{TreasuryPromoPage-DFnHMTJ--CP3RuQCD.js → TreasuryPromoPage-CBSYXvme-DpMWnl6i.js} +8 -8
- package/dist/assets/{TreasuryStatementsPage-BdUYirAC-Duwk2wsH.js → TreasuryStatementsPage-D0YaCwv3-PNzj_mHV.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-fX08Nflm-B-GslDLQ.js → TreasuryTaxLetterPage-Bln01PPe-DpJfleJK.js} +1 -1
- package/dist/assets/{TrendChart-mamZxFEf-DPlJCKYL.js → TrendChart-DjKmnpsm-CS6VXx1C.js} +1 -1
- package/dist/assets/{TrendWithTransactions-fGuXIDf7-HyuIbA66.js → TrendWithTransactions-D2CSrQJG-DdbpQrSL.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-FPf4YpN2-Cp3ASbXZ.js → UncategorizedAccountsMappingPage-BhgJFJvY-Cs1YOJIy.js} +15 -15
- package/dist/assets/{UnitIntegrationPage-BcIYQ6E_-B6tBJIS1.js → UnitIntegrationPage-CtNIGtOS-DZq9w7mC.js} +7 -7
- package/dist/assets/{UploadAdditionalDocumentOverlay-CFiPe--u-DrxhGkyT.js → UploadAdditionalDocumentOverlay-D44jXTDW-DwZWfezE.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BreN6fS3-FjXbhU9D.js → Vendor2FAPopup-BogFaSYy-BlnTHqfY.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-Di9QJ0hA-BNrZk8u_.js +1 -0
- package/dist/assets/{VendorDetailPage-DXKn3qSR-Di8ThCGh.js → VendorDetailPage-DRr5ci0V-Du2p3ojh.js} +86 -86
- package/dist/assets/{VendorDomesticWireDetailsPage-7m-21BIT-BVTn5C6b.js → VendorDomesticWireDetailsPage-DCdG-eGI-IQvY9pai.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-D5jPoLoj-DhLrefqh.js → VendorFiling1099EditablePage-C6mptSEx-B_hdSwqB.js} +14 -14
- package/dist/assets/{VendorFirstReviewPage-Bxj_Far6-DOA9lu2j.js → VendorFirstReviewPage-CLBTSreq-DCVG1u2-.js} +33 -33
- package/dist/assets/{VendorInternationalWireDetailsPage-DCdiiuBR-D9OAEuuJ.js → VendorInternationalWireDetailsPage-oMdWj41X-CmZF5xAN.js} +10 -10
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CM2bFEbE-B7IN2oYH.js +1 -0
- package/dist/assets/{VendorsAccountsSection-BYkKSsB8-BmGLfX_G.js → VendorsAccountsSection-Cr_m8Jyi-CiH59Azu.js} +2 -2
- package/dist/assets/{VerifyDevice-DxoL8hYf-Cowpahhc.js → VerifyDevice-DrXK_7gG-CEX4QcR9.js} +7 -7
- package/dist/assets/{VideoPlayer-ByXKIag5-BZsoWnFe.js → VideoPlayer-BZe4PqnR-CX1XPKSp.js} +2 -2
- package/dist/assets/{VideoPopup-DybLGmZL-CNsVI5bc.js → VideoPopup-BaEQAfak-DFKT4R55.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-Ddp3wpvG-CdbbY6NF.js → WarningsDrawerPage-COJ1hjAD-BEWCjyIu.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-C-B9h3wI-CKYwhajY.js → ZeniAccountDetailPage-Chx3JWsc-DUW0nJwl.js} +24 -24
- package/dist/assets/{ZeniAccountListViewPage-CWvKejM--BPGukJA_.js → ZeniAccountListViewPage-6RhsoQzy-B1q4otvI.js} +11 -11
- package/dist/assets/{ZeniAccountNavBarPieces-xyI5r3gJ-CbIslzwK.js → ZeniAccountNavBarPieces-10K_Qgxx-DnALebZP.js} +3 -3
- package/dist/assets/{ZeniAccountPromoPage-ClU5aJ3_-4ixwSQil.js → ZeniAccountPromoPage-ClXA4h8f-BJADOlI6.js} +16 -16
- package/dist/assets/{ZeniAccountSetupPage-BF6_J9le-DCR58vNJ.js → ZeniAccountSetupPage-7YlBF0nq-BMd9Jfil.js} +4 -4
- package/dist/assets/{ZeniCopyright-CyBZnbZa-D5SmAZYL.js → ZeniCopyright-k2F7p5Nn-CWJt4f_H.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-QODQj6J3-nB7ivh3S.js → ZeniTransferAmountSlider-CJY_ei3T-BQBKQlY-.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-l6e6C-pa.js → add-to-wallet-DgdBD8_G-CNvnwL2z.js} +1 -1
- package/dist/assets/{analytics-DGcxWyl6.js → analytics-rms9goNI.js} +1 -1
- package/dist/assets/{analyticsHelper-BcBQi1qY.js → analyticsHelper-DTNFmelW.js} +1 -1
- package/dist/assets/{analyticsHelper-HEUQhbuJ-Cq2Mtjgc.js → analyticsHelper-e2zBYls0-DsW-gRIg.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-C0A9x354.js → arrow-south-east-round-PEovUgvH-DpZb0ICZ.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CC0rbz99.js → auto-transfer-rule-mbafm5D3-CBISKKCi.js} +1 -1
- package/dist/assets/{chartTypes-CnipzTeX-DGSU_TZ0.js → chartTypes-D0t0a86R-VgxTrMCK.js} +1 -1
- package/dist/assets/{commonDimensions-DmFc7WqO-CxyyXmLy.js → commonDimensions-BwCds81U-kEodPKRG.js} +1 -1
- package/dist/assets/{constants-jbgzJYdx.js → constants-C3kp1fkP.js} +1 -1
- package/dist/assets/{core-BMaLzXUJ.js → core-B_30foAD.js} +1 -1
- package/dist/assets/{dash.all.min-DmpFQIVa.js → dash.all.min-3-z_MPR8.js} +1 -1
- package/dist/assets/{detailCommon-x-UFksNz-DKaz3zHe.js → detailCommon-CFEglqRw-DcI3Dm8c.js} +6 -6
- package/dist/assets/{downloadPdf-D1grj9oX-Bei5Wpqc.js → downloadPdf-BfjQscZh-CeCugFTI.js} +1 -1
- package/dist/assets/{empty-CxyNypVD.js → empty-BB-5X2tp.js} +1 -1
- package/dist/assets/{empty-DJguQx7A.js → empty-DyZfcN1I.js} +1 -1
- package/dist/assets/epic-CXeU0a14.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-ZuOwWA2g.js → gift-box-Cmt9OgIZ-tVleHIYS.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CR5EZc8Z.js → graphic-no-data-l-DU4J8fDt-CYR0rF_u.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BhBXhGOx.js → graphic-no-data-net-burn-l-CzmycA0m-DI-E_991.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DiPOUMao.js → handshake-BPg58FML-DRFlkqA2.js} +1 -1
- package/dist/assets/{index-CQmr12-Z.js → index-4xstgUx1.js} +1 -1
- package/dist/assets/{index-C3zM8gb6.js → index-BCh0qUkM.js} +1 -1
- package/dist/assets/{index-rJQoaAfw.js → index-BR9aIv1A.js} +2758 -2774
- package/dist/assets/{index-tuFs6sMC.js → index-BhfvNbOl.js} +1 -1
- package/dist/assets/{index-DKka6liW.js → index-BoyomC_-.js} +1 -1
- package/dist/assets/{index-Dw_2FdYw.js → index-DVfmIUIY.js} +1 -1
- package/dist/assets/{index-DPwk4vO3.js → index-DgHTMbc3.js} +1 -1
- package/dist/assets/{lexical-CyZM9SwL.js → lexical-CcL2Fd1i.js} +1 -1
- package/dist/assets/{liveblocks-CohL7dW6.js → liveblocks-B8f0lmpe.js} +1 -1
- package/dist/assets/{lottie-XKgYVRq1.js → lottie-CbICbNKh.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-D-j3xrlE-C3TmZv3p.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-SPabSQrM-Cf3ilJGA.js → mapSectionWithAcOnlyToTreeNode-D84rlDgo-CA3ifSFr.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode--_h7d27O-sxGNKTOK.js +1 -0
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BwS2KbWd-CAuCdcVv.js → mapTimeframeBalancesToTreeNode-BqoG_HF--CRhmAO8j.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-DPb6o33r-DFBVfNq3.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CCAWuSrJ-B5KhCzdx.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DAB0kK09-CTBKyUYq.js} +1 -1
- package/dist/assets/{mui-KNfEk2A1.js → mui-C7Q1opAD.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BLbwsJjf.js → page-detail-CWX5S47F-DfEuZBUZ.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-PdsDXPWw.js → panelSelectedMixin-CzfD5-Zs-Udxivyx_.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-_DAtDxCX.js → radio-default-CiSgisfh-VWYNvRzB.js} +1 -1
- package/dist/assets/{react-DOhUJ6O2.js → react-B1skuV78.js} +1 -1
- package/dist/assets/{react-KKmCM6TX.js → react-C5VDu1Xe.js} +2 -2
- package/dist/assets/{react-CPz-xjGo.js → react-CEhgfqKO.js} +2 -2
- package/dist/assets/{react-H0CMmi2N.js → react-D-QPbFx5.js} +1 -1
- package/dist/assets/{react-Cbh1mkS2.js → react-DODYMrDc.js} +1 -1
- package/dist/assets/{react-wx6Np1L0.js → react-OE6vDDlS.js} +1 -1
- package/dist/assets/{react-CX71OnYA.js → react-gaSEjZmU.js} +1 -1
- package/dist/assets/{react-CfuDRhRn.js → react-zf2AM5gr.js} +1 -1
- package/dist/assets/{recharts-D8Mh9GJw.js → recharts-v_b66Qfi.js} +1 -1
- package/dist/assets/{sentry-CGE1ab0x.js → sentry-BwoJfpTa.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BeHXxYmi.js → shield-DOlUxcFf-DlZ9ml05.js} +1 -1
- package/dist/assets/toCOABalancesWithID-mNZ5ym9S-BQfS02g5.js +1 -0
- package/dist/assets/{toChartData-VTidOIL7-CTZNeqK0.js → toChartData-BVSCRQYT-CU2W4nbR.js} +1 -1
- package/dist/assets/{uploadAttachment-CwSRD9la-Dwn2_OC8.js → uploadAttachment-D3ybtHtR-D84dG_-j.js} +30 -30
- package/dist/assets/{uploadReceipts-Dge0cNF1-COPT6pnG.js → uploadReceipts-Dge0cNF1-C6WyXewN.js} +1 -1
- package/dist/assets/{url-D3fzoRiq.js → url-BcaeVwpg.js} +1 -1
- package/dist/assets/{url-CxS4k21H.js → url-o9j2r9Zq.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-YmFx62lI.js → useLongPress-GCK2COYQ-CM12epgA.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-lvUUHuIi.js → usp-line-BBd1wKwW-Cyu4xp0r.js} +1 -1
- package/dist/assets/{utils-Co3Y654K.js → utils-C75CTJHa.js} +1 -1
- package/dist/assets/{zeni-epic-state-CiJSQQSe.js → zeni-epic-state-Deo9yJpd.js} +17 -17
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AccountInfoPage-jlXCF7Gn-p294yilG.js +0 -18
- package/dist/assets/AddAddressForCardDrawer-BIjROWAw-BSYp9XYN.js +0 -6
- package/dist/assets/ApprovalRulesSettingsPage-91Tg_EpH-BzKB_HwN.js +0 -47
- package/dist/assets/BillingSettingsPage-Djx3EUQO-2EyCLMZp.js +0 -44
- package/dist/assets/BoxItem-ClRdlCWM-B_aqSV-L.js +0 -53
- package/dist/assets/BusinessVerificationPage-Dzp7gFwH-iwUmX4wV.js +0 -138
- package/dist/assets/ChargeCardPromoPage-DxNPvbeh-CTzLEbbH.js +0 -222
- package/dist/assets/CompanyOfficerDetailsSection-wa4YnlL--Bvat7gA-.js +0 -331
- package/dist/assets/CompanyPassportPage-B8LoE1o9-B6zE-V-E.js +0 -417
- package/dist/assets/ConfettiBurst-BAIozwVU-BMA4g7cW.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-Btl2A6Cw-CdJnPywR.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-CQN8EEU--ChBu6uTX.js +0 -66
- package/dist/assets/CustomerOnboardingPage-B77cjZbE-Do4tQjfo.js +0 -107
- package/dist/assets/DepositAccTransactionListPage-W9xt6kxv-BUhaUskS.js +0 -66
- package/dist/assets/EditPeoplePage-D7TQFFBG-Djz1uJLh.js +0 -55
- package/dist/assets/InternationalWireVerificationPage-CWBpTNA9-9aWL0J3i.js +0 -65
- package/dist/assets/InvitePeoplePage-CljSsdaM-DHNLTMCH.js +0 -12
- package/dist/assets/LabeledCountryMultiSelectField-Ds0vvyNd-ypZKY9co.js +0 -237
- package/dist/assets/LabeledDocumentField-b5xujqjK-HTjOeiZT.js +0 -41
- package/dist/assets/LabeledMultiSelectField-CEoszkBN-B4_Me-4T.js +0 -223
- package/dist/assets/MagicLinkACHDetailsPage-DJEu5rMd-BJeKMJK9.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage--0yYTzva-BnphHyQr.js +0 -1
- package/dist/assets/MyPendingActivationChargeCardListPage-Dz1U6l9--DwLxZlPN.js +0 -6
- package/dist/assets/PaymentAccountSetupBillingAddressSection-B6nTWyOD-gY1zpkFD.js +0 -107
- package/dist/assets/RoleWithToolTip-BWdD1HmA-BCpJ5d2U.js +0 -22
- package/dist/assets/SignInScreen-BOrZAIYm.js +0 -1
- package/dist/assets/StatementItem-9DHoMBjx-DlzvIjc2.js +0 -31
- package/dist/assets/StatementsPage-CdOlg2R0-CFHx0zSi.js +0 -58
- package/dist/assets/VendorACHDetailsPage-CP2mHGE7-CG1YPLHx.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-JzRuqiHJ-DYQH4bJe.js +0 -1
- package/dist/assets/commonTypes-CU0qY6Px-ZdnVolMx.js +0 -1
- package/dist/assets/epic-DJmh-RNR.js +0 -2
- package/dist/assets/mapLoadingInProgressToTreeNode-gyu3qs1Z-SebMrCb0.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-D_rRYkys-BvhCp_uR.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-8JwIYBnd-DXtmYfY7.js +0 -1
- package/dist/assets/toCOABalancesWithID-BcVCEfwr-D-kim1rY.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,am as et,al as
|
|
1
|
+
import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,am as et,al as V,T as se,cm as tt,ac as nt,bT as it,u as v,b9 as ot,b as Ne,R as at,a8 as ze,cS as ct,aQ as J,aV as fe,fA as Te,c_ as lt,bw as He,fB as _e,fC as st,fD as qe,b$ as Ee,fE as rt,fF as dt,fG as ge,fH as we,fI as Pe,aN as Se,ce as xe,aP as ut,bK as pt,dO as Je,p as ne,ai as B,fJ as ht,fK as mt,fL as ft,bi as gt,fM as wt}from"./index-BR9aIv1A.js";import{a as r}from"./sentry-BwoJfpTa.js";import{n}from"./mui-C7Q1opAD.js";import{r as Ie}from"./core-B_30foAD.js";import{bJ as St,bK as ie,bL as Oe}from"./zeni-epic-state-Deo9yJpd.js";import{a as xt}from"./SetUpAccountSection-DM4CvIFN-CPQ8K94t.js";import"./liveblocks-B8f0lmpe.js";import"./recharts-v_b66Qfi.js";import"./lottie-CbICbNKh.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.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]="9e4f7f20-ccb2-4828-b046-eba6b59291b5",e._sentryDebugIdIdentifier="sentry-dbid-9e4f7f20-ccb2-4828-b046-eba6b59291b5")}catch{}})();const{settings:{bankConnectionHeader:de}}=re.getLocalizedStrings().common,yt={value:de.productType,width:new I(100,19)},bt={value:de.primaryAccount,width:new I(100,36)},vt={value:de.linkAccount,width:new I(100,22)},kt={value:de.status,width:new I(12,12)},$t={value:de.balance,width:new I(12,13)},N=[yt,bt,vt,kt,$t],{common:{settings:Fe,strings:{hyphen:ve}},commonSetUp:{setUp:Be}}=re.getLocalizedStrings(),T={containerPadding:new I(v[3],v[4]),containerRightPadding:new I(v[3],v[8]),iconContainerMaxWidthHeight:new I(v[6],v[7]),iconWidthHeight:new I(20,v[4]),iconPadding:new I(v[1],12),productTypeContainerMarginBottom:new I(v[3],v[0]),linkAccountContainerMarginTop:new I(v[3],v[0]),productTypeIconSize:new I(v[3],v[4])},Ct="bankConnectionsSettingsPage",At=({productType:e,windowSize:d})=>{switch(e){case"bill_pay":return t.jsx(Ht,{windowSize:d,children:t.jsx(gt,{})});case"reimbursement":return t.jsx(qt,{windowSize:d,children:t.jsx(ft,{})});case"zeni_accounts":return t.jsx(Jt,{windowSize:d,children:t.jsx(He,{})});case"zeni_treasury":return t.jsx(Kt,{windowSize:d,children:t.jsx(mt,{})});case"charge_cards":default:return t.jsx(Gt,{windowSize:d,children:t.jsx(ht,{})})}},jt=({allBankAccounts:e,setupView:d,connectedAccountProvider:H,onFetchLinkTokenClick:R,onUpdatePaymentAccountStatus:_,onEstablishConnectionClick:P,onEstablishConnectionSuccess:U})=>{const C=be(),c=je(),f=ze().analytics,{trigger:w,formState:{errors:M}}=ct(),{plaidConnectionDetails:W,allFundingAccounts:a,primaryFundingAccount:o,productType:l}=d,m=W.link_account,k=W.update_account,[p,A]=r.useState(void 0),[q,b]=r.useState(!1),D=()=>{b(!0)},u=p==="update_account"?k:m,[S,L]=r.useState(u.linkToken??null),[$,z]=r.useState(!1),g=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";let h,E,s,j=!1;o!=null&&(o.accType==="depositAccount"?h={code:"verified",name:"Verified"}:(h=o.providerVerificationStatus,E=o?.institutionDetails,s=h?.code,j=o?.isLoginRequired??!1));const X=J(m.updateStatus.fetchState),Y=J(k.updateStatus.fetchState),Z=J(k.fetchStatus.fetchState),O=C.mode==="light"?new fe(C.colors.brandColorJadeLight):new fe(C.colors.brandColorJadeDark),G=r.useCallback((x,K)=>{f.trackConnectBankSuccess(l,"Settings");const Le=K.accounts.find(Xe=>Xe.id===o?.providerAccountId)??K.accounts[0];o?.id!=null&&p==="update_account"&&Le?.verification_status!=null&&!j?_(Le?.verification_status,o.id,"update_account",y(l),l):P(x,y(l),l),A(void 0),z(!1)},[f,l,o?.id,o?.providerAccountId,p,j,_,P]),ee=r.useCallback((x,K)=>{x!=null&&(f.trackConnectBankFailure(l,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&o?.id!=null&&_("verification_failed",o.id,"update_account",y(l),l),console.log("Plaid Connection Error",x,K)),A(void 0),z(!1)},[f,l,o?.id,_]),{open:Q,ready:ue}=Te({token:S,onSuccess:G,onExit:ee});r.useEffect(()=>{(X==="In-Progress"&&m.updateStatus.fetchState==="Completed"||Y==="In-Progress"&&k.updateStatus.fetchState==="Completed")&&(St(s??"")||(R("link_account",y(l)),U(y(l),l)))},[m.updateStatus.fetchState,U,R,o?.providerVerificationStatus?.code,o?.id,X,Y,k.updateStatus.fetchState,s,l]),r.useEffect(()=>{(ie(s??"")||s==="verification_failed")&&!$&&p!=null&&u.linkToken===S&&u.fetchStatus.fetchState==="Completed"&&ue&&z(!0)},[ue,S,u.fetchStatus.fetchState,u.linkToken,s,p,$]);const oe=$e(Ct,"primaryAccountSection"),F=lt(M,oe);r.useEffect(()=>{u.fetchStatus.fetchState==="Completed"&&u.linkToken!=null&&u.linkToken!==S&&L(u.linkToken)},[u.fetchStatus.fetchState,u.linkToken,S]),r.useEffect(()=>{$&&Q()},[$,Q]),r.useEffect(()=>{!o?.zeniAccountId&&!F&&w(oe)},[o?.id]),r.useEffect(()=>{(s==null||s==="verification_failed"||s==="verification_expired"||ie(s))&&(Oe(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&R("link_account",y(l))},[]);const te=()=>{f.trackConnectBankGetBalance(l,"Settings"),A("update_account"),R("update_account",y(l),o?.id)},ae=`${o?.accountSubType?.name!=null?o?.accountSubType?.name.substring(0,1).toUpperCase().concat(o?.accountSubType?.name.substring(1)):""} ${o?.maskedAccountNumber??""}`.trim(),pe=E?.zeniInstitutionId.toLowerCase()==="chase",Ge=a.findIndex(x=>x.id===o?.id),Ke={element:t.jsx(He,{width:T.iconWidthHeight.valuePx(c)}),color:O};return t.jsxs(zt,{windowSize:c,children:[q===!0?Ie.createPortal(t.jsx(_e,{connectedAccountProvider:H,action:{onBackClick:()=>b(!1)}}),document.body):null,t.jsxs(Tt,{windowSize:c,wrapperWidth:N[0].width,children:[t.jsx(Pt,{windowSize:c,isDarkMode:C.mode==="dark",children:t.jsx(At,{productType:l,windowSize:c})}),t.jsx(_t,{children:Fe.productNameByType[l]})]}),t.jsx(It,{windowSize:c,wrapperWidth:N[1].width,children:t.jsxs(Rt,{windowSize:c,children:[o!=null&&c!=="small"?t.jsx(Bt,{isDisabled:j,children:st(Ke,c,C.mode==="dark",o,Ge,!1)}):null,t.jsxs(Ut,{windowSize:c,className:"fundingAccount",children:[t.jsx(qe,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:C.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:v[4],fontWeight:Ee.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:C.colors.hero,weight:Ee.medium},name:$e(l,"primaryAccountSection"),placeholder:Be.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,K)=>dt(a,x,K),valueToSubLabels:(x,K)=>rt(a,x,K,!1),defaultValue:{selectedOption:o?.id,allOptions:a.map(x=>({label:x.label,value:x.id,isRecommended:x.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:g?"disabled":void 0,showLoadingIcon:g,onClickCreateOption:()=>{f.trackConnectBank(l,"Settings"),A("link_account"),m.linkToken==null||Oe(new Date().toISOString()).isAfter(m.expiration)?R("link_account",y(l)):S!==m.linkToken?L(m.linkToken):$?Q():z(!0)}}),t.jsxs(Lt,{isDisabled:j,children:[ae?t.jsxs(t.Fragment,{children:[t.jsx(Et,{children:ae}),c!=="small"&&(s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe)?t.jsx(Ft,{}):null]}):null,c==="small"&&h!=null?t.jsx(ge,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:h.name,textColor:we(h.code)}):null,s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe?t.jsx(Pe,{productType:l,isUpdateLinkClicked:p==="update_account",isLoginRequired:j,isPendingVerification:s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:k.fetchStatus,updateStatus:k.updateStatus,linkFetchStatus:m.fetchStatus,linkUpdateStatus:m.updateStatus,prevFetchState:Z,prevUpdateState:Y},onUpdateLinkTokenClick:te,onChaseInfoClick:D}):null]})]}),c==="small"?t.jsxs(Wt,{children:[o?.accountBalance?.available?t.jsx(Re,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:ve}),o?.accountBalance?.lastRefreshTime?t.jsx(Ue,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Vt,{windowSize:c,isDisabled:j,wrapperWidth:N[2].width,onClick:x=>x.stopPropagation(),"data-testid":ut("bank-account-section",l),className:"qboLinkAcc",children:[c==="small"?t.jsx(Ot,{children:Fe.bankConnectionHeader.linkAccount}):null,t.jsx(Nt,{isDisabled:j?"disabled":void 0,name:$e(l,"bankAccountSection"),placeholder:Be.zeniCashAccountPlaceholder,defaultValue:{selectedOption:o?.zeniAccountId??"",allOptions:e.map(x=>({label:x.accountName,value:x.accountId}))},controlProperty:{highlightOnHover:!0},isOptionRemovable:!1,textAlignment:"left",registerOptions:{required:!1},style:{width:c==="small"?"calc(100% - 135px)":"100%",marginLeft:c==="small"?i.sp0:`-${i.sp3}`}})]}),c!=="small"?t.jsx(Dt,{windowSize:c,wrapperWidth:N[3].width,children:h!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:h.name,textColor:we(h.code)}):t.jsx(ke,{children:ve})}):null,c!=="small"?t.jsxs(Mt,{windowSize:c,wrapperWidth:N[4].width,children:[o?.accountBalance?.available?t.jsx(Re,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:ve}),o?.accountBalance?.lastRefreshTime?t.jsx(Ue,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},zt=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
4
4
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
@@ -15,7 +15,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
15
15
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
16
16
|
margin-bottom: ${e=>T.productTypeContainerMarginBottom.valuePx(e.windowSize)};
|
|
17
17
|
padding-right: ${i.sp3};
|
|
18
|
-
`,_t=n(
|
|
18
|
+
`,_t=n(V)`
|
|
19
19
|
white-space: nowrap;
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
text-overflow: ellipsis;
|
|
@@ -45,7 +45,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
45
45
|
flex-wrap: wrap;
|
|
46
46
|
`,Et=n.div`
|
|
47
47
|
display: flex;
|
|
48
|
-
`,Re=n(
|
|
48
|
+
`,Re=n(V)`
|
|
49
49
|
display: flex;
|
|
50
50
|
justify-content: flex-end;
|
|
51
51
|
`,Ue=n(B)`
|
|
@@ -71,13 +71,13 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
width: ${e=>e.windowSize==="small"?"64%":"100%"};
|
|
74
|
-
`,
|
|
74
|
+
`,Mt=n.div`
|
|
75
75
|
display: flex;
|
|
76
76
|
flex-direction: column;
|
|
77
77
|
justify-content: center;
|
|
78
78
|
align-items: flex-end;
|
|
79
79
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
80
|
-
`,
|
|
80
|
+
`,Wt=n.div`
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
align-items: flex-end;
|
|
@@ -85,13 +85,13 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
85
85
|
width: 36%;
|
|
86
86
|
`,Dt=n.div`
|
|
87
87
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
88
|
-
`,
|
|
88
|
+
`,Vt=n.div`
|
|
89
89
|
display: flex;
|
|
90
90
|
align-items: center;
|
|
91
91
|
opacity: ${e=>e.isDisabled?.4:1};
|
|
92
92
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
93
93
|
margin-top: ${e=>T.linkAccountContainerMarginTop.valuePx(e.windowSize)};
|
|
94
|
-
`,Nt=n(
|
|
94
|
+
`,Nt=n(qe)`
|
|
95
95
|
border-radius: ${i.sp2};
|
|
96
96
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
97
97
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -106,7 +106,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
106
106
|
width: 100%;
|
|
107
107
|
height: 100%;
|
|
108
108
|
}
|
|
109
|
-
`,
|
|
109
|
+
`,qt=n.div`
|
|
110
110
|
width: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
111
111
|
height: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
112
112
|
display: flex;
|
|
@@ -116,7 +116,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
116
116
|
width: 100%;
|
|
117
117
|
height: 100%;
|
|
118
118
|
}
|
|
119
|
-
`,
|
|
119
|
+
`,Jt=n.div`
|
|
120
120
|
width: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
121
121
|
height: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
122
122
|
display: flex;
|
|
@@ -146,7 +146,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
146
146
|
width: 100%;
|
|
147
147
|
height: 100%;
|
|
148
148
|
}
|
|
149
|
-
`,$e=(e,d)=>`${e}.${d}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:Ce,strings:{empty:Xt,hyphen:Yt}}}=re.getLocalizedStrings(),he={paymentAccountIconSize:new I(v[6],v[7])},Qt=()=>null,Zt=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:P,onEstablishConnectionClick:U,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const f=be(),w=je(),
|
|
149
|
+
`,$e=(e,d)=>`${e}.${d}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:Ce,strings:{empty:Xt,hyphen:Yt}}}=re.getLocalizedStrings(),he={paymentAccountIconSize:new I(v[6],v[7])},Qt=()=>null,Zt=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:P,onEstablishConnectionClick:U,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const f=be(),w=je(),M=ze().analytics,[W,a]=r.useState(!1),[o,l]=r.useState(!1),m=()=>{l(!0)},k=e.plaidConnectionDetails.link_account,p=e.plaidConnectionDetails.update_account,[A,q]=r.useState(void 0),b=A==="update_account"?p:k,[D,u]=r.useState(b.linkToken??null),[S,L]=r.useState(!1),$=J(k.updateStatus.fetchState),z=J(p.updateStatus.fetchState),g=J(p.fetchStatus.fetchState),h=e?.providerVerificationStatus,E=e?.isLoginRequired??!1,s="other_connection",j=h?.code,X=r.useCallback((F,te)=>{M.trackConnectBankSuccess(s,"Settings");const ae=te.accounts.find(pe=>pe.id===e.providerAccountId)??te.accounts[0];e.paymentAccountId!=null&&A==="update_account"&&ae?.verification_status!=null&&!E?c(ae?.verification_status,e.paymentAccountId,"update_account",y(s),s):U(F,y(s),s),q(void 0),L(!1)},[M,s,e.paymentAccountId,e.providerAccountId,A,E,c,U]),Y=r.useCallback((F,te)=>{F!=null&&(M.trackConnectBankFailure(s,F.error_code+" "+F.error_message,"Settings"),F.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(s),s),console.log("Plaid Connection Error",F,te)),q(void 0),L(!1)},[M,s,e.paymentAccountId,c]),{open:Z,ready:O}=Te({token:D,onSuccess:X,onExit:Y});r.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==D&&u(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,D]),r.useEffect(()=>{S&&Z()},[S,Z]),r.useEffect(()=>{($==="In-Progress"&&k.updateStatus.fetchState==="Completed"||z==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(ie(j??"")||(P("link_account",y(s)),C(y(s),s)))},[k.updateStatus.fetchState,C,P,e?.providerVerificationStatus?.code,e?.paymentAccountId,$,z,p.updateStatus.fetchState,j,s]),r.useEffect(()=>{(ie(j??"")||j==="verification_failed")&&!S&&A!=null&&b.linkToken===D&&b.fetchStatus.fetchState==="Completed"&&O&&L(!0)},[O,D,b.fetchStatus.fetchState,b.linkToken,j,A,S]);const G=()=>{M.trackConnectBankGetBalance(s,"Settings"),q("update_account"),P("update_account",y(s),e.paymentAccountId)},ee=f.mode==="light"?new fe(f.colors.brandColorJadeLight):new fe(f.colors.brandColorJadeDark),Q={element:t.jsx(pn,{windowSize:w,children:t.jsx(wt,{})}),color:ee},ue=d.find(F=>F.accountId===e.zeniAccountId),oe=()=>{a(F=>!F)};return t.jsxs(en,{onMouseEnter:oe,onMouseLeave:oe,children:[o===!0?Ie.createPortal(t.jsx(_e,{connectedAccountProvider:R,action:{onBackClick:()=>l(!1)}}),document.body):null,t.jsxs(tn,{windowSize:w,wrapperWidth:N[0].width,children:[t.jsx(nn,{children:Ce.otherAccount.title}),t.jsx(on,{children:Ce.otherAccount.subTitle})]}),t.jsxs(an,{windowSize:w,wrapperWidth:N[1].width,children:[xt(Q,w,f.mode==="dark",e,!0),t.jsxs(hn,{children:[t.jsx(mn,{children:t.jsx(Sn,{windowSize:w,children:e.institutionDetails.institutionName})}),t.jsxs(fn,{windowSize:w,children:[t.jsxs(xn,{children:[t.jsx(gn,{children:e.accountSubType?.name}),t.jsx(wn,{children:e.maskedAccountNumber}),E&&t.jsx(yn,{})]}),E&&t.jsx(Pe,{productType:"other_connection",isUpdateLinkClicked:A==="update_account",isLoginRequired:E,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:k.fetchStatus,linkUpdateStatus:k.updateStatus,prevFetchState:g,prevUpdateState:z},onUpdateLinkTokenClick:G,onChaseInfoClick:m})]})]})]}),t.jsx(cn,{windowSize:w,wrapperWidth:N[2].width,children:ue?.accountName??Xt}),t.jsx(ln,{windowSize:w,wrapperWidth:N[3].width,children:h!=null?t.jsx(ge,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:h.name,textColor:we(h.code)}):Yt}),t.jsxs(sn,{windowSize:w,wrapperWidth:N[4].width,children:[t.jsx(rn,{className:"balanceLabel",isRemoveHovered:W,children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(dn,{className:"balanceLabel",isRemoveHovered:W,children:xe(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null,W&&t.jsx(un,{children:t.jsx(Je,{moreIconType:"plain",options:[{label:Ce.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:f.colors.grey5,width:"162px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ne.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:ne.important,":hover":{color:ne.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:F=>{F==="remove"&&_(e.paymentAccountId)},valueToIcon:Qt})})]})]})},en=n.div`
|
|
150
150
|
display: flex;
|
|
151
151
|
padding: ${i.sp4};
|
|
152
152
|
padding-right: ${i.sp8};
|
|
@@ -157,7 +157,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
157
157
|
flex-direction: column;
|
|
158
158
|
align-items: flex-start;
|
|
159
159
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
160
|
-
`,nn=n(
|
|
160
|
+
`,nn=n(V)`
|
|
161
161
|
color: ${e=>e.theme.colors.grey1};
|
|
162
162
|
display: flex;
|
|
163
163
|
align-items: center;
|
|
@@ -169,11 +169,11 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
169
169
|
display: flex;
|
|
170
170
|
align-items: center;
|
|
171
171
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
172
|
-
`,cn=n(
|
|
172
|
+
`,cn=n(V)`
|
|
173
173
|
display: flex;
|
|
174
174
|
align-items: center;
|
|
175
175
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
176
|
-
`,ln=n(
|
|
176
|
+
`,ln=n(V)`
|
|
177
177
|
display: flex;
|
|
178
178
|
align-items: center;
|
|
179
179
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
@@ -183,7 +183,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
183
183
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
184
184
|
justify-content: flex-end;
|
|
185
185
|
align-items: flex-end;
|
|
186
|
-
`,rn=n(
|
|
186
|
+
`,rn=n(V)`
|
|
187
187
|
color: ${e=>e.theme.colors.hero};
|
|
188
188
|
`,dn=n(B)`
|
|
189
189
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -215,7 +215,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
215
215
|
color: inherit;
|
|
216
216
|
`,wn=n(B)`
|
|
217
217
|
margin-left: ${i.sp1};
|
|
218
|
-
`,Sn=n(
|
|
218
|
+
`,Sn=n(V)`
|
|
219
219
|
max-width: ${`calc(100% - ${i.sp3})`};
|
|
220
220
|
text-transform: capitalize;
|
|
221
221
|
overflow: hidden;
|
|
@@ -230,7 +230,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
230
230
|
height: ${i.sp1};
|
|
231
231
|
cursor: inherit;
|
|
232
232
|
background-color: ${e=>e.theme.colors.grey1};
|
|
233
|
-
`,{common:{settings:me,strings:{empty:bn}}}=re.getLocalizedStrings(),vn=()=>null,kn=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:P,onEstablishConnectionClick:U,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const f=be(),w=ze().analytics,[
|
|
233
|
+
`,{common:{settings:me,strings:{empty:bn}}}=re.getLocalizedStrings(),vn=()=>null,kn=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:P,onEstablishConnectionClick:U,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const f=be(),w=ze().analytics,[M,W]=r.useState(!1),a=()=>{W(!0)},o=e.plaidConnectionDetails.link_account,l=e.plaidConnectionDetails.update_account,[m,k]=r.useState(void 0),p=m==="update_account"?l:o,[A,q]=r.useState(p.linkToken??null),[b,D]=r.useState(!1),u=J(o.updateStatus.fetchState),S=J(l.updateStatus.fetchState),L=J(l.fetchStatus.fetchState),$=e?.providerVerificationStatus,z=e?.isLoginRequired??!1,g="other_connection",h=$?.code,E=r.useCallback((O,G)=>{w.trackConnectBankSuccess(g,"Settings");const ee=G.accounts.find(Q=>Q.id===e.providerAccountId)??G.accounts[0];e.paymentAccountId!=null&&m==="update_account"&&ee?.verification_status!=null&&!z?c(ee?.verification_status,e.paymentAccountId,"update_account",y(g),g):U(O,y(g),g),k(void 0),D(!1)},[w,g,e.paymentAccountId,e.providerAccountId,m,z,c,U]),s=r.useCallback((O,G)=>{O!=null&&(w.trackConnectBankFailure(g,O.error_code+" "+O.error_message,"Settings"),O.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(g),g),console.log("Plaid Connection Error",O,G)),k(void 0),D(!1)},[w,g,e.paymentAccountId,c]),{open:j,ready:X}=Te({token:A,onSuccess:E,onExit:s});r.useEffect(()=>{p.fetchStatus.fetchState==="Completed"&&p.linkToken!=null&&p.linkToken!==A&&q(p.linkToken)},[p.fetchStatus.fetchState,p.linkToken,A]),r.useEffect(()=>{b&&j()},[b,j]),r.useEffect(()=>{(u==="In-Progress"&&o.updateStatus.fetchState==="Completed"||S==="In-Progress"&&l.updateStatus.fetchState==="Completed")&&(ie(h??"")||(P("link_account",y(g)),C(y(g),g)))},[o.updateStatus.fetchState,C,P,e?.providerVerificationStatus?.code,e?.paymentAccountId,u,S,l.updateStatus.fetchState,h,g]),r.useEffect(()=>{(ie(h??"")||h==="verification_failed")&&!b&&m!=null&&p.linkToken===A&&p.fetchStatus.fetchState==="Completed"&&X&&D(!0)},[X,A,p.fetchStatus.fetchState,p.linkToken,h,m,b]);const Y=()=>{w.trackConnectBankGetBalance(g,"Settings"),k("update_account"),P("update_account",y(g),e.paymentAccountId)},Z=d.find(O=>O.accountId===e.zeniAccountId);return t.jsxs($n,{children:[M===!0?Ie.createPortal(t.jsx(_e,{connectedAccountProvider:R,action:{onBackClick:()=>W(!1)}}),document.body):null,t.jsxs(Cn,{children:[t.jsx(An,{children:`${me.otherAccount.title} ${me.otherAccount.subTitleSmall}`}),t.jsx(Je,{moreIconType:"plain",options:[{label:me.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ne.boxShadowElevation}`}),option:()=>({color:f.colors.important,":hover":{color:f.colors.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:O=>{O==="remove"&&_(e.paymentAccountId)},valueToIcon:vn})]}),t.jsxs(jn,{children:[t.jsxs(On,{children:[t.jsx(Fn,{children:t.jsx(Un,{children:e.institutionDetails.institutionName})}),t.jsxs(Mn,{children:[t.jsx(Bn,{children:e.accountSubType?.name}),t.jsx(Rn,{children:e.maskedAccountNumber}),t.jsx(Pn,{children:$!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:$.name,textColor:we($.code)}):null}),z&&t.jsx(Pe,{productType:"other_connection",isUpdateLinkClicked:m==="update_account",isLoginRequired:z,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:l.fetchStatus,updateStatus:l.updateStatus,linkFetchStatus:o.fetchStatus,linkUpdateStatus:o.updateStatus,prevFetchState:L,prevUpdateState:S},onUpdateLinkTokenClick:Y,onChaseInfoClick:a})]})]}),t.jsxs(In,{children:[t.jsx(Ln,{className:"balanceLabel",children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(En,{className:"balanceLabel",children:xe(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(zn,{children:[t.jsx(Tn,{children:me.bankConnectionHeader.linkAccount}),t.jsx(_n,{children:Z?.accountName??bn})]})]})},$n=n.div`
|
|
234
234
|
display: flex;
|
|
235
235
|
flex-direction: column;
|
|
236
236
|
padding: ${i.sp3};
|
|
@@ -242,7 +242,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
242
242
|
width: 100%;
|
|
243
243
|
margin-bottom: ${i.sp3};
|
|
244
244
|
justify-content: space-between;
|
|
245
|
-
`,An=n(
|
|
245
|
+
`,An=n(V)`
|
|
246
246
|
color: ${e=>e.theme.colors.grey1};
|
|
247
247
|
display: flex;
|
|
248
248
|
align-items: center;
|
|
@@ -259,7 +259,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
259
259
|
margin-right: ${i.sp2};
|
|
260
260
|
`,_n=n(B)`
|
|
261
261
|
color: ${e=>e.theme.colors.hero};
|
|
262
|
-
`,Pn=n(
|
|
262
|
+
`,Pn=n(V)`
|
|
263
263
|
display: flex;
|
|
264
264
|
align-items: center;
|
|
265
265
|
margin-left: ${i.sp2};
|
|
@@ -267,7 +267,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
267
267
|
display: flex;
|
|
268
268
|
align-items: flex-end;
|
|
269
269
|
flex-direction: column;
|
|
270
|
-
`,Ln=n(
|
|
270
|
+
`,Ln=n(V)`
|
|
271
271
|
color: ${e=>e.theme.colors.hero};
|
|
272
272
|
`,En=n(B)`
|
|
273
273
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -281,17 +281,17 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
281
281
|
text-transform: capitalize;
|
|
282
282
|
`,Rn=n(B)`
|
|
283
283
|
margin-left: ${i.sp1};
|
|
284
|
-
`,Un=n(
|
|
284
|
+
`,Un=n(V)`
|
|
285
285
|
max-width: ${`calc(100% - ${i.sp3})`};
|
|
286
286
|
text-transform: capitalize;
|
|
287
287
|
overflow: hidden;
|
|
288
|
-
`,
|
|
288
|
+
`,Mn=n.div`
|
|
289
289
|
color: ${e=>e.theme.colors.hero};
|
|
290
290
|
display: flex;
|
|
291
291
|
align-items: center;
|
|
292
292
|
flex-wrap: wrap;
|
|
293
293
|
gap: ${i.sp2};
|
|
294
|
-
`,{settings:{bankConnectionListHeader:Ae,title:
|
|
294
|
+
`,{settings:{bankConnectionListHeader:Ae,title:Wn,infoText:Dn}}=re.getLocalizedStrings().common,ye={pageContentPadding:new I(v[4],v[8]),subtitleSectionWidth:new I(343,580,1200),subTitleBottomMargin:new I(v[0],v[5])},Vn={qboLinkAcc:new at("smallRegular","standardRegular")},Nn="bankConnectionsSettingsPage",ce="bankAccountSection",le="primaryAccountSection",Hn="bill_pay",qn="reimbursement",Jn="zeni_accounts",Gn="charge_cards",Kn="zeni_treasury",Me=e=>t.jsx(Qn,{children:N.map(d=>t.jsx(Zn,{actualDataValue:d.value,wrapperWidth:d.width,windowSize:e,children:t.jsx(ei,{children:d.value})},d.value))}),vi=({bankSetupView:e,connectedAccountProvider:d,onBackClick:H,onUpdateAccountClick:R,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:U,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c,onClickMenuIcon:f,onUpdatePrimaryFundingAccount:w,onRemoveConnection:M})=>{const W=be(),a=je(),{allFundingAccounts:o,primaryConnection:l}=e,m=Ye({mode:"all",reValidateMode:"onChange",defaultValues:Ve(e),values:Ve(e)}),k=m.handleSubmit(u=>{}),p=async(u,S)=>{const L=u.split("."),$=L[0],z=L[1],g=l.find(h=>h.productType===$);if($!=null&&z!=null){const h=S[$][z];if(z==="primaryAccountSection"){const E=o.find(s=>s.id===h.selectedOption)?.accType;h.selectedOption!=null&&E!=null&&w(h.selectedOption,y($),E)}else if(z==="bankAccountSection"&&g!=null&&g.primaryFundingAccount!=null&&h.selectedOption!=null){const E=g.primaryFundingAccount?.id,s=g.primaryFundingAccount?.accType;E!=null&&s!=null&&R(h.selectedOption,E,$,y($),s)}}};r.useEffect(()=>{const u=m.watch((S,{name:L})=>{L!=null&&S!=null&&Qe(()=>p(L,S))});return()=>{u.unsubscribe()}});const A=e.fetchState==="In-Progress"||e.fetchState==="Not-Started",q=e.fetchState==="Completed"&&e.allFundingAccounts.length===0,b=a==="small"?kn:Zt,D=()=>A?t.jsx(ii,{children:t.jsx(se,{size:"ExtraLarge",start:!0})}):q?t.jsx(tt,{message:"No bank connections added."}):t.jsxs(Xn,{windowSize:a,children:[t.jsx(De,{children:Ae.primary}),a!=="small"?Me(a):null,t.jsx(nt,{...m,children:t.jsx("form",{id:ri(Nn),onSubmit:k,children:t.jsx(oi,{windowSize:a,children:e.primaryConnection.map(u=>u!=null?t.jsx(We,{windowSize:a,children:t.jsx(jt,{allBankAccounts:e.allBankAccounts,setupView:u,connectedAccountProvider:d,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:U,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c})},u.productType):null)})})}),e.otherPaymentAccounts.length>0?t.jsxs(ti,{children:[t.jsx(De,{children:Ae.other}),t.jsx(li,{children:t.jsx(it,{display:"flex",placement:"right",maxWidth:"340px",title:Ae.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(si,{})})})]}):null,a!=="small"&&e.otherPaymentAccounts.length>0?Me(a):null,e.otherPaymentAccounts.map(u=>{const S=o.find(L=>L.id===u.paymentAccountId)?.balanceFetchStatus;return t.jsx(We,{windowSize:a,children:t.jsx(b,{paymentAccount:u,bankAccountList:e.allBankAccounts,balanceFetchStatus:S,connectedAccountProvider:d,onRemoveConnection:M,onFetchLinkTokenClick:_,onEstablishConnectionClick:C,onUpdatePaymentAccountStatus:P,onEstablishConnectionSuccess:c})},u.paymentAccountId)})]});return t.jsxs(Yn,{children:[t.jsx(Ze,{source:"BankConnectionsSettingsPage",title:Wn.bankConnections,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:H,showBackButton:!1,showMenuIcon:a==="medium-compact"||a==="small",onClickMenuIcon:f}),t.jsxs(ni,{windowSize:a,children:[t.jsx(ai,{windowSize:a,children:t.jsx(ci,{windowSize:a,children:Dn.bankConnections})}),D()]})]})},Xn=n.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
flex-direction: column;
|
|
297
297
|
width: 100%;
|
|
@@ -337,7 +337,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
337
337
|
`,ti=n.div`
|
|
338
338
|
display: flex;
|
|
339
339
|
align-items: center;
|
|
340
|
-
`,
|
|
340
|
+
`,We=n.div`
|
|
341
341
|
display: flex;
|
|
342
342
|
min-height: 96px;
|
|
343
343
|
justify-content: center;
|
|
@@ -363,7 +363,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
363
363
|
.select-value-container
|
|
364
364
|
.single-select-field__single-value {
|
|
365
365
|
color: ${e=>e.theme.colors.hero};
|
|
366
|
-
${e=>`${
|
|
366
|
+
${e=>`${Vn.qboLinkAcc.style(e.windowSize)}`};
|
|
367
367
|
}
|
|
368
368
|
&:hover {
|
|
369
369
|
border: ${e=>`1px solid ${e.theme.colors.primary}`};
|
|
@@ -405,7 +405,7 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
405
405
|
align-items: center;
|
|
406
406
|
width: ${e=>ye.subtitleSectionWidth.valuePx(e.windowSize)};
|
|
407
407
|
margin-bottom: ${e=>ye.subTitleBottomMargin.valuePx(e.windowSize)};
|
|
408
|
-
`,ci=n(
|
|
408
|
+
`,ci=n(V)`
|
|
409
409
|
display: flex;
|
|
410
410
|
align-items: center;
|
|
411
411
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -422,4 +422,4 @@ import{e as be,J as je,a9 as Ye,cF as Qe,V as t,bC as Ze,o as i,F as re,y as I,a
|
|
|
422
422
|
width: ${i.sp3};
|
|
423
423
|
height: ${i.sp3};
|
|
424
424
|
color: ${e=>e.theme.colors.hero};
|
|
425
|
-
`,
|
|
425
|
+
`,Ve=e=>{const{primaryConnection:d,allBankAccounts:H,allFundingAccounts:R}=e,_=H.map(a=>({label:a.accountName,value:a.accountId})),P=R.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"})),U=d.find(a=>a.productType==="bill_pay"),C=d.find(a=>a.productType==="reimbursement"),c=d.find(a=>a.productType==="zeni_accounts"),f=d.find(a=>a.productType==="charge_cards"),w=d.find(a=>a.productType==="zeni_treasury"),M=c?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"}))??[],W=w?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="paymentAccount"}))??[];return{[Hn]:{[ce]:{selectedOption:U?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:U?.primaryFundingAccount?.id,allOptions:P}},[qn]:{[ce]:{selectedOption:C?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:C?.primaryFundingAccount?.id,allOptions:P}},[Jn]:{[ce]:{selectedOption:c?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:c?.primaryFundingAccount?.id,allOptions:M}},[Kn]:{[ce]:{selectedOption:w?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:w?.primaryFundingAccount?.id,allOptions:W}},[Gn]:{[ce]:{selectedOption:f?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:f?.primaryFundingAccount?.id,allOptions:P}}}},ri=e=>`${e}_form`;export{vi as default,ri as formUniqueName};
|
package/dist/assets/{BillDetailPage-BuCOe4eB-DBZDvMBw.js → BillDetailPage-B0ajOYxz-CTy3XK0i.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{J as Zn,aw as Un,e as Kn,gk as Vn,gl as Hn,gm as Xn,gn as qn,cd as Gn,aQ as Yn,y,V as t,fa as ct,fb as Jn,o as a,fc as Qn,fd as ea,fe as ta,aN as Se,ff as na,aP as b,bC as pt,bo as mt,dv as ut,cp as yt,cq as ht,cr as bt,go as aa,gp as ia,gq as la,gr as oa,fk as j,gs as $,fm as A,fn as k,fj as ra,b as gt,p as oe,fl as Ft,ft as sa,fo as da,fp as ca,gt as pa,gu as ma,aR as ua,ao as ft,bT as ve,gv as ya,gw as L,F as ha,u as s,ag as ba,c2 as ga,gx as fa,x as xa,gy as wa,fu as xt,a as Ta,d3 as va,ci as Da,gz as wt,b7 as Ia,b9 as ja,d as $a,bV as Ot,d4 as Aa,gA as ka,ai as Et,av as Sa,b5 as Ca,bt as Pa,gB as Ba,al as Ra}from"./index-rJQoaAfw.js";import{a as p}from"./sentry-CGE1ab0x.js";import{n as i}from"./mui-KNfEk2A1.js";import{a as za}from"./liveblocks-CohL7dW6.js";import{bO as Ma,bL as Na,bP as La,FL as Fa,bN as Oa,bH as Ea,bh as _a}from"./zeni-epic-state-CiJSQQSe.js";import{o as Wa,t as Za}from"./LowBalancePopup-OUWtUPdo-DRkjFCjE.js";import"./core-BMaLzXUJ.js";import"./lottie-XKgYVRq1.js";import"./recharts-D8Mh9GJw.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.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]="78bc6c5a-a914-4680-b5e8-8c4c9a727013",e._sentryDebugIdIdentifier="sentry-dbid-78bc6c5a-a914-4680-b5e8-8c4c9a727013")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Xa,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip: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:Xt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Jt,onBackClick:Fe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Oe=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,J]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&Q(K)},[K,Q]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:P}=Xn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,X,P,ee,Q]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Xe]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Je=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(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",F?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",F?.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??"",F?.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):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,An=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!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
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(Jn,{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=Fa(e.transactionDetails?.bulkProcessingDetail?.type),O=Oa(e.paymentMethodType?.method),Nn=!G&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&O&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,qe,r)},rt=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Fn=()=>{Ge(!0),rt()},On=()=>{Jt(),Xe(!1),qe&&Ge(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&J(!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:Oe.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:Fe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Fe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,un?t.jsx(Za,{onCancel:On,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?Ja(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,F!=null&&F.code?l==="small"?t.jsx(aa,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(G,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(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.${A("invoiceNumber")}`},children:t.jsx($,{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.${A("invoiceDate")}`},children:t.jsx($,{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.${A("billDueDate")}`},children:t.jsx($,{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.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(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.${A("recipientAmount",u)}`},children:t.jsx($,{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.${A("lineDescription",u)}`},children:t.jsx($,{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.${A("account",u)}`},children:t.jsx($,{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.${A("class",u)}`},children:t.jsx($,{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.${A("billable",u)}`},children:t.jsx($,{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.${A("customer",u)}`},children:t.jsx($,{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($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[O?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.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Ft(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.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),O?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.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),O||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.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Gt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,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:Qa(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?J(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!G&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&O&&Pe?t.jsx(W,{onClick:Fn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",F?.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:qa,placement:"top",children:t.jsx(si,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!G&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(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:X,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:Oe.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}},Ja=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ft(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})]})]})},Qa=(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`
|
|
1
|
+
import{J as Zn,aw as Un,e as Kn,gh as Vn,gi as Hn,gj as Xn,gk as qn,cd as Gn,aQ as Yn,y,V as t,f8 as ct,f9 as Qn,o as a,fa as Jn,fb as ea,fc as ta,aN as Se,fd as na,aP as b,bC as pt,bo as mt,dw as ut,cp as yt,cq as ht,cr as bt,gl as aa,gm as ia,gn as la,go as oa,fi as I,gp as $,fk as A,fl as k,fh as ra,b as gt,p as oe,fj as Ot,fr as sa,fm as da,fn as ca,gq as pa,gr as ma,aR as ua,ao as ft,bT as ve,gs as ya,gt as L,F as ha,u as s,ag as ba,c2 as ga,gu as fa,C as xa,gv as wa,fs as xt,R as Ta,d4 as va,ci as Da,gw as wt,b7 as ja,b9 as Ia,d as $a,bV as Ft,d5 as Aa,gx as ka,ai as Et,av as Sa,b5 as Ca,bt as Pa,gy as Ba,al as Ra}from"./index-BR9aIv1A.js";import{a as p}from"./sentry-BwoJfpTa.js";import{n as i}from"./mui-C7Q1opAD.js";import{a as za}from"./liveblocks-B8f0lmpe.js";import{bO as Ma,bL as Na,bP as La,FL as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-Deo9yJpd.js";import{o as Wa,t as Za}from"./LowBalancePopup-CCl7fzh9-CRJeCFG3.js";import"./core-B_30foAD.js";import"./lottie-CbICbNKh.js";import"./recharts-v_b66Qfi.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.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]="7bc9dd88-4606-4134-83fa-92931c53ab9e",e._sentryDebugIdIdentifier="sentry-dbid-7bc9dd88-4606-4134-83fa-92931c53ab9e")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Xa,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:jt,title:{comments:Ga}}}}=ha.getLocalizedStrings(),je=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Xt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:P}=Xn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,X,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Xe]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,In=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${In}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(Ii,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
+
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Qn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),G=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!G&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,qe,r)},rt=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Ge(!0),rt()},Fn=()=>{Qt(),Xe(!1),qe&&Ge(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Qa(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(G,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:j},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:j},text:ie.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:j},text:ie.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:j},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:j},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:j},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:j},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:j},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:j},text:r.billable!=null?jn(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:j},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(Ie,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:j},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Gt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ja(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Q(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!G&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!G&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(si,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!G&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Ga,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Qa=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Ja=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
5
5
|
`,li=i(Ba)`
|
|
@@ -10,7 +10,7 @@ import{J as Zn,aw as Un,e as Kn,gk as Vn,gl as Hn,gm as Xn,gn as qn,cd as Gn,aQ
|
|
|
10
10
|
&:hover {
|
|
11
11
|
color: ${e=>e.theme.colors.primary};
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`,It=i.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
margin-left: ${e=>e.windowSize==="small"?e.showEditIcon===!0?a.sp3:a.sp4:m.otherActionsIconContainerMarginLeft.valuePx(e.windowSize)};
|
|
16
16
|
cursor: ${e=>e.isIconClickable===!0?"pointer":"default"};
|
|
@@ -116,7 +116,7 @@ import{J as Zn,aw as Un,e as Kn,gk as Vn,gl as Hn,gm as Xn,gn as qn,cd as Gn,aQ
|
|
|
116
116
|
`,pi=i.div`
|
|
117
117
|
height: 100%;
|
|
118
118
|
overflow: scroll;
|
|
119
|
-
`,
|
|
119
|
+
`,Ie=i.div`
|
|
120
120
|
display: flex;
|
|
121
121
|
flex-direction: column;
|
|
122
122
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -128,7 +128,7 @@ import{J as Zn,aw as Un,e as Kn,gk as Vn,gl as Hn,gm as Xn,gn as qn,cd as Gn,aQ
|
|
|
128
128
|
display: flex;
|
|
129
129
|
flex-direction: column;
|
|
130
130
|
padding-top: ${a.sp3};
|
|
131
|
-
`,mi=i.div``,Ae=i(
|
|
131
|
+
`,mi=i.div``,Ae=i(ja)`
|
|
132
132
|
color: ${e=>e.theme.colors.primary};
|
|
133
133
|
`,z=i.div`
|
|
134
134
|
display: flex;
|
|
@@ -136,7 +136,7 @@ import{J as Zn,aw as Un,e as Kn,gk as Vn,gl as Hn,gm as Xn,gn as qn,cd as Gn,aQ
|
|
|
136
136
|
background-color: ${e=>e.theme.colors.grey3};
|
|
137
137
|
min-height: 1px;
|
|
138
138
|
max-height: 1px;
|
|
139
|
-
`,ui=i(
|
|
139
|
+
`,ui=i(Ia)`
|
|
140
140
|
display: flex;
|
|
141
141
|
align-items: center;
|
|
142
142
|
justify-content: space-between;
|
|
@@ -187,11 +187,11 @@ import{J as Zn,aw as Un,e as Kn,gk as Vn,gl as Hn,gm as Xn,gn as qn,cd as Gn,aQ
|
|
|
187
187
|
border-radius: ${a.sp2};
|
|
188
188
|
color: ${e=>e.theme.colors.hero};
|
|
189
189
|
margin-bottom: ${e=>m.marginBottom.valuePx(e.windowSize)};
|
|
190
|
-
`,Ti=i(
|
|
190
|
+
`,Ti=i(Ft)`
|
|
191
191
|
display: flex;
|
|
192
192
|
width: 176px;
|
|
193
193
|
color: ${e=>e.theme.colors.primary};
|
|
194
|
-
`,vi=i(
|
|
194
|
+
`,vi=i(Ft)`
|
|
195
195
|
display: flex;
|
|
196
196
|
width: calc(100% - 176px);
|
|
197
197
|
justify-content: flex-end;
|
|
@@ -209,11 +209,11 @@ import{J as Zn,aw as Un,e as Kn,gk as Vn,gl as Hn,gm as Xn,gn as qn,cd as Gn,aQ
|
|
|
209
209
|
display: flex;
|
|
210
210
|
flex-direction: column;
|
|
211
211
|
height: ${a.sp11};
|
|
212
|
-
`,
|
|
212
|
+
`,ji=i(ba)`
|
|
213
213
|
height: ${a.sp3};
|
|
214
214
|
width: ${a.sp3};
|
|
215
215
|
color: ${e=>e.theme.colors.hero};
|
|
216
|
-
`,
|
|
216
|
+
`,Ii=i.div`
|
|
217
217
|
display: flex;
|
|
218
218
|
align-items: center;
|
|
219
219
|
margin-left: ${a.sp2};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{y as O,u as L,J as M,F as U,a9 as W,aQ as G,aJ as J,cF as Q,V as r,bC as X,ac as H,aR as K,o as
|
|
1
|
+
import{y as O,u as L,J as M,F as U,a9 as W,aQ as G,aJ as J,cF as Q,V as r,bC as X,ac as H,aR as K,o as u,g7 as Y}from"./index-BR9aIv1A.js";import{a as T}from"./sentry-BwoJfpTa.js";import{n as h}from"./mui-C7Q1opAD.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-BY0dw_SN-iqWfg0Bg.js";import"./liveblocks-B8f0lmpe.js";import"./core-B_30foAD.js";import"./recharts-v_b66Qfi.js";import"./zeni-epic-state-Deo9yJpd.js";import"./lottie-CbICbNKh.js";import"./analytics-rms9goNI.js";import"./lexical-CcL2Fd1i.js";import"./utils-C75CTJHa.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]="8a2c167a-effe-43fa-97ad-3e6104616ff2",e._sentryDebugIdIdentifier="sentry-dbid-8a2c167a-effe-43fa-97ad-3e6104616ff2")}catch{}})();const C="billPayApprovalRuleDetailPage",k="lowerBound",E="upperBound",w="steps",b="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:y=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const P=M(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,g=ae(e,l==="approval_create"&&!o),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=g,{allApprovalRules:p,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let m=p.length>1?p.length-1:0,v=p.length>0?p[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=p.findIndex(d=>d.approvalRuleId===i),v=m>0?p[m-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),z=async(i,d)=>{s(d)};return T.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const q=J(d);Q(()=>z($,q))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(H,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:j(C),onSubmit:V,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:y,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:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(K,{formId:j(C),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:b,mode:"always_on",checkBoxes:[{value:b,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:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[k]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,y)=>({stepIndex:y,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),j=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
width: 100%;
|
|
6
6
|
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
-
box-shadow: ${e=>`${
|
|
7
|
+
box-shadow: ${e=>`${u.sp0} 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
8
8
|
`,ie=h.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
12
|
-
box-shadow: ${e=>`${
|
|
13
|
-
border-radius: ${
|
|
12
|
+
box-shadow: ${e=>`${u.sp0} 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
13
|
+
border-radius: ${u.sp2};
|
|
14
14
|
`,ne=h.div`
|
|
15
15
|
display: flex;
|
|
16
16
|
justify-content: flex-start;
|