@zeniai/web-cockpit-ui 1.15.8-qa → 1.15.9-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-BVkQ4K87-2mUod8Ze.js +21 -0
- package/dist/assets/{AIPerformancePage-nAXYlFHx-D8t7UfO6.js → AIPerformancePage-BRTJZGiA-Uj0zJbS1.js} +47 -47
- package/dist/assets/AccountInfoPage-5HB6qYYU-DqbEDlqg.js +18 -0
- package/dist/assets/{AccountInfoPageContent-C6fN_njt-HYk5LymM.js → AccountInfoPageContent-PRtq3bFi-vLA60ZOz.js} +23 -23
- package/dist/assets/AccountLockedInfoModal-BPtkVnq9-Bo6KEtUJ.js +59 -0
- package/dist/assets/{AccountReconDetailsDrawerPage-ChfImufh-xGH31FUE.js → AccountReconDetailsDrawerPage-vJYKDiYF-DDXxWgsE.js} +47 -47
- package/dist/assets/{AccountRow-C0plHrDu-BHbrjlQa.js → AccountRow-DvTUqeYB-Coj4ZTWN.js} +16 -16
- package/dist/assets/{AccountsPromoCardStack-BCRuoijH-BiUfxCis.js → AccountsPromoCardStack-B8BaHMXs-D4T6qOCp.js} +35 -35
- package/dist/assets/AddAddressForCardDrawer-B7RkZqGh-CR2hhnGw.js +6 -0
- package/dist/assets/{AddToWalletPage-CKPw3FXG-1yjoUpl3.js → AddToWalletPage-DuHNwXF4-B3zEKxpl.js} +28 -28
- package/dist/assets/{AgingReportsPage-BLYXtrbx-ChP2VVRq.js → AgingReportsPage-BK1LaJ_w-yS7wx6wk.js} +14 -14
- package/dist/assets/{AllUserItems-CIuKSRs--BSTdrFJx.js → AllUserItems-CH9ybX41-BtFVBAV4.js} +5 -5
- package/dist/assets/ApAgingDetailPage-pA0gVWwq-0kF3KvyT.js +46 -0
- package/dist/assets/{AppBasePage-zQkWIZIS-J73aeT5P.js → AppBasePage-DhCn4MFY-D-3ZnoCB.js} +11 -11
- package/dist/assets/AppDrawerContent-oxbBkFJu-CMnZN7jn.js +92 -0
- package/dist/assets/{ApprovalRulesSettingsPage-Df5F_wnw-Cn6qw6gU.js → ApprovalRulesSettingsPage-B2Bp687h-BxxU0eeP.js} +2 -2
- package/dist/assets/{ArAgingChart-Dv9GPrlk-BDO04yvC.js → ArAgingChart-DDYQFnOL-BvAsGOBT.js} +7 -7
- package/dist/assets/{ArAgingDetailPage-vW-JcTgF-CdtFinK-.js → ArAgingDetailPage-BHX3sNTi-BYBOdJhr.js} +2 -2
- package/dist/assets/{AttachmentView-CHgDKLit-CNDwc0Eo.js → AttachmentView-BreMzQ_m-BNxecg_Q.js} +5 -5
- package/dist/assets/{BankAccountSection-danXlJW--CGFGOQdm.js → BankAccountSection-1WOCLgt5-BoGJh_uP.js} +7 -7
- package/dist/assets/BankAccountWarningSection-Ddj7HexZ-DdPqPHd3.js +51 -0
- package/dist/assets/{BankConnectionsSettingsPage-D4iHZXiy-DBmd09rV.js → BankConnectionsSettingsPage-9nczNfIe-BzLc4VYR.js} +27 -27
- package/dist/assets/{BillDetailPage-BD2IX-iP-QIATdRex.js → BillDetailPage-NeZduyMi-6p7P1QOU.js} +11 -11
- package/dist/assets/{BillPayApprovalRuleDetailPage-DYbGnWVc-JKxreggo.js → BillPayApprovalRuleDetailPage-BBTe3n92-C8p-rxLw.js} +5 -5
- package/dist/assets/{BillPayApprovalRulesPage-BW2wEvAf-DrTI5_46.js → BillPayApprovalRulesPage-Blk0_0Ou-58r-fHor.js} +5 -5
- package/dist/assets/{BillPayPromoPage-C7PX-EVL-DDmbTE9O.js → BillPayPromoPage-DFXybg0r-B5uuR3JI.js} +11 -11
- package/dist/assets/{BillPaySetUpPage-Czno3Zre-BE6uTwDe.js → BillPaySetUpPage-CP6gsxaz-BVI06dHo.js} +4 -4
- package/dist/assets/{BillingSettingsPage-DwBAvbyP-BOeTv55Y.js → BillingSettingsPage-D6BmklmO-DmihnPn_.js} +7 -7
- package/dist/assets/BillsBulkReviewDrawerPage-D0JHXr9f-D-HkiVRv.js +1 -0
- package/dist/assets/{BoxItem-CQn8-mlp-BpjhTACd.js → BoxItem-CjZDlBaw-C6EB-mJ-.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Pj_43PYG-BBfAZpRu.js → BusinessVerificationPage-cqBBWqBX-CZxCO1R2.js} +11 -11
- package/dist/assets/CardNumberSubText-BFe7Gawq-B8S1I_DT.js +21 -0
- package/dist/assets/{CashbackDetailPage-BPGA9iT0-pfH6WY-d.js → CashbackDetailPage-4R2WSvUG-DpCyR1av.js} +25 -25
- package/dist/assets/{ChargeCardDetailPage-draAZn9S-BLHAWsUD.js → ChargeCardDetailPage-DgvJC7HX-DrGkLiOb.js} +59 -59
- package/dist/assets/{ChargeCardListPage-gsG1eX_i-DncsEeIV.js → ChargeCardListPage-y3xkEXMi-Dfnd6MIF.js} +16 -16
- package/dist/assets/{ChargeCardListTable-DVFpdT9f-D6Qv1C8v.js → ChargeCardListTable-BZVA1znA-1HTc8EZK.js} +29 -29
- package/dist/assets/{ChargeCardPaymentHistoryPage-BbggvUhU-KYpdTWjw.js → ChargeCardPaymentHistoryPage-DUqCYxCZ-Bi49patK.js} +31 -31
- package/dist/assets/ChargeCardPromoPage-BGwXpSoW-CFyoJOm3.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-Ck37bWHj-63DpNOd1.js → ChargeCardSetupPage-CH6gSyU_-2ky3cmbf.js} +3 -3
- package/dist/assets/{ChargeCardStatementsPage-4bExV6ox-BSLQYECC.js → ChargeCardStatementsPage-B1FjTF7r-Dy-EmhIk.js} +5 -5
- package/dist/assets/{CheckDepositDrawerPage-cZ9nSw3H-D2wZXg2E.js → CheckDepositDrawerPage-B30gCDxH-DoiHXVEd.js} +25 -25
- package/dist/assets/{CollapsableReportTable-D9EGRkFb-rtyJvli3.js → CollapsableReportTable-CpOmWQO--CCW_jG6A.js} +60 -60
- package/dist/assets/{CompanyOfficerDetailsSection-C2j4TNi_-P80aH3rj.js → CompanyOfficerDetailsSection-0lnfwwSs-DTL-A6zC.js} +24 -24
- package/dist/assets/{CompanyPassportCard--3g9aidd-DEP92iFu.js → CompanyPassportCard-BPpSNcXb-DiAvuMuN.js} +7 -7
- package/dist/assets/{CompanyPassportPage-BhF3zWN0-D1AeDDw0.js → CompanyPassportPage-DwNjeLgb-D9KCZAQQ.js} +22 -22
- package/dist/assets/{CompleteProfile-iee5HgiC-DWDz1H5n.js → CompleteProfile-BPllbFai-CKGTWhqU.js} +3 -3
- package/dist/assets/ConfettiBurst-DweZPNXH-B1074GKy.js +1 -0
- package/dist/assets/{CreateOrEditVendorPage-DTlxyMQ8-DUgUVqol.js → CreateOrEditVendorPage-C_tIWYWJ-DrZr7pRF.js} +17 -17
- package/dist/assets/{CreditCardPaymentDrawerPage-CAZbzyFh-BQoH4AnG.js → CreditCardPaymentDrawerPage-DmYHQq7L-KNs23igZ.js} +14 -14
- package/dist/assets/{CurrencySelectField-CcU9PAOW-UhjAv5pw.js → CurrencySelectField-DoUpgUNU-D3sxrlik.js} +4 -4
- package/dist/assets/{CustomerOnboardingActivationPage-dXGInCs4-BfLZrVA_.js → CustomerOnboardingActivationPage-fr40BxEG-BAtGkwek.js} +8 -8
- package/dist/assets/CustomerOnboardingContainerPage-9g2L_yuF-C903cC5U.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-eZtb_MiZ-B7Pjeba4.js → CustomerOnboardingDetailPageSkeleton-CbEuqDGK-DBipeF2y.js} +9 -9
- package/dist/assets/CustomerOnboardingNoStepsPage-CNolx9VQ-BJ-qYAip.js +66 -0
- package/dist/assets/{CustomerOnboardingPage-CP969grW-DSt_mh2c.js → CustomerOnboardingPage-DrDjl8iB-Dx9AAiNO.js} +7 -7
- package/dist/assets/{CustomerOnboardingProductSuitePage-C-oDFj9a-KXFyyrbX.js → CustomerOnboardingProductSuitePage-CE2ztcG2-D-ZOZhc2.js} +7 -7
- package/dist/assets/{Dashboard-CKSEolZn-KkJW27CG.js → Dashboard-C1UoKVNa-DwZITN_K.js} +35 -35
- package/dist/assets/{DashboardReportPage-JLORU_HF-Cpq1a7z1.js → DashboardReportPage-b0pHN0Cw-BW6hDiSR.js} +18 -18
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BhNP2YDK-AvtdKUwZ.js → DashboardSidebarBackgroundAnimation-Dql-Odcw-CrREhWdb.js} +2 -2
- package/dist/assets/{DepositAccTransactionItem-B3A_2ZTg-BCChPgpu.js → DepositAccTransactionItem-Buzx5B8J-B4X-L_gR.js} +8 -8
- package/dist/assets/DepositAccTransactionListPage-DmxWPS6J-CPhkjFGO.js +66 -0
- package/dist/assets/{DomesticWireDetailsPage-DqVaQ5WI-DBkE3G1h.js → DomesticWireDetailsPage-o6cbscCg-D6yaIcSg.js} +1 -1
- package/dist/assets/{DownloadOverlay-D7AI3CGS-BSXz1TYL.js → DownloadOverlay-CxtxqO0q-Dz3uXEue.js} +35 -35
- package/dist/assets/{DrawerPage-BiQurb8Q-CwosoM_H.js → DrawerPage-iKzWhzfT-CLN7Nqu9.js} +16 -16
- package/dist/assets/EditPeoplePage-CjM-4H28-mYmRRYC8.js +55 -0
- package/dist/assets/{EditReimbursementDetailPage-CoBKUQzs-C2zvDGNE.js → EditReimbursementDetailPage-BIPtvhlo-COIsNVhm.js} +13 -13
- package/dist/assets/EntityDetailPage-B0W-V9jY-CqJeONU8.js +18 -0
- package/dist/assets/{EntitySummarySection-dbyZ3ZMD-DIUFVdBF.js → EntitySummarySection--ty3w4lI-o5ULFAtA.js} +11 -11
- package/dist/assets/{ExpenseAutomationOverviewPage-WTK5jHbV-D_hqg6CV.js → ExpenseAutomationOverviewPage-C62kbOQv-D4JsR6Ol.js} +29 -29
- package/dist/assets/{ExpenseAutomationPage-BLk7BdAz-ozrsfKpW.js → ExpenseAutomationPage-KMTXCmGT-DZpekdJc.js} +30 -30
- package/dist/assets/{ExpressPayPage-CaBFl4M3-CpnlRAIb.js → ExpressPayPage-DITkk_1c-BtyionmY.js} +11 -11
- package/dist/assets/FeaturePreviewPage-ZSyZuPj0-CJiy9EUi.js +11 -0
- package/dist/assets/{FollowStepsSection-BGZ3rzSO-DZqA0Ls-.js → FollowStepsSection-CaSXYy6M-CzewjFd_.js} +11 -11
- package/dist/assets/{GlobalReviewListPage-DIiVT0qf-C1h-R-9P.js → GlobalReviewListPage-D1MK5CDU-DobUC1e8.js} +13 -13
- package/dist/assets/{InformationCardStack-BZIU9Bwm-BPjI_Aqf.js → InformationCardStack-WI0CkBUF-D7YCWLUH.js} +5 -5
- package/dist/assets/{InsightsCardStack-BZ6yws_x-l5SDGStI.js → InsightsCardStack-28f145Lw-BuefuxqU.js} +8 -8
- package/dist/assets/InsightsSection-iq6BFe-O-DA4Jx3vy.js +27 -0
- package/dist/assets/{IntegrationsSettingsPage-JQ0sBJ-E-D0GHOz8k.js → IntegrationsSettingsPage-QfH-2B7s-BNyYW5Gn.js} +11 -11
- package/dist/assets/{InternationalWireSwiftDetailsPage-Bt0SYfe8-D4jFazij.js → InternationalWireSwiftDetailsPage-DhNqaJ-7-RtzP87XE.js} +24 -24
- package/dist/assets/InternationalWireVerificationPage-CRnGH05I-vQbDV8jX.js +65 -0
- package/dist/assets/{InviteFormPage-C-_fbwpS-Dc7fjvDO.js → InviteFormPage-CZ9su_ZA-CsfVdhXE.js} +24 -24
- package/dist/assets/{InvitePageListView-DX3LFpcZ-x0SBH5kb.js → InvitePageListView-Db5vL4dK-NFzFyNlR.js} +75 -75
- package/dist/assets/InvitePeoplePage-C7Ij2l1O-Dbf_TXXj.js +12 -0
- package/dist/assets/InvoiceUploadSection-DEchJrtp-C92WVr8V.js +140 -0
- package/dist/assets/{IssueChargeCardPage-BSax9G6t-li0Yc8Qz.js → IssueChargeCardPage-DVdMjgbO-mkT6Gcda.js} +26 -26
- package/dist/assets/{LabeledAddressValue-kz4tRnLH-fkTasFZL.js → LabeledAddressValue-jMXXok9a-C_alXtK_.js} +2 -2
- package/dist/assets/{LabeledAddressValueField-D950JjHi-CobscTGb.js → LabeledAddressValueField-BMQUZAxr-B3DdD5Cx.js} +3 -3
- package/dist/assets/{LabeledControlledCheckBoxField-BxXnpjp--D8QByb_Y.js → LabeledControlledCheckBoxField-CrOtltBs-BgazwPA0.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-CzFImFhW-y52IAHGb.js → LabeledCountryMultiSelectField-uBMn5XNT-nRQiUi6Y.js} +12 -12
- package/dist/assets/{LabeledCreatableSingleSelectField-gJu9uvr7-Baz8OVT_.js → LabeledCreatableSingleSelectField-BMRdFPtx--AY2rrpE.js} +7 -7
- package/dist/assets/LabeledDocumentField-DtsIRcRg-LgfBBRyq.js +41 -0
- package/dist/assets/LabeledDropDownFormattedTextField-rLwWoG-Y-aM061UXo.js +59 -0
- package/dist/assets/{LabeledMultiSelectField-CIuHS55z-BSvQJ-Z0.js → LabeledMultiSelectField-BhRoctp7-CtOCs4Ag.js} +1 -1
- package/dist/assets/{LabeledText-D0g7m29R-cxnm614T.js → LabeledText-Deyr6isW-Cw3u4ojj.js} +4 -4
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DzIW_6we-BrxkJlKg.js → LabeledUserSingleSelectWithSubtitlesField-u_6eDShW-BsQOZeOj.js} +14 -14
- package/dist/assets/{LabeledZeniRolesDropDownField-LWb3m6uz-BV8yj32-.js → LabeledZeniRolesDropDownField-CdAAgiie-C2bU99c9.js} +19 -19
- package/dist/assets/LinkJETransactionPage-A9rqpCyG-CiYf2g5t.js +98 -0
- package/dist/assets/{LockCardPage-XgZwsozn-DcNxXIWb.js → LockCardPage-CXZAffaX-CqLS5XfJ.js} +41 -41
- package/dist/assets/LowBalancePopup-BRxiaGRC-CJ9ANz96.js +34 -0
- package/dist/assets/MagicLinkACHDetailsPage-DwbFsGsL-BQPyG1YA.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-BgjMH36H-BbUZS1ad.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-C0jHD-87-CatMqDsO.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-D9asRaYX-hreLPWO1.js → MagicLinkSuccessPage-BiR4YUoK-xHaH-3WR.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CI_X5_g6-B9qDUBZ-.js → MagicLinkTitleSection-euMftC6_-Bdpw9jEH.js} +8 -8
- package/dist/assets/MailingDetailsSection-B8g--tZ7-9mvfahRZ.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-Bo5DQnsA-D0Sufsix.js → MyBankConnectionsSettingsPage-9Zw-bIsu-Uzll3gZc.js} +11 -11
- package/dist/assets/MyPendingActivationChargeCardListPage-_MhlKwOj-4wTxZJyE.js +6 -0
- package/dist/assets/MyProfileSettingsPage-BeSze0xM-Do6mSiuu.js +85 -0
- package/dist/assets/NavBarWithPicker-C4ExxFQW-CBeQSmTW.js +30 -0
- package/dist/assets/{NavigationArrow-BuPVGh38-XNHRi9o5.js → NavigationArrow-CJOSZIEx-Vi5xYiOy.js} +7 -7
- package/dist/assets/{NavigationDots-CLd0nZZT-CV65Lnrl.js → NavigationDots-DgfBVlG5-Begp91rh.js} +4 -4
- package/dist/assets/{NewGlobalMerchantPage-B4X5B9Kx-DrYC7XeB.js → NewGlobalMerchantPage-BXTlzEbY-AVMqLh8E.js} +43 -43
- package/dist/assets/{NoDataChart-VrW0gNeK-D9AHc7Vl.js → NoDataChart-Bwc_xftR-BPirwt2c.js} +2 -2
- package/dist/assets/NoDataTable-D_VKD0kA-DmQluo-I.js +8 -0
- package/dist/assets/{NotFoundPage-CvuhMeh3-DqU44v-s.js → NotFoundPage-CLkfFo_R-C8j5B2Ga.js} +4 -4
- package/dist/assets/{NotificationSettingsPage-612cyOPa-B2Br4UTC.js → NotificationSettingsPage-CC1kNoTw-DotH2NS5.js} +19 -19
- package/dist/assets/NotificationsListConfig-CEDk57Lr-DAddVQQW.js +1 -0
- package/dist/assets/{NotificationsPage-DOq8YY_K-DXXt11Bj.js → NotificationsPage-DR_MVYdY-CTDJJoO4.js} +29 -29
- package/dist/assets/{OpExByVendorPage-JhAQyVWO-CFIAoogA.js → OpExByVendorPage-CRkTiAd5-C0As_oOM.js} +20 -20
- package/dist/assets/OverlayContainerPage-IDTUbuAC-CRFgbke2.js +11 -0
- package/dist/assets/{PandLWithForecastPage-B8WG6VDM-DheE6AGf.js → PandLWithForecastPage-BCEjC9iA-DALj3dPN.js} +12 -12
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BT4jtUDt-wAvdlMUp.js → PaymentAccountSetupBillingAddressSection-BFcZtn5n-qrQdGMeL.js} +11 -11
- package/dist/assets/{PeoplePage-BJui-Wgk-ZqLOzULs.js → PeoplePage-D7D1SrW0-QS6a-b0Q.js} +25 -25
- package/dist/assets/{Preview-CWOI4w-4.js → Preview-o2DriYSg.js} +1 -1
- package/dist/assets/{ProductsCarousel-CGhEa82h-DIdMDRd_.js → ProductsCarousel-CSUU4sEb-_cwSUdhx.js} +7 -7
- package/dist/assets/{PromoBaseCards-1PF_kyGP-BRJ2sUha.js → PromoBaseCards-CSisWvqE-flcR83jC.js} +3 -3
- package/dist/assets/{QBOConnectionDialog-BVpU5kvg-HDDG_kF6.js → QBOConnectionDialog-gTTF-Gc0-DtM6eHvu.js} +7 -7
- package/dist/assets/QBOSetupSection-B2c7ZErC-C8usnCBc.js +79 -0
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CcH6vHDZ-zXLIrPpr.js → ReimbursementApprovalRuleDetailPage-DRxHZeeM-BSDkdjQ8.js} +6 -6
- package/dist/assets/{ReimbursementApprovalRulesPage-C22bGg4Y-ClYVlFhQ.js → ReimbursementApprovalRulesPage-CA54CNCd-BZeyQfno.js} +29 -29
- package/dist/assets/ReimbursementDetailPage-C8P6S9yn-CjGqaV3N.js +314 -0
- package/dist/assets/ReimbursementPromoPage-Bv6Eg8CH-iUgCjzha.js +84 -0
- package/dist/assets/{ReimbursementSetUpPage-B_Mkgwzu-BjjCmbcS.js → ReimbursementSetUpPage-CL1j_14z-1ntDkasP.js} +11 -11
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-XRdWaRhQ-DF7X2SfJ.js → ReimbursementsBulkReviewDrawerPage-BXlm8qfr-DFnWXpWm.js} +1 -1
- package/dist/assets/{ReloadCard-crbWeOPP-CXnI4BBC.js → ReloadCard-DQ8-0JyV-DB-bkjWN.js} +5 -5
- package/dist/assets/{ReportTableViewSelector-KXoOW677-VB10UJ6e.js → ReportTableViewSelector-BDXux6ow-8eyOx1Yh.js} +8 -8
- package/dist/assets/{ReportsPage-C3Jj54B2-BeGQBjYf.js → ReportsPage-fjTk3JSs-DUY58vJz.js} +10 -10
- package/dist/assets/{RevenueChart-B2lwdex1-Cn6eIKBB.js → RevenueChart-BAlErS9A-BXzh7yRj.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-BzJuymlx-De8jeqFq.js → ReviewDetailsPage-CSNmpZKJ-CmkvpWlb.js} +52 -52
- package/dist/assets/{ReviewOverlay-CXHcM5J8-CWmuYC1c.js → ReviewOverlay-Zcv9Vljd-hWfuTO7b.js} +17 -17
- package/dist/assets/RoleWithToolTip-D4abtguM-CazMvZo7.js +22 -0
- package/dist/assets/ScheduleDetailsFixedAssetsPage-AzGpMIv9-qvpVTvvJ.js +37 -0
- package/dist/assets/{ScheduleDetailsPage-C0WZjjTg-4LVdyrEA.js → ScheduleDetailsPage-FXdL5BP_-BIXnOShB.js} +8 -8
- package/dist/assets/{ScheduleSequenceTable-MEIZsagy-Bs57M6oJ.js → ScheduleSequenceTable-D4NEi6ZW-FMzTzWLm.js} +54 -54
- package/dist/assets/{ScreenRoutes-Br3O3Bv3.js → ScreenRoutes-esZWtP8Y.js} +1 -1
- package/dist/assets/{SetUpAccountSection-Drp97o6h-CUmuMQTP.js → SetUpAccountSection-DHNGWTAX-B_r28Ehm.js} +7 -7
- package/dist/assets/SignIn-8lCVuAse-CHvndysC.js +491 -0
- package/dist/assets/SignInScreen-4muhcIyV.js +1 -0
- package/dist/assets/{SpendManagementListViewPage-SufQOT9Y-DsXDsMNB.js → SpendManagementListViewPage-D0iaA1Tz-COkv1PV-.js} +11 -11
- package/dist/assets/{SpendManagementPerTabPage-vkAKQl3f-CDT-okI2.js → SpendManagementPerTabPage-NhC0DYPW-Dwrce6yO.js} +33 -33
- package/dist/assets/{SpendManagementSection-WqBeexgm-FC3yMOoP.js → SpendManagementSection-p_rbwPsi-DexNllt-.js} +14 -14
- package/dist/assets/StatementItem-BrFonWga-DiqKGCh-.js +31 -0
- package/dist/assets/{StatementsPage-ProqQbaP-Bwe3MvOf.js → StatementsPage-1LjLplay-CRMJqr5z.js} +2 -2
- package/dist/assets/{StatusSwitcher-CWQs9lpu-vdzoI5uC.js → StatusSwitcher-BWCVuAz5-D3jo7wqm.js} +2 -2
- package/dist/assets/{SubTabSwitcher-B2uBojsp-BscSJfWm.js → SubTabSwitcher-W-flws9A-BTelX8y_.js} +2 -2
- package/dist/assets/{SummaryCard-Dcd_VUph-CtvPqFVw.js → SummaryCard-Cy_49HY6-B5IOHtbz.js} +1 -1
- package/dist/assets/{TaskManagementPage-BM9VR6Lt-96HNn42p.js → TaskManagementPage-CgcgC28Q-DPD0nZtS.js} +36 -36
- package/dist/assets/{TimeRangeSwitcher-Sfz9Zsfu-C7Lz4In0.js → TimeRangeSwitcher-xEM6Ast5-BNVisZRV.js} +2 -2
- package/dist/assets/{TimeframeSwitcher--oC4RNb6-9wGsnDTh.js → TimeframeSwitcher-CJnjD8oY-C839RlNd.js} +6 -6
- package/dist/assets/{TimeframeSwitcherWithToggle-CaOGQOMX-IGT58opJ.js → TimeframeSwitcherWithToggle-CTsXGTZM-Y9gaGt4o.js} +2 -2
- package/dist/assets/{TopExCard-DQ50kCvS-ChFGt_1f.js → TopExCard-CK7rIKlo-BNMHqp-4.js} +5 -5
- package/dist/assets/{TopExDetailPage-iwv1KNmn-D2goxRJ1.js → TopExDetailPage-Dc310wcN-BBhzZoVz.js} +13 -13
- package/dist/assets/{TransactionDetailPage-dcUFs9xb-D1c2i9oL.js → TransactionDetailPage-BsSYhKxb-BeUI9jq4.js} +37 -37
- package/dist/assets/{TransactionList-1g-61_2b-BsVHB-dP.js → TransactionList-CKgtf7lj-CeKhT4wB.js} +14 -14
- package/dist/assets/{TransactionListBig-CSrLWjaV-DmreU3Pg.js → TransactionListBig-DY6b3Ezl-DffujAvB.js} +17 -17
- package/dist/assets/{TransactionListPage-CKkWpoxH-DwZxceId.js → TransactionListPage-CDc30p4A-D4rmxF8E.js} +6 -6
- package/dist/assets/{TransactionVendorDetailPage-BdVFxZdL-Da7F6NI9.js → TransactionVendorDetailPage-Ca8K8WSI-CLXVHv_c.js} +15 -15
- package/dist/assets/{TransferDrawerPage-nyepeege-C5aOIw_t.js → TransferDrawerPage-xTOs2aDo-Cdu71p0I.js} +28 -28
- package/dist/assets/{TreasuryOverviewPage-CkaOtstB-Cb7VOc7Q.js → TreasuryOverviewPage-CnJn5fQJ-BMNFC9wv.js} +26 -26
- package/dist/assets/{TreasuryPromoPage-B55rqmLO-B6nyli4-.js → TreasuryPromoPage-PW6ExJSX-C2E-AneM.js} +18 -18
- package/dist/assets/TreasuryStatementsPage-Dh5jSrh1-DVLMH1-Q.js +58 -0
- package/dist/assets/TreasuryTaxLetterPage-K4MAoNHw-C_oxTn6C.js +58 -0
- package/dist/assets/{TrendChart-BsSVNJm5-C5P4NUjk.js → TrendChart-DGkb9XC6-TghRUAyK.js} +4 -4
- package/dist/assets/{TrendWithTransactions-B6iLzpiJ-CD-GjoX8.js → TrendWithTransactions-BhIw1vzx-DxHaizu4.js} +6 -6
- package/dist/assets/{UncategorizedAccountsMappingPage-p3mhxO3d-BzXjBs-h.js → UncategorizedAccountsMappingPage-U-ABmUHs-HkDX3n37.js} +15 -15
- package/dist/assets/{UnitIntegrationPage-CEtqPMTy-CkFNHSgJ.js → UnitIntegrationPage-XOk1iw8U-R_8yzBvv.js} +11 -11
- package/dist/assets/UploadAdditionalDocumentOverlay-ucIA0by--ChniuyNy.js +38 -0
- package/dist/assets/{Vendor2FAPopup-BPoFrkoj-CrkNrLcq.js → Vendor2FAPopup-CNfFCjsZ-CkoROyAM.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-DbsvUZbM-D7Jtn49D.js +1 -0
- package/dist/assets/{VendorDetailPage-C0qX459r-DAL6sRtd.js → VendorDetailPage-DRLUdE3F-D_wc_LO2.js} +94 -94
- package/dist/assets/VendorDomesticWireDetailsPage-zrRC15oK-WziwpShk.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-Da667Gu2-DUD0rine.js → VendorFiling1099EditablePage-Yq4XoFtd-SHoE98jg.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-CJ-NKRm1-BgMJtPzx.js → VendorFirstReviewPage-BTFeQPW6-CV-VtP76.js} +54 -54
- package/dist/assets/{VendorInternationalWireDetailsPage-DodDB5wc-DKjAmytq.js → VendorInternationalWireDetailsPage-CdXjkgWl-DUXdXswt.js} +6 -6
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-BjUdW9fP-BIKyz_yo.js +1 -0
- package/dist/assets/{VendorsAccountsSection-C5cJ9KYV-BmGEajTn.js → VendorsAccountsSection-CIZ6amoh-iOdKNRxH.js} +2 -2
- package/dist/assets/{VerifyDevice-B23jU0_c-Y4SYDFq4.js → VerifyDevice-BLi9cbRT-CwhVwlo_.js} +6 -6
- package/dist/assets/{VideoPlayer-CylTUX4X-DSxfswME.js → VideoPlayer-BDCZd8K1-B6XIA6Sy.js} +2 -2
- package/dist/assets/{VideoPopup-C9x0ntQ5-BVA3i-oV.js → VideoPopup-Cni9gWLX-Db1l5e36.js} +3 -3
- package/dist/assets/{WarningsDrawerPage-DrjxA1t_-BoFSpSiS.js → WarningsDrawerPage-DO3TH_cI-DqJoX6_I.js} +5 -5
- package/dist/assets/{ZeniAccountDetailPage-B7aCx_qz-CIWx2G2v.js → ZeniAccountDetailPage-CBbqwtvo-DCLT-Box.js} +19 -19
- package/dist/assets/{ZeniAccountListViewPage-C2AHdlrD-C79um01B.js → ZeniAccountListViewPage-bS_K_U_k-C2TK8yr_.js} +14 -14
- package/dist/assets/ZeniAccountNavBarPieces-D4Nhv6iC-CW7ZMFVA.js +14 -0
- package/dist/assets/{ZeniAccountPromoPage-c0ITsnMc-B2My929b.js → ZeniAccountPromoPage-C40ORHL2-5Ose9Cov.js} +21 -21
- package/dist/assets/{ZeniAccountSetupPage-BE975QGg-D-DppFIe.js → ZeniAccountSetupPage-DfGwW1gJ-N18Rwn0q.js} +1 -1
- package/dist/assets/{ZeniCopyright-eB9rNuZ3-cNG8Rw7j.js → ZeniCopyright-D_tc-vwm-DQ7m38Jq.js} +1 -1
- package/dist/assets/ZeniTransferAmountSlider-CwO6861o-9MWcE76i.js +63 -0
- package/dist/assets/{add-to-wallet-DgdBD8_G-DHrWYIzW.js → add-to-wallet-DgdBD8_G-DMQostt2.js} +1 -1
- package/dist/assets/{analytics-g5EpLRud.js → analytics-YsywGP0I.js} +1 -1
- package/dist/assets/{analyticsHelper-CLY1vV_E-BwSnChaf.js → analyticsHelper-Bv2VSRHR-D5TeO7Fb.js} +1 -1
- package/dist/assets/{analyticsHelper-fz25hsmq.js → analyticsHelper-CM3pI6rO.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-Clrgdbmr.js → arrow-south-east-round-PEovUgvH-BwMp8Z1R.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-DfhOF4oT.js → auto-transfer-rule-mbafm5D3-CCCTiB9K.js} +1 -1
- package/dist/assets/{chartTypes-BjaXr-A2-D3DBmfud.js → chartTypes-CiiHHtlc-DhZqwiAZ.js} +1 -1
- package/dist/assets/{commonDimensions-C0X17W9N-CR9paNIq.js → commonDimensions-B94VpAp0-CDUYcayo.js} +1 -1
- package/dist/assets/{commonTypes-BN7Uh_8W-BM1Dtb_1.js → commonTypes-CG4vvGyc-CziHlkCE.js} +1 -1
- package/dist/assets/{constants-BnWgOytJ.js → constants-D9J3MLx1.js} +1 -1
- package/dist/assets/{core-hVMF2uNa.js → core-mVc5WAnu.js} +1 -1
- package/dist/assets/{dash.all.min-DDFTHNwM.js → dash.all.min-DEG4Ymx5.js} +1 -1
- package/dist/assets/{detailCommon-D9PsnkY1-D9_PN47h.js → detailCommon-D84jR8Js-CvDn1aAe.js} +5 -5
- package/dist/assets/downloadPdf-CU0hwe3m-B1XwfpLd.js +1 -0
- package/dist/assets/{empty-B0DaVBWz.js → empty-5WWfUuj_.js} +1 -1
- package/dist/assets/{empty-BNJPHWFv.js → empty-DgV33Jfm.js} +1 -1
- package/dist/assets/{epic-BVJNtCg8.js → epic-BDbWyMmO.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-CLwRJG71.js → gift-box-Cmt9OgIZ-DkfKk8Ub.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-C7rs195d.js → graphic-no-data-l-DU4J8fDt-DdD14QZ1.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BeL6_aGQ.js → graphic-no-data-net-burn-l-CzmycA0m-Bxmoc4Q1.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BW29_pZa.js → handshake-BPg58FML-BtKj2QSx.js} +1 -1
- package/dist/assets/{index-rCukSMbs.js → index-0lgepYHN.js} +1 -1
- package/dist/assets/{index-e-SZUuyN.js → index-AqGiWrum.js} +4262 -4259
- package/dist/assets/{index-BAImUaY2.js → index-B0WS5HXc.js} +1 -1
- package/dist/assets/{index-B3faO1JB.js → index-CneahQyi.js} +1 -1
- package/dist/assets/{index-C_w5gZ8Z.js → index-DBHzoy-Y.js} +1 -1
- package/dist/assets/{index-lOJEokPl.js → index-DfP1TP46.js} +1 -1
- package/dist/assets/{index-6pOBrRlk.js → index-s8Qql19x.js} +1 -1
- package/dist/assets/{lexical-DYQnWL1V.js → lexical-D1NyDz9G.js} +1 -1
- package/dist/assets/{liveblocks-BKvkleJ3.js → liveblocks-D8QW-YrN.js} +1 -1
- package/dist/assets/{lottie-N_bekW9H.js → lottie-CoVfqInY.js} +1 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-dE6c_J7g-BidRqUlX.js +1 -0
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-C9RPV_Hz-BdcAtsjX.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-CxY0Ic8W-W7hZE2p5.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-BJHD6cPI-DvQ95SJz.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-rysmkLch-Dj7OJ6xq.js +1 -0
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-Dj8VTtaz-BeBYiLrc.js +1 -0
- package/dist/assets/{mui-mhzAEcDs.js → mui-C_Pjuwl5.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-C7t8NOxn.js → page-detail-CWX5S47F-CwgQ04Z1.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-j32Y6uZn.js → radio-default-CiSgisfh-DOAN6MGR.js} +1 -1
- package/dist/assets/{react-DtZ57b9E.js → react-B1uWJZNI.js} +1 -1
- package/dist/assets/{react-CQNyoV6B.js → react-B4qkP2kJ.js} +1 -1
- package/dist/assets/{react-DmkejrPd.js → react-COMbZ_ke.js} +1 -1
- package/dist/assets/{react-d4G_qR0V.js → react-CYpEpWLK.js} +1 -1
- package/dist/assets/{react-CYwBg0du.js → react-CzW7TnV7.js} +2 -2
- package/dist/assets/{react-BcEP-SPV.js → react-Dk6KMPxp.js} +1 -1
- package/dist/assets/{react-3qVVe610.js → react-UmTxIL5W.js} +1 -1
- package/dist/assets/{react-Dvjzsiej.js → react-VqVdlbBp.js} +1 -1
- package/dist/assets/{recharts-BErFcng5.js → recharts-BGj_NTVO.js} +1 -1
- package/dist/assets/{sentry-Dla7mstv.js → sentry-CTKU7CLc.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-CJdp4Bi9.js → shield-DOlUxcFf-Chnu35pG.js} +1 -1
- package/dist/assets/toCOABalancesWithID-RFiSMP1Z-CSbaIcFr.js +1 -0
- package/dist/assets/toChartData-DShY1WZ8-5FxZpBKl.js +1 -0
- package/dist/assets/{uploadAttachment-BLADYUsp-CuyJL9Ae.js → uploadAttachment-DKMAkDBt-BNugFjMC.js} +19 -19
- package/dist/assets/{uploadReceipts-CLN2DLHQ-BcmoXhPJ.js → uploadReceipts-DJRtId-4-Bz9k1YgZ.js} +1 -1
- package/dist/assets/{url-B3SdXouN.js → url-CQ0hVJlH.js} +1 -1
- package/dist/assets/{url-HFFKPU2S.js → url-QugEHHKq.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-km9xaFy6.js → useLongPress-GCK2COYQ-B-Cv7oJI.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-C5eOwLOD.js → usp-line-BBd1wKwW-DQyOXy13.js} +1 -1
- package/dist/assets/{utils-D6NmQd1Q.js → utils-DJxCyxGL.js} +1 -1
- package/dist/assets/{zeni-epic-state-CSmiPBaP.js → zeni-epic-state-Cl3KIlic.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ACHDetailsPage-C4kSZtcW-CRAncXjZ.js +0 -21
- package/dist/assets/AccountInfoPage-BgYgT10O-BPubXPU8.js +0 -18
- package/dist/assets/AccountLockedInfoModal-DRmaVRzS-Dz8UCOQu.js +0 -59
- package/dist/assets/AddAddressForCardDrawer-BOX_B6jm-HjaseCvO.js +0 -6
- package/dist/assets/ApAgingDetailPage-DeqICFKW-BGrGI80f.js +0 -46
- package/dist/assets/AppDrawerContent-OIrm7j-k-CAl-h4tc.js +0 -91
- package/dist/assets/BankAccountWarningSection-Byabqq8Z-B6b9o7wy.js +0 -51
- package/dist/assets/BillsBulkReviewDrawerPage-YBZ0Qqa6-Btjur5rB.js +0 -1
- package/dist/assets/CardNumberSubText-2Tw37MOu-Na5odSIe.js +0 -21
- package/dist/assets/ChargeCardPromoPage-DIxy-YcS-CPRuhZCR.js +0 -222
- package/dist/assets/ConfettiBurst-Dl2Z6LKw-BXiTHcqO.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-CtySgp6R-DlPVcAtZ.js +0 -1
- package/dist/assets/CustomerOnboardingNoStepsPage-BprU0lwT-CBl7xIv9.js +0 -66
- package/dist/assets/DepositAccTransactionListPage-S0zh1Xel-DgEcVBWB.js +0 -66
- package/dist/assets/EditPeoplePage-DkLTV485-DSmYd3gF.js +0 -55
- package/dist/assets/EntityDetailPage-ougFUO1M-D5lOJcsX.js +0 -18
- package/dist/assets/FeaturePreviewPage-BY7VDaUB-BlOtvf2P.js +0 -11
- package/dist/assets/InsightsSection-CdlmvyOs-CSbQ6jxV.js +0 -27
- package/dist/assets/InternationalWireVerificationPage-ZiPvLcjo-CzF6c2rU.js +0 -65
- package/dist/assets/InvitePeoplePage-DOfw4ntH-Bnv1S2jS.js +0 -12
- package/dist/assets/InvoiceUploadSection-7NLq2wUY-D1Ujr_CT.js +0 -140
- package/dist/assets/LabeledDocumentField-y5kqHnHe-Cd6aBb3C.js +0 -41
- package/dist/assets/LabeledDropDownFormattedTextField-Vg6A9BxH-8L8nXgg2.js +0 -59
- package/dist/assets/LinkJETransactionPage-DQUYzOEN-CAqtea48.js +0 -98
- package/dist/assets/LowBalancePopup-ChBTdcM2-BRhnRaDc.js +0 -34
- package/dist/assets/MagicLinkACHDetailsPage-CwTDkcTO-Caq0ps9o.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-ncokQaY5-Cl_8tBOk.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-BHRkSlI7-oQ1LN-Ng.js +0 -1
- package/dist/assets/MailingDetailsSection-C_ZYNZtm-CJ5xMswj.js +0 -21
- package/dist/assets/MyPendingActivationChargeCardListPage-yE_BAGUU-BmwV3pjH.js +0 -6
- package/dist/assets/MyProfileSettingsPage-BHZrydBY-B_909T6y.js +0 -85
- package/dist/assets/NavBarWithPicker-DfM5Vi5g-BWJESbaI.js +0 -30
- package/dist/assets/NoDataTable-CZaHTbXi-cbckRR4v.js +0 -8
- package/dist/assets/NotificationsListConfig-CrNHxW9v-KkWyZsCx.js +0 -1
- package/dist/assets/OverlayContainerPage-CEiw6dk7-D-uaIGKT.js +0 -11
- package/dist/assets/QBOSetupSection-QpfgbXqT-DygUgRVU.js +0 -79
- package/dist/assets/ReimbursementDetailPage-BntmMmsa-DBIHpTWQ.js +0 -314
- package/dist/assets/ReimbursementPromoPage--ddzF7ri-C8Whx13o.js +0 -84
- package/dist/assets/RoleWithToolTip-q4rQTPKj-DnZtHqjj.js +0 -22
- package/dist/assets/ScheduleDetailsFixedAssetsPage-BDxnIjkN-RHoI8Wq9.js +0 -37
- package/dist/assets/SignIn-YqQXhCUb-DTchfIMW.js +0 -491
- package/dist/assets/SignInScreen-BEl-iT5I.js +0 -1
- package/dist/assets/StatementItem-DNtPyOiC-Cwms937J.js +0 -31
- package/dist/assets/TreasuryStatementsPage-DA72LRB2-BCFMT-Wb.js +0 -58
- package/dist/assets/TreasuryTaxLetterPage-CQ2nQIPi-BvK8_LPp.js +0 -58
- package/dist/assets/UploadAdditionalDocumentOverlay-BYrAIUiK-19i7WD8j.js +0 -38
- package/dist/assets/VendorACHDetailsPage-_UmamDKx-DnLhvKeC.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-DJCb_XK0-D6ans18-.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-ain3pHSa-CGNH7X2x.js +0 -1
- package/dist/assets/ZeniAccountNavBarPieces-AwdFLryC-Jh4OQT7x.js +0 -14
- package/dist/assets/ZeniTransferAmountSlider-CMYjwzsb-D5scnWJV.js +0 -63
- package/dist/assets/downloadPdf-DE7Hd8jE-BAK9xguG.js +0 -1
- package/dist/assets/mapLoadingInProgressToTreeNode-C4CzR5xS-BKTQHVzy.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-4MBuc1Sm-CE09aSrt.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-hZvWCXjA-hu7JWeUA.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-CHvIKq5Y-DtuP5OpB.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-D4r2BVXx-BgK_pIe_.js +0 -1
- package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-nP8CDp4j-H65zpMKu.js +0 -1
- package/dist/assets/toCOABalancesWithID-DPAmy3GS-PiTKgxz9.js +0 -1
- package/dist/assets/toChartData-D5QdTlGa-DLv4zZlP.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{g as be,Q as je,a9 as Xe,cE as Ye,V as t,bB as Ze,o as i,F as re,y as P,am as et,al as U,T as se,cl as tt,ac as nt,bS as it,u as v,b9 as ot,b as Ne,a as at,a8 as ze,cI as ct,aQ as J,aV as fe,fy as Te,er as lt,bw as He,fz as _e,fA as st,fB as qe,b_ as Ee,fC as rt,fD as dt,fE as ge,fF as we,fG as Ie,aN as Se,cd as xe,aP as ut,bJ as pt,dL as Je,p as ne,ai as B,fH as ht,fI as mt,fJ as ft,bi as gt,fK as wt}from"./index-AqGiWrum.js";import{a as r}from"./sentry-CTKU7CLc.js";import{n}from"./mui-C_Pjuwl5.js";import{r as Pe}from"./core-mVc5WAnu.js";import{bJ as St,bK as ie,bL as Fe}from"./zeni-epic-state-Cl3KIlic.js";import{a as xt}from"./SetUpAccountSection-DHNGWTAX-B_r28Ehm.js";import"./liveblocks-D8QW-YrN.js";import"./recharts-BGj_NTVO.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="80f8c368-28fe-4710-ab65-df8289d2d7c1",e._sentryDebugIdIdentifier="sentry-dbid-80f8c368-28fe-4710-ab65-df8289d2d7c1")}catch{}})();const{settings:{bankConnectionHeader:de}}=re.getLocalizedStrings().common,yt={value:de.productType,width:new P(100,19)},bt={value:de.primaryAccount,width:new P(100,36)},vt={value:de.linkAccount,width:new P(100,22)},kt={value:de.status,width:new P(12,12)},$t={value:de.balance,width:new P(12,13)},N=[yt,bt,vt,kt,$t],{common:{settings:Oe,strings:{hyphen:ve}},commonSetUp:{setUp:Be}}=re.getLocalizedStrings(),T={containerPadding:new P(v[3],v[4]),containerRightPadding:new P(v[3],v[8]),iconContainerMaxWidthHeight:new P(v[6],v[7]),iconWidthHeight:new P(20,v[4]),iconPadding:new P(v[1],12),productTypeContainerMarginBottom:new P(v[3],v[0]),linkAccountContainerMarginTop:new P(v[3],v[0]),productTypeIconSize:new P(v[3],v[4])},At="bankConnectionsSettingsPage",Ct=({productType:e,windowSize:d})=>{switch(e){case"bill_pay":return t.jsx(Ht,{windowSize:d,children:t.jsx(gt,{})});case"reimbursement":return t.jsx(qt,{windowSize:d,children:t.jsx(ft,{})});case"zeni_accounts":return t.jsx(Jt,{windowSize:d,children:t.jsx(He,{})});case"zeni_treasury":return t.jsx(Qt,{windowSize:d,children:t.jsx(mt,{})});case"charge_cards":default:return t.jsx(Gt,{windowSize:d,children:t.jsx(ht,{})})}},jt=({allBankAccounts:e,setupView:d,connectedAccountProvider:H,onFetchLinkTokenClick:V,onUpdatePaymentAccountStatus:_,onEstablishConnectionClick:I,onEstablishConnectionSuccess:R})=>{const A=be(),c=je(),f=ze().analytics,{trigger:w,formState:{errors:D}}=ct(),{plaidConnectionDetails:M,allFundingAccounts:a,primaryFundingAccount:o,productType:l}=d,m=M.link_account,k=M.update_account,[p,C]=r.useState(void 0),[q,b]=r.useState(!1),W=()=>{b(!0)},u=p==="update_account"?k:m,[S,L]=r.useState(u.linkToken??null),[$,z]=r.useState(!1),g=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";let h,E,s,j=!1;o!=null&&(o.accType==="depositAccount"?h={code:"verified",name:"Verified"}:(h=o.providerVerificationStatus,E=o?.institutionDetails,s=h?.code,j=o?.isLoginRequired??!1));const K=J(m.updateStatus.fetchState),X=J(k.updateStatus.fetchState),Z=J(k.fetchStatus.fetchState),F=A.mode==="light"?new fe(A.colors.brandColorJadeLight):new fe(A.colors.brandColorJadeDark),G=r.useCallback((x,Q)=>{f.trackConnectBankSuccess(l,"Settings");const Le=Q.accounts.find(Ke=>Ke.id===o?.providerAccountId)??Q.accounts[0];o?.id!=null&&p==="update_account"&&Le?.verification_status!=null&&!j?_(Le?.verification_status,o.id,"update_account",y(l),l):I(x,y(l),l),C(void 0),z(!1)},[f,l,o?.id,o?.providerAccountId,p,j,_,I]),ee=r.useCallback((x,Q)=>{x!=null&&(f.trackConnectBankFailure(l,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&o?.id!=null&&_("verification_failed",o.id,"update_account",y(l),l),console.log("Plaid Connection Error",x,Q)),C(void 0),z(!1)},[f,l,o?.id,_]),{open:Y,ready:ue}=Te({token:S,onSuccess:G,onExit:ee});r.useEffect(()=>{(K==="In-Progress"&&m.updateStatus.fetchState==="Completed"||X==="In-Progress"&&k.updateStatus.fetchState==="Completed")&&(St(s??"")||(V("link_account",y(l)),R(y(l),l)))},[m.updateStatus.fetchState,R,V,o?.providerVerificationStatus?.code,o?.id,K,X,k.updateStatus.fetchState,s,l]),r.useEffect(()=>{(ie(s??"")||s==="verification_failed")&&!$&&p!=null&&u.linkToken===S&&u.fetchStatus.fetchState==="Completed"&&ue&&z(!0)},[ue,S,u.fetchStatus.fetchState,u.linkToken,s,p,$]);const oe=$e(At,"primaryAccountSection"),O=lt(D,oe);r.useEffect(()=>{u.fetchStatus.fetchState==="Completed"&&u.linkToken!=null&&u.linkToken!==S&&L(u.linkToken)},[u.fetchStatus.fetchState,u.linkToken,S]),r.useEffect(()=>{$&&Y()},[$,Y]),r.useEffect(()=>{!o?.zeniAccountId&&!O&&w(oe)},[o?.id]),r.useEffect(()=>{(s==null||s==="verification_failed"||s==="verification_expired"||ie(s))&&(Fe(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&V("link_account",y(l))},[]);const te=()=>{f.trackConnectBankGetBalance(l,"Settings"),C("update_account"),V("update_account",y(l),o?.id)},ae=`${o?.accountSubType?.name!=null?o?.accountSubType?.name.substring(0,1).toUpperCase().concat(o?.accountSubType?.name.substring(1)):""} ${o?.maskedAccountNumber??""}`.trim(),pe=E?.zeniInstitutionId.toLowerCase()==="chase",Ge=a.findIndex(x=>x.id===o?.id),Qe={element:t.jsx(He,{width:T.iconWidthHeight.valuePx(c)}),color:F};return t.jsxs(zt,{windowSize:c,children:[q===!0?Pe.createPortal(t.jsx(_e,{connectedAccountProvider:H,action:{onBackClick:()=>b(!1)}}),document.body):null,t.jsxs(Tt,{windowSize:c,wrapperWidth:N[0].width,children:[t.jsx(It,{windowSize:c,isDarkMode:A.mode==="dark",children:t.jsx(Ct,{productType:l,windowSize:c})}),t.jsx(_t,{children:Oe.productNameByType[l]})]}),t.jsx(Pt,{windowSize:c,wrapperWidth:N[1].width,children:t.jsxs(Vt,{windowSize:c,children:[o!=null&&c!=="small"?t.jsx(Bt,{isDisabled:j,children:st(Qe,c,A.mode==="dark",o,Ge,!1)}):null,t.jsxs(Rt,{windowSize:c,className:"fundingAccount",children:[t.jsx(qe,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:A.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:v[4],fontWeight:Ee.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:A.colors.hero,weight:Ee.medium},name:$e(l,"primaryAccountSection"),placeholder:Be.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,Q)=>dt(a,x,Q),valueToSubLabels:(x,Q)=>rt(a,x,Q,!1),defaultValue:{selectedOption:o?.id,allOptions:a.map(x=>({label:x.label,value:x.id,isRecommended:x.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:g?"disabled":void 0,showLoadingIcon:g,onClickCreateOption:()=>{f.trackConnectBank(l,"Settings"),C("link_account"),m.linkToken==null||Fe(new Date().toISOString()).isAfter(m.expiration)?V("link_account",y(l)):S!==m.linkToken?L(m.linkToken):$?Y():z(!0)}}),t.jsxs(Lt,{isDisabled:j,children:[ae?t.jsxs(t.Fragment,{children:[t.jsx(Et,{children:ae}),c!=="small"&&(s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe)?t.jsx(Ot,{}):null]}):null,c==="small"&&h!=null?t.jsx(ge,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:h.name,textColor:we(h.code)}):null,s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe?t.jsx(Ie,{productType:l,isUpdateLinkClicked:p==="update_account",isLoginRequired:j,isPendingVerification:s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:k.fetchStatus,updateStatus:k.updateStatus,linkFetchStatus:m.fetchStatus,linkUpdateStatus:m.updateStatus,prevFetchState:Z,prevUpdateState:X},onUpdateLinkTokenClick:te,onChaseInfoClick:W}):null]})]}),c==="small"?t.jsxs(Mt,{children:[o?.accountBalance?.available?t.jsx(Ve,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:ve}),o?.accountBalance?.lastRefreshTime?t.jsx(Re,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Ut,{windowSize:c,isDisabled:j,wrapperWidth:N[2].width,onClick:x=>x.stopPropagation(),"data-testid":ut("bank-account-section",l),className:"qboLinkAcc",children:[c==="small"?t.jsx(Ft,{children:Oe.bankConnectionHeader.linkAccount}):null,t.jsx(Nt,{isDisabled:j?"disabled":void 0,name:$e(l,"bankAccountSection"),placeholder:Be.zeniCashAccountPlaceholder,defaultValue:{selectedOption:o?.zeniAccountId??"",allOptions:e.map(x=>({label:x.accountName,value:x.accountId}))},controlProperty:{highlightOnHover:!0},isOptionRemovable:!1,textAlignment:"left",registerOptions:{required:!1},style:{width:c==="small"?"calc(100% - 135px)":"100%",marginLeft:c==="small"?i.sp0:`-${i.sp3}`}})]}),c!=="small"?t.jsx(Wt,{windowSize:c,wrapperWidth:N[3].width,children:h!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:h.name,textColor:we(h.code)}):t.jsx(ke,{children:ve})}):null,c!=="small"?t.jsxs(Dt,{windowSize:c,wrapperWidth:N[4].width,children:[o?.accountBalance?.available?t.jsx(Ve,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:ve}),o?.accountBalance?.lastRefreshTime?t.jsx(Re,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},zt=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
4
4
|
align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
|
|
@@ -43,17 +43,17 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
43
43
|
align-items: center;
|
|
44
44
|
color: ${e=>e.isDisabled?e.theme.colors.grey1:"inherit"};
|
|
45
45
|
flex-wrap: wrap;
|
|
46
|
-
`,
|
|
46
|
+
`,Et=n.div`
|
|
47
47
|
display: flex;
|
|
48
|
-
`,
|
|
48
|
+
`,Ve=n(U)`
|
|
49
49
|
display: flex;
|
|
50
50
|
justify-content: flex-end;
|
|
51
|
-
`,
|
|
51
|
+
`,Re=n(B)`
|
|
52
52
|
color: ${e=>e.theme.colors.hero};
|
|
53
|
-
`,
|
|
53
|
+
`,Ft=n(B)`
|
|
54
54
|
color: ${e=>e.theme.colors.grey1};
|
|
55
55
|
width: 135px;
|
|
56
|
-
`,
|
|
56
|
+
`,Ot=n.div`
|
|
57
57
|
display: inline-block;
|
|
58
58
|
border-radius: ${i.sp2};
|
|
59
59
|
margin: ${i.sp0} ${i.sp2};
|
|
@@ -64,26 +64,26 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
64
64
|
`,Bt=n.div`
|
|
65
65
|
display: flex;
|
|
66
66
|
opacity: ${e=>e.isDisabled?.8:1};
|
|
67
|
-
`,
|
|
67
|
+
`,Vt=n.div`
|
|
68
68
|
display: flex;
|
|
69
69
|
justify-content: flex-start;
|
|
70
|
-
`,
|
|
70
|
+
`,Rt=n.div`
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
width: ${e=>e.windowSize==="small"?"64%":"100%"};
|
|
74
|
-
`,
|
|
74
|
+
`,Dt=n.div`
|
|
75
75
|
display: flex;
|
|
76
76
|
flex-direction: column;
|
|
77
77
|
justify-content: center;
|
|
78
78
|
align-items: flex-end;
|
|
79
79
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
80
|
-
`,
|
|
80
|
+
`,Mt=n.div`
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
align-items: flex-end;
|
|
84
84
|
justify-content: center;
|
|
85
85
|
width: 36%;
|
|
86
|
-
`,
|
|
86
|
+
`,Wt=n.div`
|
|
87
87
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
88
88
|
`,Ut=n.div`
|
|
89
89
|
display: flex;
|
|
@@ -91,12 +91,12 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
91
91
|
opacity: ${e=>e.isDisabled?.4:1};
|
|
92
92
|
width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
|
|
93
93
|
margin-top: ${e=>T.linkAccountContainerMarginTop.valuePx(e.windowSize)};
|
|
94
|
-
`,Nt=n(
|
|
94
|
+
`,Nt=n(qe)`
|
|
95
95
|
border-radius: ${i.sp2};
|
|
96
96
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
97
97
|
color: ${e=>e.theme.colors.hero};
|
|
98
98
|
${Ne.smallRegular.css};
|
|
99
|
-
`,
|
|
99
|
+
`,Ht=n.div`
|
|
100
100
|
width: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
101
101
|
height: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
102
102
|
display: flex;
|
|
@@ -106,7 +106,7 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
106
106
|
width: 100%;
|
|
107
107
|
height: 100%;
|
|
108
108
|
}
|
|
109
|
-
`,
|
|
109
|
+
`,qt=n.div`
|
|
110
110
|
width: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
111
111
|
height: ${e=>T.productTypeIconSize.valuePx(e.windowSize)};
|
|
112
112
|
display: flex;
|
|
@@ -146,7 +146,7 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
146
146
|
width: 100%;
|
|
147
147
|
height: 100%;
|
|
148
148
|
}
|
|
149
|
-
`,$e=(e,d)=>`${e}.${d}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:Ae,strings:{empty:
|
|
149
|
+
`,$e=(e,d)=>`${e}.${d}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:Ae,strings:{empty:Kt,hyphen:Xt}}}=re.getLocalizedStrings(),he={paymentAccountIconSize:new P(v[6],v[7])},Yt=()=>null,Zt=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:V,onRemoveConnection:_,onFetchLinkTokenClick:I,onEstablishConnectionClick:R,onEstablishConnectionSuccess:A,onUpdatePaymentAccountStatus:c})=>{const f=be(),w=je(),D=ze().analytics,[M,a]=r.useState(!1),[o,l]=r.useState(!1),m=()=>{l(!0)},k=e.plaidConnectionDetails.link_account,p=e.plaidConnectionDetails.update_account,[C,q]=r.useState(void 0),b=C==="update_account"?p:k,[W,u]=r.useState(b.linkToken??null),[S,L]=r.useState(!1),$=J(k.updateStatus.fetchState),z=J(p.updateStatus.fetchState),g=J(p.fetchStatus.fetchState),h=e?.providerVerificationStatus,E=e?.isLoginRequired??!1,s="other_connection",j=h?.code,K=r.useCallback((O,te)=>{D.trackConnectBankSuccess(s,"Settings");const ae=te.accounts.find(pe=>pe.id===e.providerAccountId)??te.accounts[0];e.paymentAccountId!=null&&C==="update_account"&&ae?.verification_status!=null&&!E?c(ae?.verification_status,e.paymentAccountId,"update_account",y(s),s):R(O,y(s),s),q(void 0),L(!1)},[D,s,e.paymentAccountId,e.providerAccountId,C,E,c,R]),X=r.useCallback((O,te)=>{O!=null&&(D.trackConnectBankFailure(s,O.error_code+" "+O.error_message,"Settings"),O.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(s),s),console.log("Plaid Connection Error",O,te)),q(void 0),L(!1)},[D,s,e.paymentAccountId,c]),{open:Z,ready:F}=Te({token:W,onSuccess:K,onExit:X});r.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==W&&u(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,W]),r.useEffect(()=>{S&&Z()},[S,Z]),r.useEffect(()=>{($==="In-Progress"&&k.updateStatus.fetchState==="Completed"||z==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(ie(j??"")||(I("link_account",y(s)),A(y(s),s)))},[k.updateStatus.fetchState,A,I,e?.providerVerificationStatus?.code,e?.paymentAccountId,$,z,p.updateStatus.fetchState,j,s]),r.useEffect(()=>{(ie(j??"")||j==="verification_failed")&&!S&&C!=null&&b.linkToken===W&&b.fetchStatus.fetchState==="Completed"&&F&&L(!0)},[F,W,b.fetchStatus.fetchState,b.linkToken,j,C,S]);const G=()=>{D.trackConnectBankGetBalance(s,"Settings"),q("update_account"),I("update_account",y(s),e.paymentAccountId)},ee=f.mode==="light"?new fe(f.colors.brandColorJadeLight):new fe(f.colors.brandColorJadeDark),Y={element:t.jsx(pn,{windowSize:w,children:t.jsx(wt,{})}),color:ee},ue=d.find(O=>O.accountId===e.zeniAccountId),oe=()=>{a(O=>!O)};return t.jsxs(en,{onMouseEnter:oe,onMouseLeave:oe,children:[o===!0?Pe.createPortal(t.jsx(_e,{connectedAccountProvider:V,action:{onBackClick:()=>l(!1)}}),document.body):null,t.jsxs(tn,{windowSize:w,wrapperWidth:N[0].width,children:[t.jsx(nn,{children:Ae.otherAccount.title}),t.jsx(on,{children:Ae.otherAccount.subTitle})]}),t.jsxs(an,{windowSize:w,wrapperWidth:N[1].width,children:[xt(Y,w,f.mode==="dark",e,!0),t.jsxs(hn,{children:[t.jsx(mn,{children:t.jsx(Sn,{windowSize:w,children:e.institutionDetails.institutionName})}),t.jsxs(fn,{windowSize:w,children:[t.jsxs(xn,{children:[t.jsx(gn,{children:e.accountSubType?.name}),t.jsx(wn,{children:e.maskedAccountNumber}),E&&t.jsx(yn,{})]}),E&&t.jsx(Ie,{productType:"other_connection",isUpdateLinkClicked:C==="update_account",isLoginRequired:E,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:k.fetchStatus,linkUpdateStatus:k.updateStatus,prevFetchState:g,prevUpdateState:z},onUpdateLinkTokenClick:G,onChaseInfoClick:m})]})]})]}),t.jsx(cn,{windowSize:w,wrapperWidth:N[2].width,children:ue?.accountName??Kt}),t.jsx(ln,{windowSize:w,wrapperWidth:N[3].width,children:h!=null?t.jsx(ge,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:h.name,textColor:we(h.code)}):Xt}),t.jsxs(sn,{windowSize:w,wrapperWidth:N[4].width,children:[t.jsx(rn,{className:"balanceLabel",isRemoveHovered:M,children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(dn,{className:"balanceLabel",isRemoveHovered:M,children:xe(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null,M&&t.jsx(un,{children:t.jsx(Je,{moreIconType:"plain",options:[{label:Ae.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:f.colors.grey5,width:"162px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ne.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:ne.important,":hover":{color:ne.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:O=>{O==="remove"&&_(e.paymentAccountId)},valueToIcon:Yt})})]})]})},en=n.div`
|
|
150
150
|
display: flex;
|
|
151
151
|
padding: ${i.sp4};
|
|
152
152
|
padding-right: ${i.sp8};
|
|
@@ -230,7 +230,7 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
230
230
|
height: ${i.sp1};
|
|
231
231
|
cursor: inherit;
|
|
232
232
|
background-color: ${e=>e.theme.colors.grey1};
|
|
233
|
-
`,{common:{settings:me,strings:{empty:bn}}}=re.getLocalizedStrings(),vn=()=>null,kn=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:
|
|
233
|
+
`,{common:{settings:me,strings:{empty:bn}}}=re.getLocalizedStrings(),vn=()=>null,kn=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:V,onRemoveConnection:_,onFetchLinkTokenClick:I,onEstablishConnectionClick:R,onEstablishConnectionSuccess:A,onUpdatePaymentAccountStatus:c})=>{const f=be(),w=ze().analytics,[D,M]=r.useState(!1),a=()=>{M(!0)},o=e.plaidConnectionDetails.link_account,l=e.plaidConnectionDetails.update_account,[m,k]=r.useState(void 0),p=m==="update_account"?l:o,[C,q]=r.useState(p.linkToken??null),[b,W]=r.useState(!1),u=J(o.updateStatus.fetchState),S=J(l.updateStatus.fetchState),L=J(l.fetchStatus.fetchState),$=e?.providerVerificationStatus,z=e?.isLoginRequired??!1,g="other_connection",h=$?.code,E=r.useCallback((F,G)=>{w.trackConnectBankSuccess(g,"Settings");const ee=G.accounts.find(Y=>Y.id===e.providerAccountId)??G.accounts[0];e.paymentAccountId!=null&&m==="update_account"&&ee?.verification_status!=null&&!z?c(ee?.verification_status,e.paymentAccountId,"update_account",y(g),g):R(F,y(g),g),k(void 0),W(!1)},[w,g,e.paymentAccountId,e.providerAccountId,m,z,c,R]),s=r.useCallback((F,G)=>{F!=null&&(w.trackConnectBankFailure(g,F.error_code+" "+F.error_message,"Settings"),F.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(g),g),console.log("Plaid Connection Error",F,G)),k(void 0),W(!1)},[w,g,e.paymentAccountId,c]),{open:j,ready:K}=Te({token:C,onSuccess:E,onExit:s});r.useEffect(()=>{p.fetchStatus.fetchState==="Completed"&&p.linkToken!=null&&p.linkToken!==C&&q(p.linkToken)},[p.fetchStatus.fetchState,p.linkToken,C]),r.useEffect(()=>{b&&j()},[b,j]),r.useEffect(()=>{(u==="In-Progress"&&o.updateStatus.fetchState==="Completed"||S==="In-Progress"&&l.updateStatus.fetchState==="Completed")&&(ie(h??"")||(I("link_account",y(g)),A(y(g),g)))},[o.updateStatus.fetchState,A,I,e?.providerVerificationStatus?.code,e?.paymentAccountId,u,S,l.updateStatus.fetchState,h,g]),r.useEffect(()=>{(ie(h??"")||h==="verification_failed")&&!b&&m!=null&&p.linkToken===C&&p.fetchStatus.fetchState==="Completed"&&K&&W(!0)},[K,C,p.fetchStatus.fetchState,p.linkToken,h,m,b]);const X=()=>{w.trackConnectBankGetBalance(g,"Settings"),k("update_account"),I("update_account",y(g),e.paymentAccountId)},Z=d.find(F=>F.accountId===e.zeniAccountId);return t.jsxs($n,{children:[D===!0?Pe.createPortal(t.jsx(_e,{connectedAccountProvider:V,action:{onBackClick:()=>M(!1)}}),document.body):null,t.jsxs(An,{children:[t.jsx(Cn,{children:`${me.otherAccount.title} ${me.otherAccount.subTitleSmall}`}),t.jsx(Je,{moreIconType:"plain",options:[{label:me.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ne.boxShadowElevation}`}),option:()=>({color:f.colors.important,":hover":{color:f.colors.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:F=>{F==="remove"&&_(e.paymentAccountId)},valueToIcon:vn})]}),t.jsxs(jn,{children:[t.jsxs(Fn,{children:[t.jsx(On,{children:t.jsx(Rn,{children:e.institutionDetails.institutionName})}),t.jsxs(Dn,{children:[t.jsx(Bn,{children:e.accountSubType?.name}),t.jsx(Vn,{children:e.maskedAccountNumber}),t.jsx(In,{children:$!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:$.name,textColor:we($.code)}):null}),z&&t.jsx(Ie,{productType:"other_connection",isUpdateLinkClicked:m==="update_account",isLoginRequired:z,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:l.fetchStatus,updateStatus:l.updateStatus,linkFetchStatus:o.fetchStatus,linkUpdateStatus:o.updateStatus,prevFetchState:L,prevUpdateState:S},onUpdateLinkTokenClick:X,onChaseInfoClick:a})]})]}),t.jsxs(Pn,{children:[t.jsx(Ln,{className:"balanceLabel",children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(En,{className:"balanceLabel",children:xe(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(zn,{children:[t.jsx(Tn,{children:me.bankConnectionHeader.linkAccount}),t.jsx(_n,{children:Z?.accountName??bn})]})]})},$n=n.div`
|
|
234
234
|
display: flex;
|
|
235
235
|
flex-direction: column;
|
|
236
236
|
padding: ${i.sp3};
|
|
@@ -269,9 +269,9 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
269
269
|
flex-direction: column;
|
|
270
270
|
`,Ln=n(U)`
|
|
271
271
|
color: ${e=>e.theme.colors.hero};
|
|
272
|
-
`,
|
|
272
|
+
`,En=n(B)`
|
|
273
273
|
color: ${e=>e.theme.colors.hero};
|
|
274
|
-
`,
|
|
274
|
+
`,Fn=n.div``,On=n.div`
|
|
275
275
|
display: flex;
|
|
276
276
|
gap: ${i.sp2};
|
|
277
277
|
align-items: center;
|
|
@@ -279,32 +279,32 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
279
279
|
overflow: hidden;
|
|
280
280
|
`,Bn=n(B)`
|
|
281
281
|
text-transform: capitalize;
|
|
282
|
-
`,
|
|
282
|
+
`,Vn=n(B)`
|
|
283
283
|
margin-left: ${i.sp1};
|
|
284
|
-
`,
|
|
284
|
+
`,Rn=n(U)`
|
|
285
285
|
max-width: ${`calc(100% - ${i.sp3})`};
|
|
286
286
|
text-transform: capitalize;
|
|
287
287
|
overflow: hidden;
|
|
288
|
-
`,
|
|
288
|
+
`,Dn=n.div`
|
|
289
289
|
color: ${e=>e.theme.colors.hero};
|
|
290
290
|
display: flex;
|
|
291
291
|
align-items: center;
|
|
292
292
|
flex-wrap: wrap;
|
|
293
293
|
gap: ${i.sp2};
|
|
294
|
-
`,{settings:{bankConnectionListHeader:Ce,title:
|
|
294
|
+
`,{settings:{bankConnectionListHeader:Ce,title:Mn,infoText:Wn}}=re.getLocalizedStrings().common,ye={pageContentPadding:new P(v[4],v[8]),subtitleSectionWidth:new P(343,580,1200),subTitleBottomMargin:new P(v[0],v[5])},Un={qboLinkAcc:new at("smallRegular","standardRegular")},Nn="bankConnectionsSettingsPage",ce="bankAccountSection",le="primaryAccountSection",Hn="bill_pay",qn="reimbursement",Jn="zeni_accounts",Gn="charge_cards",Qn="zeni_treasury",De=e=>t.jsx(Yn,{children:N.map(d=>t.jsx(Zn,{actualDataValue:d.value,wrapperWidth:d.width,windowSize:e,children:t.jsx(ei,{children:d.value})},d.value))}),vi=({bankSetupView:e,connectedAccountProvider:d,onBackClick:H,onUpdateAccountClick:V,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:I,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:A,onEstablishConnectionSuccess:c,onClickMenuIcon:f,onUpdatePrimaryFundingAccount:w,onRemoveConnection:D})=>{const M=be(),a=je(),{allFundingAccounts:o,primaryConnection:l}=e,m=Xe({mode:"all",reValidateMode:"onChange",defaultValues:Ue(e),values:Ue(e)}),k=m.handleSubmit(u=>{}),p=async(u,S)=>{const L=u.split("."),$=L[0],z=L[1],g=l.find(h=>h.productType===$);if($!=null&&z!=null){const h=S[$][z];if(z==="primaryAccountSection"){const E=o.find(s=>s.id===h.selectedOption)?.accType;h.selectedOption!=null&&E!=null&&w(h.selectedOption,y($),E)}else if(z==="bankAccountSection"&&g!=null&&g.primaryFundingAccount!=null&&h.selectedOption!=null){const E=g.primaryFundingAccount?.id,s=g.primaryFundingAccount?.accType;E!=null&&s!=null&&V(h.selectedOption,E,$,y($),s)}}};r.useEffect(()=>{const u=m.watch((S,{name:L})=>{L!=null&&S!=null&&Ye(()=>p(L,S))});return()=>{u.unsubscribe()}});const C=e.fetchState==="In-Progress"||e.fetchState==="Not-Started",q=e.fetchState==="Completed"&&e.allFundingAccounts.length===0,b=a==="small"?kn:Zt,W=()=>C?t.jsx(ii,{children:t.jsx(se,{size:"ExtraLarge",start:!0})}):q?t.jsx(tt,{message:"No bank connections added."}):t.jsxs(Kn,{windowSize:a,children:[t.jsx(We,{children:Ce.primary}),a!=="small"?De(a):null,t.jsx(nt,{...m,children:t.jsx("form",{id:ri(Nn),onSubmit:k,children:t.jsx(oi,{windowSize:a,children:e.primaryConnection.map(u=>u!=null?t.jsx(Me,{windowSize:a,children:t.jsx(jt,{allBankAccounts:e.allBankAccounts,setupView:u,connectedAccountProvider:d,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:I,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:A,onEstablishConnectionSuccess:c})},u.productType):null)})})}),e.otherPaymentAccounts.length>0?t.jsxs(ti,{children:[t.jsx(We,{children:Ce.other}),t.jsx(li,{children:t.jsx(it,{display:"flex",placement:"right",maxWidth:"340px",title:Ce.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(si,{})})})]}):null,a!=="small"&&e.otherPaymentAccounts.length>0?De(a):null,e.otherPaymentAccounts.map(u=>{const S=o.find(L=>L.id===u.paymentAccountId)?.balanceFetchStatus;return t.jsx(Me,{windowSize:a,children:t.jsx(b,{paymentAccount:u,bankAccountList:e.allBankAccounts,balanceFetchStatus:S,connectedAccountProvider:d,onRemoveConnection:D,onFetchLinkTokenClick:_,onEstablishConnectionClick:A,onUpdatePaymentAccountStatus:I,onEstablishConnectionSuccess:c})},u.paymentAccountId)})]});return t.jsxs(Xn,{children:[t.jsx(Ze,{source:"BankConnectionsSettingsPage",title:Mn.bankConnections,backgroundColor:M.colors.grey4,style:{zIndex:3},onBackClick:H,showBackButton:!1,showMenuIcon:a==="medium-compact"||a==="small",onClickMenuIcon:f}),t.jsxs(ni,{windowSize:a,children:[t.jsx(ai,{windowSize:a,children:t.jsx(ci,{windowSize:a,children:Wn.bankConnections})}),W()]})]})},Kn=n.div`
|
|
295
295
|
display: flex;
|
|
296
296
|
flex-direction: column;
|
|
297
297
|
width: 100%;
|
|
298
298
|
padding-left: ${e=>ye.pageContentPadding.valuePx(e.windowSize)};
|
|
299
299
|
padding-right: ${e=>ye.pageContentPadding.valuePx(e.windowSize)};
|
|
300
|
-
`,
|
|
300
|
+
`,Xn=n.div`
|
|
301
301
|
display: flex;
|
|
302
302
|
min-height: 100%;
|
|
303
303
|
flex-direction: column;
|
|
304
304
|
row-gap: ${i.sp3};
|
|
305
305
|
width: 100%;
|
|
306
306
|
background-color: ${e=>e.theme.colors.grey4};
|
|
307
|
-
`,
|
|
307
|
+
`,Yn=n(B)`
|
|
308
308
|
top: ${i.sp0};
|
|
309
309
|
left: ${i.sp0};
|
|
310
310
|
min-height: ${i.sp8};
|
|
@@ -337,7 +337,7 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
337
337
|
`,ti=n.div`
|
|
338
338
|
display: flex;
|
|
339
339
|
align-items: center;
|
|
340
|
-
`,
|
|
340
|
+
`,Me=n.div`
|
|
341
341
|
display: flex;
|
|
342
342
|
min-height: 96px;
|
|
343
343
|
justify-content: center;
|
|
@@ -395,7 +395,7 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
395
395
|
`,oi=n.div`
|
|
396
396
|
display: flex;
|
|
397
397
|
flex-direction: column;
|
|
398
|
-
`,
|
|
398
|
+
`,We=n(ot)`
|
|
399
399
|
color: ${e=>e.theme.colors.primary};
|
|
400
400
|
margin-right: ${i.sp1};
|
|
401
401
|
padding: ${i.sp3} ${i.sp0} ${i.sp3} ${i.sp2};
|
|
@@ -422,4 +422,4 @@ import{e as be,J as je,a9 as Ke,cF as Xe,V as t,bC as Ze,o as i,O as re,y as P,a
|
|
|
422
422
|
width: ${i.sp3};
|
|
423
423
|
height: ${i.sp3};
|
|
424
424
|
color: ${e=>e.theme.colors.hero};
|
|
425
|
-
`,Ue=e=>{const{primaryConnection:d,allBankAccounts:
|
|
425
|
+
`,Ue=e=>{const{primaryConnection:d,allBankAccounts:H,allFundingAccounts:V}=e,_=H.map(a=>({label:a.accountName,value:a.accountId})),I=V.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"})),R=d.find(a=>a.productType==="bill_pay"),A=d.find(a=>a.productType==="reimbursement"),c=d.find(a=>a.productType==="zeni_accounts"),f=d.find(a=>a.productType==="charge_cards"),w=d.find(a=>a.productType==="zeni_treasury"),D=c?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"}))??[],M=w?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="paymentAccount"}))??[];return{[Hn]:{[ce]:{selectedOption:R?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:R?.primaryFundingAccount?.id,allOptions:I}},[qn]:{[ce]:{selectedOption:A?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:A?.primaryFundingAccount?.id,allOptions:I}},[Jn]:{[ce]:{selectedOption:c?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:c?.primaryFundingAccount?.id,allOptions:D}},[Qn]:{[ce]:{selectedOption:w?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:w?.primaryFundingAccount?.id,allOptions:M}},[Gn]:{[ce]:{selectedOption:f?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:f?.primaryFundingAccount?.id,allOptions:I}}}},ri=e=>`${e}_form`;export{vi as default,ri as formUniqueName};
|
package/dist/assets/{BillDetailPage-BD2IX-iP-QIATdRex.js → BillDetailPage-NeZduyMi-6p7P1QOU.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{J as Wn,ax as Un,e as Kn,gh as Vn,gi as qn,gj as Hn,gk as Gn,cd as Jn,aR as Xn,y,V as t,f7 as ct,f8 as Yn,o as a,f9 as Qn,fa as ea,fb as ta,aO as Se,fc as na,aQ as b,bC as pt,bp as mt,du as ut,cp as yt,cq as ht,cr as bt,gl as aa,gm as ia,gn as la,go as oa,fh as j,gp as $,fj as A,fk as k,fg as ra,b as gt,p as oe,fi as Ot,fq as sa,fl as da,fm as ca,gq as pa,gr as ma,aS as ua,ao as ft,bT as ve,gs as ya,gt as L,O as ha,c as s,ag as ba,c2 as ga,gu as fa,x as xa,gv as wa,fr as xt,F as Ta,d3 as va,ci as Da,gw as wt,b8 as Ia,ba as ja,l as $a,bV as Ft,d4 as Aa,gx as ka,ai as Et,aw as Sa,b6 as Ca,bu as Pa,gy as Ba,al as Ra}from"./index-e-SZUuyN.js";import{a as p}from"./sentry-Dla7mstv.js";import{n as i}from"./mui-mhzAEcDs.js";import{a as Ma}from"./liveblocks-BKvkleJ3.js";import{bO as za,bL as Na,bP as La,FH as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-CSmiPBaP.js";import{o as Za,t as Wa}from"./LowBalancePopup-ChBTdcM2-BRhnRaDc.js";import"./core-hVMF2uNa.js";import"./lottie-N_bekW9H.js";import"./recharts-BErFcng5.js";import"./analytics-g5EpLRud.js";import"./lexical-DYQnWL1V.js";import"./utils-D6NmQd1Q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="e5de1540-edd9-43b9-8390-7efe0f0b048c",e._sentryDebugIdIdentifier="sentry-dbid-e5de1540-edd9-43b9-8390-7efe0f0b048c")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:qa,more:Ha,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Ja}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:Zt,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:qt,redirectToEditableBillScreen:Ht,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Ne,onAddNewRule:Jt,onAttachmentClick:Le,saveBillDetails:Xt,discardOutsideZeniPaymentData:Yt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Wn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[Ze,Y]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:qn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&Q(K)},[K,Q]);const[rn,q]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:H,isLoading:P}=Hn(T,"both",!1),x=Be&&h!=null,We=p.useMemo(()=>h==null?[]:H.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[H,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),q(!1)},[ee,q]);p.useEffect(()=>{ue?.threadId!=null&&H.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,H,P,ee,Q]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Jn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,qe]=p.useState(!1),[un,He]=p.useState(!1),[Ge,Je]=p.useState(!1),Xe=()=>qe(!1),yn=()=>qe(!0),Ye=Xn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),X())},[e,X,Me]),p.useEffect(()=>{Ye==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Ye,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&G?.code?G:ae,S=Xa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:G?.code!=null&&(ae?.code=="approved"||G.code==="mark_as_paid")?G:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Ht(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{z.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),z.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),In=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Ii,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
-
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?za(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Yn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,Mn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,zn=!Mn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),J=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!J&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,Ge,r)},rt=()=>{He(!0),z.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Je(!0),rt()},Fn=()=>{Yt(),He(!1),Ge&&Je(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=qt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),Ze===!0&&Y(!1),_!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Xe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Xe})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[Ze?t.jsx(Za,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Y(!1),Qe()},onClickAway:()=>{Y(!1)}}):null,un?t.jsx(Wa,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Ya(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,W&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(J,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Zn=>Zn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:r.billable!=null?In(r.billable):C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(M,{})]}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(M,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(M,{}),t.jsx(j,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Jt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Zt,signedInUserId:re?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Qa(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Y(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!J&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(Z,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(Z,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(Z,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(Z,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(Z,{onClick:()=>{z.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(Z,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!J&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(si,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!J&&zn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ha,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(Ma,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Ja,threads:H,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:It.resolveComment,threadUnResolve:It.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>q(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Xa=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Ya=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(Mt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(Mt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Qa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const W=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${qa} ${W}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const W=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",W)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
1
|
+
import{Q as Wn,aw as Un,g as Kn,gg as Vn,gh as qn,gi as Hn,gj as Gn,cc as Xn,aQ as Yn,y,V as t,f6 as ct,f7 as Jn,o as a,f8 as Qn,f9 as ea,fa as ta,aN as Se,fb as na,aP as b,bB as pt,bo as mt,dt as ut,co as yt,cp as ht,cq as bt,gk as aa,gl as ia,gm as la,gn as oa,fg as I,go as $,fi as A,fj as k,ff as ra,b as gt,p as oe,fh as Ot,fp as sa,fk as da,fl as ca,gp as pa,gq as ma,aR as ua,ao as ft,bS as ve,gr as ya,gs as L,F as ha,u as s,ag as ba,c1 as ga,gt as fa,x as xa,gu as wa,fq as xt,a as Ta,d2 as va,ch as Da,gv as wt,b7 as ja,b9 as Ia,f as $a,bU as Ft,d3 as Aa,gw as ka,ai as Et,av as Sa,b5 as Ca,bt as Pa,gx as Ba,al as Ra}from"./index-AqGiWrum.js";import{a as p}from"./sentry-CTKU7CLc.js";import{n as i}from"./mui-C_Pjuwl5.js";import{a as za}from"./liveblocks-D8QW-YrN.js";import{bO as Ma,bL as Na,bP as La,FH as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-Cl3KIlic.js";import{o as Za,t as Wa}from"./LowBalancePopup-BRxiaGRC-CJ9ANz96.js";import"./core-mVc5WAnu.js";import"./lottie-CoVfqInY.js";import"./recharts-BGj_NTVO.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="3c6434a8-3120-41b9-a408-0acb5978dad4",e._sentryDebugIdIdentifier="sentry-dbid-3c6434a8-3120-41b9-a408-0acb5978dad4")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:qa,more:Ha,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:jt,title:{comments:Xa}}}}=ha.getLocalizedStrings(),je=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:Zt,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:qt,redirectToEditableBillScreen:Ht,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:Gt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Jt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Wn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[Ze,J]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:qn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&Q(K)},[K,Q]);const[rn,q]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:H,isLoading:P}=Hn(T,"both",!1),x=Be&&h!=null,We=p.useMemo(()=>h==null?[]:H.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[H,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),q(!1)},[ee,q]);p.useEffect(()=>{ue?.threadId!=null&&H.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,H,P,ee,Q]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,qe]=p.useState(!1),[un,He]=p.useState(!1),[Ge,Xe]=p.useState(!1),Ye=()=>qe(!1),yn=()=>qe(!0),Je=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&G?.code?G:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:G?.code!=null&&(ae?.code=="approved"||G.code==="mark_as_paid")?G:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Ht(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,In=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${In}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(Ii,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
+
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Jn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),X=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!X&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,Ge,r)},rt=()=>{He(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Xe(!0),rt()},Fn=()=>{Jt(),He(!1),Ge&&Xe(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=qt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),Ze===!0&&J(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),q(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[Ze?t.jsx(Za,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,un?t.jsx(Wa,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Ja(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,W&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(X,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:j},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:j},text:ie.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:j},text:ie.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:j},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Zn=>Zn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:j},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:j},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:j},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:j},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:j},text:r.billable!=null?jn(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:j},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(Ie,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:j},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Xt,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:Zt,signedInUserId:re?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Qa(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?J(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!X&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(Z,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(Z,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(Z,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(Z,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(Z,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(Z,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!X&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(si,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!X&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ha,placement:"top",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Xa,threads:H,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>q(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Ja=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Qa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const W=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${qa} ${W}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const W=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",W)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
5
5
|
`,li=i(Ba)`
|
|
@@ -10,7 +10,7 @@ import{J as Wn,ax as Un,e as Kn,gh as Vn,gi as qn,gj as Hn,gk as Gn,cd as Jn,aR
|
|
|
10
10
|
&:hover {
|
|
11
11
|
color: ${e=>e.theme.colors.primary};
|
|
12
12
|
}
|
|
13
|
-
`,
|
|
13
|
+
`,It=i.div`
|
|
14
14
|
display: flex;
|
|
15
15
|
margin-left: ${e=>e.windowSize==="small"?e.showEditIcon===!0?a.sp3:a.sp4:m.otherActionsIconContainerMarginLeft.valuePx(e.windowSize)};
|
|
16
16
|
cursor: ${e=>e.isIconClickable===!0?"pointer":"default"};
|
|
@@ -116,7 +116,7 @@ import{J as Wn,ax as Un,e as Kn,gh as Vn,gi as qn,gj as Hn,gk as Gn,cd as Jn,aR
|
|
|
116
116
|
`,pi=i.div`
|
|
117
117
|
height: 100%;
|
|
118
118
|
overflow: scroll;
|
|
119
|
-
`,
|
|
119
|
+
`,Ie=i.div`
|
|
120
120
|
display: flex;
|
|
121
121
|
flex-direction: column;
|
|
122
122
|
background-color: ${e=>e.theme.colors.grey5};
|
|
@@ -128,15 +128,15 @@ import{J as Wn,ax as Un,e as Kn,gh as Vn,gi as qn,gj as Hn,gk as Gn,cd as Jn,aR
|
|
|
128
128
|
display: flex;
|
|
129
129
|
flex-direction: column;
|
|
130
130
|
padding-top: ${a.sp3};
|
|
131
|
-
`,mi=i.div``,Ae=i(
|
|
131
|
+
`,mi=i.div``,Ae=i(ja)`
|
|
132
132
|
color: ${e=>e.theme.colors.primary};
|
|
133
|
-
`,
|
|
133
|
+
`,z=i.div`
|
|
134
134
|
display: flex;
|
|
135
135
|
flex: 1;
|
|
136
136
|
background-color: ${e=>e.theme.colors.grey3};
|
|
137
137
|
min-height: 1px;
|
|
138
138
|
max-height: 1px;
|
|
139
|
-
`,ui=i(
|
|
139
|
+
`,ui=i(Ia)`
|
|
140
140
|
display: flex;
|
|
141
141
|
align-items: center;
|
|
142
142
|
justify-content: space-between;
|
|
@@ -209,11 +209,11 @@ import{J as Wn,ax as Un,e as Kn,gh as Vn,gi as qn,gj as Hn,gk as Gn,cd as Jn,aR
|
|
|
209
209
|
display: flex;
|
|
210
210
|
flex-direction: column;
|
|
211
211
|
height: ${a.sp11};
|
|
212
|
-
`,
|
|
212
|
+
`,ji=i(ba)`
|
|
213
213
|
height: ${a.sp3};
|
|
214
214
|
width: ${a.sp3};
|
|
215
215
|
color: ${e=>e.theme.colors.hero};
|
|
216
|
-
`,
|
|
216
|
+
`,Ii=i.div`
|
|
217
217
|
display: flex;
|
|
218
218
|
align-items: center;
|
|
219
219
|
margin-left: ${a.sp2};
|
|
@@ -231,10 +231,10 @@ import{J as Wn,ax as Un,e as Kn,gh as Vn,gi as qn,gj as Hn,gk as Gn,cd as Jn,aR
|
|
|
231
231
|
display: flex;
|
|
232
232
|
justify-content: space-between;
|
|
233
233
|
width: ${e=>m.refundPopupWidth.valuePx(e.windowSize)};
|
|
234
|
-
`,
|
|
234
|
+
`,zt=i(Et)`
|
|
235
235
|
text-align: left;
|
|
236
236
|
color: ${e=>e.theme.colors.grey1};
|
|
237
|
-
`,
|
|
237
|
+
`,Mt=i(Ra)`
|
|
238
238
|
justify-content: end;
|
|
239
239
|
display: flex;
|
|
240
240
|
flex: 1;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{y as
|
|
1
|
+
import{y as O,u as L,Q as M,F as U,a9 as W,aQ as G,aJ as Q,cE as J,V as o,bB as X,ac as H,aR as K,o as u,g5 as Y}from"./index-AqGiWrum.js";import{a as T}from"./sentry-CTKU7CLc.js";import{n as h}from"./mui-C_Pjuwl5.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-CaSXYy6M-CzewjFd_.js";import"./liveblocks-D8QW-YrN.js";import"./core-mVc5WAnu.js";import"./recharts-BGj_NTVO.js";import"./zeni-epic-state-Cl3KIlic.js";import"./lottie-CoVfqInY.js";import"./analytics-YsywGP0I.js";import"./lexical-D1NyDz9G.js";import"./utils-DJxCyxGL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="3b8ade91-d4a3-4210-b23c-56517ff3d094",e._sentryDebugIdIdentifier="sentry-dbid-3b8ade91-d4a3-4210-b23c-56517ff3d094")}catch{}})();const k="billPayApprovalRuleDetailPage",j="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:y=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const P=M(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,g=ae(e,l==="approval_create"&&!n),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:$}=g,{allApprovalRules:d,allAccountingClasses:V,billPaySetupApproverViewUpdateData:f}=e;let m=d.length>1?d.length-1:0,v=d.length>0?d[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=d.findIndex(p=>p.approvalRuleId===i),v=m>0?d[m-1].criteria[0].range.min.amount:0}const F=x.handleSubmit(()=>{N()}),q=async(i,p)=>{r(p)};return T.useEffect(()=>{const i=x.watch((p,{name:D})=>{if(D!=null&&p!=null){const z=Q(p);J(()=>q(D,z))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),o.jsxs(se,{children:[o.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(H,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:C(k),onSubmit:F,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:j,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:v,validate:i=>n?!0:i!=null&&i>v},isDisabled:n,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:y,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(de,{}),o.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(K,{formId:C(k),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[b]:[b],[w]:te(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),_(e.allAttributes),_(e.filteredAttributes),r??[])??[],[j]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,r,s)=>s&&s.length>0?s.map((n,y)=>({stepIndex:y,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,n.actors),allNonUsers:r,selectedNonUsers:re(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(r=>r.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(r=>r.subType===a.value)>-1),C=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
width: 100%;
|
|
6
6
|
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
-
box-shadow: ${e=>`${
|
|
7
|
+
box-shadow: ${e=>`${u.sp0} 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
8
8
|
`,ie=h.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
12
|
-
box-shadow: ${e=>`${
|
|
13
|
-
border-radius: ${
|
|
12
|
+
box-shadow: ${e=>`${u.sp0} 2px ${u.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
13
|
+
border-radius: ${u.sp2};
|
|
14
14
|
`,ne=h.div`
|
|
15
15
|
display: flex;
|
|
16
16
|
justify-content: flex-start;
|
|
@@ -24,4 +24,4 @@ import{y as z,c as U,J as M,O as $,a9 as W,aR as G,aK as J,cF as K,V as o,bC as
|
|
|
24
24
|
background-color: ${e=>e.theme.colors.grey3};
|
|
25
25
|
min-height: 1px;
|
|
26
26
|
max-height: 1px;
|
|
27
|
-
`;export{le as D,Ae as default,
|
|
27
|
+
`;export{le as D,Ae as default,C as uniqueFormName,Ie as uniqueName};
|