@zeniai/web-cockpit-ui 1.14.1-pune → 1.14.2-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-CRqyoYEz-DIIEbfXH.js → ACHDetailsPage-CfXmiXOX-Bw6PIXTR.js} +3 -3
- package/dist/assets/{AIPerformancePage-DAkvkXSA-DCPKp1TL.js → AIPerformancePage-BTkeAbzQ-BrardM2A.js} +48 -38
- package/dist/assets/{AccountInfoPage-6EVpo7mW-_VH4qo0L.js → AccountInfoPage-Cw14e1jO-BsUim3eq.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BWZbyIYz-DsBeIJ7e.js → AccountInfoPageContent-cvYWnpel-CJmb2W-r.js} +15 -15
- package/dist/assets/{AccountReconDetailsDrawerPage-DLd_igXD-BDzMROTl.js → AccountReconDetailsDrawerPage-DOKqIknC-DSx-KpKz.js} +12 -12
- package/dist/assets/{AccountRow-D4iz2vCr-CUjY-as_.js → AccountRow-Ca-OS9TF-boQKAn9P.js} +20 -20
- package/dist/assets/{AccountsPromoCardStack-DIly1lFF-CoHITgz2.js → AccountsPromoCardStack-CwEVkbGD-GfsHQDZG.js} +19 -19
- package/dist/assets/{AddAddressForCardDrawer-C90j4Cwr-BuafF6k2.js → AddAddressForCardDrawer-B1zyrJMb-gDNlBeVv.js} +2 -2
- package/dist/assets/{AddToWalletPage-Bo2KesYz-CXFPlcd_.js → AddToWalletPage-s7c161JX-Bbl7vvY4.js} +37 -37
- package/dist/assets/{AgingReportsPage-DuoKsSkU-BM--piTX.js → AgingReportsPage-Be-2Z_KS-Cp8WnRhH.js} +4 -4
- package/dist/assets/{AllUserItems-C0U1Brjm-1EugRjNx.js → AllUserItems-B4Iah9-Z-B79SOI6_.js} +6 -6
- package/dist/assets/{ApAgingDetailPage-dNwAZULr-CSLYB9s5.js → ApAgingDetailPage-D_KV9urv-CMDNQ6iG.js} +4 -4
- package/dist/assets/{AppBasePage-CfkaWEbJ-DSSQmZ3n.js → AppBasePage-GbE58C1g-BcYXZw8U.js} +4 -4
- package/dist/assets/{AppDrawerContent-DlHQEgOZ-Bu6aM3IO.js → AppDrawerContent-YTvkEPk_-6eMbUyIc.js} +57 -31
- package/dist/assets/{ApprovalRulesSettingsPage-Pl7HoLmk-0ndkNfLh.js → ApprovalRulesSettingsPage-Cct7Nzfb-BnkTkJjh.js} +6 -6
- package/dist/assets/{ArAgingChart-xI9TRvfS-BJS1mtHm.js → ArAgingChart-BeVadylU-XR25EAL6.js} +4 -4
- package/dist/assets/{ArAgingDetailPage-BMGCnP5d-CqfkCp13.js → ArAgingDetailPage-CWUA4S2q-Ww5hXmPO.js} +2 -2
- package/dist/assets/{AttachmentView-C8AgUAnY-CDH1Mcyw.js → AttachmentView-DGsub__A-BBxOr8Ij.js} +5 -5
- package/dist/assets/{BankAccountSection-DB4PEf_X-DiW8OD4p.js → BankAccountSection-CtTkNBok-D2ekA6eB.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-BNO8Gl59-DLhau1xe.js → BankAccountWarningSection-dVdrPYm5-CnmYzGhr.js} +8 -8
- package/dist/assets/BankConnectionsSettingsPage-_e4jMGI2-DH8UTyN3.js +425 -0
- package/dist/assets/{BillDetailPage-Bv86SywV-6njFGhnW.js → BillDetailPage-Dz4_gdDb-ycU3JEwF.js} +7 -7
- package/dist/assets/{BillPayApprovalRuleDetailPage-CDXxmD-3-GLg1j3lZ.js → BillPayApprovalRuleDetailPage-DcNLlDh2-B0LeGU7-.js} +2 -2
- package/dist/assets/{BillPayApprovalRulesPage-Ci5Ok7Zj-BsfoZbfz.js → BillPayApprovalRulesPage-C_NDjp6G-D74xT3Vs.js} +8 -8
- package/dist/assets/{BillPayPromoPage-Co2j2krO-D4iqOCut.js → BillPayPromoPage-TkLMkxeC-CRgciQY3.js} +5 -5
- package/dist/assets/BillPaySetUpPage-DTGSGVO0-BjFYWMnM.js +42 -0
- package/dist/assets/{BillingSettingsPage-CAs7DZQz-De2Ozj6L.js → BillingSettingsPage-0RLFEj6x-1Rx-lW-z.js} +5 -5
- package/dist/assets/BillsBulkReviewDrawerPage-rkkXgsz4-DCe7oECG.js +1 -0
- package/dist/assets/{BoxItem-BqLhtWoJ-DTGdC4UO.js → BoxItem-CIBzy4ZV-BGT6YXil.js} +1 -1
- package/dist/assets/BusinessVerificationPage-T63_ft8O-BLj5IAMR.js +140 -0
- package/dist/assets/{CardNumberSubText-23sLjCVt-q9DlwjXk.js → CardNumberSubText-FOFiHz-M-BomqpZHj.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DY0n94jz-DZrOsGII.js → CashbackDetailPage-C1rbQ71n-BwGr1RFv.js} +19 -19
- package/dist/assets/ChargeCardDetailPage-OgsnesGD-BZdk7_5L.js +1447 -0
- package/dist/assets/ChargeCardListPage-CLHFYydY-CXTzCBUe.js +355 -0
- package/dist/assets/{ChargeCardListTable-B7uRDVzb-nPrrXfLF.js → ChargeCardListTable-ePSGyBtc-B6G4rFZ9.js} +17 -17
- package/dist/assets/ChargeCardPromoPage-Bi9cAv-f-5sPJiGwd.js +219 -0
- package/dist/assets/ChargeCardSetupPage-DvlKbA_C-AlRyM6Q7.js +36 -0
- package/dist/assets/{ChargeCardStatementsPage-JEslDm3r-Dz93LMxW.js → ChargeCardStatementsPage-CXhcA95f-C45_cho2.js} +3 -3
- package/dist/assets/{ChargeCardUtils-B3JEziD7-BDgvm4V8.js → ChargeCardUtils--ltNyvP2-TY5I7nE-.js} +1 -1
- package/dist/assets/{ChaseOverlay-KLet3F9X-CdWRAKXV.js → ChaseOverlay-CxEiwxZq-CYOJ8ZhP.js} +6 -6
- package/dist/assets/{CheckDepositDrawerPage-JYHyo9Hw-CPcUjCHP.js → CheckDepositDrawerPage-CmZbDsc3-C6Gzx2Ad.js} +16 -16
- package/dist/assets/CollapsableReportTable-CyQ4sWuS-DlLXYbkM.js +2932 -0
- package/dist/assets/{CompanyOfficerDetailsSection-DWqEolPc-hNs6b-3g.js → CompanyOfficerDetailsSection-DPufRe0m-C6FmxOML.js} +27 -27
- package/dist/assets/{CompanyPassportCard-fyolEQTs-BM4j1zkv.js → CompanyPassportCard-JgslGZ14-CZLKyeTG.js} +4 -4
- package/dist/assets/{CompanyPassportPage-CrgsRRVr-_nJlM00G.js → CompanyPassportPage-B89YFcPT-CNi42FVb.js} +144 -144
- package/dist/assets/CompleteProfile-D0RvVu97-BvDLvwiX.js +36 -0
- package/dist/assets/{ConfettiBurst-CZuMHGP8-b0M1vB-_.js → ConfettiBurst-D3BYCsW2-CicOQOeb.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-Ct4Kfowi-Dl-XZ9XF.js → CreateOrEditVendorPage-C6Ddagzy-CrkxkCuT.js} +13 -13
- package/dist/assets/{CreditCardPaymentDrawerPage-Cpu-7pGN-Cu9Xh0nq.js → CreditCardPaymentDrawerPage-C3mZhiZb-D2CoSxGr.js} +6 -6
- package/dist/assets/{CreditCardPaymentPlgSection-DoMaCnIZ-CNIK2scQ.js → CreditCardPaymentPlgSection-D9oAn9qk-hoy3ieFS.js} +8 -8
- package/dist/assets/{CurrencySelectField-CCOtXLC7-QnPV5zn9.js → CurrencySelectField-BBgpim44-D9iz41su.js} +5 -5
- package/dist/assets/{CustomerOnboardingActivationPage-Cgzif1ji-DNCyl5ny.js → CustomerOnboardingActivationPage-iG0RHsLk-C1JrpXcK.js} +3 -3
- package/dist/assets/CustomerOnboardingContainerPage-Dh5KIySS-CJFQyXj_.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BOMwRZEO-D2W7lEqa.js → CustomerOnboardingDetailPageSkeleton-tTcayyvt-DVLGbpG0.js} +8 -8
- package/dist/assets/{CustomerOnboardingNoStepsPage-DDloVGvk-BQPG4WD2.js → CustomerOnboardingNoStepsPage-CIranNRI-DmxCUvPO.js} +9 -9
- package/dist/assets/{CustomerOnboardingPage-DHji4ZmF-D4jjwuH5.js → CustomerOnboardingPage-aq8E7XsP-D1AWzLDa.js} +6 -6
- package/dist/assets/{CustomerOnboardingProductSuitePage-BA3GAX42-CxgqSMiN.js → CustomerOnboardingProductSuitePage-DRnOKNVC-BW6Dqkww.js} +3 -3
- package/dist/assets/{Dashboard-Cr5ugENA-CPUy4XRU.js → Dashboard-DyvhSbme-CqiNyEeS.js} +241 -238
- package/dist/assets/DashboardReportPage-Cy_f84RN-BBIf3h8d.js +370 -0
- package/dist/assets/{DepositAccTransactionItem-BXRfgUfE-D4R7G7HE.js → DepositAccTransactionItem-DK15lI5V-XJtPziNz.js} +4 -4
- package/dist/assets/{DepositAccTransactionListPage--7TRlqKj-BQ7qJsKp.js → DepositAccTransactionListPage-CRBhV8W1-B1ipg9Mm.js} +5 -5
- package/dist/assets/{DocumentSecurityBanner-B0Qt1FLC-B14Aeb97.js → DocumentSecurityBanner-C0bght0k-vffkcqMR.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-RoRpMC50-CSWDfu4W.js → DomesticWireDetailsPage-BX8glsOH-C_hYfUMN.js} +1 -1
- package/dist/assets/{DownloadOverlay-Cl_EXjiu-Bty6MX5F.js → DownloadOverlay-C5kTy4dA-91imq83n.js} +18 -18
- package/dist/assets/{DrawerPage-wXwAaYEB-CO0tKzRK.js → DrawerPage-Bwgpjwed-Dbn0o-MI.js} +6 -6
- package/dist/assets/{EditPeoplePage-xDL6VA_r-CcyNCb0B.js → EditPeoplePage-W-SFOxhC-DmK3cjsW.js} +10 -10
- package/dist/assets/{EditReimbursementDetailPage-BUpJPJNu-DrlJ3-JK.js → EditReimbursementDetailPage-D1Iduokd-BJNaLsWB.js} +78 -78
- package/dist/assets/{EntityDetailPage-BNXqSwVL-BmsjQ-yP.js → EntityDetailPage-BkRcX4SZ-D3jHuVtH.js} +1 -1
- package/dist/assets/{EntitySummarySection-MZ57i-bY-CkJQLOms.js → EntitySummarySection-BlJR-qOB-BGQRVSO6.js} +13 -13
- package/dist/assets/{ExpenseAutomationOverviewPage-Y3IHs4dG-C3j4Kf98.js → ExpenseAutomationOverviewPage-qT0g5t_P-9L0vQmNh.js} +20 -20
- package/dist/assets/{ExpenseAutomationPage-C0hvPLo7-6SC0Lnzr.js → ExpenseAutomationPage-CMKwWy2d-BxRd7q46.js} +3 -3
- package/dist/assets/{ExpressPayPage-Bncb54-Q-DvnTKzCq.js → ExpressPayPage-DXfqMxkG-esMjhJU_.js} +9 -9
- package/dist/assets/{FeaturePreviewPage-BnGBEF9H-qbgUmwmT.js → FeaturePreviewPage-CjZuOo_K-BURLQGI3.js} +2 -2
- package/dist/assets/{FollowStepsSection-laCvnETV-Bd5BOauY.js → FollowStepsSection-CO5MsYe6-DJwkRNbY.js} +6 -6
- package/dist/assets/{GlobalReviewListPage-CskEuHc5-Dmr2MpXl.js → GlobalReviewListPage-BIMdWu5P-DVJexznn.js} +11 -11
- package/dist/assets/{HelpButton-D5ZYyQMh-CbYd0zN7.js → HelpButton-BGHsn-1b-Cb4db_8O.js} +2 -2
- package/dist/assets/{InformationCardStack-BFJqdH9n-bSWTqBDS.js → InformationCardStack-B8rD8LSH-yY61wi0E.js} +5 -5
- package/dist/assets/{InsightsCardStack-CcoMWMiA-DoomT7wI.js → InsightsCardStack-AwXZ6ysD-CAyDZRBh.js} +7 -7
- package/dist/assets/{InsightsSection-D9PiJagu-BAVC-lZw.js → InsightsSection-BZS-MEy4-D-RgHCTj.js} +5 -5
- package/dist/assets/{IntegrationsSettingsPage-CVmDobJ8-DUTif9-q.js → IntegrationsSettingsPage-D2tfKsbR-3hbSPzUb.js} +11 -11
- package/dist/assets/{InternationalWireSwiftDetailsPage-DqW88v9N-Ckhip8a0.js → InternationalWireSwiftDetailsPage-5NmSFI7x-CMxHmzOl.js} +12 -12
- package/dist/assets/{InternationalWireVerificationPage-X90z_30k-BipvB1gK.js → InternationalWireVerificationPage-C8WA6jI_-CkLLJOPd.js} +7 -7
- package/dist/assets/{InviteFormPage-BK-PRmeH-BScQiDBC.js → InviteFormPage-DC2ewDUN-BAnhpAwr.js} +23 -23
- package/dist/assets/{InvitePageListView-6-iCc4BK-BqA8heOE.js → InvitePageListView-DaShj4IM-BOaRvdOZ.js} +35 -35
- package/dist/assets/InvitePeoplePage-BbY4ZpGl-DYibhSDJ.js +12 -0
- package/dist/assets/{InvoiceUploadSection-D5aF4auL-BeD6SrG2.js → InvoiceUploadSection-DZJTULDZ-CCiLRTJv.js} +4 -4
- package/dist/assets/{IssueChargeCardPage-C_xt7hKZ-DIZL4bBR.js → IssueChargeCardPage-C1zB2vrB-BGIJGo3C.js} +25 -25
- package/dist/assets/{LabeledAddressValue-DpSK0MqC-Cj7E_lje.js → LabeledAddressValue-BDA7y5Fq-D9zYp9L5.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-_LY7c-ZC-Dc-9_BK1.js → LabeledAddressValueField-fj8E8gFz-pB5NcQXj.js} +4 -4
- package/dist/assets/{LabeledControlledCheckBoxField-FB40Z8J7-BP3P2Wmj.js → LabeledControlledCheckBoxField-aLuztBgv-CQQDZTL8.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-paSeI8_R-DbZOk4k7.js → LabeledCreatableSingleSelectField-zhHbiOVO-Du1erYiL.js} +7 -7
- package/dist/assets/{LabeledDocumentField-DiMgPKtR-CSKmqw6B.js → LabeledDocumentField-BTgmGAGq-ye6jxVF6.js} +6 -6
- package/dist/assets/{LabeledDropDownFormattedTextField-DsjpTL6X-j5IQGEbH.js → LabeledDropDownFormattedTextField-BdAKZt7q-DJYe0D29.js} +5 -5
- package/dist/assets/{LabeledText-CyXj8QWV-Bl6WT0AA.js → LabeledText-CMrFKM7D-U8mavECd.js} +3 -3
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CUT00Vix-QHUo9PdC.js → LabeledUserSingleSelectWithSubtitlesField-C8A0HrPt-Dt-qPiqg.js} +15 -15
- package/dist/assets/{LabeledZeniRolesDropDownField-D0cQlbhO-Dakmm_pD.js → LabeledZeniRolesDropDownField-BaiPRGJf-ThyMB5yW.js} +18 -18
- package/dist/assets/{LinkJETransactionPage-DaXjiQRp-CeG2b6Yz.js → LinkJETransactionPage-CWc1e0RL-uXbP7Kvy.js} +4 -4
- package/dist/assets/{LowBalancePopup-CdftTvLb-DHrY0Q9F.js → LowBalancePopup-COu8cuzS-D_SGW7IW.js} +7 -7
- package/dist/assets/{MagicLinkACHDetailsPage-C25i1T4c-D1WMteCs.js → MagicLinkACHDetailsPage-h0Srx7SO-dPgjPO_-.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B0r3WStl-Be739DkS.js → MagicLinkDomesticWireDetailsPage-BIZqOfHW-tQ-JKEYq.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C-ev-6xJ-DjZv-CZx.js → MagicLinkInternationalWireDetailsPage-MSHTQMXn-BVkJt1cv.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-7JG3V4Qt-aQjB1Hdx.js → MagicLinkSuccessPage-BjWw4cqt-AmPRrK11.js} +3 -3
- package/dist/assets/{MagicLinkTitleSection-DEe0hhml-OAdcgqT_.js → MagicLinkTitleSection-Cll6JJDZ-CoLcdtN3.js} +4 -4
- package/dist/assets/{MailingDetailsSection-Qc65E0w3-DAFQ-tkz.js → MailingDetailsSection-DWSj0MOB-BPZUzJp9.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-Dh8meV6d-Bpx3vewx.js → MeetingCalenderPopup-CTuOhFQC-C5al8-0n.js} +3 -3
- package/dist/assets/{Menu-DyfXBl_1-ub7G94mj.js → Menu-DlBP5CCV-y1Vf24E1.js} +3 -3
- package/dist/assets/{MyBankConnectionsSettingsPage-CCFcVgyX-BtQSGmwE.js → MyBankConnectionsSettingsPage-BYqoUq4q-Da0QKGU9.js} +15 -15
- package/dist/assets/{MyPendingActivationChargeCardListPage-DS966wTB-DpfpopfQ.js → MyPendingActivationChargeCardListPage-BABBa4je-B1cN2Q5f.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BRRzMoQL-D5eo9Sqc.js → MyProfileSettingsPage-Dk_jK8-R-BnmR2m7z.js} +5 -5
- package/dist/assets/{NavBarWithPicker-BvWih0k0-Dufdt2Ka.js → NavBarWithPicker-BC2xbV2b-BcYENhJM.js} +3 -3
- package/dist/assets/{NavigationArrow-DYSL2aDL-WkPryo2E.js → NavigationArrow-BovrdeuJ-BGk3-i0K.js} +5 -5
- package/dist/assets/{NavigationDots-DyyCcIih-Dej6_J6K.js → NavigationDots-yYTGREt4-DTRiZdAJ.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DjEvzM4M-BHj9e2zb.js → NewGlobalMerchantPage-BKlPnipd-BUgMD2pk.js} +32 -32
- package/dist/assets/NoDataChart-Dhg-k7iX-B526qZJD.js +26 -0
- package/dist/assets/{NoDataTable-CXNsBBVP-DB2tU5FS.js → NoDataTable-jpCLeiDv-DPfhsNYe.js} +1 -1
- package/dist/assets/{NotFoundPage-CuuO2Mia-DK_un8VO.js → NotFoundPage-DrKqVOry-CJmDZfXH.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-C7ilxUAV-DNcmVmd9.js → NotificationSettingsPage-lojoBPQ8-BBTvd9G7.js} +5 -5
- package/dist/assets/NotificationsListConfig-jbIMYvrE-DMMvGaQE.js +1 -0
- package/dist/assets/{NotificationsPage-BjaKD99B-ChKA1ZUW.js → NotificationsPage-DJNUS9wc-8qosqB88.js} +22 -22
- package/dist/assets/{OpExByVendorPage-IuDiHnIW-D8WE3sE0.js → OpExByVendorPage-xMyUkO51-DLNCDIdB.js} +7 -7
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-D4ozS3gq.js → OverlayContainerPage-GWXnlbZH-DExKUjLx.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-DLvgYpF8-DAoSI7if.js → PandLWithForecastPage-BHtPelIT-DOZ7XwiG.js} +9 -9
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CZ8ZY08D-DK5OgBuH.js → PaymentAccountSetupBillingAddressSection-B2ZBSiCT-BcCn0Sg1.js} +8 -8
- package/dist/assets/{PeoplePage-DyqY-rIV-BP1By1O6.js → PeoplePage-CzQXmGVU-3wd2TE5z.js} +31 -31
- package/dist/assets/{PortfolioAllocationFormPage-DTuKtkwr-9rUcLC7b.js → PortfolioAllocationFormPage-B1Xa0wKV-C9f5vgAD.js} +4 -4
- package/dist/assets/PortfolioDetails-BY-IK4yO-BaoJWjzR.js +218 -0
- package/dist/assets/{ProductsCarousel-CS4_yc80-PtugE9vt.js → ProductsCarousel-B7h_gH-R-XoeszqUs.js} +8 -8
- package/dist/assets/{PromoBaseCards-BZ2m6LfO-Cud5t_Fi.js → PromoBaseCards-CuJXuijt-Cwtg1Msq.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-2vJQuslh-BI_9YQGE.js → QBOConnectionDialog-DsNkkj_j-C8IchF8A.js} +4 -4
- package/dist/assets/{QBOSetupSection-Yv3Xw-yn-CG5PgwyR.js → QBOSetupSection-DkoopYHr-B4YL_CMi.js} +7 -7
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-tvJ2APRB-D4mUNHAO.js → ReimbursementApprovalRuleDetailPage-BAapaJEJ-DsiatGsD.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-_nXCDa2A-sj6jFbs4.js → ReimbursementApprovalRulesPage-BkiZVc7S-CGfJ2oyo.js} +19 -19
- package/dist/assets/ReimbursementDetailPage-S9j_KDZJ-B4Ft6bVK.js +314 -0
- package/dist/assets/{ReimbursementPromoPage-BaEX5Ej4-EKPuTP60.js → ReimbursementPromoPage-BJJruudV-4Q4ZYCZV.js} +7 -7
- package/dist/assets/ReimbursementSetUpPage-CQdxq5lk-MGbpCaqc.js +140 -0
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-HQg1y1K--BJEZ2gJz.js → ReimbursementsBulkReviewDrawerPage-5LGKVY6X-ClMjr5Ld.js} +1 -1
- package/dist/assets/{ReloadCard-stfG9ekP-CAtXGPKA.js → ReloadCard-DBRY9FdH-DLbqkxuz.js} +6 -6
- package/dist/assets/ReportTableViewSelector-DOxnK0VV-Civ7jc9s.js +150 -0
- package/dist/assets/ReportsPage-r_MRjkkb-B5PSr911.js +121 -0
- package/dist/assets/{RevenueChart-DeDVVUge-DswYpzgj.js → RevenueChart-DhCkb0c6-CpmVmIv5.js} +25 -25
- package/dist/assets/{ReviewDetailsPage-DZqPpiln-BD-TTPjy.js → ReviewDetailsPage-DWtgiOYE-C2elGQRI.js} +12 -12
- package/dist/assets/{ReviewOverlay-DcBe94Sd-BykmGHu4.js → ReviewOverlay-CjWEPPvw-B5TX8ZjT.js} +13 -13
- package/dist/assets/RoleWithToolTip-4WCTaiOg-BCe2sjxQ.js +22 -0
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cl8iBII0-DMtW2KW5.js → ScheduleDetailsFixedAssetsPage-CSxG7vXq-DCXxKyPi.js} +8 -8
- package/dist/assets/{ScheduleDetailsPage-D6ZxZ2uU-C3_NmU11.js → ScheduleDetailsPage-BqaZqCZJ-pwjFyU_u.js} +3 -3
- package/dist/assets/{ScheduleSequenceTable-eRImHbZn-D8TBysPL.js → ScheduleSequenceTable-H_kZuoon-C9WFZ9rS.js} +15 -15
- package/dist/assets/{ScreenRoutes-miCOug2f.js → ScreenRoutes-Ck2JOiJO.js} +35 -35
- package/dist/assets/{SetUpAccountSection-BBZNI1Xl-DXELzEMu.js → SetUpAccountSection-B9L-2aHz-CS276oDL.js} +41 -41
- package/dist/assets/{SetUpDefaultSection--9Qh-utY-c-mUbFLs.js → SetUpDefaultSection-DO9aLike-BNjhrnJW.js} +11 -11
- package/dist/assets/{SignIn-CI0Ik2va-B1YM8rEU.js → SignIn-DOSDfnki-ZWJtrmyd.js} +18 -18
- package/dist/assets/{SignInScreen-DVUMKIBQ.js → SignInScreen-B66laInZ.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-NWkSnIdD-DEongjR9.js → SpendManagementListViewPage-D6ysU0TE-fs0LZdDD.js} +14 -14
- package/dist/assets/{SpendManagementPerTabPage-CdWwn_b8-DnGEGhos.js → SpendManagementPerTabPage-CHvroeCa-SUCxwVKR.js} +38 -38
- package/dist/assets/{SpendManagementSection-DGhD95sz-VmruoRWg.js → SpendManagementSection-BaEgJPY4-DbFNSMHd.js} +11 -11
- package/dist/assets/SpendMgmtSetupAccountSection-CVaXDNNK-CaCI906W.js +206 -0
- package/dist/assets/{StatementItem-BlfBohft-U3FqyIo0.js → StatementItem-CYPCJ0XS-Bebbfivn.js} +5 -5
- package/dist/assets/StatementsPage-Cyqg2jd1-CS8CbIkz.js +58 -0
- package/dist/assets/{StatusSwitcher-C6703BAG-eDDkVLmz.js → StatusSwitcher-C5UGqQw8-L5IIUMyD.js} +4 -4
- package/dist/assets/{SubTabSwitcher-lf9S7Ubj-CmXqrtys.js → SubTabSwitcher-B3rFIZQy-fhfcG8ZL.js} +1 -1
- package/dist/assets/{SummaryCard-yghz4PLR-CvQEKxF5.js → SummaryCard-CNADDyPG-AHW1-mz3.js} +1 -1
- package/dist/assets/{TaskManagementPage-Cf523C5f-BE6A19pl.js → TaskManagementPage-CtUQXjo2-CpaAFAcY.js} +29 -29
- package/dist/assets/{TimeRangeSwitcher-BoPrOhKX-CRKXdJOA.js → TimeRangeSwitcher-BXXqX3m6-DBFCX_F3.js} +3 -3
- package/dist/assets/{TimeframeSwitcher-DufweySH-jTXdFynw.js → TimeframeSwitcher-Bk9rjDg4-BqMFgpEZ.js} +5 -5
- package/dist/assets/TimeframeSwitcherWithToggle-RH8QHQFd-tstiafTX.js +31 -0
- package/dist/assets/{TopExCard-DrOjlLiv-D1xK4ZLl.js → TopExCard-xJbS_mNo-B0v7lag7.js} +4 -4
- package/dist/assets/{TopExDetailPage-Ds4zlxKD-B50iPc07.js → TopExDetailPage-BDUuqAEK-Bo-vZtIP.js} +10 -10
- package/dist/assets/{TransactionDetailPage-Csl-Qjxp-DV-6_vXT.js → TransactionDetailPage-CtzLtYa8-J7xBsyNJ.js} +30 -30
- package/dist/assets/TransactionList-DS-_gBrf-B6pRX61G.js +147 -0
- package/dist/assets/{TransactionListBig-p6iVof9y-DpVKiek7.js → TransactionListBig-D9ebH5C0-D4IFnh5K.js} +10 -10
- package/dist/assets/TransactionListPage-CPjayOv5-C1z1kCC6.js +35 -0
- package/dist/assets/{TransactionVendorDetailPage-DzkUYyCr-DI4vuyOD.js → TransactionVendorDetailPage-DMYoBJ23-BkgKiHHa.js} +5 -5
- package/dist/assets/{TransferDrawerPage-B9MGSdS9-AoRYBOP9.js → TransferDrawerPage-BAghLjPn-DV8a9ZRS.js} +30 -30
- package/dist/assets/{TreasuryOverviewPage-BEzBuOWn-C_ij1-dD.js → TreasuryOverviewPage-B7EFea4a-zZd4C5QF.js} +46 -46
- package/dist/assets/{TreasuryPromoPage-C8X4X7iN-C2DHRZVT.js → TreasuryPromoPage-D7Y8yGpx-5DMBtH8J.js} +27 -27
- package/dist/assets/{TreasurySetupPage-Cb_GW75l-DHI8fRrl.js → TreasurySetupPage-B1SZd_a5-DTKitX5z.js} +6 -6
- package/dist/assets/{TreasuryStatementsPage-sOiD2QYm-BjV9xUSX.js → TreasuryStatementsPage-uakhQGBW-DM3cx3mz.js} +7 -7
- package/dist/assets/{TreasuryTaxLetterPage-DYzqfHym-C8i4pNnG.js → TreasuryTaxLetterPage-BHvr72P1-ZqD52w0m.js} +7 -7
- package/dist/assets/{TreasuryTransferOrReviewPage-CesaUuNp-BlrFvGYE.js → TreasuryTransferOrReviewPage-BBPDHav1-FgeqnaCs.js} +78 -78
- package/dist/assets/TrendChart-ChiKhGtw-BlRFpdWI.js +16 -0
- package/dist/assets/{TrendWithTransactions-CUlTYGIm-DvdNaPh-.js → TrendWithTransactions-DEMNHbbz-DBOPdxuf.js} +7 -7
- package/dist/assets/{UncategorizedAccountsMappingPage-D76VPNEd-D4SPdVXr.js → UncategorizedAccountsMappingPage-BDNznj4Y-DBTlThuY.js} +17 -17
- package/dist/assets/{UnitIntegrationPage-BsZCe-lq-DrfCSWxr.js → UnitIntegrationPage-Bgu5xfcn-CtKgXROf.js} +3 -3
- package/dist/assets/{UploadAdditionalDocumentOverlay-B3tUNhKj-DN4WILBU.js → UploadAdditionalDocumentOverlay-DW6WCx4i-CGbCT0bE.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Bk-WKgMh-DrsH2xrD.js → Vendor2FAPopup-D34glhep-Bcy6uzR5.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-u8a3XF33-CrKMxXqd.js → VendorACHDetailsPage-CSqpbr2r-BGpdO99p.js} +1 -1
- package/dist/assets/{VendorDetailPage-B-RdB79n-CDKqGTzV.js → VendorDetailPage-CJw1v9tJ-BWewlDVL.js} +18 -18
- package/dist/assets/{VendorDomesticWireDetailsPage-Bhb1Dmge-BeNq1bzX.js → VendorDomesticWireDetailsPage-BY8F5AWO-DX4fuW2L.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DHRivhBg-ERVyS3P2.js → VendorFiling1099EditablePage-COYZCnYS-BBPw3drw.js} +15 -15
- package/dist/assets/VendorFirstReviewPage-BqnXdq6Q-CL1x86cX.js +730 -0
- package/dist/assets/{VendorInternationalWireDetailsPage-Cjx1hvUL-CEdr_PZS.js → VendorInternationalWireDetailsPage-K9botaZv-yQ73nWrj.js} +11 -11
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BszRCCDh-B4pRgjkw.js → VendorInternationalWireSwiftDetailsPage-DQ_akVN_-s-XTKsWI.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D6VSJUo1-Glx5yRhz.js → VendorsAccountsSection-D5d42xeO-CJcEHkCK.js} +2 -2
- package/dist/assets/{WarningsDrawerPage-DReVGPEj-CIQlt88e.js → WarningsDrawerPage-DiA5MRFe-Bc00wID9.js} +7 -7
- package/dist/assets/{ZeniAccountDetailPage-CFTB_WYX-CRRVNfVo.js → ZeniAccountDetailPage-DSCbx6BB-DGWgYb7a.js} +23 -23
- package/dist/assets/{ZeniAccountListViewPage-BmYgbIuC-DNXzp5P9.js → ZeniAccountListViewPage-7zssUaoL-DvaV5FVV.js} +21 -21
- package/dist/assets/{ZeniAccountNavBarPieces-gzy5T7nu-ZPpRmm1I.js → ZeniAccountNavBarPieces-By4S70vz-DdkCg5aL.js} +2 -2
- package/dist/assets/{ZeniAccountPromoPage-AfRVTc8V-r71cWD_l.js → ZeniAccountPromoPage-Bvr4t7zq-DL50qAxB.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-YXJmpz_d-3FWCeT2b.js → ZeniAccountSetupPage-DtDN9JWk-D8j-79L6.js} +4 -4
- package/dist/assets/{ZeniCopyright-CqpcrgAZ-CH2r91yw.js → ZeniCopyright-CxC3wvp1-gbMTqRLu.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DGkzRyMW-M3i8bnVC.js → ZeniTransferAmountSlider-CcbG1sHp-Dm5uqXid.js} +1 -1
- package/dist/assets/analytics-CBL_L82S.js +7 -0
- package/dist/assets/{analyticsHelper-sgo3pabT-BeTMdSYn.js → analyticsHelper-3y6VD3VH-4b12iNu9.js} +1 -1
- package/dist/assets/{analyticsHelper-BKEOwNtm.js → analyticsHelper-D4WZaKOr.js} +1 -1
- package/dist/assets/{chartTypes-Dj-_K0Gi-EQP1Ce02.js → chartTypes-mKuCmPTG-BM7hqR_d.js} +1 -1
- package/dist/assets/{commonDimensions-CKgBEMhT-JcVoNYFG.js → commonDimensions-BHBDbLXD-D2tFRShv.js} +1 -1
- package/dist/assets/{detailCommon-vtB2ffbe-CVFboB64.js → detailCommon-1QwSQL9C-CMTdKXNR.js} +10 -10
- package/dist/assets/{downloadPdf-CiC0AXNH-CeD8Q-Pl.js → downloadPdf-DjM3Z_88-B-Yuc7DP.js} +1 -1
- package/dist/assets/{index-D3N9MvRr.js → index-CWmqNC4C.js} +3532 -3549
- package/dist/assets/mapLoadingInProgressToTreeNode-CKZd1bh4-H6b75J9k.js +1 -0
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CWaIGa37-l4B2WAau.js → mapSectionWithAcOnlyToTreeNode-CO6ix8Ks-D7LvCMfp.js} +1 -1
- package/dist/assets/mapSpacerToTreeNode-CzcEW1Rc-DpU4PyGc.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-CEDhLCxY-D-EnNeIG.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-y3lzh3vX-QR9PSTFA.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Bf3d9TrW-Cgl9vOT0.js +1 -0
- package/dist/assets/{play-icon-CF-Mkuir-D0VaB-h5.js → play-icon-DfMYCOJa-CBLpaBHA.js} +3 -3
- package/dist/assets/{toCOABalancesWithID-D1BwrImS-CU7gHn7p.js → toCOABalancesWithID-CEvuOTjK-TT4jMA7r.js} +1 -1
- package/dist/assets/{toChartData-DVTo0PPD-Xv5HtUSQ.js → toChartData-D2kGY49E-CsLrqkFw.js} +1 -1
- package/dist/assets/{treasuryColorHelper-QzSX5YTe-DRvV2CE6.js → treasuryColorHelper-k2phUKLw-Bv7jwBAj.js} +1 -1
- package/dist/assets/{uploadAttachment-BxwOR3I5-D86nKqy9.js → uploadAttachment-kyOdZMbL-CJNFoqRM.js} +7 -7
- package/dist/assets/{uploadReceipts-Buvz7DfG-CwTcUaXM.js → uploadReceipts-D80JLNY4-Cic2YR7g.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/BankConnectionsSettingsPage-BOreBo5b-D37lKtbY.js +0 -379
- package/dist/assets/BillPaySetUpPage-DjpCUZaT-Ddup2DO2.js +0 -42
- package/dist/assets/BillsBulkReviewDrawerPage-DjunAUW0-B6U5Is6f.js +0 -1
- package/dist/assets/BusinessVerificationPage-CZGOzc9Z-D6-Ww27c.js +0 -140
- package/dist/assets/ChargeCardDetailPage-NWTPnGtM-DFqwW_o-.js +0 -1447
- package/dist/assets/ChargeCardListPage-D42dfnET-BwGRx6DO.js +0 -355
- package/dist/assets/ChargeCardPromoPage-CXiXee-8-rWS9j7At.js +0 -190
- package/dist/assets/ChargeCardSetupPage-Ccc8PoCm-DOz93R9J.js +0 -36
- package/dist/assets/CollapsableReportTable-DshWn4Fc-CB5euwH7.js +0 -2860
- package/dist/assets/CompleteProfile-D_zq0Bxi-4-J8J591.js +0 -36
- package/dist/assets/CustomerOnboardingContainerPage-ByWeMmBf-4mOzqlwZ.js +0 -1
- package/dist/assets/DashboardReportPage-paPVk_v2-Dvs7jyc3.js +0 -349
- package/dist/assets/InvitePeoplePage-C9AwNqIx-ByE99RmM.js +0 -12
- package/dist/assets/NoDataChart-DE6NV823-DgTs2vbZ.js +0 -26
- package/dist/assets/NotificationsListConfig-TBQMobJ5-DLtoRFYq.js +0 -1
- package/dist/assets/PortfolioDetails-DJFeMG4U-DswuDgPe.js +0 -218
- package/dist/assets/ReimbursementDetailPage-CtEAsq7u-CdLZ67Bg.js +0 -314
- package/dist/assets/ReimbursementSetUpPage-DXOqEJL4-DeydDpr0.js +0 -140
- package/dist/assets/ReportTableViewSelector-_RTCd2td-J4MgIxi7.js +0 -133
- package/dist/assets/ReportsPage-BIzz5Dt_-BPRCOVMf.js +0 -120
- package/dist/assets/RoleWithToolTip-DZO2tooH-6nbnfSfh.js +0 -22
- package/dist/assets/SpendMgmtSetupAccountSection-DG4ozkeT-CetbNb1Y.js +0 -207
- package/dist/assets/StatementsPage-CUpjL5u7-BWH36hJA.js +0 -58
- package/dist/assets/TimeframeSwitcherWithToggle-BKwe3K9l-CC0-bOos.js +0 -31
- package/dist/assets/TransactionList-2HeLZVn9-D_XSB9a8.js +0 -147
- package/dist/assets/TransactionListPage-tnL66tOu-DKTJncjo.js +0 -35
- package/dist/assets/TrendChart-kwGU0d90-D9vTA2Kh.js +0 -16
- package/dist/assets/VendorFirstReviewPage-Cn2GBsyl-cg4le0C7.js +0 -730
- package/dist/assets/analytics-DThoELaW.js +0 -7
- package/dist/assets/mapLoadingInProgressToTreeNode-0MIZwF_y-BJQcaPEZ.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-1Bdqp9WS-Bf4vh4uO.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-MPZhFWqo-DqH1QGXc.js +0 -1
package/dist/assets/{BillDetailPage-Bv86SywV-6njFGhnW.js → BillDetailPage-Dz4_gdDb-ycU3JEwF.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{X as Nn,t as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,aV as Zn,a1 as Kn,M as Vn,C as u,j as t,l as L,cE as it,cF as Un,o as a,cG as Yn,cH as Gn,Y as b,cI as Hn,_ as Ae,cJ as qn,aW as lt,aI as ot,dp as rt,bM as st,bO as dt,bP as ct,fM as Jn,fN as Qn,fO as Xn,fP as ea,cO as j,cP as I,cQ as $,fQ as A,cN as ta,v as pt,g as ie,cR as Rt,cS as na,cT as aa,cU as ia,fR as la,fS as oa,a3 as ra,m as mt,bs as Te,fT as sa,fU as O,p as r,b as da,bo as ca,fV as pa,a2 as ma,fW as ua,fX as ut,cY as yt,Q as ya,ct as ha,bF as ba,al as xa,an as ga,k as fa,eW as zt,fY as wa,w as Mt,ab as Ta,aj as va,aN as Da,eG as ja,q as Ia}from"./index-D3N9MvRr.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as $a}from"./liveblocks-sSQ9JElv.js";import{o as Aa,t as ka}from"./LowBalancePopup-CdftTvLb-DHrY0Q9F.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const Sa=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"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Et,hasZeniAssistAccess:Lt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:_t,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Yt,discardOutsideZeniPaymentData:Gt,onBackClick:Me,updateEditRealTimeApproverClicked:Ht,onSaveRealTimeApprovals:qt,onRetryPaymentClick:Jt,onRefundPaymentClick:Qt})=>{const l=Nn(),o=On(),Ne=Fn(),[Xt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Ee,q]=p.useState(!1),y=e.transactionDetails?.id,tn=_t?En:Ln,{requestToOpenThread:pe,setRequestToOpenThread:Le,setOpenThread:J}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:Y,isLoading:P}=Wn(w,"both",!1),f=Se&&y!=null,We=p.useMemo(()=>y==null?[]:Y.filter(c=>c.resolved===!1&&!c.id.includes(_n)),[Y,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{J(h),U(!1)},[J,U]);p.useEffect(()=>{pe?.threadId!=null&&Y.length>0&&!P&&(J(pe.threadId),Le(null))},[pe,Y,P,J,Le]),Zn({componentName:"bills.details"});const[N,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[_e,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,Ye]=p.useState(!1),Ge=()=>Ke(!1),rn=()=>Ke(!0),He=Kn(e.zeniAssist?.refundStatus.fetchState),X=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),H())},[e,H,Pe]),p.useEffect(()=>{He==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),X())},[He,e.zeniAssist?.refundStatus,X]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&G?.code?G:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:G?.code!=null&&(ee?.code=="approved"||G.code==="mark_as_paid")?G:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,qe=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{Q({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{Q({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{Q({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Q({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Qt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,Je=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
|
-
${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?L.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?L.zeniDate(L.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Qe=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Xe=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Xe,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,jn=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$n=Lt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&In===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!Je||v?.code==="processing"&&!M),Sn=!Je,et=["small","medium-compact","medium-regular"].includes(l),ae=L.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),E=L.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Yt(!0,Ue,c)},tt=()=>{Ve(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{Ye(!0),tt()},Bn=()=>{Gt(),Ve(!1),Ue&&Ye(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),W=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Yn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Ee===!0&&q(!1),W!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ze("rejected"),W!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(qa,{windowSize:l,ref:at,children:[t.jsx(Gn,{anchor:"right",open:ln,onClose:Ge,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Hn,{companyName:qn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Xe,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ge})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Ee?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{q(!1),qe()},onClickAway:()=>{q(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Xt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx($e,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Jn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,La(ae,e,W),t.jsx(Xn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(Ja,{children:[ye.length>1?t.jsx(Qa,{windowSize:l,children:t.jsx(Xa,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:W!=null&&k?.code==="pending_approval"?Nt.addMoney:W})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(L.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Et&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(_a,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:E&&e.outsideZeniPaymentInfo!=null?Ea(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),jn()]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Ut,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:Ot,signedInUserId:le?.userId,showRealTimeApproval:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Ht,onSaveRealTimeApprovals:qt},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:_e==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Fa(K,et),isLoading:_e==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{W!=null?q(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Za,{children:t.jsxs(Ha,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(_,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(_,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(_,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&E&&Wt?t.jsx(_,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(_,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(_,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ga,{windowSize:l,children:[$n===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Va,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(Ya,{onClick:qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ua,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx($a,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:Y,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>U(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(L.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Fa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Ea=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${Z}`},La=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},Wa=i.div``,_a=i.div``,Za=i.div`
|
|
1
|
+
import{X as Nn,w as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,bC as Zn,a1 as Kn,M as Vn,C as u,j as t,l as L,cF as it,cG as Un,o as a,cH as Gn,cI as Yn,Y as b,cJ as Hn,_ as Ae,cK as Qn,aV as lt,aI as ot,dq as rt,bO as st,bQ as dt,bR as ct,fM as qn,fN as Jn,fO as Xn,fP as ea,cP as j,cQ as I,cR as $,fQ as A,cO as ta,p as pt,g as ie,cS as Rt,cT as na,cU as aa,cV as ia,fR as la,fS as oa,a3 as ra,f as mt,bs as Te,fT as sa,fU as O,m as r,r as da,bo as ca,fV as pa,a2 as ma,fW as ua,fX as ut,cZ as yt,Q as ya,cu as ha,bH as ba,al as xa,an as ga,k as fa,eW as zt,fY as wa,v as Mt,ab as Ta,aj as va,aN as Da,eG as ja,s as Ia}from"./index-CWmqNC4C.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as $a}from"./liveblocks-sSQ9JElv.js";import{o as Aa,t as ka}from"./LowBalancePopup-COu8cuzS-D_SGW7IW.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const Sa=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"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Et,hasZeniAssistAccess:Lt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:_t,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Gt,discardOutsideZeniPaymentData:Yt,onBackClick:Me,updateEditRealTimeApproverClicked:Ht,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Fn(),[Xt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Ee,Q]=p.useState(!1),y=e.transactionDetails?.id,tn=_t?En:Ln,{requestToOpenThread:pe,setRequestToOpenThread:Le,setOpenThread:q}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:G,isLoading:P}=Wn(w,"both",!1),f=Se&&y!=null,We=p.useMemo(()=>y==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(_n)),[G,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{q(h),U(!1)},[q,U]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(q(pe.threadId),Le(null))},[pe,G,P,q,Le]),Zn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[_e,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,Ge]=p.useState(!1),Ye=()=>Ke(!1),rn=()=>Ke(!0),He=Kn(e.zeniAssist?.refundStatus.fetchState),X=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),H())},[e,H,Pe]),p.useEffect(()=>{He==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),X())},[He,e.zeniAssist?.refundStatus,X]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&Y?.code?Y:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:Y?.code!=null&&(ee?.code=="approved"||Y.code==="mark_as_paid")?Y:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{J({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
|
+
${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?L.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?L.zeniDate(L.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Je=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Xe=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Xe,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,jn=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$n=Lt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&In===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!qe||v?.code==="processing"&&!M),Sn=!qe,et=["small","medium-compact","medium-regular"].includes(l),ae=L.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),E=L.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Gt(!0,Ue,c)},tt=()=>{Ve(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{Ge(!0),tt()},Bn=()=>{Yt(),Ve(!1),Ue&&Ge(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),W=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Gn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Ee===!0&&Q(!1),W!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ze("rejected"),W!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Qa,{windowSize:l,ref:at,children:[t.jsx(Yn,{anchor:"right",open:ln,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Hn,{companyName:Qn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Xe,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Ee?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{Q(!1),Qe()},onClickAway:()=>{Q(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Xt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx($e,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Jn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,La(ae,e,W),t.jsx(Xn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(qa,{children:[ye.length>1?t.jsx(Ja,{windowSize:l,children:t.jsx(Xa,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:W!=null&&k?.code==="pending_approval"?Nt.addMoney:W})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(L.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Et&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(_a,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:E&&e.outsideZeniPaymentInfo!=null?Ea(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),jn()]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Ut,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:Ot,signedInUserId:le?.userId,showRealTimeApproval:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Ht,onSaveRealTimeApprovals:Qt},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:_e==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Fa(K,et),isLoading:_e==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{W!=null?Q(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Za,{children:t.jsxs(Ha,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(_,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(_,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(_,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&E&&Wt?t.jsx(_,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(_,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(_,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ya,{windowSize:l,children:[$n===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Va,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(Ga,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ua,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx($a,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:G,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>U(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(L.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Fa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Ea=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${Z}`},La=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},Wa=i.div``,_a=i.div``,Za=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
5
5
|
`,Ka=i(ja)`
|
|
@@ -34,7 +34,7 @@ import{X as Nn,t as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,aV as Zn,a1 a
|
|
|
34
34
|
&:hover {
|
|
35
35
|
color: ${e=>e.theme.colors.primary};
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
37
|
+
`,Ga=i.div`
|
|
38
38
|
display: flex;
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
color: ${e=>e.theme.colors.grey1};
|
|
@@ -42,7 +42,7 @@ import{X as Nn,t as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,aV as Zn,a1 a
|
|
|
42
42
|
&:hover {
|
|
43
43
|
color: ${e=>e.theme.colors.primary};
|
|
44
44
|
}
|
|
45
|
-
`,
|
|
45
|
+
`,Ya=i.div`
|
|
46
46
|
display: flex;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
align-items: center;
|
|
@@ -113,7 +113,7 @@ import{X as Nn,t as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,aV as Zn,a1 a
|
|
|
113
113
|
width: ${a.sp4};
|
|
114
114
|
height: ${a.sp4};
|
|
115
115
|
display: flex;
|
|
116
|
-
`,
|
|
116
|
+
`,Qa=i.div`
|
|
117
117
|
height: 100%;
|
|
118
118
|
overflow: scroll;
|
|
119
119
|
`,De=i.div`
|
|
@@ -128,7 +128,7 @@ import{X as Nn,t as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,aV as Zn,a1 a
|
|
|
128
128
|
display: flex;
|
|
129
129
|
flex-direction: column;
|
|
130
130
|
padding-top: ${a.sp3};
|
|
131
|
-
`,
|
|
131
|
+
`,qa=i.div``,Ie=i(xa)`
|
|
132
132
|
color: ${e=>e.theme.colors.primary};
|
|
133
133
|
`,R=i.div`
|
|
134
134
|
display: flex;
|
|
@@ -136,7 +136,7 @@ import{X as Nn,t as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,aV as Zn,a1 a
|
|
|
136
136
|
background-color: ${e=>e.theme.colors.grey3};
|
|
137
137
|
min-height: 1px;
|
|
138
138
|
max-height: 1px;
|
|
139
|
-
`,
|
|
139
|
+
`,Ja=i(ga)`
|
|
140
140
|
display: flex;
|
|
141
141
|
align-items: center;
|
|
142
142
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as z,
|
|
1
|
+
import{C as z,m as B,X as q,M as D,a as M,a1 as W,j as o,S as G,c3 as X,aV as Z,F as H,a3 as J,o as c}from"./index-CWmqNC4C.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-CO5MsYe6-DJwkRNbY.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",E="lowerBound",T="upperBound",y="steps",Y={footerPadding:new z(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const I=q(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const O=G(d);X(()=>V(U,O))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:S?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:E,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:T,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[E]:t?void 0:l!=null?l.range.min.amount??0:0,[T]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -24,4 +24,4 @@ import{C as z,p as B,X as q,M as R,a as M,a1 as W,j as o,R as G,c2 as X,aW as Y,
|
|
|
24
24
|
background-color: ${e=>e.theme.colors.grey3};
|
|
25
25
|
min-height: 1px;
|
|
26
26
|
max-height: 1px;
|
|
27
|
-
`;export{
|
|
27
|
+
`;export{Y as D,ve as default,N as uniqueFormName,ge as uniqueName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as I,M as y,j as t,
|
|
1
|
+
import{X as I,M as y,j as t,aV as D,c as E,Y as b,C as r,s as B,_ as j,bO as H,bQ as G,bR as U,o as i,cq as V,m as l,an as q,Q as z,am as O,g as S,cn as Q,aN as X,p as Y}from"./index-CWmqNC4C.js";import{n as o,b as _}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";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)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},F=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=_.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(J,{windowSize:n,isLastSection:f,children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,N)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${M}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},N))})}),m?t.jsx(H,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},J=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
|
@@ -14,7 +14,7 @@ import{X as I,M as y,j as t,aW as D,d as H,Y as b,C as r,q as B,_ as j,bM as E,b
|
|
|
14
14
|
border-color: ${e=>e.theme.colors.primary};
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
`,K=o(
|
|
17
|
+
`,K=o(q)`
|
|
18
18
|
display: flex;
|
|
19
19
|
position: relative;
|
|
20
20
|
align-items: center;
|
|
@@ -117,7 +117,7 @@ import{X as I,M as y,j as t,aW as D,d as H,Y as b,C as r,q as B,_ as j,bM as E,b
|
|
|
117
117
|
height: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
|
|
118
118
|
top: ${e=>s.stepperContentTop.valuePx(e.windowSize)};
|
|
119
119
|
left: -${i.sp6};
|
|
120
|
-
${
|
|
120
|
+
${Y.standardMedium.css};
|
|
121
121
|
text-align: center;
|
|
122
122
|
color: ${e=>e.theme.colors.grey1};
|
|
123
123
|
border: 2px solid ${e=>e.theme.colors.grey1};
|
|
@@ -141,7 +141,7 @@ import{X as I,M as y,j as t,aW as D,d as H,Y as b,C as r,q as B,_ as j,bM as E,b
|
|
|
141
141
|
`,ae=o.div`
|
|
142
142
|
display: flex;
|
|
143
143
|
gap: ${i.sp5};
|
|
144
|
-
`,ne=o(
|
|
144
|
+
`,ne=o(Q)`
|
|
145
145
|
width: ${i.sp3};
|
|
146
146
|
height: ${i.sp3};
|
|
147
147
|
cursor: pointer;
|
|
@@ -149,7 +149,7 @@ import{X as I,M as y,j as t,aW as D,d as H,Y as b,C as r,q as B,_ as j,bM as E,b
|
|
|
149
149
|
&:hover {
|
|
150
150
|
color: ${S.important};
|
|
151
151
|
}
|
|
152
|
-
`,pe=o(
|
|
152
|
+
`,pe=o(X)`
|
|
153
153
|
width: ${i.sp3};
|
|
154
154
|
height: ${i.sp3};
|
|
155
155
|
cursor: pointer;
|
|
@@ -157,7 +157,7 @@ import{X as I,M as y,j as t,aW as D,d as H,Y as b,C as r,q as B,_ as j,bM as E,b
|
|
|
157
157
|
&:hover {
|
|
158
158
|
color: ${e=>e.theme.colors.primary};
|
|
159
159
|
}
|
|
160
|
-
`,de=o(
|
|
160
|
+
`,de=o(O)`
|
|
161
161
|
width: ${i.sp4};
|
|
162
162
|
height: ${i.sp4};
|
|
163
163
|
color: ${e=>e.theme.colors.hero};
|
|
@@ -170,7 +170,7 @@ import{X as I,M as y,j as t,aW as D,d as H,Y as b,C as r,q as B,_ as j,bM as E,b
|
|
|
170
170
|
${e=>`${L.amount.style(e.windowSize)}`};
|
|
171
171
|
color: ${e=>e.theme.colors.primary};
|
|
172
172
|
word-break: break-word;
|
|
173
|
-
`,g={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},ke=({approvalView:e,onBackClick:f,onEditRuleClick:c,onDeleteRuleClick:v})=>{const $=I(),{fetchState:m,deleteStatus:x}=e,n=y.getLocalizedStrings().commonSetUp.approval,h=y.getLocalizedStrings().spendManagement.billPay.billPayApproval,u=x.fetchState;return t.jsxs(ce,{children:[t.jsx(D,{title:n.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{f()},source:"BillPayApprovalRulesPage"}),t.jsxs(he,{children:[t.jsx(xe,{windowSize:$,children:h.approvalPageSubTitle}),m==="In-Progress"||m==="Not-Started"||u==="In-Progress"?t.jsx(me,{children:t.jsx(
|
|
173
|
+
`,g={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},ke=({approvalView:e,onBackClick:f,onEditRuleClick:c,onDeleteRuleClick:v})=>{const $=I(),{fetchState:m,deleteStatus:x}=e,n=y.getLocalizedStrings().commonSetUp.approval,h=y.getLocalizedStrings().spendManagement.billPay.billPayApproval,u=x.fetchState;return t.jsxs(ce,{children:[t.jsx(D,{title:n.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{f()},source:"BillPayApprovalRulesPage"}),t.jsxs(he,{children:[t.jsx(xe,{windowSize:$,children:h.approvalPageSubTitle}),m==="In-Progress"||m==="Not-Started"||u==="In-Progress"?t.jsx(me,{children:t.jsx(E,{size:"ExtraLarge",start:!0})}):m==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((w,a)=>t.jsx(F,{showDeleteBtn:a!==0,approvalRule:w,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:c,onDeleteRuleClick:v},w.approvalRuleId)),t.jsxs(ue,{windowSize:$,onClick:()=>{c()},"data-testid":b("add-approval-rule-bill-pay"),children:[t.jsx(we,{}),t.jsx(ge,{children:n.addApprovalText})]})]}):null]})]})},ce=o.div`
|
|
174
174
|
display: flex;
|
|
175
175
|
min-height: 100%;
|
|
176
176
|
flex-direction: column;
|
|
@@ -227,7 +227,7 @@ import{X as I,M as y,j as t,aW as D,d as H,Y as b,C as r,q as B,_ as j,bM as E,b
|
|
|
227
227
|
border-color: ${e=>e.theme.colors.primary};
|
|
228
228
|
}
|
|
229
229
|
margin-bottom: ${i.sp6};
|
|
230
|
-
`,we=o(
|
|
230
|
+
`,we=o(V)`
|
|
231
231
|
width: ${i.sp3};
|
|
232
232
|
height: ${i.sp3};
|
|
233
233
|
`,ge=o.div`
|
package/dist/assets/{BillPayPromoPage-Co2j2krO-D4iqOCut.js → BillPayPromoPage-TkLMkxeC-CRgciQY3.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{w as se,X as b,a1 as le,l as j,M as L,j as e,aV as oe,K as U,Y as h,i as x,o as s,Z as te,c0 as re,u as A,a5 as D,e as ae,C as ne,g as u,c2 as ce,a6 as de,ao as me,m as pe}from"./index-CWmqNC4C.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-CTuOhFQC-C5al8-0n.js";import{f as ge,C as V}from"./play-icon-DfMYCOJa-CBLpaBHA.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const E="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -17,7 +17,7 @@ import{t as se,X as b,a1 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as
|
|
|
17
17
|
margin: auto;
|
|
18
18
|
padding: ${s.sp5} ${s.sp0};
|
|
19
19
|
color: ${i=>i.theme.colors.primary};
|
|
20
|
-
`,
|
|
20
|
+
`,R=l.div`
|
|
21
21
|
display: flex;
|
|
22
22
|
flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
|
|
23
23
|
align-items: center;
|
|
@@ -67,7 +67,7 @@ import{t as se,X as b,a1 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as
|
|
|
67
67
|
color: ${u.graphColor16Dark};
|
|
68
68
|
`,N=l(z)`
|
|
69
69
|
color: ${u.graphColor09Dark};
|
|
70
|
-
`,
|
|
70
|
+
`,X=l(z)`
|
|
71
71
|
color: ${u.graphColor28Dark};
|
|
72
72
|
`,ke=l(ae)`
|
|
73
73
|
margin: ${s.sp3} auto;
|
|
@@ -97,7 +97,7 @@ import{t as se,X as b,a1 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as
|
|
|
97
97
|
100% {
|
|
98
98
|
transform: scale(100%)
|
|
99
99
|
}
|
|
100
|
-
`,
|
|
100
|
+
`,Y=l.div`
|
|
101
101
|
width: ${s.sp9};
|
|
102
102
|
height: ${s.sp9};
|
|
103
103
|
background: ${i=>i.theme.colors.playButtonBackGroundColor};
|
|
@@ -109,4 +109,4 @@ import{t as se,X as b,a1 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as
|
|
|
109
109
|
color: ${u.backgroundThemeLight};
|
|
110
110
|
cursor: pointer;
|
|
111
111
|
animation: ${ze} 1s ease infinite;
|
|
112
|
-
`,o=L.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=L.getLocalizedStrings().commonSetUp.businessVerification.terms,
|
|
112
|
+
`,o=L.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=L.getLocalizedStrings().commonSetUp.businessVerification.terms,Re=({billPaySetupView:i,analytics:a,meetingUrl:t,videoUrl:H,onButtonClick:W,onBackClick:_,onSetupBillPaySuccess:v,onClickMenuIcon:q})=>{const w=se(),n=b(),{billPayTermsDetails:p}=i,[J,C]=y.useState(!1),[Q,P]=y.useState(!1),B=le(p?.fetchStatus.fetchState);y.useEffect(()=>{B==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&v?.()},[B,v,p?.fetchStatus]);const T=()=>{a?.trackBillPayPromoVideo(),C(!0)},ee=()=>{a?.trackBillPayPromoScheduleDemo(),P(!0)},ie=j.hasBillPayAdminLevelAccess(w.loggedInUserRoleMap),M=j.hasBillPayAccess(w.loggedInUserRoleMap)&&!ie,I=M?o.setupNonAccessableUsersPromoText:o.promoText;return e.jsxs(we,{children:[J===!0?e.jsx(ge,{onCancelClick:()=>{C(!1)},videoUrl:H}):null,Q===!0?e.jsx(he,{onCancelClick:()=>{P(!1)},meetingUrl:t}):null,e.jsx(oe,{title:o.title,onBackClick:_,showBackButton:!j.hasOnlyBillPayAccess(w.loggedInUserRoleMap),showMenuIcon:n==="small"||n==="medium-compact",onClickMenuIcon:q,source:"BillPayPromoPage"}),e.jsxs(je,{windowSize:n,children:[n==="small"?e.jsx(fe,{children:I}):e.jsx(ye,{children:I}),n==="small"?e.jsx(ve,{onImageClick:T}):e.jsx(Ce,{onImageClick:T}),M===!1?e.jsxs($e,{children:[e.jsxs(Se,{windowSize:n,children:[e.jsx(U,{variant:"secondary",label:o.scheduleDemoButton,onClick:ee,"data-testid":h("billpay-schedule-demo-button")}),e.jsx(be,{windowSize:n,children:o.orText}),e.jsx(U,{variant:"primary",label:o.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:W,"data-testid":h("billpay-setup-button")})]}),e.jsxs(ke,{children:[o.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:()=>(a?.trackBillPayPrivacyPolicy(),!0),linkText:r.privacy}),r.term4,e.jsx(x,{href:r.tosUrl,onZeniLinkClick:()=>(a?.trackBillPayAgreement(),!0),linkText:r.tos}),r.term5,o.terms.terms3]})]}):null]})]})},ve=({onImageClick:i})=>{const a=A(),t=b();return e.jsxs(R,{windowSize:t,children:[e.jsxs(O,{windowSize:t,children:[e.jsx(Y,{onClick:i,"data-testid":h("play-button-mobile"),children:e.jsx(V,{})}),e.jsx(F,{windowSize:t,children:a.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(K,{windowSize:t,children:[e.jsxs(c,{windowSize:t,children:[e.jsx(d,{children:e.jsx(X,{})}),e.jsxs(m,{children:[e.jsx(S,{children:o.fullyManagedText.bold}),e.jsx(k,{children:o.fullyManagedText.regular})]})]}),e.jsxs(c,{windowSize:t,children:[e.jsx(d,{children:e.jsx(N,{})}),e.jsxs(m,{children:[e.jsx(S,{children:o.multiLevelApprovalText.bold}),e.jsx(k,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(c,{windowSize:t,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(m,{children:[e.jsx(S,{children:o.aiPoweredText.bold}),e.jsx(k,{children:o.aiPoweredText.regular})]})]})]})]})},Ce=({onImageClick:i})=>{const a=A(),t=b();return e.jsxs(R,{windowSize:t,children:[e.jsxs(K,{windowSize:t,children:[e.jsxs(c,{windowSize:t,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(X,{})}),e.jsxs(m,{children:[e.jsx($,{children:o.fullyManagedText.bold}),e.jsx(f,{children:o.fullyManagedText.regular})]})]}),e.jsxs(c,{windowSize:t,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(N,{})}),e.jsxs(m,{children:[e.jsx($,{children:o.multiLevelApprovalText.bold}),e.jsx(f,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(c,{windowSize:t,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(m,{children:[e.jsx($,{children:o.aiPoweredText.bold}),e.jsx(f,{children:o.aiPoweredText.regular})]})]})]}),e.jsxs(O,{windowSize:t,children:[e.jsx(Y,{onClick:i,"data-testid":h("play-button-web"),children:e.jsx(V,{})}),e.jsx(F,{windowSize:t,children:a.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})};export{Re as default};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import{u as Oe,X as _e,a1 as V,a as De,c3 as Re,M as Ue,l as He,a7 as Y,j as t,cI as ze,Y as Le,g as Me,C as u,aV as qe,c as Ne,F as Ge,c_ as Ke,aQ as Je,c$ as Qe,bs as Ye,d0 as Xe,a3 as Ze,o as L,m as a,s as et,b4 as tt}from"./index-CWmqNC4C.js";import{b as f,n as g}from"./vendor-CnQcJ2Lu.js";import{F as it}from"./HelpButton-BGHsn-1b-Cb4db_8O.js";import"./SetUpAccountSection-B9L-2aHz-CS276oDL.js";import{K as H}from"./SetUpDefaultSection-DO9aLike-BNjhrnJW.js";import{f as nt}from"./SpendMgmtSetupAccountSection-CVaXDNNK-CaCI906W.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DW6WCx4i-CGbCT0bE.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-CTuOhFQC-C5al8-0n.js";import"./ChaseOverlay-CxEiwxZq-CYOJ8ZhP.js";import"./ChargeCardUtils--ltNyvP2-TY5I7nE-.js";import"./CreditCardPaymentPlgSection-D9oAn9qk-hoy3ieFS.js";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",E="billPayAccount",It=({billPaySetupView:e,isDisabled:w,billpayApprovalView:$,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:fe,onEnableBillPayClick:ge,onEnableBillPaySuccess:M,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=_e(),[k,S]=f.useState(!1),q=f.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:W,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=$,O=W.link_account.updateStatus,_=W.update_account.updateStatus,F=V(p),K=V(b.fetchState),J=V(O.fetchState),Q=V(_.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>z(e),[e]),values:z(e)});f.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&F==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,F]),f.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||J==="In-Progress"&&O.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&x.reset(z(e))},[F,p,x,e,J,O.fetchState,Q,_.fetchState]);const Fe=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Ie=async(P,B)=>{const o=B[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const m=N.find(U=>U.id===o.fundingAccount.selectedOption);m!=null&&pe(o.fundingAccount.selectedOption,m.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const m=o.account.allOptions.find(U=>U.value===o.account.selectedOption);m!=null&&typeof m.label=="string"&&y.trackConnectBankLink(m.value,m.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};f.useEffect(()=>{const P=x.watch((B,{name:o})=>{o!=null&&B!=null&&Re(()=>Ie(o,B))});return()=>{P.unsubscribe()}}),f.useEffect(()=>{K==="In-Progress"&&b.fetchState==="Completed"&&M()},[M,K,b.fetchState]);const{commonSetUp:Be,spendManagement:Ve}=Ue.getLocalizedStrings(),{setUp:d}=Be,{billPaySetup:l}=Ve.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:l.setupSubTitle,$e=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new Y(C.colors.brandColorJadeLight):new Y(C.colors.brandColorJadeDark),We=()=>{!k&&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(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Me.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),$e?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...x,children:t.jsx("form",{id:Z(X),onSubmit:Fe,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:We,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:W,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:fe,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?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:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ye,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ze,{formId:Z(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
min-height: 100%;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
+
height: 100vh;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
`,ct=g(tt)`
|
|
10
|
+
width: ${L.sp3};
|
|
11
|
+
height: ${L.sp3};
|
|
12
|
+
color: ${e=>e.theme.colors.hero};
|
|
13
|
+
&:hover {
|
|
14
|
+
color: ${e=>e.theme.colors.primary};
|
|
15
|
+
}
|
|
16
|
+
`,st=g(et)`
|
|
17
|
+
color: ${e=>e.theme.colors.hero};
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
width: ${e=>n.titleWidth.valuePx(e.windowSize)};
|
|
21
|
+
padding-top: ${e=>n.subTitlePaddingTop.valuePx(e.windowSize)};
|
|
22
|
+
padding-bottom: ${e=>n.subTitlePaddingBottom.valuePx(e.windowSize)};
|
|
23
|
+
text-align: ${e=>e.windowSize==="small"?"initial":"center"};
|
|
24
|
+
`,rt=g.div`
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: flex-start;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
align-items: center;
|
|
29
|
+
row-gap: ${e=>n.setupDetailsRowGap.valuePx(e.windowSize)};
|
|
30
|
+
`,dt=g.div`
|
|
31
|
+
display: flex;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: calc(100vh - 110px);
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
align-items: center;
|
|
37
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
38
|
+
`,ut=g.div`
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
row-gap: ${e=>n.sectionRowGap.valuePx(e.windowSize)};
|
|
42
|
+
`,z=e=>{const{allBankAccounts:w,allFundingAccounts:$,primaryFundingAccount:v}=e;return{[E]:{fundingAccount:{selectedOption:v?.id,allOptions:$.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:v?.zeniAccountId,allOptions:w.map(s=>({label:s.accountName,value:s.accountId}))}}}},Z=e=>`${e}_form`;export{It as default,Z as uniqueName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as fe,X as Ce,a as xe,
|
|
1
|
+
import{u as fe,X as Ce,a as xe,c3 as Pe,a7 as $,M as be,j as t,C as P,aV as Ae,c as Ie,F as ve,aQ as je,c4 as $e,a3 as ke,o as s,h0 as Oe,cw as Ve,cx as Be,m as b,s as Ee,gf as Te,Q as ze,g as Le}from"./index-CWmqNC4C.js";import{b as H,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as W,e as Me}from"./PaymentAccountSetupBillingAddressSection-B2ZBSiCT-BcCn0Sg1.js";import{O as Re}from"./SetUpAccountSection-B9L-2aHz-CS276oDL.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-DO9aLike-BNjhrnJW.js";import"./ChaseOverlay-CxEiwxZq-CYOJ8ZhP.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},He={title:new ze("standardSemiBold","largeSemiBold")},_="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:Q,companyId:q,onUpdateAccountClick:G,onFetchLinkTokenClick:J,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:k,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(a),values:F(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(q)}),B=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Ve(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Be(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&G(h.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=C.mode==="light"?new $(C.colors.brandColorJadeLight):new $(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:T}=be.getLocalizedStrings(),ge=T.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,x=De(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(L).name}),color:new $(E)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=H.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:T.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:i,children:[t.jsx(Fe,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Ge,{children:t.jsx("form",{id:U(_),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Re,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:J,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:k,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:R}),Ne(i,l.headers.billingAddress,ce,Q,d)]})})})}),$e(S.formState.dirtyFields)?t.jsx(ke,{formId:U(_),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:B?.fetchState==="In-Progress",isDisabled:B?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:k,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:R,setCardSetupInProgress:we})]})},F=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(n,e.subscriptionBillingAddress)[n]}},We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -12,7 +12,7 @@ import{u as fe,X as Ce,a as xe,c2 as Pe,a7 as k,M as be,j as t,C as P,aW as Ae,d
|
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
width: 100%;
|
|
14
14
|
background-color: ${e=>e.theme.colors.grey4};
|
|
15
|
-
`,
|
|
15
|
+
`,Fe=r(Ee)`
|
|
16
16
|
color: ${e=>e.theme.colors.hero};
|
|
17
17
|
display: flex;
|
|
18
18
|
justify-content: center;
|
|
@@ -31,11 +31,11 @@ import{u as fe,X as Ce,a as xe,c2 as Pe,a7 as k,M as be,j as t,C as P,aW as Ae,d
|
|
|
31
31
|
`,Ke=r.div`
|
|
32
32
|
display: flex;
|
|
33
33
|
flex-direction: column;
|
|
34
|
-
`,Ne=(e,a,g,d,I)=>t.jsxs(
|
|
34
|
+
`,Ne=(e,a,g,d,I)=>t.jsxs(Qe,{children:[t.jsx(qe,{windowSize:e,isDisabled:I==="disabled",children:a}),t.jsx(Te,{googleAPIKey:d??"",addressToEdit:g,sectionId:`${n}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"}})]}),Qe=r.div`
|
|
35
35
|
margin-top: ${s.sp3};
|
|
36
36
|
margin-bottom: ${s.sp4};
|
|
37
|
-
`,
|
|
38
|
-
${e=>`${
|
|
37
|
+
`,qe=r.div`
|
|
38
|
+
${e=>`${He.title.style(e.windowSize)}`};
|
|
39
39
|
margin-bottom: ${s.sp3};
|
|
40
40
|
margin-top: ${s.sp4};
|
|
41
41
|
color: ${e=>e.isError===!0?Le.important:e.isDisabled===!0?e.theme.colors.grey1:e.theme.colors.primary};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{M as V,j as b,bO as M,bQ as q,bR as z,ji as W,l as G,aa as Q}from"./index-CWmqNC4C.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-CjWEPPvw-B5TX8ZjT.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:w}=t,u=i==="review",[B,h]=_.useState(!1),[s,v]=_.useState(j(t,u)),[p,E]=_.useState(u),[P,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),P===s.length&&p&&(E(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,P,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Z(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},F={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,Y(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=H(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,w),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.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:[B?b.jsx(M,{titleComponent:b.jsx(z,{children:f.title}),descriptionComponent:b.jsx(q,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:O,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:Q("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&G.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:J(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Y=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=W([...l,e.isRecurring?"recurring":"one-time"])}),l},Z=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>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_>",e)}},H=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:w,do_:u,does:B}=n.texts,h=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:w)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},J=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,Y as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as a,j as s,Y as b,o as r}from"./index-
|
|
1
|
+
import{X as a,j as s,Y as b,o as r}from"./index-CWmqNC4C.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-BHBDbLXD-D2tFRShv.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=a();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const h=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|