@zeniai/web-cockpit-ui 1.15.60-qa → 1.15.61-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-BO7lxW8c-DZ0wFbc2.js → ACHDetailsPage-DKTSwNyl-Bf0EVFFQ.js} +1 -1
- package/dist/assets/{AIPerformancePage-SF-quMkk-CcqTJhaF.js → AIPerformancePage-BzTlSxeg-BqzPWf2m.js} +12 -12
- package/dist/assets/AccountInfoPage-CrEEthms-CUTx8UxM.js +18 -0
- package/dist/assets/{AccountInfoPageContent-DIWh6VaI-DAgaMEg1.js → AccountInfoPageContent-B0ZnsyrQ-jDUts22l.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-DloPB9vd-CExsut6c.js → AccountLockedInfoModal-B6A-nGIq-D0T3CP49.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BAgQsFiF-Cu7g0CmQ.js → AccountReconDetailsDrawerPage-BTmjrd8b-CSoge4Da.js} +12 -12
- package/dist/assets/{AccountRow-Dczx5rSu-DltlBwNg.js → AccountRow-C-Iunc36-BeM9tlra.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-Ywhto4lV-QBu4XKWM.js → AccountsPromoCardStack-D6xN5A4_-Cy6munB_.js} +8 -8
- package/dist/assets/{AddAddressForCardDrawer-B8srmVT6-BiqcZTxd.js → AddAddressForCardDrawer-B6tLAOA_-CkfZCyL8.js} +1 -1
- package/dist/assets/{AddToWalletPage-k__RW699-BsmhpZfp.js → AddToWalletPage-Bw1oz9Y2-B0P_ZSD_.js} +1 -1
- package/dist/assets/{AgingReportsPage-BuIXjljE-DadwbuHz.js → AgingReportsPage-BK3PXwnr-h5e1bL4s.js} +1 -1
- package/dist/assets/{AllUserItems-BdgTe4WF-CwSoTdSL.js → AllUserItems-B42zEFpe-8Ump3qD6.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-6F47t31h-CfaMNLB-.js → ApAgingDetailPage-vzW4qF2Y-3SXDFjM4.js} +5 -5
- package/dist/assets/{AppBasePage-DaTueT-x-Dj4u2iwj.js → AppBasePage-yAU5vW5D-Bmf252uP.js} +1 -1
- package/dist/assets/{AppDrawerContent-CtCI6jpp-CCLBA3SA.js → AppDrawerContent-nnh5cFf7-DsaU7kao.js} +22 -22
- package/dist/assets/{ApprovalRulesSettingsPage-BVxu4soW-DFgwfNvk.js → ApprovalRulesSettingsPage-B-Y2YjpT-ClmsJh_t.js} +1 -1
- package/dist/assets/{ArAgingChart-BK-JyW2V-F2aGjQF8.js → ArAgingChart-CCc6eh55-DMlM6kQT.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CvqLu3q8-DoMxj0Ou.js → ArAgingDetailPage-CYXVPEzK-sVCao0_v.js} +5 -5
- package/dist/assets/{AttachmentView-DQdb3v_e-DtvcJTgJ.js → AttachmentView-DqrQDEWc-C1OUb07R.js} +1 -1
- package/dist/assets/BalancesInsightWithToolTip-D1_dZg5k-ZJNQeui5.js +38 -0
- package/dist/assets/{BankAccountSection-DgbfU8F--DLuUJ_fz.js → BankAccountSection-4vXBKCFA-Bkhrv3Xb.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-litL0o_Z-PCwPOfmE.js → BankAccountWarningSection-Dhmxhwx--DcK6WJ_q.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-bAj9uB9k-DPOpMQrs.js → BankConnectionsSettingsPage-z52fh-wH-Be1jZpC2.js} +1 -1
- package/dist/assets/{BillDetailPage-CiHal44n-C0A_2Drd.js → BillDetailPage-DRpctLxu-DsP4Hhqd.js} +6 -6
- package/dist/assets/{BillPayApprovalRuleDetailPage-CRBli7lk--92lyqaa.js → BillPayApprovalRuleDetailPage-CJtb4oOG-CxRPKQU-.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BTOmSLcs-BTDa-wl2.js → BillPayApprovalRulesPage-HG32jtX9-BR5g1ug_.js} +1 -1
- package/dist/assets/{BillPayPromoPage-B5gkQjT2-BBqFQihg.js → BillPayPromoPage-DwxNDF0k-Dp0C7zM9.js} +6 -6
- package/dist/assets/{BillPaySetUpPage-DM3r09by-WcYYo1qX.js → BillPaySetUpPage-B-kmDrpB-B9j0mWSg.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CiTKyJeG-Dzma-WHw.js → BillingSettingsPage-CNZyUOpM-CptpCO9D.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-B6ofRDkg-BGsp2hGB.js → BillsBulkReviewDrawerPage-DbIDTE51-Jg4C8lOt.js} +1 -1
- package/dist/assets/{BoxItem-C39hQSVg-BPqWHCnN.js → BoxItem-CIyMdw2s-Cw7g8XZi.js} +3 -3
- package/dist/assets/{BusinessVerificationPage-BiWEnJET-DtWCCY_2.js → BusinessVerificationPage-DQ34qLUA-BBPUHLBj.js} +1 -1
- package/dist/assets/{CardNumberSubText-FNfrozX6-CM70VMV8.js → CardNumberSubText-CN1RN7Tf-vqSRDVxl.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DaLICa_v-D8TLA3f4.js → CashbackDetailPage-CyYkVa0H-DVFJtXQN.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-B0Aq7zO5-Byaww-oA.js → ChargeCardDetailPage-DFUAF2OM-Bc-RJNZR.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CfRto2rQ-BgiTMTy8.js → ChargeCardListPage-BTHDGtJ6-4bkaiVfc.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DMdC4lxo-9GZKxQ_h.js → ChargeCardListTable-BiKjkqVs-DKEOjcVA.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-BYTmtF_y-GTNBkLSz.js → ChargeCardPaymentHistoryPage-sPGU7qmY-Bf1pzzzM.js} +1 -1
- package/dist/assets/ChargeCardPromoPage-6JwKgWli-CPUVoMgw.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-BjhqdubL-C1LUGkpQ.js → ChargeCardSetupPage-DmhPAnYT-DR2CC5kC.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DCM92s6v-BMiUoAii.js → ChargeCardStatementsPage-DUXupPSN-DxA_R6gT.js} +4 -4
- package/dist/assets/{CheckDepositDrawerPage-CkIxEqHU-BxCATOdR.js → CheckDepositDrawerPage-C8nbDVSz-Dr-uGxlF.js} +1 -1
- package/dist/assets/{CollapsableReportTable-ClHwXtCj-C8DNdq66.js → CollapsableReportTable-C_bWRP7w-DpVgt9Wv.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BY8hFQnp-BohttHRK.js → CompanyOfficerDetailsSection-6LXCxWYP-BOArKbIF.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B3rZE3pg-ClhjwsUC.js → CompanyPassportCard-DVJS9xE7-RKaTgfHf.js} +3 -3
- package/dist/assets/{CompanyPassportPage-4FXVf3EP-RXu-qNXi.js → CompanyPassportPage-FJ30paB0-hXvLvBpx.js} +1 -1
- package/dist/assets/{CompleteProfile-B1BoilWd-B4soku6Y.js → CompleteProfile-D3Im5rsm-BnRXF-gQ.js} +1 -1
- package/dist/assets/{ConfettiBurst-CsbAGF65-C7g6Dt4f.js → ConfettiBurst-BJrOe5Fg-CMTy2As9.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-AYJ8EVpU.js → ConstrainedInnerElement-CgdnMeoA-DnLTiNpq.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C50eYOFo-BIcUso-S.js → CreateOrEditVendorPage-C8dK3_XQ-Bic3OW2f.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-Dxz_SY7N-CDn1fxAv.js → CreditCardPaymentDrawerPage-Dp5mS2Hc-CNo8ul3B.js} +1 -1
- package/dist/assets/{CurrencySelectField-D2Ogwvbr-A2_hbI1k.js → CurrencySelectField-BAQ5aoHk-CIVnJjI7.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-5Sh7hmI9-CuUCdnw6.js → CustomerOnboardingActivationPage-D8T1akbN-CZfzYc2x.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CGFQ4G4y-TNmUNU-a.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CL-mOSUp-DmhOg-F3.js → CustomerOnboardingDetailPageSkeleton-DSvvHqR_-IY_FusMe.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CyL1AK78-CfPXSjNQ.js → CustomerOnboardingNoStepsPage-CSLO3M7E-D03EPy58.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-C8nxJPwo-TAsdAlKU.js → CustomerOnboardingPage-weza3x24-BKfpb49c.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-C7FbnHpU-D1EjCUk9.js → CustomerOnboardingProductSuitePage-3YH4y1e1-C4fThtYl.js} +1 -1
- package/dist/assets/{Dashboard-Bpu-6Sm5-D2yGD8P1.js → Dashboard-Bpuy-Pez-CR2f1Xc4.js} +1 -1
- package/dist/assets/{DashboardReportPage-B1aAikQG-RPqnpn1O.js → DashboardReportPage-1p79NBF9-Ejc5G7GX.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C6xm-p2j-hUZq2Yb4.js → DashboardSidebarBackgroundAnimation-CBg2tWHO-DrupZvi1.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DEU0DgtI-Cp9J-sfr.js → DepositAccTransactionItem-DlztlGZL-CjKPqIal.js} +3 -3
- package/dist/assets/{DepositAccTransactionListPage-Bh0dIkE9-BxoCgq_O.js → DepositAccTransactionListPage-BO43c3Uz-Y0zyGDSq.js} +2 -2
- package/dist/assets/{DomesticWireDetailsPage-2WyD73c9-CyjvuAT5.js → DomesticWireDetailsPage-SEql3I0P-DpvC9OuP.js} +1 -1
- package/dist/assets/{DownloadOverlay-B7M2VI7K-ChYSPm6V.js → DownloadOverlay-PhrwF2iZ-G_QfNT0c.js} +14 -14
- package/dist/assets/{DrawerPage-DsQTxXa8-GhqpcpJT.js → DrawerPage-Bf3AP3Lj-C2aL1lL-.js} +1 -1
- package/dist/assets/{EditPeoplePage-fY0HXvVS-IKVHo5pQ.js → EditPeoplePage-B-rBzonN-cdib7JGr.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-D7RUWSTZ-D9zyDd97.js → EditReimbursementDetailPage-CUiIHNgT-BTQPJNYl.js} +1 -1
- package/dist/assets/EntityDetailPage-CvLzsrUE-_DJAK5Es.js +18 -0
- package/dist/assets/{EntitySummarySection-0rRkC5V6-DgNukT-6.js → EntitySummarySection-mXeSjiuZ-B56KNF4B.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-DOGAdZXV-BHVEw7VI.js → ExpenseAutomationOverviewPage-DQCoy1O9-C1FpJZeC.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-DOsIzX0P-DVSyx24Z.js → ExpenseAutomationPage-BeAzQ7Qx-BPetUJ5r.js} +1 -1
- package/dist/assets/{ExpressPayPage-CIi6jM8Y-B4r7TpgP.js → ExpressPayPage-C-isOU1b-B49W8jPx.js} +8 -8
- package/dist/assets/{FeaturePreviewPage-BVn6ZUOB-BfyNnAHr.js → FeaturePreviewPage-Cyre9YzV-CwQn5DPV.js} +1 -1
- package/dist/assets/{FollowStepsSection-CvWPHXDW-BuPqjalf.js → FollowStepsSection-DZNWzSvo-DqG7TBKi.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CS_11bx0-BfjmEjn2.js → GlobalReviewListPage-Dp--ugNc-hKQ7lwu4.js} +1 -1
- package/dist/assets/{InformationCardStack-B9g7W7Xx-C184qvoG.js → InformationCardStack-D7naFDX0-BPPp5phV.js} +2 -2
- package/dist/assets/{InsightsCardStack-mvzIc2uY-LrgsXSL_.js → InsightsCardStack-DexUl4h--Do_u9eZ8.js} +1 -1
- package/dist/assets/{InsightsSection-rGyA4lY9-B8Nofado.js → InsightsSection-D9PJ55E6-BjmAQtAO.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-Dwz4ukHF-Biik3Y6O.js → IntegrationsSettingsPage-hFTe3wiP-DUILwrnV.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-Cm0H9oyf-CINgCY6y.js → InternationalWireSwiftDetailsPage-DLkE5bXp-Cs50Z-pA.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-woIoME3I-Cg-fN9g5.js → InternationalWireVerificationPage-DYGjEqNz-DmQNQWb-.js} +1 -1
- package/dist/assets/{InviteFormPage-DaZ-sJYV-Hcgc4ocl.js → InviteFormPage-CGAsWQn7-CfpaP_Ay.js} +1 -1
- package/dist/assets/{InvitePageListView-Do7EVQrj-C_KWC4lo.js → InvitePageListView-BSPE9f03-KWAhDnk6.js} +1 -1
- package/dist/assets/{InvitePeoplePage-CpD7YoC2-Duzoo4B2.js → InvitePeoplePage-ANvLB-mB-CYTcoBVF.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DOuTQPee-lXTxUj-Z.js → InvoiceUploadSection-OGMswY7c-wUJD4gzt.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-ClMhr27d-CnsSx-gw.js → IssueChargeCardPage-sLInqAsW-CegsdyWc.js} +1 -1
- package/dist/assets/{LabeledAddressValue-B6_PZDTO-D-Q_O_HY.js → LabeledAddressValue-DBJ236tZ-BW18Brhh.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Cz6tRMoW-DbcbPzP_.js → LabeledAddressValueField-CAr-IiTa-D1mstd2j.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-BEpAlnvo-CcZhEUBr.js → LabeledControlledCheckBoxField-BdWZgcQc-DXkTpNG_.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-1kTcZMQW-Dlcc8TAS.js → LabeledCountryMultiSelectField-C6z1v9S1-DPwnmiSc.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-PiLB1S77-DNp7Z1Qc.js → LabeledCreatableSingleSelectField-Dhi0n2ky-YUVM0TAv.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Cicw8ABs-oj7tT2jS.js → LabeledDocumentField-B3QSq1eM-CJX89Dc7.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BEVVgIGK-CsGW8WxC.js → LabeledDropDownFormattedTextField-B39DlufR-99Ko4ZBM.js} +1 -1
- package/dist/assets/{LabeledText-C56xvYuX-DsL0u5P_.js → LabeledText-GEbY3-bB-nJj4qLSj.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CF4oVI17-DaLD_hgt.js → LabeledUserSingleSelectWithSubtitlesField-Do8fziYM-BJ5D4E5b.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-B5rxYfam-ZMqVzCNV.js → LabeledZeniRolesDropDownField-DJfE1qQb-Spa8qs2t.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-DbnaYlRA-CEO2bcxB.js → LinkJETransactionPage-B2ROo3VS-CwW6ZK79.js} +9 -9
- package/dist/assets/{LockCardPage-XHbTmzq8-DhTfJc_N.js → LockCardPage-D2dUPnNL-wmb_MErE.js} +6 -6
- package/dist/assets/{LowBalancePopup-IF7NG9aL-CinbCyiV.js → LowBalancePopup-DTtl3SIc-DM2vuSAI.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-BC6_cyO0-BQ2-FDmO.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-CdG5oCPl-CR_WGypZ.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-C046BNUz-DFXEpmkx.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-Cyr3p_8a-BektQhq7.js → MagicLinkSuccessPage-Ctt1pLiv-DJ-u9j7D.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-A4zyF5bg-CmK90nGC.js → MagicLinkTitleSection-CtsQ_c44-BXFSLBPx.js} +1 -1
- package/dist/assets/MailingDetailsSection-DiZwQ9QV-DqXiN9BV.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-DtTjhna--CT7GWyne.js → MyBankConnectionsSettingsPage-6ltpx62E-CrO2Nk06.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CKSWf7I4-CedxaTQk.js → MyPendingActivationChargeCardListPage-CwDedcXl-BOyq4bBQ.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-WF1pNlyU-DMWg77Ot.js → MyProfileSettingsPage-Bmhu2lrK-ws6T5ne-.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DiCaJ8Qy-BxvF0zAP.js → NavBarWithPicker-jqJCHGvR-CA5PLw9P.js} +1 -1
- package/dist/assets/{NavigationArrow-f4Z3TuXg-B6rijk7N.js → NavigationArrow-DY_BhITD-Vzfi3uWl.js} +1 -1
- package/dist/assets/{NavigationDots-WiVjbUsC-BJPcKweh.js → NavigationDots-Kh5ODrCQ-HRI-lcK7.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-kvjjwV8d-CH4EMEVL.js → NewGlobalMerchantPage-BYTROFvX-B7MLJszZ.js} +1 -1
- package/dist/assets/{NoDataChart-DlSLTzZl-CIN7s_PN.js → NoDataChart-CuiKDcAB-CtvPBERj.js} +1 -1
- package/dist/assets/{NoDataTable-9vLoRpsR-CVCpwwfP.js → NoDataTable-BpH8puX--D7GPm4ZB.js} +1 -1
- package/dist/assets/{NotFoundPage-CFlNCHFs-CioL0LYB.js → NotFoundPage-BKvCYyvc-CTJ6GFz6.js} +5 -5
- package/dist/assets/{NotificationSettingsPage-KJzE9v4p-BmDPaYYb.js → NotificationSettingsPage-F2xXUCSE-DgOJ4JTH.js} +1 -1
- package/dist/assets/{NotificationsListConfig-6sXXtF_E-1h8udZXO.js → NotificationsListConfig-C9r-O2kH-C-lqN35x.js} +1 -1
- package/dist/assets/{NotificationsPage-D4AmPdo9-CW_dux68.js → NotificationsPage-CZZ9GTVy-TcR5jcnr.js} +1 -1
- package/dist/assets/{OpExByVendorPage-B5Wtu3ww-CRfex2T_.js → OpExByVendorPage-Crvcsx0U-BrZOBs9i.js} +1 -1
- package/dist/assets/{OverlayContainerPage-BG9y5C0t-D44auW3J.js → OverlayContainerPage-BG9y5C0t-FwwF51rG.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CjkaxTx7-C6MEpq3s.js → PandLWithForecastPage-CkDCt5NK-OeI3LZQ4.js} +26 -26
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-eeLSg7xb-Dqmhwg_2.js → PaymentAccountSetupBillingAddressSection-D1ZDh1GY-n_87Pisd.js} +1 -1
- package/dist/assets/{PeoplePage-CQREy6SW-CbGkKVE_.js → PeoplePage-D2CtRlrd-_Fl5ZVO_.js} +1 -1
- package/dist/assets/{Preview-CZH7Vvu6.js → Preview-CcM5xd29.js} +1 -1
- package/dist/assets/{ProductsCarousel-COZZMTcH-ZuodLSHT.js → ProductsCarousel-sNagRI0c-DUD3i-ok.js} +1 -1
- package/dist/assets/{PromoBaseCards-Bmn6TN2k-Ct-ISdkn.js → PromoBaseCards-BUk-u73S-RrpdyoYd.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DYxoiSkA-sKx87rCc.js → QBOConnectionDialog-C1rEAxUE-BTg5P-0s.js} +1 -1
- package/dist/assets/{QBOSetupSection-Cdz2PDxV-m21V-84t.js → QBOSetupSection-iQJCHR-K-laiJIXnO.js} +9 -9
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-C-QEoqCw-DmLqQrHw.js → ReimbursementApprovalRuleDetailPage-BPIKZ9v1-DjyckHg2.js} +2 -2
- package/dist/assets/{ReimbursementApprovalRulesPage-Ch2sxTFV-DTKL4QiN.js → ReimbursementApprovalRulesPage-AE810nQZ-BJY-tIxb.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DSF6SfKn-DiLLrGZj.js → ReimbursementDetailPage-CYuZJL_J-DhILehDE.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-F1ROFd63-CPWXAODT.js → ReimbursementPromoPage-CaxjSwrz-NQ5_y0d5.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-l2mhLFuo-B0YyTVJh.js → ReimbursementSetUpPage-Bw77MBHF-BVLsQv_F.js} +5 -5
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DyPxPnlu-DLeQ0zma.js → ReimbursementsBulkReviewDrawerPage-B-svIloS-lAbBYvXL.js} +1 -1
- package/dist/assets/{ReloadCard-CDcJMl9F-GNMvLISk.js → ReloadCard-D5kxTfzJ-BlQuIN3b.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DvCk55Hn-DCcuXTG_.js → ReportTableViewSelector-BZU8yltx-DPOyBIgl.js} +3 -3
- package/dist/assets/{ReportsPage-DfqqKSt3-BQoKmGT6.js → ReportsPage-CdN9MEVy-D4wm1xim.js} +1 -1
- package/dist/assets/{RevenueChart-BONT9upM-AwoVaQmi.js → RevenueChart-B_RMeweH-Be8mnN5x.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-857bVurA-BnvJYsAZ.js → ReviewDetailsPage-a73YIZSO-BnoBJdi7.js} +1 -1
- package/dist/assets/{ReviewOverlay-ClQg7d2j-v7nL9_jQ.js → ReviewOverlay-Ubmz06uP-Cm36Xckx.js} +1 -1
- package/dist/assets/{RoleWithToolTip-C0G1Hgp_-DgLDHedD.js → RoleWithToolTip-BYO1YG6N-CsuUGffE.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CJ_JBtxS-ds_tcGHg.js → ScheduleDetailsFixedAssetsPage-vgqilDC8-6un1JhGQ.js} +3 -3
- package/dist/assets/{ScheduleDetailsPage-B1aEwPL--DKZ6ckfZ.js → ScheduleDetailsPage-DdEeFryA-Bq9g-UVH.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-DhU7PI91-Drw07NVk.js → ScheduleSequenceTable-poNEzbqS-BRLARTM1.js} +1 -1
- package/dist/assets/{ScreenRoutes-NoYDM6g5.js → ScreenRoutes-p9gAwqEY.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C8dulq9s-igv87Kpb.js → SetUpAccountSection-BSOGwHCj-KS8UdoT_.js} +1 -1
- package/dist/assets/{SignIn-wDe7lbGR-Bs2G2XPX.js → SignIn-q4J9wRx8-Bk2dYQIf.js} +9 -9
- package/dist/assets/{SignInScreen-CRSTFj8o.js → SignInScreen-vTgQXYqI.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BdddUHrW-DZL3NU-v.js → SpendManagementListViewPage-DKRkSADM-Cuwj5Vw-.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BBJm3884-Dz5taYo8.js → SpendManagementPerTabPage-Cd30NnXU-2P1mmwpY.js} +1 -1
- package/dist/assets/{SpendManagementSection-6R5y0Hy4-DpP4sVHm.js → SpendManagementSection-CPBOh_J5-DltaK90h.js} +1 -1
- package/dist/assets/{StatementItem-qsoXKx_p-pNr1IluZ.js → StatementItem-NyOORj5f-D-DvPPZf.js} +5 -5
- package/dist/assets/StatementsPage-Cp77wyFS-BIeZB6RT.js +58 -0
- package/dist/assets/{StatusSwitcher-D3qCg5J1-BkY5Cp0Q.js → StatusSwitcher-DN-yYdli-CgJu7kXT.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BXajy75j-7lFvlNwq.js → SubTabSwitcher-D1LNrhUn-_eTvOj2H.js} +1 -1
- package/dist/assets/{SummaryCard-B1d4_5lE-CNsr_2fP.js → SummaryCard-DgIPSt4y-Bv9vNB1A.js} +1 -1
- package/dist/assets/{TaskManagementPage-h3Rb49Jj-CNmsH8Bn.js → TaskManagementPage-BaLJR4-7-Dp7S7sHv.js} +7 -7
- package/dist/assets/{TimeRangeSwitcher-DpUOmqiR-BkgSCdDu.js → TimeRangeSwitcher-CkgGEwEw-DLFFATZh.js} +2 -2
- package/dist/assets/{TimeframeSwitcher-BKEtsv_r-DofGHtuy.js → TimeframeSwitcher-B8fpnYS8-DoyazB8M.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DECnQIMT-DklwR3Oh.js → TimeframeSwitcherWithToggle-DwFo6jY4-DjWF1_Ms.js} +10 -10
- package/dist/assets/{TopExCard-leQR29Sq-DbBKY2kF.js → TopExCard-PayAZZY--DDfpjs7Q.js} +1 -1
- package/dist/assets/{TopExDetailPage-Dgg7Do6D-CLQp45K6.js → TopExDetailPage-Mp2KcYf6-CqGI0h1f.js} +5 -5
- package/dist/assets/{TransactionActivityLogPage-CU2pUJQL-CjnUTi2x.js → TransactionActivityLogPage-CnmL_hUz-ykqDkIx9.js} +1 -1
- package/dist/assets/{TransactionDetailPage-FT2IPLH7-DNrep9w3.js → TransactionDetailPage-Bqlnmn8Y-qYNavetm.js} +17 -17
- package/dist/assets/{TransactionList-C2MGkQYM-CThHqUau.js → TransactionList-BOmlsfpv-BXIrXT71.js} +1 -1
- package/dist/assets/{TransactionListBig-CZ3jIxzR-DdzitxeV.js → TransactionListBig-CaMT-rq_-ZmvtnqQx.js} +4 -4
- package/dist/assets/{TransactionListPage-PCa4exLO-C_Mi9GFP.js → TransactionListPage-D_dgwnFp-BoAbu83a.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BgcqndCu-DohEqgFa.js → TransactionVendorDetailPage-DlXuiPC5-BlOz-SLk.js} +1 -1
- package/dist/assets/{TransferDrawerPage-SirvPH4z-Dhx92Eak.js → TransferDrawerPage-C2VcssbM-g-4oubp2.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-B_WK1aOv-CKMHMhfX.js → TreasuryOverviewPage-DyyoGY23-SGYhYArr.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-B_D63Dr2-BtZgUmxD.js → TreasuryPromoPage-B9Hf7oxZ-WQLHnPdk.js} +1 -1
- package/dist/assets/TreasuryStatementsPage-DOzJzfTG-X055ycRR.js +58 -0
- package/dist/assets/{TreasuryTaxLetterPage-9gNdkQZp-BZSymf9G.js → TreasuryTaxLetterPage-BcTBr9x9-r-5UDcMp.js} +1 -1
- package/dist/assets/{TrendChart-COItOWPp-DdlLT0RF.js → TrendChart-BvXDrgUJ-TSD2TQxY.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DgAw_8CI-D3ylDlH1.js → TrendWithTransactions-RCpzdPf3-Bdp6gyRQ.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-B9EziB6Q-CYFawV2c.js → UncategorizedAccountsMappingPage-B1m3iXh5-CwBQoLRz.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-DGWNyWV1-DjLDlFXV.js → UnitIntegrationPage-lVg_8mQ4-B4J9SS29.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DWmMz_8y-Dz32FFZZ.js → UploadAdditionalDocumentOverlay-DrAWxBXn-BJ5UA_LJ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-dh2g8kqu-DwjVFUY9.js → Vendor2FAPopup-C8m_OJEH-BQPav_Ax.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-JhO6KtMC-Dqi6iZLe.js +1 -0
- package/dist/assets/{VendorDetailPage-CGqoIODq-BDYAlJyl.js → VendorDetailPage-Y9_hsgjs-COSKYEB6.js} +1 -1
- package/dist/assets/VendorDomesticWireDetailsPage-D0RsDHxf-B0u1aa5Q.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-CsnlHrCl-DgNAgTDa.js → VendorFiling1099EditablePage-CPevpiim-eRvxUTfJ.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-DC1j2sO_-cpxY9ygL.js → VendorFirstReviewPage-CXftFNl_-DnL32muY.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-Drr00a6C-Yba9NQtd.js → VendorInternationalWireDetailsPage-88NtGE3e-B2yz8nAf.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BTh-VP1b-CiJGtG3T.js +1 -0
- package/dist/assets/{VendorsAccountsSection-BtdwR8u4-DsGQkmuk.js → VendorsAccountsSection-DorsKXyL-CrlagDeB.js} +1 -1
- package/dist/assets/{VerifyDevice-Bhr_yHpE-jUN37hWe.js → VerifyDevice-DAym8rUN-dIhJH8cf.js} +1 -1
- package/dist/assets/{VideoPlayer-wlJX6lEq-BFMZsmlG.js → VideoPlayer-53OvOC7l-CYCjx0EY.js} +2 -2
- package/dist/assets/{VideoPopup-BPptwR51-Cm_fePoy.js → VideoPopup-v9quqdro-2Fz0-BWi.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-CHDMmfGz-D_ymBpUW.js → WarningsDrawerPage-B-1cevae-BN2Brh3F.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CSsu44ls-DyRikcBD.js → ZeniAccountDetailPage-CFEGqW5l-OJ7KEJXi.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BZwGCrzx-CRCjv0Br.js → ZeniAccountListViewPage-j85TO5tM-BA4hUweX.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CrNjnkNS-DFkeu8bt.js → ZeniAccountNavBarPieces-Bv34Vsqj-CXo0mnB4.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CahV-Rmf-Dc7RG49a.js → ZeniAccountPromoPage-DeHmh4My-DTptNNqM.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DSNDNKZr-C8d2__PZ.js → ZeniAccountSetupPage-ofkQR72l-HeZCtum9.js} +1 -1
- package/dist/assets/{ZeniCopyright-BNGdkMOa-BB4Hy1A5.js → ZeniCopyright-CmCqmJmV-Bs4eGeTl.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DuD1JtSv-6-ePg5hP.js → ZeniTransferAmountSlider-BpfqM032-D_645Bm1.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-OZ5gpoAM.js → add-to-wallet-DgdBD8_G-HaPXUI9c.js} +1 -1
- package/dist/assets/{analytics-TwdLweES.js → analytics-CivFEuof.js} +1 -1
- package/dist/assets/{analyticsHelper-Cah6MQ3x.js → analyticsHelper-B1rdy3gN.js} +1 -1
- package/dist/assets/{analyticsHelper-DjQYjslY-BwgxrHpW.js → analyticsHelper-qtejXlXH-DOVP9Wm4.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-q2OU5IkV.js → arrow-south-east-round-PEovUgvH-Cl5-B9FN.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-BEBK8d08.js → auto-transfer-rule-mbafm5D3-B2DzCTcV.js} +1 -1
- package/dist/assets/{chartTypes-BGl-YMiu-wkO2seRK.js → chartTypes-BqRsL6eJ-CBZrRJTS.js} +1 -1
- package/dist/assets/{commonDimensions-CuKo3wam-Ch7sJXeF.js → commonDimensions-CzWWgDTA-CZ5JdBHB.js} +1 -1
- package/dist/assets/{commonTypes-CfAg6Jvv-DG06gejU.js → commonTypes-CF6UyWSv-tnGFHb_I.js} +1 -1
- package/dist/assets/{constants-BRyQqmbK.js → constants-BHpV7qJs.js} +1 -1
- package/dist/assets/{core-C_RwbDgZ.js → core-UsQu6ilI.js} +1 -1
- package/dist/assets/{dash.all.min-BXIjGNzm.js → dash.all.min-MHg1V8MT.js} +1 -1
- package/dist/assets/{downloadPdf-Dcd8BY_9-DP56vTAt.js → downloadPdf-BFFM3Hea-Bqbwez12.js} +1 -1
- package/dist/assets/{empty-D7p7xixl.js → empty-BYBjLuG8.js} +1 -1
- package/dist/assets/{empty-CN54c-dU.js → empty-DDB_VyWo.js} +1 -1
- package/dist/assets/{epic-CThn8LAI.js → epic-oPbd4wIJ.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-oia6LvJT.js → gift-box-Cmt9OgIZ-DXUXfbtG.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-DCjrEnAk.js → graphic-no-data-l-DU4J8fDt-mfpUahAn.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-Db_-34x6.js → graphic-no-data-net-burn-l-CzmycA0m-D5jfTblV.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-Dcowt3IG.js → handshake-BPg58FML-BrMpfcGt.js} +1 -1
- package/dist/assets/{helper-DkzA3y2L-BlJrvZUd.js → helper-COxPEvgL-D-otlmR3.js} +1 -1
- package/dist/assets/{index-DvYI3iXJ.js → index-B6p1WCWC.js} +1 -1
- package/dist/assets/{index-B-ek68tb.js → index-BaCjyCwK.js} +1 -1
- package/dist/assets/{index-B0kAPzkH.js → index-BeBXELGm.js} +8 -8
- package/dist/assets/{index-hPlkpvne.js → index-CS2gc3-y.js} +1 -1
- package/dist/assets/{index-CJXgYa1j.js → index-CpxsGNeN.js} +1 -1
- package/dist/assets/{index-C7AzBAhT.js → index-_mV-XqCg.js} +1 -1
- package/dist/assets/{index-BC4cjDzB.js → index-lZR4zL6Z.js} +1 -1
- package/dist/assets/{lexical-DZ4skawM.js → lexical-BKjLQtIV.js} +1 -1
- package/dist/assets/{liveblocks-CN5hALk7.js → liveblocks-Ckf7CW56.js} +1 -1
- package/dist/assets/{lottie-B-zs781A.js → lottie-70oTIUav.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-COOJxneh-Cdiir751.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CcuLqf_I-D6sga1Fl.js +1 -0
- package/dist/assets/{mapSpacerToTreeNode-BDjo5N-i-Ba6y7Xdd.js → mapSpacerToTreeNode-Ci5bdH6P-C_ZtKNt5.js} +1 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CCZ9A7A6-B60wCl1o.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Cql9mEn3-DEsG-mWU.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CIXgJHQz-hJRxpP0f.js +1 -0
- package/dist/assets/{mui-B_fu8zAT.js → mui-DyrXxcaY.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-CvAL0hAO.js → page-detail-CWX5S47F-DjzP0i2w.js} +1 -1
- package/dist/assets/{panelSelectedMixin-Cddsb26L-DRHuamSe.js → panelSelectedMixin-Cddsb26L-BRQKaHpg.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-BgsJfXrp.js → radio-default-CiSgisfh-Dpj35KsG.js} +1 -1
- package/dist/assets/{react-uUMjmJkq.js → react-BNjqfbZg.js} +1 -1
- package/dist/assets/{react-B3oFwy7V.js → react-BZuFWm8r.js} +2 -2
- package/dist/assets/{react-DJ0zzqQv.js → react-BfhE1tLW.js} +1 -1
- package/dist/assets/{react-BG0GUKse.js → react-C-Qv5HU8.js} +1 -1
- package/dist/assets/{react-Bcm_MkQe.js → react-CAY4npt2.js} +1 -1
- package/dist/assets/{react-CWuBuyxj.js → react-CgMYr4yt.js} +1 -1
- package/dist/assets/{react-PE1K_DTb.js → react-DL3mzyRY.js} +1 -1
- package/dist/assets/{react-rwxEP-9P.js → react-DzT0txyu.js} +1 -1
- package/dist/assets/{recharts-BkmpOx_p.js → recharts-ChhaK6iT.js} +1 -1
- package/dist/assets/{sentry-xNvKSthz.js → sentry-C-_CW7F_.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-BV2AyAgf.js → shield-DOlUxcFf-_vFr_JxE.js} +1 -1
- package/dist/assets/toCOABalancesWithID-B70YK7cw-BpvjorH5.js +1 -0
- package/dist/assets/{toChartData-B4ligi4c-DrdkiVwu.js → toChartData-CWgd8E5c-CaPmCYYw.js} +1 -1
- package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-Deu8S236.js → upload-reimbursement-receipt-O2N8vcO7-GwRYaLJH.js} +1 -1
- package/dist/assets/{uploadAttachment-DgPDimcm-Da5VAf0_.js → uploadAttachment-D1ybl0Fy-DKj_kIvj.js} +1 -1
- package/dist/assets/{uploadReceipts-CIgkuVpu-C2QISLpf.js → uploadReceipts-CIgkuVpu-CHotvSvq.js} +1 -1
- package/dist/assets/{url-CPrPdBBS.js → url-DhRhN23J.js} +1 -1
- package/dist/assets/{url-DN9fcrN3.js → url-DnRijP4K.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DMOFKAWg.js → useLongPress-GCK2COYQ-CjewB8QL.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-Bx4ltDgD.js → usp-line-BBd1wKwW-CUJOAj_B.js} +1 -1
- package/dist/assets/{utils-4bW-VyLb.js → utils-CdVNjKQw.js} +1 -1
- package/dist/assets/{zeni-epic-state-SAYXyeZn.js → zeni-epic-state-CQ4Yidqa.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AccountInfoPage-v8-NT3FJ-BLnDlpmT.js +0 -18
- package/dist/assets/BalancesInsightWithToolTip-D4q45w1q-Sr3IiaKA.js +0 -38
- package/dist/assets/ChargeCardPromoPage-AI5bladj-CsH8Ww1U.js +0 -222
- package/dist/assets/CustomerOnboardingContainerPage-B5kVGk_V-DaS2tj3d.js +0 -1
- package/dist/assets/EntityDetailPage-BDyO7iLI-pszb-aYq.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-DbhqYo7W-CYawNShs.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-D0JDLfbz-DlXa2hzV.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DChqrJN7--07rCj7l.js +0 -1
- package/dist/assets/MailingDetailsSection-DqSOlu2t-CrZfw4DZ.js +0 -21
- package/dist/assets/StatementsPage-Cn7WG5-S-Dtuy_acT.js +0 -58
- package/dist/assets/TreasuryStatementsPage-BGe0fhBe-JspAuqOT.js +0 -58
- package/dist/assets/VendorACHDetailsPage-C0vIRpRW-BySjhNag.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-BVXSOMiH-BC29xKDB.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-CZ5N8G2o-BIVj-ZnL.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-lABm-2N9-CQKoretJ.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-COcUb2pF-DrWbifzP.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CvVUjW74-BCLjt2k3.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CwHF76sn-CklAjOvj.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B7LYTZXQ-Chbc9s9v.js +0 -1
- package/dist/assets/toCOABalancesWithID-CGYYTIjt-a4fWXB1c.js +0 -1
package/dist/assets/{BillDetailPage-CiHal44n-C0A_2Drd.js → BillDetailPage-DRpctLxu-DsP4Hhqd.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{ay as Ft,V as t,gv as Un,e as Kn,g as Hn,bQ as qn,bR as Xn,gw as Gn,gx as Yn,cl as Jn,aS as Qn,x as y,fo as pt,fp as ea,o as a,fq as ta,fr as na,fs as aa,aQ as Ce,ft as ia,ac as f,bE as mt,bq as ut,dE as yt,cy as ht,cz as bt,cA as gt,gy as la,gz as oa,gA as ra,gB as sa,dN as j,gC as $,fz as A,dT as k,fx as da,w as ft,d as re,fy as _t,fF as ca,fA as pa,fB as ma,gD as ua,gE as ya,aT as ha,aq as xt,c1 as De,bU as ba,gF as L,O as ga,u as s,ai as fa,cc as xa,bV as wa,b as Ta,gG as va,fG as wt,N as Da,de as Ia,cq as ja,gH as Tt,b9 as $a,bb as Aa,n as ka,c3 as Wt,df as Sa,gI as Ca,ak as Zt,ax as Pa,b7 as Ba,bv as Ra,gJ as za,an as Ma}from"./index-B0kAPzkH.js";import{a as p}from"./sentry-xNvKSthz.js";import{n as i}from"./mui-B_fu8zAT.js";import{bY as Na,bL as La,bZ as Ea,GD as Oa,bX as Fa,bH as _a,bh as Wa}from"./zeni-epic-state-SAYXyeZn.js";import{o as Za,t as Va}from"./LowBalancePopup-IF7NG9aL-CinbCyiV.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="a7fbb238-17b5-43e3-b7ae-61ca8750f7e2",e._sentryDebugIdIdentifier="sentry-dbid-a7fbb238-17b5-43e3-b7ae-61ca8750f7e2")}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 Da("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:Ha,common:{noText:C,strings:{empty:c},currency:vt,via:qa,more:Xa,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Vt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Ya}}}}=ga.getLocalizedStrings(),je=Ha.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:F,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Ut,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Ht,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:qt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:Yt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Jt,onAttachmentClick:Ee,saveBillDetails:Qt,discardOutsideZeniPaymentData:en,onBackClick:Oe,updateEditRealTimeApproverClicked:tn,onSaveRealTimeApprovals:nn,onRetryPaymentClick:an,onRefundPaymentClick:ln,initialOpenThreadRequest:K})=>{const l=Kn(),o=Ft(),Fe=Hn(),[on,H]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[We,me]=p.useState(!1),[rn,ue]=p.useState(!1),[Ze,Q]=p.useState(!1),g=e.transactionDetails?.id,sn=qt?qn:Xn,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(sn);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&ee(K)},[K,ee]);const[dn,q]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:g,isGlobalComment:!1},x=Re&&g!=null,{threads:X,isLoading:P}=Gn(),Ve=p.useMemo(()=>g==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(Yn)),[X,g]).length,D=`dashboard_${o.currentTenant?.companyId}`,cn=p.useCallback((r,u)=>{te(u),q(!1)},[te,q]);p.useEffect(()=>{ye?.threadId!=null&&X.length>0&&!P&&(te(ye.threadId),ee(null))},[ye,X,P,te,ee]);const Ue=p.useRef(!1),[pn,mn]=p.useState(!1),un=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,mn(!0))});Jn({componentName:"bill.details",enabled:pn});const[N,ne]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,He]=p.useState("approved"),[yn,qe]=p.useState(!1),[hn,Xe]=p.useState(!1),[Ge,Ye]=p.useState(!1),Je=()=>qe(!1),bn=()=>qe(!0),Qe=Qn(e.zeniAssist?.refundStatus.fetchState),ae=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ae())},[Qe,e.zeniAssist?.refundStatus,ae]);const w=e.transactionDetails?.billPayInfo.stage,ie=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,gn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ie?.code=="approved"&&G?.code?G:ie,S=Ja(v,e.transactionDetails),E=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?gn:G?.code!=null&&(ie?.code=="approved"||G.code==="mark_as_paid")?G:ie,be=e.transactionDetails?.vendor?.name,B=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},fn=()=>{ne({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),H(!0)},xn=()=>{ne({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},wn=()=>{ne({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},Tn=()=>{M.trackRefundClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ne({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),pe(!0)},vn={onOkClick:()=>{H(!1),N.primaryButtonText===n.delete?Yt?.(e.isRecurring):N.title===n.cancelBillTitle?Ne?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ln())},onCancelClick:()=>{H(!1),pe(!1)}},Dn={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},In=()=>{const[r]=Pa("ZeniAssist");return r!=null?t.jsx(Ba,{"data-testid":f("bill-details-zeni-assist-icon",g),onClick:()=>{me(!We),M.trackZeniAssistClick(v?.code??"",w?.code??"",E?.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},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},ge=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}})??[],jn=e.transactionDetails?.recipientTotalAmount.amount??0,fe=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),$n=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,An=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):"",kn=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${An}`,Sn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx($i,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Cn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Sa(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
-
${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`},oe=e.transactionDetails?.billPayInfo!=null?Na(e.transactionDetails?.billPayInfo):void 0,Pn=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?La(Ea(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,nt=e.transactionDetails?.billPayInfo.expectedDepositDate??Pn,at=pt(d?.paymentType?.method??"").replace("Same Day",""),Bn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(ea,{paymentTypeLabel:at,onClick:bn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Rn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Ca,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,it=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,xe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&it),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&it),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,zn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Mn=Ht&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&zn===!1,ve=we||Te,Nn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,W=v?.code,Ln=!Nn&&(!tt||v?.code==="processing"&&!B),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),Y=Oa(e.transactionDetails?.bulkProcessingDetail?.type),O=Fa(e.paymentMethodType?.method),En=!Y&&(W!=="processing"&<||W==="processing"&&!B||W==="processing"&&ot||h&&O&&Be),On=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Qt(!0,Ge,r)},st=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Fn=()=>{Ye(!0),st()},_n=()=>{en(),Xe(!1),Ge&&Ye(!1)},Wn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:g??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,g]),Z=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?ta(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{He("approved"),Ze===!0&&Q(!1),Z!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},Zn=()=>{He("rejected"),Z!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},ct=p.useRef(null);return t.jsxs(mi,{windowSize:l,ref:ct,children:[t.jsx(na,{anchor:"right",open:yn,onClose:Je,transitionDuration:250,"data-testid":f("vendor-email-preview-drawer"),children:t.jsx(aa,{companyName:ia(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:at,amount:Ce("0,0.[00]",fe),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(bi,{ref:un.current,windowSize:l,children:[t.jsx(Si,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":f("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[x?t.jsxs(Et,{isDisabled:P,"data-testid":f("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Ot,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":f("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":f("bill-detail-nav-bar-small-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":f("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[x?t.jsxs(Et,{isDisabled:P,"data-testid":f("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Ot,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":f("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":f("bill-detail-nav-bar-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(gi,{windowSize:l,children:[Ze?t.jsx(Za,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,hn?t.jsx(Va,{onCancel:_n,onProceedForMarkAsPaid:On,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,on||ce?t.jsx(ht,{titleComponent:t.jsx(gt,{children:N.title}),descriptionComponent:t.jsx(bt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:vn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Qa(l,e):null}):null,rn?t.jsx(ht,{titleComponent:t.jsx(gt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Dn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(xi,{windowSize:l,children:[l!=="small"?t.jsxs(wi,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:a.sp5,width:a.sp5}):null]}):null,F&&S!=null&&S.code==="deleted"?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Pe.tabsById.overdue?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,E!=null&&E.code?l==="small"?t.jsx(la,{progressSectionObj:E,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(oa,{progressSectionObj:E,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ni(Y,e,Z),t.jsx(ra,{sectionId:sa,currentVendorOption:{defaultOptions:[]},billId:g,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Ee,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,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:le.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,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:le.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,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:le.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,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:le.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(fi,{windowSize:l,children:t.jsx(ke,{children:n.lineItemsTitle})}),ge.length>0?ge.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Vn=>Vn.id===r.lineId)?.recipientAmount;return t.jsxs(ui,{children:[ge.length>1?t.jsx(yi,{windowSize:l,children:t.jsx(hi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,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?Ce("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,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:g,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,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:g,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,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:g,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,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?$n(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,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(Ti,{windowSize:l,children:[t.jsx(vi,{children:n.total}),t.jsx(Di,{children:fe!=null?t.jsx(da,{amount:fe,integerStyles:ft.h6Medium.cssObject,decimalStyles:ft.standardMedium.cssObject}):C})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,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?_t(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:Z!=null&&w?.code==="pending_approval"?Vt.addMoney:Z})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,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(_a)&&Kt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ii,{children:ca(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?ti(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,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?kn:d.paymentToPI!=null?d.paymentToPI.displayText:Sn,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:Cn(),additionalInfoLabel:t.jsx(ai,{children:Bn})}),Rn()]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,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:ma(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:pa(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(Ai,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ua,{onAttachmentClick:Ee,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ya,{amount:jn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Jt,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:se,signedInUserId:_?.userId,showRealTimeApproval:Ut,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:tn,onSaveRealTimeApprovals:nn},historicActivities:e.billHistory.activities}),t.jsx(Ii,{})]}),e.transactionDetails?.vendor!=null&&!he&&!e.transactionDetails.isDeleted?t.jsx(ha,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:ei(U,rt),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{Z!=null?Q(!0):dt()},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(li,{children:t.jsxs(pi,{windowSize:l,children:[!Y&&_e?t.jsx(xt,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":f("bill-actions-container"),children:[W!=="processing"&<?t.jsx(V,{onClick:fn,"data-testid":f("delete-bill-action-item"),children:n.buttons.deleteBill}):null,W==="processing"&&!B?t.jsx(V,{onClick:xn,"data-testid":f("cancel-bill-action-item"),children:n.buttons.cancel}):null,W==="processing"&&ot?t.jsx(V,{onClick:wn,"data-testid":f("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,h&&O&&Be?t.jsx(V,{onClick:Fn,"data-testid":f("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,We?t.jsx(xt,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":f("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(V,{onClick:()=>{M.trackRetryClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),an()},"data-testid":f("retry-bill-action-item"),children:n.buttons.retry}):null,Te?t.jsx(V,{onClick:Tn,"data-testid":f("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(ci,{windowSize:l,children:[Mn===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:ve?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:xe,isIconClickable:ve,"data-testid":f("other-actions-icon-container"),children:ve?t.jsx(In,{}):t.jsx(ri,{})})}):null,!Y&&xe===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(di,{onClick:et,"data-testid":f("edit-bill-icon-container"),children:t.jsx(si,{})})}):null,!Y&&Ln===!0&&En?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:xe,isIconClickable:!0,"data-testid":f("more-details-icon-container"),children:t.jsx(oi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(ba,{isDrawerOpen:dn,allowComposer:!0,drawerTitle:Ya,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Wn,onThreadClick:cn,onCloseAllThreadsDrawer:()=>q(!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]})},Wi=e=>{const b=Ft(),h=e.billDetails.transactionDetails?.id,F=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!(F&&_!=null&&h!=null))return t.jsx($t,{...e});const se=`dashboard_${_}`;return t.jsx(Un,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Ja=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Wa(),"date")===!0?{value:Pe.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[h].color,bgColor:L[h].bgColor,borderColor:L[h].borderColor}},Qa=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(ki,{windowSize:e,children:[t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.accountNumber}),t.jsx(Lt,{children:b.withdrawFrom!=null?_t(b.withdrawFrom,e):c})]}),t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.amount}),t.jsx(Lt,{children:h!=null?Ce("0,0[.]00",h):C})]})]})},ei=(e,b)=>e?n.paymentOutsideZeni.markAsPaid:b?n.buttons.approve:n.buttons.approveBill,ti=e=>{const b=e.paymentMode,h=n.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const F=n.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${qa} ${F}`},ni=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const F=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Vt.lowBalanceIn.replace("__account__",F)}`,description:h.replace("Low balance! ","")})}else return null},ai=i.div``,ii=i.div``,li=i.div`
|
|
1
|
+
import{ay as Ft,V as t,gv as Un,e as Kn,g as Hn,bQ as qn,bR as Xn,gw as Gn,gx as Yn,cl as Jn,aS as Qn,x as y,fo as pt,fp as ea,o as a,fq as ta,fr as na,fs as aa,aQ as Ce,ft as ia,ac as x,bE as mt,bq as ut,dE as yt,cy as ht,cz as bt,cA as gt,gy as la,gz as oa,gA as ra,gB as sa,dN as j,gC as $,fz as A,dT as k,fx as da,w as xt,d as re,fy as _t,fF as ca,fA as pa,fB as ma,gD as ua,gE as ya,aT as ha,aq as ft,c1 as De,bU as ba,gF as L,O as ga,u as s,ai as xa,cc as fa,bV as wa,b as Ta,gG as va,fG as wt,N as Da,de as Ia,cq as ja,gH as Tt,b9 as $a,bb as Aa,n as ka,c3 as Wt,df as Sa,gI as Ca,ak as Zt,ax as Pa,b7 as Ba,bv as Ra,gJ as za,an as Ma}from"./index-BeBXELGm.js";import{a as p}from"./sentry-C-_CW7F_.js";import{n as i}from"./mui-DyrXxcaY.js";import{bY as Na,bL as La,bZ as Ea,GD as Oa,bX as Fa,bH as _a,bh as Wa}from"./zeni-epic-state-CQ4Yidqa.js";import{o as Za,t as Va}from"./LowBalancePopup-DTtl3SIc-DM2vuSAI.js";import"./liveblocks-Ckf7CW56.js";import"./core-UsQu6ilI.js";import"./recharts-ChhaK6iT.js";import"./lottie-70oTIUav.js";import"./analytics-CivFEuof.js";import"./lexical-BKjLQtIV.js";import"./utils-CdVNjKQw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="966e1217-133d-4313-9a63-6e55cc68eb9e",e._sentryDebugIdIdentifier="sentry-dbid-966e1217-133d-4313-9a63-6e55cc68eb9e")}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 Da("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:Ha,common:{noText:C,strings:{empty:c},currency:vt,via:qa,more:Xa,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Vt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Ya}}}}=ga.getLocalizedStrings(),je=Ha.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:F,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Ut,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Ht,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:qt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:Yt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Jt,onAttachmentClick:Ee,saveBillDetails:Qt,discardOutsideZeniPaymentData:en,onBackClick:Oe,updateEditRealTimeApproverClicked:tn,onSaveRealTimeApprovals:nn,onRetryPaymentClick:an,onRefundPaymentClick:ln,initialOpenThreadRequest:K})=>{const l=Kn(),o=Ft(),Fe=Hn(),[on,H]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[We,me]=p.useState(!1),[rn,ue]=p.useState(!1),[Ze,Q]=p.useState(!1),g=e.transactionDetails?.id,sn=qt?qn:Xn,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(sn);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&ee(K)},[K,ee]);const[dn,q]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:g,isGlobalComment:!1},f=Re&&g!=null,{threads:X,isLoading:P}=Gn(),Ve=p.useMemo(()=>g==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(Yn)),[X,g]).length,D=`dashboard_${o.currentTenant?.companyId}`,cn=p.useCallback((r,u)=>{te(u),q(!1)},[te,q]);p.useEffect(()=>{ye?.threadId!=null&&X.length>0&&!P&&(te(ye.threadId),ee(null))},[ye,X,P,te,ee]);const Ue=p.useRef(!1),[pn,mn]=p.useState(!1),un=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,mn(!0))});Jn({componentName:"bill.details",enabled:pn});const[N,ne]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,He]=p.useState("approved"),[yn,qe]=p.useState(!1),[hn,Xe]=p.useState(!1),[Ge,Ye]=p.useState(!1),Je=()=>qe(!1),bn=()=>qe(!0),Qe=Qn(e.zeniAssist?.refundStatus.fetchState),ae=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ae())},[Qe,e.zeniAssist?.refundStatus,ae]);const w=e.transactionDetails?.billPayInfo.stage,ie=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,gn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ie?.code=="approved"&&G?.code?G:ie,S=Ja(v,e.transactionDetails),E=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?gn:G?.code!=null&&(ie?.code=="approved"||G.code==="mark_as_paid")?G:ie,be=e.transactionDetails?.vendor?.name,B=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},xn=()=>{ne({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),H(!0)},fn=()=>{ne({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},wn=()=>{ne({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},Tn=()=>{M.trackRefundClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ne({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),pe(!0)},vn={onOkClick:()=>{H(!1),N.primaryButtonText===n.delete?Yt?.(e.isRecurring):N.title===n.cancelBillTitle?Ne?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ln())},onCancelClick:()=>{H(!1),pe(!1)}},Dn={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},In=()=>{const[r]=Pa("ZeniAssist");return r!=null?t.jsx(Ba,{"data-testid":x("bill-details-zeni-assist-icon",g),onClick:()=>{me(!We),M.trackZeniAssistClick(v?.code??"",w?.code??"",E?.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},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},ge=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}})??[],jn=e.transactionDetails?.recipientTotalAmount.amount??0,xe=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),$n=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,An=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):"",kn=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${An}`,Sn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx($i,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Cn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Sa(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
+
${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`},oe=e.transactionDetails?.billPayInfo!=null?Na(e.transactionDetails?.billPayInfo):void 0,Pn=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?La(Ea(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,nt=e.transactionDetails?.billPayInfo.expectedDepositDate??Pn,at=pt(d?.paymentType?.method??"").replace("Same Day",""),Bn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(ea,{paymentTypeLabel:at,onClick:bn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Rn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Ca,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,it=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&it),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&it),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,zn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Mn=Ht&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&zn===!1,ve=we||Te,Nn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,W=v?.code,Ln=!Nn&&(!tt||v?.code==="processing"&&!B),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),Y=Oa(e.transactionDetails?.bulkProcessingDetail?.type),O=Fa(e.paymentMethodType?.method),En=!Y&&(W!=="processing"&<||W==="processing"&&!B||W==="processing"&&ot||h&&O&&Be),On=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Qt(!0,Ge,r)},st=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Fn=()=>{Ye(!0),st()},_n=()=>{en(),Xe(!1),Ge&&Ye(!1)},Wn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:g??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,g]),Z=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?ta(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{He("approved"),Ze===!0&&Q(!1),Z!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},Zn=()=>{He("rejected"),Z!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},ct=p.useRef(null);return t.jsxs(mi,{windowSize:l,ref:ct,children:[t.jsx(na,{anchor:"right",open:yn,onClose:Je,transitionDuration:250,"data-testid":x("vendor-email-preview-drawer"),children:t.jsx(aa,{companyName:ia(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:at,amount:Ce("0,0.[00]",xe),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(bi,{ref:un.current,windowSize:l,children:[t.jsx(Si,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":x("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Et,{isDisabled:P,"data-testid":x("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Ot,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":x("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":x("bill-detail-nav-bar-small-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":x("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Et,{isDisabled:P,"data-testid":x("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Ot,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":x("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":x("bill-detail-nav-bar-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(gi,{windowSize:l,children:[Ze?t.jsx(Za,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,hn?t.jsx(Va,{onCancel:_n,onProceedForMarkAsPaid:On,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,on||ce?t.jsx(ht,{titleComponent:t.jsx(gt,{children:N.title}),descriptionComponent:t.jsx(bt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:vn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Qa(l,e):null}):null,rn?t.jsx(ht,{titleComponent:t.jsx(gt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Dn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(wi,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:a.sp5,width:a.sp5}):null]}):null,F&&S!=null&&S.code==="deleted"?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Pe.tabsById.overdue?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,E!=null&&E.code?l==="small"?t.jsx(la,{progressSectionObj:E,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(oa,{progressSectionObj:E,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ni(Y,e,Z),t.jsx(ra,{sectionId:sa,currentVendorOption:{defaultOptions:[]},billId:g,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Ee,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,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:le.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,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:le.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,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:le.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,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:le.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(xi,{windowSize:l,children:t.jsx(ke,{children:n.lineItemsTitle})}),ge.length>0?ge.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Vn=>Vn.id===r.lineId)?.recipientAmount;return t.jsxs(ui,{children:[ge.length>1?t.jsx(yi,{windowSize:l,children:t.jsx(hi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,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?Ce("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,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:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,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:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,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:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,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?$n(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,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(Ti,{windowSize:l,children:[t.jsx(vi,{children:n.total}),t.jsx(Di,{children:xe!=null?t.jsx(da,{amount:xe,integerStyles:xt.h6Medium.cssObject,decimalStyles:xt.standardMedium.cssObject}):C})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,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?_t(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:Z!=null&&w?.code==="pending_approval"?Vt.addMoney:Z})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,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(_a)&&Kt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ii,{children:ca(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?ti(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,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?kn:d.paymentToPI!=null?d.paymentToPI.displayText:Sn,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:Cn(),additionalInfoLabel:t.jsx(ai,{children:Bn})}),Rn()]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:f,entityId:g,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,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:ma(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:pa(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(Ai,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ua,{onAttachmentClick:Ee,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ya,{amount:jn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Jt,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:se,signedInUserId:_?.userId,showRealTimeApproval:Ut,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:tn,onSaveRealTimeApprovals:nn},historicActivities:e.billHistory.activities}),t.jsx(Ii,{})]}),e.transactionDetails?.vendor!=null&&!he&&!e.transactionDetails.isDeleted?t.jsx(ha,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:ei(U,rt),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{Z!=null?Q(!0):dt()},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(li,{children:t.jsxs(pi,{windowSize:l,children:[!Y&&_e?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":x("bill-actions-container"),children:[W!=="processing"&<?t.jsx(V,{onClick:xn,"data-testid":x("delete-bill-action-item"),children:n.buttons.deleteBill}):null,W==="processing"&&!B?t.jsx(V,{onClick:fn,"data-testid":x("cancel-bill-action-item"),children:n.buttons.cancel}):null,W==="processing"&&ot?t.jsx(V,{onClick:wn,"data-testid":x("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,h&&O&&Be?t.jsx(V,{onClick:Fn,"data-testid":x("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,We?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":x("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(V,{onClick:()=>{M.trackRetryClick(v?.code??"",w?.code??"",E?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),an()},"data-testid":x("retry-bill-action-item"),children:n.buttons.retry}):null,Te?t.jsx(V,{onClick:Tn,"data-testid":x("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(ci,{windowSize:l,children:[Mn===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:ve?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:ve,"data-testid":x("other-actions-icon-container"),children:ve?t.jsx(In,{}):t.jsx(ri,{})})}):null,!Y&&fe===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(di,{onClick:et,"data-testid":x("edit-bill-icon-container"),children:t.jsx(si,{})})}):null,!Y&&Ln===!0&&En?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":x("more-details-icon-container"),children:t.jsx(oi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(ba,{isDrawerOpen:dn,allowComposer:!0,drawerTitle:Ya,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Wn,onThreadClick:cn,onCloseAllThreadsDrawer:()=>q(!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]})},Wi=e=>{const b=Ft(),h=e.billDetails.transactionDetails?.id,F=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!(F&&_!=null&&h!=null))return t.jsx($t,{...e});const se=`dashboard_${_}`;return t.jsx(Un,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Ja=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Wa(),"date")===!0?{value:Pe.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[h].color,bgColor:L[h].bgColor,borderColor:L[h].borderColor}},Qa=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(ki,{windowSize:e,children:[t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.accountNumber}),t.jsx(Lt,{children:b.withdrawFrom!=null?_t(b.withdrawFrom,e):c})]}),t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.amount}),t.jsx(Lt,{children:h!=null?Ce("0,0[.]00",h):C})]})]})},ei=(e,b)=>e?n.paymentOutsideZeni.markAsPaid:b?n.buttons.approve:n.buttons.approveBill,ti=e=>{const b=e.paymentMode,h=n.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const F=n.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${qa} ${F}`},ni=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const F=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Vt.lowBalanceIn.replace("__account__",F)}`,description:h.replace("Low balance! ","")})}else return null},ai=i.div``,ii=i.div``,li=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
5
5
|
`,oi=i(za)`
|
|
@@ -82,7 +82,7 @@ import{ay as Ft,V as t,gv as Un,e as Kn,g as Hn,bQ as qn,bR as Xn,gw as Gn,gx as
|
|
|
82
82
|
&:hover {
|
|
83
83
|
background-color: ${e=>e.theme.colors.background};
|
|
84
84
|
}
|
|
85
|
-
`,St=i(
|
|
85
|
+
`,St=i(fa)`
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
color: ${e=>e.theme.colors.hero};
|
|
88
88
|
width: 20px;
|
|
@@ -156,12 +156,12 @@ import{ay as Ft,V as t,gv as Un,e as Kn,g as Hn,bQ as qn,bR as Xn,gw as Gn,gx as
|
|
|
156
156
|
padding-right: ${e=>m.containerPaddingRight.valuePx(e.windowSize)};
|
|
157
157
|
overflow-x: hidden;
|
|
158
158
|
margin-top: ${e=>m.navBarHeight.valuePx(e.windowSize)};
|
|
159
|
-
`,
|
|
159
|
+
`,xi=i.div`
|
|
160
160
|
display: flex;
|
|
161
161
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
162
162
|
align-items: ${e=>e.windowSize==="small"?"unset":"center"};
|
|
163
163
|
width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
|
|
164
|
-
`,
|
|
164
|
+
`,fi=i.div`
|
|
165
165
|
display: flex;
|
|
166
166
|
margin-bottom: ${a.sp3};
|
|
167
167
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
@@ -209,7 +209,7 @@ import{ay as Ft,V as t,gv as Un,e as Kn,g as Hn,bQ as qn,bR as Xn,gw as Gn,gx as
|
|
|
209
209
|
display: flex;
|
|
210
210
|
flex-direction: column;
|
|
211
211
|
height: ${a.sp11};
|
|
212
|
-
`,ji=i(
|
|
212
|
+
`,ji=i(xa)`
|
|
213
213
|
height: ${a.sp3};
|
|
214
214
|
width: ${a.sp3};
|
|
215
215
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as F,u as L,e as M,O as T,aa as W,aS as G,aM as H,cQ as Q,V as r,bE as X,ae as J,aT as K,o as u,gl as Y}from"./index-
|
|
1
|
+
import{x as F,u as L,e as M,O as T,aa as W,aS as G,aM as H,cQ as Q,V as r,bE as X,ae as J,aT as K,o as u,gl as Y}from"./index-BeBXELGm.js";import{a as U}from"./sentry-C-_CW7F_.js";import{n as h}from"./mui-DyrXxcaY.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-DZNWzSvo-DqG7TBKi.js";import"./liveblocks-Ckf7CW56.js";import"./core-UsQu6ilI.js";import"./recharts-ChhaK6iT.js";import"./zeni-epic-state-CQ4Yidqa.js";import"./lottie-70oTIUav.js";import"./analytics-CivFEuof.js";import"./lexical-BKjLQtIV.js";import"./utils-CdVNjKQw.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]="b029eb84-b8e1-4523-afb2-40010fcd5aaf",e._sentryDebugIdIdentifier="sentry-dbid-b029eb84-b8e1-4523-afb2-40010fcd5aaf")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new F(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=M(),t=T.getLocalizedStrings().commonSetUp.approval,P=T.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:V,billPaySetupApproverViewUpdateData:f}=e;let b=p.length>1?p.length-1:0,v=p.length>0?p[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=p.findIndex(d=>d.approvalRuleId===i),v=b>0?p[b-1].criteria[0].range.min.amount:0}const O=x.handleSubmit(()=>{N()}),q=async(i,d)=>{s(d)};return U.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const z=H(d);Q(()=>q($,z))}});return()=>{i.unsubscribe()}}),U.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(J,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:O,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(K,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[m]:n?[]:[m],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as W,O as S,V as t,bE as G,L as V,ac as b,x as r,an as N,o as i,aQ as z,c1 as P,cy as q,cz as F,cA as O,da as J,u as l,bb as K,N as k,ba as Q,d as j,d9 as X,bv as Y,w as Z}from"./index-
|
|
1
|
+
import{e as W,O as S,V as t,bE as G,L as V,ac as b,x as r,an as N,o as i,aQ as z,c1 as P,cy as q,cz as F,cA as O,da as J,u as l,bb as K,N as k,ba as Q,d as j,d9 as X,bv as Y,w as Z}from"./index-BeBXELGm.js";import{n as o}from"./mui-DyrXxcaY.js";import{a as ee}from"./sentry-C-_CW7F_.js";import"./liveblocks-Ckf7CW56.js";import"./core-UsQu6ilI.js";import"./recharts-ChhaK6iT.js";import"./zeni-epic-state-CQ4Yidqa.js";import"./lottie-70oTIUav.js";import"./analytics-CivFEuof.js";import"./lexical-BKjLQtIV.js";import"./utils-CdVNjKQw.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]="598f0075-8dbb-4899-9e22-c8bd471156bf",e._sentryDebugIdIdentifier="sentry-dbid-598f0075-8dbb-4899-9e22-c8bd471156bf")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},E={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,M=()=>{h(!0)},U={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(T,{}),t.jsx(le,{}),t.jsx(T,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(I,{onClick:M,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{y(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(A,{children:[t.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(R,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},H))})}),v?t.jsx(q,{titleComponent:t.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(F,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-B5gkQjT2-BBqFQihg.js → BillPayPromoPage-DwxNDF0k-Dp0C7zM9.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ay as F,e as f,aS as Y,V as e,fH as ee,bE as ie,a as C,ac as B,ag as x,O as I,o as s,as as se,c as le,g as M,aV as U,ao as oe,x as te,d as $,cN as re,aW as ae,bc as ne,u as de}from"./index-
|
|
1
|
+
import{ay as F,e as f,aS as Y,V as e,fH as ee,bE as ie,a as C,ac as B,ag as x,O as I,o as s,as as se,c as le,g as M,aV as U,ao as oe,x as te,d as $,cN as re,aW as ae,bc as ne,u as de}from"./index-BeBXELGm.js";import{a as g}from"./sentry-C-_CW7F_.js";import{n as l}from"./mui-DyrXxcaY.js";import{Gs as ce,bP as pe,Gt as xe}from"./zeni-epic-state-CQ4Yidqa.js";import{C as me}from"./VideoPopup-v9quqdro-2Fz0-BWi.js";import{M as b}from"./usp-line-BBd1wKwW-CUJOAj_B.js";import"./liveblocks-Ckf7CW56.js";import"./core-UsQu6ilI.js";import"./recharts-ChhaK6iT.js";import"./lottie-70oTIUav.js";import"./analytics-CivFEuof.js";import"./lexical-BKjLQtIV.js";import"./utils-CdVNjKQw.js";import"./VideoPlayer-53OvOC7l-CYCjx0EY.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="d09937d4-72f6-4525-94bf-aa4123717520",i._sentryDebugIdIdentifier="sentry-dbid-d09937d4-72f6-4525-94bf-aa4123717520")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new te(de[5],44)},ge=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -63,11 +63,11 @@ import{ay as F,e as f,aS as Y,V as e,fH as ee,bE as ie,a as C,ac as B,ag as x,O
|
|
|
63
63
|
color: ${i=>i.theme.colors.champion};
|
|
64
64
|
`,d=l.div``,c=l.div`
|
|
65
65
|
padding-left: ${s.sp3};
|
|
66
|
-
`,_=l(
|
|
66
|
+
`,_=l(b)`
|
|
67
67
|
color: ${$.graphColor16Dark};
|
|
68
|
-
`,R=l(
|
|
68
|
+
`,R=l(b)`
|
|
69
69
|
color: ${$.graphColor09Dark};
|
|
70
|
-
`,G=l(
|
|
70
|
+
`,G=l(b)`
|
|
71
71
|
color: ${$.graphColor28Dark};
|
|
72
72
|
`,fe=l(oe)`
|
|
73
73
|
margin: ${s.sp3} auto;
|
|
@@ -78,7 +78,7 @@ import{ay as F,e as f,aS as Y,V as e,fH as ee,bE as ie,a as C,ac as B,ag as x,O
|
|
|
78
78
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
79
79
|
align-items: center;
|
|
80
80
|
justify-content: center;
|
|
81
|
-
`,
|
|
81
|
+
`,be=l(U)`
|
|
82
82
|
margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
|
|
83
83
|
color: ${i=>i.theme.colors.grey1};
|
|
84
|
-
`,t=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Oe=({billPaySetupView:i,analytics:o,meetingUrl:
|
|
84
|
+
`,t=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Oe=({billPaySetupView:i,analytics:o,meetingUrl:S,videoUrl:H,onButtonClick:Z,onBackClick:N,onSetupBillPaySuccess:z,onClickMenuIcon:q})=>{const h=F(),a=f(),{billPayTermsDetails:p}=i,[J,K]=g.useState(!1),[Q,v]=g.useState(!1),k=Y(p?.fetchStatus.fetchState);g.useEffect(()=>{k==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[k,z,p?.fetchStatus]);const W=()=>{o?.trackBillPayPromoScheduleDemo(),v(!0)},X=ce(h.loggedInUserRoleMap),P=pe(h.loggedInUserRoleMap)&&!X,T=P?t.setupNonAccessableUsersPromoText:t.promoText;return e.jsxs(ge,{children:[J===!0?e.jsx(me,{onCancelClick:()=>{K(!1)},videoUrl:H}):null,Q===!0?e.jsx(ee,{onCancelClick:()=>{v(!1)},meetingUrl:S}):null,e.jsx(ie,{title:t.title,onBackClick:N,showBackButton:!xe(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:q,source:"BillPayPromoPage"}),e.jsxs(ue,{windowSize:a,children:[a==="small"?e.jsx(ye,{children:T}):e.jsx(we,{children:T}),a==="small"?e.jsx(Se,{}):e.jsx(ze,{}),P===!1?e.jsxs(je,{children:[e.jsxs($e,{windowSize:a,children:[e.jsx(C,{variant:"secondary",label:t.scheduleDemoButton,onClick:W,"data-testid":B("billpay-schedule-demo-button")}),e.jsx(be,{windowSize:a,children:t.orText}),e.jsx(C,{variant:"primary",label:t.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:Z,"data-testid":B("billpay-setup-button")})]}),e.jsxs(fe,{children:[t.terms.terms1,e.jsx(x,{href:r.consentUrl,linkText:r.consent}),r.term2,e.jsx(x,{href:r.depositUrl,linkText:r.depositTerms}),r.term3,e.jsx(x,{href:r.privacyPolicyUrl,onZeniLinkClick:()=>(o?.trackBillPayPrivacyPolicy(),!0),linkText:r.privacy}),r.term4,e.jsx(x,{href:r.tosUrl,onZeniLinkClick:()=>(o?.trackBillPayAgreement(),!0),linkText:r.tos}),r.term5,t.terms.terms3]})]}):null]})]})},Se=()=>{const i=M(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsx(E,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(V,{windowSize:o,children:[e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.fullyManagedText.bold}),e.jsx(y,{children:t.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(R,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]})]})]})},ze=()=>{const i=M(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsxs(V,{windowSize:o,children:[e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.fullyManagedText.bold}),e.jsx(u,{children:t.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(R,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.multiLevelApprovalText.bold}),e.jsx(u,{children:t.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.aiPoweredText.bold}),e.jsx(u,{children:t.aiPoweredText.regular})]})]})]}),e.jsx(E,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Oe as default};
|
package/dist/assets/{BillPaySetUpPage-DM3r09by-WcYYo1qX.js → BillPaySetUpPage-B-kmDrpB-B9j0mWSg.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as De,e as Oe,aS as F,aa as $e,cQ as Ue,O as Re,aX as K,V as t,fr as Le,d as He,ac as ze,x as u,bE as Ne,L as qe,ae as Me,fI as L,e1 as Ge,fJ as Je,by as Qe,dS as Ze,c1 as Ke,fK as Xe,aT as Ye,o as z,fL as et,u as a,an as tt,bM as it}from"./index-
|
|
1
|
+
import{g as De,e as Oe,aS as F,aa as $e,cQ as Ue,O as Re,aX as K,V as t,fr as Le,d as He,ac as ze,x as u,bE as Ne,L as qe,ae as Me,fI as L,e1 as Ge,fJ as Je,by as Qe,dS as Ze,c1 as Ke,fK as Xe,aT as Ye,o as z,fL as et,u as a,an as tt,bM as it}from"./index-BeBXELGm.js";import{a as m}from"./sentry-C-_CW7F_.js";import{n as b}from"./mui-DyrXxcaY.js";import{bJ as nt}from"./zeni-epic-state-CQ4Yidqa.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DrAWxBXn-BJ5UA_LJ.js";import"./liveblocks-Ckf7CW56.js";import"./core-UsQu6ilI.js";import"./recharts-ChhaK6iT.js";import"./lottie-70oTIUav.js";import"./analytics-CivFEuof.js";import"./lexical-BKjLQtIV.js";import"./utils-CdVNjKQw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="c62bf0de-b0e4-4fdc-a78e-c82af2e11ba1",e._sentryDebugIdIdentifier="sentry-dbid-c62bf0de-b0e4-4fdc-a78e-c82af2e11ba1")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:N,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=De(),i=Oe(),[A,S]=m.useState(!1),q=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,j=F(f),J=F(P.fetchState),Q=F(D.fetchState),Z=F(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>H(e),[e]),values:H(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&j==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||Q==="In-Progress"&&D.fetchState==="Completed"||Z==="In-Progress"&&O.fetchState==="Completed")&&w.reset(H(e))},[j,f,w,e,Q,D.fetchState,Z,O.fetchState]);const Ve=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),je=async(x,E)=>{const o=E[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=M.find(R=>R.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(R=>R.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((E,{name:o})=>{o!=null&&E!=null&&Ue(()=>je(o,E))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&N()},[N,J,P.fetchState]);const{commonSetUp:Be,spendManagement:Ee}=Re.getLocalizedStrings(),{setUp:r}=Be,{billPaySetup:l}=Ee.billPay,$=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),U=T?.isBillPayEnabled===!0,Fe=$?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=k.mode==="light"?new K(k.colors.brandColorJadeLight):new K(k.colors.brandColorJadeDark),_e=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(Le,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:He.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(Ne,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!U&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:q,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Fe}),We?t.jsx(rt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...w,children:t.jsx("form",{id:Y(X),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(L,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:M,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(L,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(L,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ke,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),$&&!U&&V.length>0?t.jsx(Ye,{formId:Y(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(et,{isFooterRendered:$&&!U,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as
|
|
1
|
+
import{g as Se,e as we,aa as Ce,cQ as Pe,aX as k,O as xe,V as t,x as P,bE as Ie,L as Ae,ae as ve,by as je,cR as ke,aT as $e,o as s,i1 as Te,fd as De,fe as Ve,u as x,an as Ee,h6 as Be,d as Le,N as ze}from"./index-BeBXELGm.js";import{a as F}from"./sentry-C-_CW7F_.js";import{n as r}from"./mui-DyrXxcaY.js";import{F as Oe,o as R,t as _e}from"./PaymentAccountSetupBillingAddressSection-D1ZDh1GY-n_87Pisd.js";import{F as Me}from"./SetUpAccountSection-BSOGwHCj-KS8UdoT_.js";import"./liveblocks-Ckf7CW56.js";import"./core-UsQu6ilI.js";import"./recharts-ChhaK6iT.js";import"./zeni-epic-state-CQ4Yidqa.js";import"./lottie-70oTIUav.js";import"./analytics-CivFEuof.js";import"./lexical-BKjLQtIV.js";import"./utils-CdVNjKQw.js";import"./commonTypes-CF6UyWSv-tnGFHb_I.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="3578b2c4-3628-41f5-88bc-0463b513416b",e._sentryDebugIdIdentifier="sentry-dbid-3578b2c4-3628-41f5-88bc-0463b513416b")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Fe={title:new ze("standardSemiBold","largeSemiBold")},H="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:U,stripeKey:K,googleAPIKey:q,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const w=Se(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,D=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:W(i),values:W(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(G)}),V=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:S}=a[n].street,j=De(S?.country);u={street:a[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Ve(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const E=w.mode==="light"?new k(w.colors.brandColorJadeLight):new k(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:b}},common:l,billingSetupPage:B}=xe.getLocalizedStrings(),ge=B.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,z=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(b.header,b.titleText,b.protectedCardNo,h);let _;L&&(_={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:R(z).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:R(z).name}),color:new k(E)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,be]=F.useState(!1);return t.jsxs(He,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:B.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(Re,{windowSize:o,children:[t.jsx(We,{windowSize:o,children:ge}),ue?t.jsx(Ne,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:N(H),onSubmit:pe,children:t.jsxs(Ue,{windowSize:o,children:[t.jsx(Me,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:b.header,sectionTitle:b.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:D?.code==="require_info"||D?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:_,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),Ke(o,l.headers.billingAddress,ce,q,d)]})})})}),ke(f.formState.dirtyFields)?t.jsx($e,{formId:N(H),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:V?.fetchState==="In-Progress",isDisabled:V?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(_e,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:U.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:M,setCardSetupInProgress:be})]})},W=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},Re=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as b,cy as V,cz as z,cA as M,ko as W,a_ as q,O as H}from"./index-
|
|
1
|
+
import{V as b,cy as V,cz as z,cA as M,ko as W,a_ as q,O as H}from"./index-BeBXELGm.js";import{a as g}from"./sentry-C-_CW7F_.js";import{H9 as J}from"./zeni-epic-state-CQ4Yidqa.js";import{u as X}from"./ReviewOverlay-Ubmz06uP-Cm36Xckx.js";import"./liveblocks-Ckf7CW56.js";import"./core-UsQu6ilI.js";import"./recharts-ChhaK6iT.js";import"./mui-DyrXxcaY.js";import"./lottie-70oTIUav.js";import"./analytics-CivFEuof.js";import"./lexical-BKjLQtIV.js";import"./utils-CdVNjKQw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="259a1375-4cba-488b-a4a3-960de73db379",e._sentryDebugIdIdentifier="sentry-dbid-259a1375-4cba-488b-a4a3-960de73db379")}catch{}})();const{common:s,spendManagement:{billPay:x}}=H.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:_,currentSubTab:f}=e,u=i==="review",[C,w]=g.useState(!1),[n,v]=g.useState(T(e,u)),[p,k]=g.useState(u),[P,E]=g.useState(0),[y,j]=g.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});g.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(I),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),P===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,P,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,_,f),w(!0)},D={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,_,f,Y(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:F}=G(m,h,R,p),B=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,_,f),l(i)},U={label:B?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:B?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(M,{children:y.title}),descriptionComponent:b.jsx(z,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:N,description:{content:F,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:O,hideCancel:B}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:q("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&J(t.reviewErrors[0].reviewErrorCode),subTitle:K(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},Y=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=W([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},G=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:_,is:f,do_:u,does:C}=s.texts,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?_:f)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},K=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,Y as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as l,V as s,ac as b,o as e}from"./index-
|
|
1
|
+
import{e as l,V as s,ac as b,o as e}from"./index-BeBXELGm.js";import{n as a}from"./mui-DyrXxcaY.js";import{o as p}from"./commonDimensions-CzWWgDTA-CZ5JdBHB.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="6bb66440-5059-4a2e-8225-88b0cb8ccab6",o._sentryDebugIdIdentifier="sentry-dbid-6bb66440-5059-4a2e-8225-88b0cb8ccab6")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -26,7 +26,7 @@ import{e as l,V as s,ac as b,o as e}from"./index-B0kAPzkH.js";import{n as a}from
|
|
|
26
26
|
&:hover {
|
|
27
27
|
border-bottom-width: 1px;
|
|
28
28
|
}
|
|
29
|
-
`,
|
|
29
|
+
`,u=a(n)`
|
|
30
30
|
display: flex;
|
|
31
31
|
border-top-width: 0.5px;
|
|
32
32
|
border-right-width: 1px;
|
|
@@ -39,7 +39,7 @@ import{e as l,V as s,ac as b,o as e}from"./index-B0kAPzkH.js";import{n as a}from
|
|
|
39
39
|
&:hover {
|
|
40
40
|
border-top-width: 1px;
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
42
|
+
`,x=a(n)`
|
|
43
43
|
display: flex;
|
|
44
44
|
border-radius: ${e.sp0};
|
|
45
45
|
border-top-width: 0.5px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as dt,e as ut,aS as ve,V as a,ag as W,aa as pt,d4 as mt,aA as ft,cQ as yt,a_ as Te,aR as Oe,go as ht,a as gt,bE as xt,ac as St,cR as wt,cy as Ct,cz as bt,cA as Dt,L as vt,ae as Tt,aT as Ot,o as l,x as V,ao as je,O as Ae,gp as It,fM as Ie,fd as Nt,c as kt,b as $t,an as Fe,N as Pt,M as Vt,u as N}from"./index-B0kAPzkH.js";import{a as j}from"./sentry-xNvKSthz.js";import{n as d}from"./mui-B_fu8zAT.js";import{FD as jt,bi as Y,G9 as At,G8 as Ft,Ga as _t}from"./zeni-epic-state-SAYXyeZn.js";import{r as Lt,z as Bt}from"./CompanyOfficerDetailsSection-BY8hFQnp-BohttHRK.js";import"./liveblocks-CN5hALk7.js";import"./core-C_RwbDgZ.js";import"./recharts-BkmpOx_p.js";import"./lottie-B-zs781A.js";import"./analytics-TwdLweES.js";import"./lexical-DZ4skawM.js";import"./utils-4bW-VyLb.js";import"./helper-DkzA3y2L-BlJrvZUd.js";import"./LabeledAddressValueField-Cz6tRMoW-DbcbPzP_.js";import"./LabeledCountryMultiSelectField-1kTcZMQW-Dlcc8TAS.js";import"./LabeledCreatableSingleSelectField-PiLB1S77-DNp7Z1Qc.js";import"./LabeledDocumentField-Cicw8ABs-oj7tT2jS.js";import"./commonTypes-CfAg6Jvv-DG06gejU.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new t.Error().stack;S&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="e14b45c7-c011-4db6-9279-29fe8984932e",t._sentryDebugIdIdentifier="sentry-dbid-e14b45c7-c011-4db6-9279-29fe8984932e")}catch{}})();const x={width:new V(343,580,726),titleWidth:new V(343,580,726,826),subTitlePaddingTop:new V(12,N[3]),subTitlePaddingBottom:new V(N[3],N[3]),verificationDetailsRowGap:new V(12,N[5],N[5]),termsPaddingLeftRight:new V(N[0],N[3])},zt={stepTitle:new Pt("h6Regular","h5Regular")},Ne="businessVerificationPage",D="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:Et,currency:ke,footer:$e,strings:{empty:Rt}}}=Ae.getLocalizedStrings(),Ta=({businessVerificationDetails:t,allNationalityCountries:S,verficationDetailsFetchState:k,isRefreshingViewInBackground:L,filesEndPoint:i,authParams:B,productType:y,allIndustries:A,companyTitles:z,maxInsuredAmount:m,isDisabled:$,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:Q=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Le,onBackClick:F,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:Ge,saveNewAddressInLocalStore:oe,onSaveDetailsClick:We,onClickMenuIcon:Ye,onExecuteTreasuryTransfer:Qe})=>{const Ze=dt(),u=ut(),{updateStatus:R,companyView:_,companyDetailsLocalData:r,companyOfficerLocalData:C}=t,qe=ve(R.fetchState),M=_?.company.company.featuresActivationInfo.connectedAccountProvider,Je=M==="unit"?a.jsxs(Jt,{children:[s.terms.term1,a.jsx(W,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(W,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(W,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(W,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ke,Z]=j.useState(!1),[U,re]=j.useState("save"),[q,He]=j.useState(!1),p=pt({mode:"all",reValidateMode:"onChange",defaultValues:Mt(t,A,z,S)}),{isValid:Xe}=p.formState,G=_?.company.company.companyBillPayInfo,J=_?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?J?.companyVerificationStatus:G?.companyVerificationStatus,T=Object.values(C).findIndex(e=>e?.isSelectedForVerification===!0),O=`Officer_${T<0?1:T+1}`,et=()=>{const e=C[O],n=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,b=e?.firstName,I=e?.lastName,ue=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,me=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?Y(fe):void 0,he=r?.companyDescription,X=r?.companyLegalName,ge=r?.companyIndustry,xe=r?.phone,Se=r?.website,we=r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0,ee=r?.primaryContactLocalData,Ce=ee?.firstName,be=ee?.lastName,De=ee?.email;n!=null&&f!=null&&b!=null&&I!=null&&c!=null&&ue!=null&&me!=null&&ye!=null&&pe!=null&&he!=null&&X!=null&&xe!=null&&Se!=null&&ge!=null&&X!=null&&we!=null&&Ce!=null&&be!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:I,companyRole:ue,phone:me,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:X,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:be,email:De},y,o?"Settings":void 0)},tt=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,b=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):b&&!I?((!n?.firstName||!n?.lastName)&&p.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&p.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||K!=null&&K?.length>0)return p.trigger(`${v}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&C[O]?.isPhoneVerified!==!0){p.setError(`${v}.${T}.phone`,{type:"custom"});return}const e=mt(Object.values(C).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(r?.deleteFileStatusById??{}).filter(c=>c!=null);jt(e.concat(n)).fetchState!=="In-Progress"&&Xe&&(et(),Re?.(O),Q===!0&&Qe?.())}),st=async(e,n)=>{e.includes(D)?Me?.(n[D]):e.includes(v)&&Ge?.(n[v])},nt=j.useCallback(ft((e,n)=>{st(e,n)},300),[]);j.useEffect(()=>{const e=p.watch((n,{name:c})=>{c!=null&&n!=null&&yt(()=>nt(c,n))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${D}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,oe,p]);const ce=_?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),K=ce?.map(e=>e.user),ot=ce?.map(e=>e.role),rt={onOkClick:()=>{Z(!1),F();const e=[],n=_?.company.company.incInfo.fileIds??[];p.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||e.push(c)}),ot?.forEach((c,f)=>{const b=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{b.includes(I)||e.push(I)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{Z(!1)}},lt=Te(Oe(m),m,ke.currencySymbol).toUpperCase(),H=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;if(y==="zeni_treasury"&&P?.code==="pending_review"&&qe==="In-Progress"&&R.fetchState==="Completed")return a.jsxs(ia,{children:[a.jsxs(sa,{children:[a.jsx(ht,{}),a.jsx(na,{windowSize:u,children:Q===!0?s.submittedTitleWithTransfer:s.submittedTitle}),a.jsx(aa,{isReadonly:!1,children:Q===!0?s.submittedDescriptionWithTransfer.replace("__amount__",Te(Oe(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,ke.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):s.submittedDescription})]}),a.jsx(gt,{label:s.submittedButton,onClick:()=>{F(),te?.()},variant:"primary"})]});const ct=()=>{const e=G?.companyVerificationStatus?.code==="verified",n=(r?.countriesOfOperations?.length??0)>0||r?.companySourceOfFunds!=null||r?.transactionVolume!=null||r?.purposeOfAccount!=null||r?.registeredAddressStatus!=null||r?.usNexus!=null;return e===!0&&n===!1};return a.jsxs(Ut,{isSettings:o,children:[a.jsx(xt,{title:h&&w===!0?Rt:s.header,backgroundColor:Ze.colors.grey5,style:{zIndex:q?1:4},onBackClick:()=>{wt(p.formState.dirtyFields)?Z(!0):F()},showBackButton:!o&&!h,showMenuIcon:o?u==="medium-compact"||u==="small":!1,onClickMenuIcon:Ye,rightSideComponent:h?a.jsx(oa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{F(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(Ct,{titleComponent:a.jsx(Dt,{children:s.discardTitle}),descriptionComponent:a.jsx(bt,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:rt}):null,a.jsxs(Yt,{windowSize:u,children:[(!h||w===!1)&&a.jsx(Wt,{windowSize:u,children:o?Et.infoText.businessVerification:s.title}),k==="In-Progress"||k==="Not-Started"?a.jsx(Qt,{children:a.jsx(vt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...p,children:a.jsxs("form",{id:Pe(Ne),onSubmit:it,children:[h&&w===!0&&a.jsxs(Gt,{children:[a.jsxs(Kt,{windowSize:u,children:[a.jsx(Ht,{windowSize:u,children:H?s.businessVerificationDetails:de?s.verifyBusinessDetails:s.verifyBusinessDetailsWithoutTransfer}),!H&&a.jsx(Xt,{children:a.jsxs(ea,{children:[a.jsx(Ve,{}),de&&a.jsx(Ve,{}),a.jsx(ta,{})]})})]}),a.jsx(_e,{isReadonly:H,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(Zt,{children:[a.jsx(Lt,{companyOfficerData:C,allNationalityCountries:S,allOfficers:K??[],sectionId:v,isRefreshingViewInBackground:L,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:$,filesEndPoint:i,authParams:B,isPopupOpen:q,openPopup:He,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Bt,{companyDetails:r,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:L},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",hideNewOnboardingFields:ct(),sectionId:D,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":$,fileProps:{authParams:B,filesEndPoint:i,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Le,connectedAccountProvider:M,allIndustries:A,allNationalityCountries:S})]}),y==="zeni_accounts"?a.jsx(qt,{windowSize:u,children:s.threadText.replace("__amount__",lt)}):null]})})]}),k==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":G?.businessVerificationStatus?.code!=="pending_review"&&G?.businessVerificationStatus?.code!=="verified")?a.jsx(Ot,{formId:Pe(Ne),primaryBtn:{label:w?$e.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:u==="small"?x.width.valuePx(u):"auto",justifyContent:u==="small"?"space-between":"center"},helperStyle:{width:u==="small"?x.width.valuePx(u):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(u),paddingRight:x.termsPaddingLeftRight.valuePx(u),textAlign:u==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?$e.back:s.saveDetailsButton,style:{width:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)F();else{const e=C[O],n=r?.primaryContactLocalData;U!=="save"&&re("save");const c=e?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?Y(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:r?.companyDescription,legalName:r?.companyLegalName,phone:r?.phone,website:r?.website?.toString(),industry:r?.companyIndustry??"",formattedAddress:r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),We?.(O))}}},helperText:Je,style:{padding:`12px ${l.sp3}`,zIndex:q?0:4}}):null]})},Mt=(t,S,k,L)=>{const{companyDetailsLocalData:i,companyOfficerLocalData:B,companyView:y}=t,A=Ae.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:i?.companyDescription??"",ein:i?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:i?.companyId??"",syncToken:i?.syncToken,companyLegalName:i?.companyLegalName??"",companyWebsite:i?.website?.toString()??"",companyAddress:i?.addressStatus?.addressToCreate,registeredAddress:i?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:i?.companyIndustry,allOptions:S?.map(m=>m.code)},companyPhone:i?.phone??"",companyTaxId:i?.taxIdOrEIN??"",primaryContactName:{firstName:i?.primaryContactLocalData?.firstName??"",lastName:i?.primaryContactLocalData?.lastName??""},primaryContactEmail:i?.primaryContactLocalData?.email??"",primaryContactUserId:i?.primaryContactLocalData?.userId,primaryContactSyncToken:i?.primaryContactLocalData?.syncToken,fileIds:i?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:i?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:i?.incDate?.toDate(),typeOfIncorporation:{selectedOption:i?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:i?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:i?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:i?.companySourceOfFunds??"",allOptions:Object.keys(s.companySourceOfFundOptions??{})},companySourceOfFundsDescription:i?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:i?.transactionVolume,allOptions:[..._t]},transactionVolumeDescription:i?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:i?.purposeOfAccount,allOptions:[...Ft]},purposeOfAccountDescription:i?.purposeOfAccountDescription??"",usNexus:i?.usNexus??"",usNexusTypes:{selectedOptions:i?.usNexusTypes??[],allOptions:[...At]},regulatedStatus:i?.regulatedStatus??"",regulatedStatusDescription:i?.regulatedStatusDescription??""},[v]:Object.values(B).map((m,$)=>{const o=m,h=It(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${$+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:Nt(o?.nationalityCountryCode,L.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:k?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&$===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},Pe=t=>`${t}_form`,Ut=d.div`
|
|
1
|
+
import{g as dt,e as ut,aS as ve,V as a,ag as W,aa as pt,d4 as mt,aA as ft,cQ as yt,a_ as Te,aR as Oe,go as ht,a as gt,bE as xt,ac as St,cR as wt,cy as Ct,cz as Dt,cA as bt,L as vt,ae as Tt,aT as Ot,o as l,x as V,ao as je,O as Ae,gp as It,fM as Ie,fd as Nt,c as kt,b as $t,an as Fe,N as Pt,M as Vt,u as N}from"./index-BeBXELGm.js";import{a as j}from"./sentry-C-_CW7F_.js";import{n as d}from"./mui-DyrXxcaY.js";import{FD as jt,bi as Y,G9 as At,G8 as Ft,Ga as _t}from"./zeni-epic-state-CQ4Yidqa.js";import{r as Lt,z as Bt}from"./CompanyOfficerDetailsSection-6LXCxWYP-BOArKbIF.js";import"./liveblocks-Ckf7CW56.js";import"./core-UsQu6ilI.js";import"./recharts-ChhaK6iT.js";import"./lottie-70oTIUav.js";import"./analytics-CivFEuof.js";import"./lexical-BKjLQtIV.js";import"./utils-CdVNjKQw.js";import"./helper-COxPEvgL-D-otlmR3.js";import"./LabeledAddressValueField-CAr-IiTa-D1mstd2j.js";import"./LabeledCountryMultiSelectField-C6z1v9S1-DPwnmiSc.js";import"./LabeledCreatableSingleSelectField-Dhi0n2ky-YUVM0TAv.js";import"./LabeledDocumentField-B3QSq1eM-CJX89Dc7.js";import"./commonTypes-CF6UyWSv-tnGFHb_I.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new t.Error().stack;S&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="4ac8a83e-cec8-4fef-9e73-5cfd00ad0034",t._sentryDebugIdIdentifier="sentry-dbid-4ac8a83e-cec8-4fef-9e73-5cfd00ad0034")}catch{}})();const x={width:new V(343,580,726),titleWidth:new V(343,580,726,826),subTitlePaddingTop:new V(12,N[3]),subTitlePaddingBottom:new V(N[3],N[3]),verificationDetailsRowGap:new V(12,N[5],N[5]),termsPaddingLeftRight:new V(N[0],N[3])},zt={stepTitle:new Pt("h6Regular","h5Regular")},Ne="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:Et,currency:ke,footer:$e,strings:{empty:Rt}}}=Ae.getLocalizedStrings(),Ta=({businessVerificationDetails:t,allNationalityCountries:S,verficationDetailsFetchState:k,isRefreshingViewInBackground:L,filesEndPoint:i,authParams:B,productType:y,allIndustries:A,companyTitles:z,maxInsuredAmount:m,isDisabled:$,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:Q=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Le,onBackClick:F,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:Ge,saveNewAddressInLocalStore:oe,onSaveDetailsClick:We,onClickMenuIcon:Ye,onExecuteTreasuryTransfer:Qe})=>{const Ze=dt(),u=ut(),{updateStatus:R,companyView:_,companyDetailsLocalData:r,companyOfficerLocalData:C}=t,qe=ve(R.fetchState),M=_?.company.company.featuresActivationInfo.connectedAccountProvider,Je=M==="unit"?a.jsxs(Jt,{children:[s.terms.term1,a.jsx(W,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(W,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(W,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(W,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ke,Z]=j.useState(!1),[U,re]=j.useState("save"),[q,He]=j.useState(!1),p=pt({mode:"all",reValidateMode:"onChange",defaultValues:Mt(t,A,z,S)}),{isValid:Xe}=p.formState,G=_?.company.company.companyBillPayInfo,J=_?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?J?.companyVerificationStatus:G?.companyVerificationStatus,T=Object.values(C).findIndex(e=>e?.isSelectedForVerification===!0),O=`Officer_${T<0?1:T+1}`,et=()=>{const e=C[O],n=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,D=e?.firstName,I=e?.lastName,ue=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,me=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?Y(fe):void 0,he=r?.companyDescription,X=r?.companyLegalName,ge=r?.companyIndustry,xe=r?.phone,Se=r?.website,we=r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0,ee=r?.primaryContactLocalData,Ce=ee?.firstName,De=ee?.lastName,be=ee?.email;n!=null&&f!=null&&D!=null&&I!=null&&c!=null&&ue!=null&&me!=null&&ye!=null&&pe!=null&&he!=null&&X!=null&&xe!=null&&Se!=null&&ge!=null&&X!=null&&we!=null&&Ce!=null&&De!=null&&be!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:D,lastName:I,companyRole:ue,phone:me,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:X,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:De,email:be},y,o?"Settings":void 0)},tt=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,D=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):D&&!I?((!n?.firstName||!n?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||K!=null&&K?.length>0)return p.trigger(`${v}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&C[O]?.isPhoneVerified!==!0){p.setError(`${v}.${T}.phone`,{type:"custom"});return}const e=mt(Object.values(C).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(r?.deleteFileStatusById??{}).filter(c=>c!=null);jt(e.concat(n)).fetchState!=="In-Progress"&&Xe&&(et(),Re?.(O),Q===!0&&Qe?.())}),st=async(e,n)=>{e.includes(b)?Me?.(n[b]):e.includes(v)&&Ge?.(n[v])},nt=j.useCallback(ft((e,n)=>{st(e,n)},300),[]);j.useEffect(()=>{const e=p.watch((n,{name:c})=>{c!=null&&n!=null&&yt(()=>nt(c,n))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,oe,p]);const ce=_?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),K=ce?.map(e=>e.user),ot=ce?.map(e=>e.role),rt={onOkClick:()=>{Z(!1),F();const e=[],n=_?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{n.includes(c)||e.push(c)}),ot?.forEach((c,f)=>{const D=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{D.includes(I)||e.push(I)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{Z(!1)}},lt=Te(Oe(m),m,ke.currencySymbol).toUpperCase(),H=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;if(y==="zeni_treasury"&&P?.code==="pending_review"&&qe==="In-Progress"&&R.fetchState==="Completed")return a.jsxs(ia,{children:[a.jsxs(sa,{children:[a.jsx(ht,{}),a.jsx(na,{windowSize:u,children:Q===!0?s.submittedTitleWithTransfer:s.submittedTitle}),a.jsx(aa,{isReadonly:!1,children:Q===!0?s.submittedDescriptionWithTransfer.replace("__amount__",Te(Oe(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,ke.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):s.submittedDescription})]}),a.jsx(gt,{label:s.submittedButton,onClick:()=>{F(),te?.()},variant:"primary"})]});const ct=()=>{const e=G?.companyVerificationStatus?.code==="verified",n=(r?.countriesOfOperations?.length??0)>0||r?.companySourceOfFunds!=null||r?.transactionVolume!=null||r?.purposeOfAccount!=null||r?.registeredAddressStatus!=null||r?.usNexus!=null;return e===!0&&n===!1};return a.jsxs(Ut,{isSettings:o,children:[a.jsx(xt,{title:h&&w===!0?Rt:s.header,backgroundColor:Ze.colors.grey5,style:{zIndex:q?1:4},onBackClick:()=>{wt(p.formState.dirtyFields)?Z(!0):F()},showBackButton:!o&&!h,showMenuIcon:o?u==="medium-compact"||u==="small":!1,onClickMenuIcon:Ye,rightSideComponent:h?a.jsx(oa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{F(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(Ct,{titleComponent:a.jsx(bt,{children:s.discardTitle}),descriptionComponent:a.jsx(Dt,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:rt}):null,a.jsxs(Yt,{windowSize:u,children:[(!h||w===!1)&&a.jsx(Wt,{windowSize:u,children:o?Et.infoText.businessVerification:s.title}),k==="In-Progress"||k==="Not-Started"?a.jsx(Qt,{children:a.jsx(vt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...p,children:a.jsxs("form",{id:Pe(Ne),onSubmit:it,children:[h&&w===!0&&a.jsxs(Gt,{children:[a.jsxs(Kt,{windowSize:u,children:[a.jsx(Ht,{windowSize:u,children:H?s.businessVerificationDetails:de?s.verifyBusinessDetails:s.verifyBusinessDetailsWithoutTransfer}),!H&&a.jsx(Xt,{children:a.jsxs(ea,{children:[a.jsx(Ve,{}),de&&a.jsx(Ve,{}),a.jsx(ta,{})]})})]}),a.jsx(_e,{isReadonly:H,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(Zt,{children:[a.jsx(Lt,{companyOfficerData:C,allNationalityCountries:S,allOfficers:K??[],sectionId:v,isRefreshingViewInBackground:L,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:$,filesEndPoint:i,authParams:B,isPopupOpen:q,openPopup:He,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Bt,{companyDetails:r,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:L},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",hideNewOnboardingFields:ct(),sectionId:b,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":$,fileProps:{authParams:B,filesEndPoint:i,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Le,connectedAccountProvider:M,allIndustries:A,allNationalityCountries:S})]}),y==="zeni_accounts"?a.jsx(qt,{windowSize:u,children:s.threadText.replace("__amount__",lt)}):null]})})]}),k==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":G?.businessVerificationStatus?.code!=="pending_review"&&G?.businessVerificationStatus?.code!=="verified")?a.jsx(Ot,{formId:Pe(Ne),primaryBtn:{label:w?$e.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:u==="small"?x.width.valuePx(u):"auto",justifyContent:u==="small"?"space-between":"center"},helperStyle:{width:u==="small"?x.width.valuePx(u):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(u),paddingRight:x.termsPaddingLeftRight.valuePx(u),textAlign:u==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?$e.back:s.saveDetailsButton,style:{width:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)F();else{const e=C[O],n=r?.primaryContactLocalData;U!=="save"&&re("save");const c=e?.email??"",f=tt(),D=at();f&&D&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?Y(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:r?.companyDescription,legalName:r?.companyLegalName,phone:r?.phone,website:r?.website?.toString(),industry:r?.companyIndustry??"",formattedAddress:r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),We?.(O))}}},helperText:Je,style:{padding:`12px ${l.sp3}`,zIndex:q?0:4}}):null]})},Mt=(t,S,k,L)=>{const{companyDetailsLocalData:i,companyOfficerLocalData:B,companyView:y}=t,A=Ae.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:i?.companyDescription??"",ein:i?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:i?.companyId??"",syncToken:i?.syncToken,companyLegalName:i?.companyLegalName??"",companyWebsite:i?.website?.toString()??"",companyAddress:i?.addressStatus?.addressToCreate,registeredAddress:i?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:i?.companyIndustry,allOptions:S?.map(m=>m.code)},companyPhone:i?.phone??"",companyTaxId:i?.taxIdOrEIN??"",primaryContactName:{firstName:i?.primaryContactLocalData?.firstName??"",lastName:i?.primaryContactLocalData?.lastName??""},primaryContactEmail:i?.primaryContactLocalData?.email??"",primaryContactUserId:i?.primaryContactLocalData?.userId,primaryContactSyncToken:i?.primaryContactLocalData?.syncToken,fileIds:i?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:i?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:i?.incDate?.toDate(),typeOfIncorporation:{selectedOption:i?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:i?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:i?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:i?.companySourceOfFunds??"",allOptions:Object.keys(s.companySourceOfFundOptions??{})},companySourceOfFundsDescription:i?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:i?.transactionVolume,allOptions:[..._t]},transactionVolumeDescription:i?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:i?.purposeOfAccount,allOptions:[...Ft]},purposeOfAccountDescription:i?.purposeOfAccountDescription??"",usNexus:i?.usNexus??"",usNexusTypes:{selectedOptions:i?.usNexusTypes??[],allOptions:[...At]},regulatedStatus:i?.regulatedStatus??"",regulatedStatusDescription:i?.regulatedStatusDescription??""},[v]:Object.values(B).map((m,$)=>{const o=m,h=It(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${$+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:Nt(o?.nationalityCountryCode,L.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:k?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&$===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},Pe=t=>`${t}_form`,Ut=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as m,V as r,O as w,w as y,o as a,N as x,M as b}from"./index-
|
|
1
|
+
import{e as m,V as r,O as w,w as y,o as a,N as x,M as b}from"./index-BeBXELGm.js";import{n as o}from"./mui-DyrXxcaY.js";import{a as n}from"./sentry-C-_CW7F_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="19151f8c-41d0-4c05-92c7-dfa3637967a7",e._sentryDebugIdIdentifier="sentry-dbid-19151f8c-41d0-4c05-92c7-dfa3637967a7")}catch{}})();const $=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=w.getLocalizedStrings(),C={subText:new x("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code==="request_on_hold"||!s?d:i,c=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,r.jsx(H,{}),d,c&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,c&&s?r.jsx(u,{}):null]})},v=o(b)`
|
|
2
2
|
${e=>e.forDetailPage?{...y.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|