@zeniai/web-cockpit-ui 1.14.2-qa → 1.14.3-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-CfXmiXOX-Dg6Ba-cj.js → ACHDetailsPage-IlicpbsX-BV1MtBsX.js} +1 -1
- package/dist/assets/{AIPerformancePage-BTkeAbzQ-s19tFk-7.js → AIPerformancePage-Cg8pnJ1F-WBDBeKMs.js} +1 -1
- package/dist/assets/{AccountInfoPage-Cw14e1jO-DINdFbY3.js → AccountInfoPage-Bo4f6WXu-ClVtqJpJ.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-cvYWnpel-ClM8r_sm.js → AccountInfoPageContent-CgyoqeY7-CvYbpldf.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DOKqIknC-Dzk8wQao.js → AccountReconDetailsDrawerPage-X4XAlKXA-hRtWyDj0.js} +1 -1
- package/dist/assets/{AccountRow-Ca-OS9TF-B7TzFJDr.js → AccountRow-CmtPvQJV-CYdLibRB.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CwEVkbGD-CqrQLuen.js → AccountsPromoCardStack-DSiki31T-CnwSZqb8.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-B1zyrJMb-BNTvNYlR.js → AddAddressForCardDrawer-BPlI1vyY-CUbpi7Yr.js} +1 -1
- package/dist/assets/{AddToWalletPage-s7c161JX-B7rbM8AY.js → AddToWalletPage-D33swzes-C-rT9lMA.js} +1 -1
- package/dist/assets/{AgingReportsPage-Be-2Z_KS-BPOMQgO2.js → AgingReportsPage-fmZS9DwN-dwewtKzh.js} +1 -1
- package/dist/assets/{AllUserItems-B4Iah9-Z-Cs_gNkpw.js → AllUserItems-Ah7nd-Zu-CuUaLUDf.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-D_KV9urv-Cqk0R_rd.js → ApAgingDetailPage-BXFmj8CM-Cnb7ZrLg.js} +1 -1
- package/dist/assets/{AppBasePage-GbE58C1g-D43kkjBz.js → AppBasePage-A25scWRX-BYUaLZrY.js} +1 -1
- package/dist/assets/{AppDrawerContent-YTvkEPk_-MCm-BdDU.js → AppDrawerContent-DDwmivCK-LG7yyT2a.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-Cct7Nzfb-wHHXh6lM.js → ApprovalRulesSettingsPage-CKtm-n4R-Chgg5hdr.js} +1 -1
- package/dist/assets/{ArAgingChart-BeVadylU-D_i81Eju.js → ArAgingChart-0NSve898-C9cJIr6q.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CWUA4S2q-BQF2MP5p.js → ArAgingDetailPage-2P188mhw-05og7FSZ.js} +1 -1
- package/dist/assets/{AttachmentView-DGsub__A-DQPpkEq0.js → AttachmentView-C4mcX4Zi-C-ivJPKr.js} +1 -1
- package/dist/assets/{BankAccountSection-CtTkNBok-DUA4Lph8.js → BankAccountSection-3-6tRy48-CEpsaXXh.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-dVdrPYm5-DBHfQvSq.js → BankAccountWarningSection-DiVd7shS-C8IRSlRD.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-_e4jMGI2-FxlSka1R.js → BankConnectionsSettingsPage-DORa-BJl-DY2e9VEh.js} +1 -1
- package/dist/assets/{BillDetailPage-Dz4_gdDb-BTdbTFBP.js → BillDetailPage-CntHvNW--CVlZQhzx.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DcNLlDh2-Cpi_VL13.js → BillPayApprovalRuleDetailPage-B2xSwMW8-CGcp-80j.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-C_NDjp6G-CP0RfOUn.js → BillPayApprovalRulesPage-D3zs2AXf-Dm-IcneT.js} +1 -1
- package/dist/assets/{BillPayPromoPage-TkLMkxeC-C9OsNooP.js → BillPayPromoPage-CuRyMElO-DjxmscmV.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-DTGSGVO0-Df01979f.js → BillPaySetUpPage-l5cRtorO-BnjCpjxh.js} +1 -1
- package/dist/assets/{BillingSettingsPage-0RLFEj6x-B4WmopWv.js → BillingSettingsPage-CX5yCTyc-C7JOHITa.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-rkkXgsz4-CqNjoTEN.js → BillsBulkReviewDrawerPage-hbvOVMQk-DoOQi4Oi.js} +1 -1
- package/dist/assets/{BoxItem-CIBzy4ZV-B6mMcHpB.js → BoxItem-D3QYSB_0-DLYI4sQa.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-T63_ft8O-BT3xRand.js → BusinessVerificationPage-BqA2qWYz-BqATSy5M.js} +1 -1
- package/dist/assets/{CardNumberSubText-FOFiHz-M-BDVcG4wd.js → CardNumberSubText-DbBXFWnu-nkQkeoUG.js} +1 -1
- package/dist/assets/{CashbackDetailPage-C1rbQ71n-Dq76KK1Z.js → CashbackDetailPage-DmWiLgGr-B0mF5ZxP.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-OgsnesGD-1RyKe8XA.js → ChargeCardDetailPage-CWsbYZI_-B3EskDDe.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CLHFYydY-DWhXL2Jr.js → ChargeCardListPage-7OVFjrMz-DCHmq173.js} +1 -1
- package/dist/assets/{ChargeCardListTable-ePSGyBtc-COSOazWm.js → ChargeCardListTable-BHhRhMRt-B5Q416pX.js} +1 -1
- package/dist/assets/ChargeCardPromoPage-Bz3R_LIK-DxeGE2pZ.js +219 -0
- package/dist/assets/{ChargeCardSetupPage-DvlKbA_C-B8qo2cfJ.js → ChargeCardSetupPage-Cd8IdYSm-MogJfGap.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CXhcA95f-BRxuhfIY.js → ChargeCardStatementsPage-64aocTjB-nEAYdmuW.js} +1 -1
- package/dist/assets/{ChargeCardUtils--ltNyvP2-Dl7YHdX0.js → ChargeCardUtils-C9viDXeo-ChGOccjp.js} +1 -1
- package/dist/assets/{ChaseOverlay-CxEiwxZq-9jN_giBP.js → ChaseOverlay-CIiRuAKM-CHTItafP.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-CmZbDsc3-B31SvwCT.js → CheckDepositDrawerPage-DjKaXOhO-CiU-l9dD.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CyQ4sWuS-hWc4YWqx.js → CollapsableReportTable-NkWEC75c-Deu0twiI.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DPufRe0m-DTTOfcu3.js → CompanyOfficerDetailsSection-ELXdYttn-C2ULDuzE.js} +1 -1
- package/dist/assets/{CompanyPassportCard-JgslGZ14-CyNbjmE3.js → CompanyPassportCard-C9oh6f6c-BmMtAkXd.js} +1 -1
- package/dist/assets/{CompanyPassportPage-B89YFcPT-kmshN2LC.js → CompanyPassportPage-DqwIHSwq-BqcHbYKK.js} +1 -1
- package/dist/assets/{CompleteProfile-D0RvVu97-CmuxFLCO.js → CompleteProfile-BIlg3hln-nXJkeG-_.js} +1 -1
- package/dist/assets/{ConfettiBurst-D3BYCsW2-HFudAv3P.js → ConfettiBurst-DTCsF6tY-DUUt7nWP.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-C6Ddagzy-OW4rxzHw.js → CreateOrEditVendorPage-eK7muw60-Cl0Ovttp.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-C3mZhiZb-VoORoTv1.js → CreditCardPaymentDrawerPage-C5y6Qeh2-DA6G1AnC.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-D9oAn9qk-BL_rmpsN.js → CreditCardPaymentPlgSection-BfHK2O6G-BIIMVTiG.js} +1 -1
- package/dist/assets/{CurrencySelectField-BBgpim44-Dfp1XN-p.js → CurrencySelectField-Cq-8I5M7-B4VyHQP2.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-iG0RHsLk-Dh3kwuNY.js → CustomerOnboardingActivationPage-C9-hMQWD-CcL9FOm7.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BVOEIC7A-pQu2vkC8.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-tTcayyvt-elVnkUmV.js → CustomerOnboardingDetailPageSkeleton-CTWkmWXm-pLg_xRl2.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CIranNRI-xbppTAw2.js → CustomerOnboardingNoStepsPage-CMsvHUPO-DxVhq6DJ.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-aq8E7XsP-kKfVjTb5.js → CustomerOnboardingPage-CUUtm6Cl-CcOROhvt.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DRnOKNVC-DcTLXIJc.js → CustomerOnboardingProductSuitePage-pN8y9rAE-Dm_9mU8D.js} +1 -1
- package/dist/assets/{Dashboard-DyvhSbme-CvgqGXMg.js → Dashboard-xlal4qqq-BhfJA9fU.js} +1 -1
- package/dist/assets/{DashboardReportPage-Cy_f84RN-a96QebIx.js → DashboardReportPage-CBhxD-B4-B1gJcJpL.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-DK15lI5V-MhAzoBL0.js → DepositAccTransactionItem-B2nnVYf9-rW4LVabI.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-CRBhV8W1-8SHu1ezB.js → DepositAccTransactionListPage-C8rgdc0N-BbR2acc-.js} +1 -1
- package/dist/assets/{DocumentSecurityBanner-C0bght0k-DspuXEqY.js → DocumentSecurityBanner-D-c2msUb-CaQCac0Q.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BX8glsOH-Cj_ZMZE4.js → DomesticWireDetailsPage-racBIxWu-CwdqjfvP.js} +1 -1
- package/dist/assets/{DownloadOverlay-C5kTy4dA-DbxKC6bE.js → DownloadOverlay-Cvo4oa42-DDw7tM5d.js} +1 -1
- package/dist/assets/{DrawerPage-Bwgpjwed-B7BM2zu9.js → DrawerPage-ChV5Xh-2-BECBl1xE.js} +1 -1
- package/dist/assets/{EditPeoplePage-W-SFOxhC-zea2EAdS.js → EditPeoplePage-CMtniu66-CbNczsx5.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-D1Iduokd-9TiPKEG-.js → EditReimbursementDetailPage-Bx4frTSg-u3z1HUwv.js} +1 -1
- package/dist/assets/{EntityDetailPage-BkRcX4SZ-BCMD5-c7.js → EntityDetailPage-CZSlVlVM-fWfezg2_.js} +1 -1
- package/dist/assets/{EntitySummarySection-BlJR-qOB-OSQJbzXM.js → EntitySummarySection-BVcKIen2-D-hDoU5O.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-qT0g5t_P-C09yJmnV.js → ExpenseAutomationOverviewPage-BWGtpYKA-CYMVEYAp.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CMKwWy2d-BV_gRGWe.js → ExpenseAutomationPage-PAOsfgJ8-CPl3uYta.js} +1 -1
- package/dist/assets/{ExpressPayPage-DXfqMxkG-CHvXFGbM.js → ExpressPayPage-CwQ5ge-1-DmBTsUV7.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CjZuOo_K-CvnwmP5y.js → FeaturePreviewPage-BFHtMaGo-CEUrU8f1.js} +1 -1
- package/dist/assets/{FollowStepsSection-CO5MsYe6-CkpPHzig.js → FollowStepsSection-d9o0CLQV-Cz3LnKWr.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-BIMdWu5P-Cjv-ucTF.js → GlobalReviewListPage-DDVOPoeM-BndlcNlU.js} +1 -1
- package/dist/assets/{HelpButton-BGHsn-1b-B7anqpxw.js → HelpButton-Cms9G_Fp-BBuusntx.js} +1 -1
- package/dist/assets/{InformationCardStack-B8rD8LSH-B2xYwyB5.js → InformationCardStack--nHJ7Vje-DTxYdwn7.js} +1 -1
- package/dist/assets/{InsightsCardStack-AwXZ6ysD-CMRV6LPn.js → InsightsCardStack-DogY3RH--JX-OLq6I.js} +1 -1
- package/dist/assets/{InsightsSection-BZS-MEy4-CnIKr2kY.js → InsightsSection-BFSU6XTB-CqZsOa8Z.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-D2tfKsbR-jmJG3Xe8.js → IntegrationsSettingsPage-CH8yZ1rE-FCBOnRZG.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-5NmSFI7x-R4TQ2ANi.js → InternationalWireSwiftDetailsPage-5xZXSwfn-BNBBpaju.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-C8WA6jI_-DhyKzKYw.js → InternationalWireVerificationPage-CYE3BuMX-ljIf1S9O.js} +1 -1
- package/dist/assets/{InviteFormPage-DC2ewDUN-BvANXEhR.js → InviteFormPage-CpSZgL3C-BAwlXQdu.js} +1 -1
- package/dist/assets/{InvitePageListView-DaShj4IM-DxxEcrHW.js → InvitePageListView-CxWgQb_H-lGpxzN76.js} +1 -1
- package/dist/assets/{InvitePeoplePage-BbY4ZpGl-BcEEyytW.js → InvitePeoplePage-D2dxkMSc-D6ezskAA.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DZJTULDZ-7pV7yRbj.js → InvoiceUploadSection-CesF-8aw-VCRMmqB2.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-C1zB2vrB-BW59ae-5.js → IssueChargeCardPage-BHoqeA-T-QRHX7oQN.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BDA7y5Fq-C1I9ONpk.js → LabeledAddressValue-BzK11ds6-CRaU9zWw.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-fj8E8gFz-Dl49sbM5.js → LabeledAddressValueField-DCYUeYio-CbmzwkEi.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-aLuztBgv-BKumqHUY.js → LabeledControlledCheckBoxField-uBDSnSo1-DkIHLNe5.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-zhHbiOVO-Dvon0-bn.js → LabeledCreatableSingleSelectField-DCazn6yx-BaRWYFjn.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BTgmGAGq-EDILW_5a.js → LabeledDocumentField-Cip0e83a-AMdSbb7b.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BdAKZt7q-z63ryyaA.js → LabeledDropDownFormattedTextField-BEG28_NH-DyHEcTe0.js} +1 -1
- package/dist/assets/{LabeledText-CMrFKM7D-D7iPzVMk.js → LabeledText-CuwxNLlP-BYhz7pRD.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-C8A0HrPt-CeUXyrRv.js → LabeledUserSingleSelectWithSubtitlesField-BST69Rvq-BOe36urj.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-BaiPRGJf-iST7LMUs.js → LabeledZeniRolesDropDownField-CsBQ5HAf-C2yM2C0-.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CWc1e0RL-DqvOGGbB.js → LinkJETransactionPage-Dqx2CF7d-CMpJ_yKN.js} +1 -1
- package/dist/assets/{LowBalancePopup-COu8cuzS-DB8pPPg4.js → LowBalancePopup-B7YSf5nh-BG3RrNxr.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-h0Srx7SO-DioTINO1.js → MagicLinkACHDetailsPage-Onv3TsOp-C9JNg-YN.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BIZqOfHW-CgKQRg4G.js → MagicLinkDomesticWireDetailsPage-DyQ47uYn-D104KD58.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-MSHTQMXn-D6Ov0WxI.js → MagicLinkInternationalWireDetailsPage-C-AvrrYI-DhJE7w2X.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BjWw4cqt-3eU98AlX.js → MagicLinkSuccessPage-BSHuvzHb-Mm1ZHACD.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-Cll6JJDZ-B5UrPU65.js → MagicLinkTitleSection-C7oqHWqv-CkKgTikM.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DWSj0MOB-C9ELNony.js → MailingDetailsSection-Cl8HeSLQ-uuzcsCOp.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-CTuOhFQC-O6ZxLtjI.js → MeetingCalenderPopup-Crufcivq-DYL_5ev9.js} +1 -1
- package/dist/assets/{Menu-DlBP5CCV-DJxwO4Ba.js → Menu-Bxgksma7-CwtXkA2y.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BYqoUq4q-C8mAgqAj.js → MyBankConnectionsSettingsPage-CP2msF1X-D4XZ8GKL.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BABBa4je-zPU79Z5u.js → MyPendingActivationChargeCardListPage-BycRkfNQ-gnjx5ns4.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-Dk_jK8-R-YwIIR_RD.js → MyProfileSettingsPage-RuUJD6J4-L9fgB6K2.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BC2xbV2b-Bf89QVkZ.js → NavBarWithPicker-JELo6Q4S-Cn6VM2o-.js} +1 -1
- package/dist/assets/{NavigationArrow-BovrdeuJ-DKcAPZgQ.js → NavigationArrow-CFSP9IjV-BU2CiUJ5.js} +1 -1
- package/dist/assets/{NavigationDots-yYTGREt4-B_TXvW9Q.js → NavigationDots-GHAOWiXe-DijU92FW.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-BKlPnipd-B2qF5hNv.js → NewGlobalMerchantPage-DwEjytGo-BuMba8Am.js} +1 -1
- package/dist/assets/{NoDataChart-Dhg-k7iX-C2SS_bK8.js → NoDataChart-CwAwvz9y-tnXSTZKG.js} +1 -1
- package/dist/assets/{NoDataTable-jpCLeiDv-CxfF0t1Z.js → NoDataTable-BAMPdDP7-4lsrb7c4.js} +1 -1
- package/dist/assets/{NotFoundPage-DrKqVOry-GOV1Vxy8.js → NotFoundPage-CaEcM3_c-CH_uBfaJ.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-lojoBPQ8-DKSlIai3.js → NotificationSettingsPage-Bam34Xpg-_SWjmK6y.js} +1 -1
- package/dist/assets/{NotificationsListConfig-jbIMYvrE-C7QimQze.js → NotificationsListConfig-B68mFIbn-DRANFTIn.js} +1 -1
- package/dist/assets/{NotificationsPage-DJNUS9wc-IJFU-eQL.js → NotificationsPage-C5ordrdT-eTh3hvRm.js} +1 -1
- package/dist/assets/{OpExByVendorPage-xMyUkO51-91dT0lZ2.js → OpExByVendorPage-DY3NOyYr-BRCFdRPW.js} +1 -1
- package/dist/assets/{OverlayContainerPage-GWXnlbZH-DL_NgHDQ.js → OverlayContainerPage-GWXnlbZH-lmI6l66W.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-BHtPelIT-CjMCHXhe.js → PandLWithForecastPage-BX6aj5Y6-BUH43uoJ.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-B2ZBSiCT-BheLQVGW.js → PaymentAccountSetupBillingAddressSection-f5qsN-3Y-COAiLT15.js} +1 -1
- package/dist/assets/{PeoplePage-CzQXmGVU-QvfR5wNa.js → PeoplePage-BkXdO_eN-xwRWTCEx.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-B1Xa0wKV-aYKA04AR.js → PortfolioAllocationFormPage-C_lmPeC9-C18wgQ96.js} +1 -1
- package/dist/assets/{PortfolioDetails-BY-IK4yO-aKLJ_efY.js → PortfolioDetails-BvN3T8NL-DoMnVuUh.js} +1 -1
- package/dist/assets/{ProductsCarousel-B7h_gH-R-D8_L3tq1.js → ProductsCarousel-BP9cI12D-BNZhjwFx.js} +1 -1
- package/dist/assets/{PromoBaseCards-CuJXuijt-x8n61Hvj.js → PromoBaseCards-6W04d7zP-W30n2OVX.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DsNkkj_j-Bb7mFODr.js → QBOConnectionDialog-DjT-h910-BrRnOxYD.js} +1 -1
- package/dist/assets/{QBOSetupSection-DkoopYHr-Dunsf6NC.js → QBOSetupSection-DXfY8nFt-HGFNBREA.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BAapaJEJ-DFG8Lzdx.js → ReimbursementApprovalRuleDetailPage-I93XcmAv-DMBKbjre.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BkiZVc7S-syeg53G3.js → ReimbursementApprovalRulesPage-D8mME0QI-Dr7WnKRv.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-S9j_KDZJ-DFCrziA4.js → ReimbursementDetailPage-CsqyYapD-CKKB2z3g.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BJJruudV-B5qzp0pG.js → ReimbursementPromoPage-CjjAZH_R-Dt1GOOz2.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-CQdxq5lk-CWuQFzoG.js → ReimbursementSetUpPage-CmENGPDd-BRi24MH9.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-5LGKVY6X-DoNJFHKI.js → ReimbursementsBulkReviewDrawerPage-DodlV376-D5cajYMF.js} +1 -1
- package/dist/assets/{ReloadCard-DBRY9FdH-ClHOe_7j.js → ReloadCard-DCswXdRU-BPS0YQ7v.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DOxnK0VV-DIENvo0y.js → ReportTableViewSelector-CuJjacY9-Ca0_9any.js} +1 -1
- package/dist/assets/{ReportsPage-r_MRjkkb-CqwJv_8u.js → ReportsPage-BS1znKom-DkBiyG8B.js} +1 -1
- package/dist/assets/{RevenueChart-DhCkb0c6-Db5-d6KO.js → RevenueChart-QYZoX_2o-MAXFDj15.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-DWtgiOYE-BAPdF9kl.js → ReviewDetailsPage-DlcjxoKl-zHEBuEqI.js} +1 -1
- package/dist/assets/{ReviewOverlay-CjWEPPvw-BvhhSjGF.js → ReviewOverlay-qo1v9-E4--nEQ0-B2.js} +1 -1
- package/dist/assets/{RoleWithToolTip-4WCTaiOg-BbGumQgu.js → RoleWithToolTip-7IBT7PpV-Bt6xYXjy.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CSxG7vXq-BdFQOiex.js → ScheduleDetailsFixedAssetsPage-kz4Xwcye-Cfkf5x2O.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BqaZqCZJ-BTWKtncX.js → ScheduleDetailsPage-guEjspG5-CZ7XeIIh.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-H_kZuoon-BlhFDpBa.js → ScheduleSequenceTable-4Yc3ZRdp-BAXIPK8E.js} +1 -1
- package/dist/assets/{ScreenRoutes-C-eCIwAh.js → ScreenRoutes-BjyF1noT.js} +1 -1
- package/dist/assets/{SetUpAccountSection-B9L-2aHz-CN70K-X0.js → SetUpAccountSection-BlokopoC-B8jxPtba.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-DO9aLike-CeAMTqY_.js → SetUpDefaultSection-CjXLrIH0-Clr5GDIw.js} +1 -1
- package/dist/assets/{SignIn-DOSDfnki-_RV7TJwj.js → SignIn-B4sJUaDd-DT69iJIX.js} +1 -1
- package/dist/assets/{SignInScreen-0PHG5dXY.js → SignInScreen-0Ar5-HKl.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-D6ysU0TE-DyH2ygMU.js → SpendManagementListViewPage-LA2GQyOi-SuHOoTma.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CHvroeCa-5gBjdvdC.js → SpendManagementPerTabPage-BSV94PVx-BHG5M2dn.js} +1 -1
- package/dist/assets/{SpendManagementSection-BaEgJPY4-r_PB3IMq.js → SpendManagementSection-D5lkkIVU-DvhlO9ad.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-CVaXDNNK-BC8UZIDu.js → SpendMgmtSetupAccountSection-B2F0oKk_-DdOYa9CD.js} +1 -1
- package/dist/assets/{StatementItem-CYPCJ0XS-DIsNsiAW.js → StatementItem-CfkMZIbO-BcziylIY.js} +1 -1
- package/dist/assets/{StatementsPage-Cyqg2jd1-BUbUsA5q.js → StatementsPage-DmbLst4p-B0-XPxGT.js} +1 -1
- package/dist/assets/{StatusSwitcher-C5UGqQw8-Dwl-DDS9.js → StatusSwitcher-BQK9o7R4-ClI6HZ7l.js} +1 -1
- package/dist/assets/{SubTabSwitcher-B3rFIZQy-x-9A1vXF.js → SubTabSwitcher-DWeDSFKx-DFdhIaTt.js} +1 -1
- package/dist/assets/{SummaryCard-CNADDyPG-DrV6jDY3.js → SummaryCard-egnXlcLU-CJYKpqj3.js} +1 -1
- package/dist/assets/{TaskManagementPage-CtUQXjo2-D2ks-OoN.js → TaskManagementPage-CMRKQ-Ko-D3OWgs44.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BXXqX3m6-CWx5qvxK.js → TimeRangeSwitcher-OxjJ576j-axxrAdNq.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-Bk9rjDg4-C79EE7jI.js → TimeframeSwitcher-DrC9bvMo-Cf9PWe5k.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-RH8QHQFd-D3_wgi6s.js → TimeframeSwitcherWithToggle-C7fCh8tl-Cz8vBFWH.js} +1 -1
- package/dist/assets/{TopExCard-xJbS_mNo-DZM_hLI3.js → TopExCard-wnzLjnaP-Bb8wcxT5.js} +1 -1
- package/dist/assets/{TopExDetailPage-BDUuqAEK-D2hec9do.js → TopExDetailPage-BbKGbGU5-DGAHsC7l.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CtzLtYa8-h-UHMzbk.js → TransactionDetailPage-DztoB9X4-w333wj7f.js} +1 -1
- package/dist/assets/{TransactionList-DS-_gBrf-TErnQ9sH.js → TransactionList-DmEyc2C4-C4T7m47j.js} +1 -1
- package/dist/assets/{TransactionListBig-D9ebH5C0-CfoawC-1.js → TransactionListBig-BK_J4i4g-R4YdcNj6.js} +1 -1
- package/dist/assets/{TransactionListPage-CPjayOv5-BjH-qR3M.js → TransactionListPage-Ca55hjDg-DTmTZymQ.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-DMYoBJ23-CoFbw4Xm.js → TransactionVendorDetailPage-7_O3STPw-C52mxcJH.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BAghLjPn-BBo4atgA.js → TransferDrawerPage-CvCsaIq--UQ_zMmo8.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-B7EFea4a-DhoGwygo.js → TreasuryOverviewPage-DIKQKR_u-BBi0rQ-7.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-D7Y8yGpx-ZnV09cn_.js → TreasuryPromoPage-BpgRih0--CinnLSlr.js} +1 -1
- package/dist/assets/{TreasurySetupPage-B1SZd_a5-DbfGYJT0.js → TreasurySetupPage-CZ1BTHXX-D9c-uj1m.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-uakhQGBW-Da5kb1EE.js → TreasuryStatementsPage-DgoatXf4-D5W_4zm0.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-BHvr72P1-C77w17kY.js → TreasuryTaxLetterPage-DZsnsmnk-rLI976GY.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-BBPDHav1-DUBDHdZH.js → TreasuryTransferOrReviewPage-BFRIDROn-C9IFf4oB.js} +1 -1
- package/dist/assets/{TrendChart-ChiKhGtw-D3ycTtRo.js → TrendChart-BfsNpqPF-Cxaiidf-.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DEMNHbbz-BErr4Z4f.js → TrendWithTransactions-CcmSvqVJ-DNFGC0yy.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-BDNznj4Y-BJVteHUS.js → UncategorizedAccountsMappingPage-LqkF-E1i-CYAoE57_.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-Bgu5xfcn-Dd7cQ2nZ.js → UnitIntegrationPage-uA8jq1yR-cSFrtlP0.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DW6WCx4i-CHe3m8G6.js → UploadAdditionalDocumentOverlay-N0bSxafO-DgWhDXaG.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-D34glhep-IQ6SeZ7K.js → Vendor2FAPopup-e-xRW6rn-CbpC-XOE.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CSqpbr2r-D9v5VbET.js → VendorACHDetailsPage-Cca7Gf4u-BCUQDRT7.js} +1 -1
- package/dist/assets/{VendorDetailPage-CJw1v9tJ-9e84tuia.js → VendorDetailPage-Bk_NbpIs-BLsXLqEF.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-BY8F5AWO-g7Arp7a5.js → VendorDomesticWireDetailsPage-BI35k3uH-C2-ad_pK.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-COYZCnYS-BY0fRku2.js → VendorFiling1099EditablePage-Cr3OoQa1-DV2Qpx84.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-BqnXdq6Q-BlGLXQd1.js → VendorFirstReviewPage-O82qXI11-Wuqi3MWC.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-K9botaZv-Ckxh4vcn.js → VendorInternationalWireDetailsPage-a5jqRn0i-CNAfxXBb.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DQ_akVN_-1AkymirR.js → VendorInternationalWireSwiftDetailsPage-CR3nUSIG-F9MKJx_S.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D5d42xeO-ZE4UM1yc.js → VendorsAccountsSection-DUUy43AG-BNdHvB_A.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DiA5MRFe-0QT2tBLm.js → WarningsDrawerPage-ANVg-uR9-D7FCptP9.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-DSCbx6BB-IhxLTd-Y.js → ZeniAccountDetailPage-DuaoV3nD-BKNysVpy.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-7zssUaoL-B8STehLR.js → ZeniAccountListViewPage-DJoQlRuS-CT2VvjKF.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-By4S70vz-CVQ9O0QT.js → ZeniAccountNavBarPieces-DciiSI3f-BrOLrsYt.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-Bvr4t7zq-BFN3wcM-.js → ZeniAccountPromoPage-C4TGOls6-4ZEM9j7C.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DtDN9JWk-B2wksTrx.js → ZeniAccountSetupPage-CvIAyaFj-BtJrDz6t.js} +1 -1
- package/dist/assets/{ZeniCopyright-CxC3wvp1-ByRnuwkw.js → ZeniCopyright-9rssOaZJ-ByYr9Bd3.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CcbG1sHp-BObBzfSK.js → ZeniTransferAmountSlider-0yTtw1XU-DummaIPJ.js} +1 -1
- package/dist/assets/{analyticsHelper-3y6VD3VH-DdUR4aDt.js → analyticsHelper-BLAu2yM--BtlUQ17P.js} +1 -1
- package/dist/assets/{analyticsHelper-DQ6E4gcp.js → analyticsHelper-BvCId75V.js} +1 -1
- package/dist/assets/{chartTypes-mKuCmPTG-YS3tNiFM.js → chartTypes-Br4XSz7W-oIvhtG3a.js} +1 -1
- package/dist/assets/{commonDimensions-BHBDbLXD-BvR8UrAJ.js → commonDimensions-DYyjzo8L-DgdXOvG4.js} +1 -1
- package/dist/assets/{detailCommon-1QwSQL9C-Cg38x0Dq.js → detailCommon-CXtdUvH5-KT3peqoB.js} +1 -1
- package/dist/assets/{downloadPdf-DjM3Z_88-CTOAmMQ_.js → downloadPdf-Ceik9x1F-CBmYmy4S.js} +1 -1
- package/dist/assets/{index-CCu-aWq5.js → index-s8qDJKCo.js} +5 -5
- package/dist/assets/{mapLoadingInProgressToTreeNode-CKZd1bh4-BhE1RSRL.js → mapLoadingInProgressToTreeNode-CTk8G3Gw-DzBo3k79.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CO6ix8Ks-BCtizP8z.js → mapSectionWithAcOnlyToTreeNode-DSfitd4--B4ZZl_RV.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CzcEW1Rc-DoJ9CKGS.js → mapSpacerToTreeNode-NDmnO3-w-D-H_dtde.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CEDhLCxY-BO12d8DH.js → mapTimeframeBalancesToTreeNode-CCDxZE7U-CgasGiHN.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-y3lzh3vX-Dv3qCAIR.js → mapTimeframeBalancesToTreeNode-DxbCC6c3-Ds5uSc5-.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Bf3d9TrW-dvdXOZW_.js → mapTimeframeHeaderLoadingInProgressToTreeNode-nb9z_DUI-kxLgoPLv.js} +1 -1
- package/dist/assets/{play-icon-DfMYCOJa-Dl44eCCU.js → play-icon-CUEtOPwa-CoomuQ4g.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CEvuOTjK-dpm8hjgI.js → toCOABalancesWithID-BuGHg1ur-DMCVRPFW.js} +1 -1
- package/dist/assets/{toChartData-D2kGY49E-ChCxQw52.js → toChartData-C5QlPh1F-BE1Imfno.js} +1 -1
- package/dist/assets/{treasuryColorHelper-k2phUKLw-o1ZyU4q7.js → treasuryColorHelper-D1HNtoAk-DoXq99rd.js} +1 -1
- package/dist/assets/{uploadAttachment-kyOdZMbL-CWuI-fAQ.js → uploadAttachment-zGYCP5sV-DwhW2FOQ.js} +1 -1
- package/dist/assets/{uploadReceipts-D80JLNY4-Dm5klsXr.js → uploadReceipts-D80JLNY4-MsCjmjS2.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ChargeCardPromoPage-Bi9cAv-f-IEZEK5PP.js +0 -219
- package/dist/assets/CustomerOnboardingContainerPage-Dh5KIySS-F0dofhqs.js +0 -1
package/dist/assets/{BillDetailPage-Dz4_gdDb-BTdbTFBP.js → BillDetailPage-CntHvNW--CVlZQhzx.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as Nn,w as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,bC as Zn,a1 as Kn,M as Vn,C as u,j as t,l as L,cF as it,cG as Un,o as a,cH as Gn,cI as Yn,Y as b,cJ as Hn,_ as Ae,cK as Qn,aV as lt,aI as ot,dq as rt,bO as st,bQ as dt,bR as ct,fM as qn,fN as Jn,fO as Xn,fP as ea,cP as j,cQ as I,cR as $,fQ as A,cO as ta,p as pt,g as ie,cS as Rt,cT as na,cU as aa,cV as ia,fR as la,fS as oa,a3 as ra,f as mt,bs as Te,fT as sa,fU as O,m as r,r as da,bo as ca,fV as pa,a2 as ma,fW as ua,fX as ut,cZ as yt,Q as ya,cu as ha,bH as ba,al as xa,an as ga,k as fa,eW as zt,fY as wa,v as Mt,ab as Ta,aj as va,aN as Da,eG as ja,s as Ia}from"./index-CCu-aWq5.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as $a}from"./liveblocks-sSQ9JElv.js";import{o as Aa,t as ka}from"./LowBalancePopup-COu8cuzS-DB8pPPg4.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const Sa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Et,hasZeniAssistAccess:Lt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:_t,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Gt,discardOutsideZeniPaymentData:Yt,onBackClick:Me,updateEditRealTimeApproverClicked:Ht,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Fn(),[Xt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Ee,Q]=p.useState(!1),y=e.transactionDetails?.id,tn=_t?En:Ln,{requestToOpenThread:pe,setRequestToOpenThread:Le,setOpenThread:q}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:G,isLoading:P}=Wn(w,"both",!1),f=Se&&y!=null,We=p.useMemo(()=>y==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(_n)),[G,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{q(h),U(!1)},[q,U]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(q(pe.threadId),Le(null))},[pe,G,P,q,Le]),Zn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[_e,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,Ge]=p.useState(!1),Ye=()=>Ke(!1),rn=()=>Ke(!0),He=Kn(e.zeniAssist?.refundStatus.fetchState),X=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),H())},[e,H,Pe]),p.useEffect(()=>{He==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),X())},[He,e.zeniAssist?.refundStatus,X]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&Y?.code?Y:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:Y?.code!=null&&(ee?.code=="approved"||Y.code==="mark_as_paid")?Y:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{J({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{X as Nn,w as On,u as Fn,fI as En,fJ as Ln,fK as Wn,fL as _n,bC as Zn,a1 as Kn,M as Vn,C as u,j as t,l as L,cF as it,cG as Un,o as a,cH as Gn,cI as Yn,Y as b,cJ as Hn,_ as Ae,cK as Qn,aV as lt,aI as ot,dq as rt,bO as st,bQ as dt,bR as ct,fM as qn,fN as Jn,fO as Xn,fP as ea,cP as j,cQ as I,cR as $,fQ as A,cO as ta,p as pt,g as ie,cS as Rt,cT as na,cU as aa,cV as ia,fR as la,fS as oa,a3 as ra,f as mt,bs as Te,fT as sa,fU as O,m as r,r as da,bo as ca,fV as pa,a2 as ma,fW as ua,fX as ut,cZ as yt,Q as ya,cu as ha,bH as ba,al as xa,an as ga,k as fa,eW as zt,fY as wa,v as Mt,ab as Ta,aj as va,aN as Da,eG as ja,s as Ia}from"./index-s8qDJKCo.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as $a}from"./liveblocks-sSQ9JElv.js";import{o as Aa,t as ka}from"./LowBalancePopup-B7YSf5nh-BG3RrNxr.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const Sa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Et,hasZeniAssistAccess:Lt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:_t,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Gt,discardOutsideZeniPaymentData:Yt,onBackClick:Me,updateEditRealTimeApproverClicked:Ht,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:qt,onRefundPaymentClick:Jt})=>{const l=Nn(),o=On(),Ne=Fn(),[Xt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Ee,Q]=p.useState(!1),y=e.transactionDetails?.id,tn=_t?En:Ln,{requestToOpenThread:pe,setRequestToOpenThread:Le,setOpenThread:q}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:G,isLoading:P}=Wn(w,"both",!1),f=Se&&y!=null,We=p.useMemo(()=>y==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(_n)),[G,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{q(h),U(!1)},[q,U]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(q(pe.threadId),Le(null))},[pe,G,P,q,Le]),Zn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[_e,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,Ge]=p.useState(!1),Ye=()=>Ke(!1),rn=()=>Ke(!0),He=Kn(e.zeniAssist?.refundStatus.fetchState),X=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),H())},[e,H,Pe]),p.useEffect(()=>{He==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),X())},[He,e.zeniAssist?.refundStatus,X]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&Y?.code?Y:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:Y?.code!=null&&(ee?.code=="approved"||Y.code==="mark_as_paid")?Y:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{J({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{J({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
2
|
${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?L.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?L.zeniDate(L.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Je=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Xe=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Xe,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,jn=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$n=Lt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&In===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!qe||v?.code==="processing"&&!M),Sn=!qe,et=["small","medium-compact","medium-regular"].includes(l),ae=L.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),E=L.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Gt(!0,Ue,c)},tt=()=>{Ve(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{Ge(!0),tt()},Bn=()=>{Yt(),Ve(!1),Ue&&Ge(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),W=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Gn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Ee===!0&&Q(!1),W!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ze("rejected"),W!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Qa,{windowSize:l,ref:at,children:[t.jsx(Yn,{anchor:"right",open:ln,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Hn,{companyName:Qn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Xe,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Ee?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{Q(!1),Qe()},onClickAway:()=>{Q(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Xt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx($e,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Jn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,La(ae,e,W),t.jsx(Xn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(qa,{children:[ye.length>1?t.jsx(Ja,{windowSize:l,children:t.jsx(Xa,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:W!=null&&k?.code==="pending_approval"?Nt.addMoney:W})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(L.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Et&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(_a,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:E&&e.outsideZeniPaymentInfo!=null?Ea(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),jn()]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Ut,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Ot,signedInUserId:le?.userId,showRealTimeApproval:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Ht,onSaveRealTimeApprovals:Qt},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:_e==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Fa(K,et),isLoading:_e==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{W!=null?Q(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Za,{children:t.jsxs(Ha,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(_,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(_,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(_,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&E&&Wt?t.jsx(_,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(_,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(_,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ya,{windowSize:l,children:[$n===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Va,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(Ga,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ua,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx($a,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:G,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>U(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(L.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Fa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Ea=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${Z}`},La=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},Wa=i.div``,_a=i.div``,Za=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as z,m as B,X as q,M as D,a as M,a1 as W,j as o,S as G,c3 as X,aV as Z,F as H,a3 as J,o as c}from"./index-
|
|
1
|
+
import{C as z,m as B,X as q,M as D,a as M,a1 as W,j as o,S as G,c3 as X,aV as Z,F as H,a3 as J,o as c}from"./index-s8qDJKCo.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-d9o0CLQV-Cz3LnKWr.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",E="lowerBound",T="upperBound",y="steps",Y={footerPadding:new z(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const I=q(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const O=G(d);X(()=>V(U,O))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:S?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:E,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:T,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[E]:t?void 0:l!=null?l.range.min.amount??0:0,[T]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as I,M as y,j as t,aV as D,c as E,Y as b,C as r,s as B,_ as j,bO as H,bQ as G,bR as U,o as i,cq as V,m as l,an as q,Q as z,am as O,g as S,cn as Q,aN as X,p as Y}from"./index-
|
|
1
|
+
import{X as I,M as y,j as t,aV as D,c as E,Y as b,C as r,s as B,_ as j,bO as H,bQ as G,bR as U,o as i,cq as V,m as l,an as q,Q as z,am as O,g as S,cn as Q,aN as X,p as Y}from"./index-s8qDJKCo.js";import{n as o,b as _}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},F=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=_.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(J,{windowSize:n,isLastSection:f,children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,N)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${M}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},N))})}),m?t.jsx(H,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},J=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-TkLMkxeC-C9OsNooP.js → BillPayPromoPage-CuRyMElO-DjxmscmV.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as se,X as b,a1 as le,l as j,M as L,j as e,aV as oe,K as U,Y as h,i as x,o as s,Z as te,c0 as re,u as A,a5 as D,e as ae,C as ne,g as u,c2 as ce,a6 as de,ao as me,m as pe}from"./index-
|
|
1
|
+
import{w as se,X as b,a1 as le,l as j,M as L,j as e,aV as oe,K as U,Y as h,i as x,o as s,Z as te,c0 as re,u as A,a5 as D,e as ae,C as ne,g as u,c2 as ce,a6 as de,ao as me,m as pe}from"./index-s8qDJKCo.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-Crufcivq-DYL_5ev9.js";import{f as ge,C as V}from"./play-icon-CUEtOPwa-CoomuQ4g.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const E="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-DTGSGVO0-Df01979f.js → BillPaySetUpPage-l5cRtorO-BnjCpjxh.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Oe,X as _e,a1 as V,a as De,c3 as Re,M as Ue,l as He,a7 as Y,j as t,cI as ze,Y as Le,g as Me,C as u,aV as qe,c as Ne,F as Ge,c_ as Ke,aQ as Je,c$ as Qe,bs as Ye,d0 as Xe,a3 as Ze,o as L,m as a,s as et,b4 as tt}from"./index-
|
|
1
|
+
import{u as Oe,X as _e,a1 as V,a as De,c3 as Re,M as Ue,l as He,a7 as Y,j as t,cI as ze,Y as Le,g as Me,C as u,aV as qe,c as Ne,F as Ge,c_ as Ke,aQ as Je,c$ as Qe,bs as Ye,d0 as Xe,a3 as Ze,o as L,m as a,s as et,b4 as tt}from"./index-s8qDJKCo.js";import{b as f,n as g}from"./vendor-CnQcJ2Lu.js";import{F as it}from"./HelpButton-Cms9G_Fp-BBuusntx.js";import"./SetUpAccountSection-BlokopoC-B8jxPtba.js";import{K as H}from"./SetUpDefaultSection-CjXLrIH0-Clr5GDIw.js";import{f as nt}from"./SpendMgmtSetupAccountSection-B2F0oKk_-DdOYa9CD.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-N0bSxafO-DgWhDXaG.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-Crufcivq-DYL_5ev9.js";import"./ChaseOverlay-CIiRuAKM-CHTItafP.js";import"./ChargeCardUtils-C9viDXeo-ChGOccjp.js";import"./CreditCardPaymentPlgSection-BfHK2O6G-BIIMVTiG.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",E="billPayAccount",It=({billPaySetupView:e,isDisabled:w,billpayApprovalView:$,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:fe,onEnableBillPayClick:ge,onEnableBillPaySuccess:M,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=_e(),[k,S]=f.useState(!1),q=f.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:W,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=$,O=W.link_account.updateStatus,_=W.update_account.updateStatus,F=V(p),K=V(b.fetchState),J=V(O.fetchState),Q=V(_.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>z(e),[e]),values:z(e)});f.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&F==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,F]),f.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||J==="In-Progress"&&O.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&x.reset(z(e))},[F,p,x,e,J,O.fetchState,Q,_.fetchState]);const Fe=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Ie=async(P,B)=>{const o=B[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const m=N.find(U=>U.id===o.fundingAccount.selectedOption);m!=null&&pe(o.fundingAccount.selectedOption,m.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const m=o.account.allOptions.find(U=>U.value===o.account.selectedOption);m!=null&&typeof m.label=="string"&&y.trackConnectBankLink(m.value,m.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};f.useEffect(()=>{const P=x.watch((B,{name:o})=>{o!=null&&B!=null&&Re(()=>Ie(o,B))});return()=>{P.unsubscribe()}}),f.useEffect(()=>{K==="In-Progress"&&b.fetchState==="Completed"&&M()},[M,K,b.fetchState]);const{commonSetUp:Be,spendManagement:Ve}=Ue.getLocalizedStrings(),{setUp:d}=Be,{billPaySetup:l}=Ve.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:l.setupSubTitle,$e=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new Y(C.colors.brandColorJadeLight):new Y(C.colors.brandColorJadeDark),We=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Me.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),$e?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...x,children:t.jsx("form",{id:Z(X),onSubmit:Fe,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:We,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:W,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:fe,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ye,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ze,{formId:Z(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as fe,X as Ce,a as xe,c3 as Pe,a7 as $,M as be,j as t,C as P,aV as Ae,c as Ie,F as ve,aQ as je,c4 as $e,a3 as ke,o as s,h0 as Oe,cw as Ve,cx as Be,m as b,s as Ee,gf as Te,Q as ze,g as Le}from"./index-
|
|
1
|
+
import{u as fe,X as Ce,a as xe,c3 as Pe,a7 as $,M as be,j as t,C as P,aV as Ae,c as Ie,F as ve,aQ as je,c4 as $e,a3 as ke,o as s,h0 as Oe,cw as Ve,cx as Be,m as b,s as Ee,gf as Te,Q as ze,g as Le}from"./index-s8qDJKCo.js";import{b as H,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as W,e as Me}from"./PaymentAccountSetupBillingAddressSection-f5qsN-3Y-COAiLT15.js";import{O as Re}from"./SetUpAccountSection-BlokopoC-B8jxPtba.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-CjXLrIH0-Clr5GDIw.js";import"./ChaseOverlay-CIiRuAKM-CHTItafP.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},He={title:new ze("standardSemiBold","largeSemiBold")},_="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:Q,companyId:q,onUpdateAccountClick:G,onFetchLinkTokenClick:J,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:k,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(a),values:F(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(q)}),B=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Ve(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Be(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&G(h.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=C.mode==="light"?new $(C.colors.brandColorJadeLight):new $(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:T}=be.getLocalizedStrings(),ge=T.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,x=De(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(L).name}),color:new $(E)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=H.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:T.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:i,children:[t.jsx(Fe,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Ge,{children:t.jsx("form",{id:U(_),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Re,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:J,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:Z,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:k,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:R}),Ne(i,l.headers.billingAddress,ce,Q,d)]})})})}),$e(S.formState.dirtyFields)?t.jsx(ke,{formId:U(_),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:B?.fetchState==="In-Progress",isDisabled:B?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:k,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:R,setCardSetupInProgress:we})]})},F=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(n,e.subscriptionBillingAddress)[n]}},We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as V,j as b,bO as M,bQ as q,bR as z,ji as W,l as G,aa as Q}from"./index-
|
|
1
|
+
import{M as V,j as b,bO as M,bQ as q,bR as z,ji as W,l as G,aa as Q}from"./index-s8qDJKCo.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-qo1v9-E4--nEQ0-B2.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:w}=t,u=i==="review",[B,h]=_.useState(!1),[s,v]=_.useState(j(t,u)),[p,E]=_.useState(u),[P,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),P===s.length&&p&&(E(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,P,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Z(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},F={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,Y(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=H(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,w),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(M,{titleComponent:b.jsx(z,{children:f.title}),descriptionComponent:b.jsx(q,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:O,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:Q("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&G.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:J(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Y=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=W([...l,e.isRecurring?"recurring":"one-time"])}),l},Z=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},H=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:w,do_:u,does:B}=n.texts,h=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:w)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},J=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,Y as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as a,j as s,Y as b,o as r}from"./index-
|
|
1
|
+
import{X as a,j as s,Y as b,o as r}from"./index-s8qDJKCo.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-DYyjzo8L-DgdXOvG4.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=a();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const h=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as et,X as tt,a1 as Se,j as i,M as Te,i as M,a as it,ch as at,l as L,z as st,c3 as nt,aa as ot,a0 as rt,K as lt,aV as ct,Y as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,c as yt,F as ht,a3 as gt,o as r,C as N,e as Ie,fC as xt,fa as Ce,cw as wt,c0 as St,a2 as Ct,s as ke,Q as bt,h as vt,m as k}from"./index-CCu-aWq5.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-DPufRe0m-DTTOfcu3.js";import{r as It}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-fj8E8gFz-Dl49sbM5.js";import"./LabeledCreatableSingleSelectField-zhHbiOVO-Dvon0-bn.js";import"./LabeledDocumentField-BTgmGAGq-EDILW_5a.js";import"./DocumentSecurityBanner-C0bght0k-DspuXEqY.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:jt,footer:ve,strings:{empty:Nt}}}=Te.getLocalizedStrings(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:z,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:ze})=>{const Be=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(Bt,{children:[s.terms.term1,i.jsx(M,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(M,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(M,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(M,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,Z]=P.useState(!1),[G,se]=P.useState("save"),[K,Ge]=P.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,B,E,A)}),{isValid:Me}=u.formState,Q=O?.company.company.companyBillPayInfo,W=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?W?.companyVerificationStatus:Q?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ze=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,Y=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,J=l?.primaryContactLocalData,ge=J?.firstName,xe=J?.lastName,we=J?.email;a!=null&&f!=null&&C!=null&&I!=null&&c!=null&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&Y!=null&&fe!=null&&ye!=null&&ue!=null&&Y!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:Y,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",I=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Qe=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&u.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},We=u.handleSubmit(()=>{if(G!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){u.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Me&&(Ze(),Ve?.(T))}),Xe=async(e,a)=>{e.includes(b)?Oe?.(a[b]):e.includes(v)&&Ae?.(a[v])},qe=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>qe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,u]);const oe=O?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=oe?.map(e=>e.user),Ye=oe?.map(e=>e.role),Je={onOkClick:()=>{Z(!1),V();const e=[],a=O?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Ye?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{Z(!1)}},He=ot(rt(p),p,jt.currencySymbol).toUpperCase(),q=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Qt,{children:[i.jsxs(Wt,{children:[i.jsx(It,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Kt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Nt:s.header,backgroundColor:Be.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?Z(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:ze,rightSideComponent:h?i.jsx(qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Je}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||w===!1)&&i.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...u,children:i.jsxs("form",{id:De(be),onSubmit:We,children:[h&&w===!0&&i.jsxs(Vt,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:q?s.businessVerificationDetails:s.verifyBusinessDetails}),!q&&i.jsx(Ut,{children:i.jsxs(Gt,{children:[i.jsx(Mt,{}),i.jsx(Zt,{})]})})]}),i.jsx($e,{isReadonly:q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:$,filesEndPoint:o,authParams:z,isPopupOpen:K,openPopup:Ge,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:z,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?i.jsx(zt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?W?.companyVerificationStatus?.code!=="pending_review"&&W?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:G==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:G==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)V();else{const e=S[T],a=l?.primaryContactLocalData;G!=="save"&&se("save");const c=e?.email??"",f=Ke(),C=Qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:K?0:4}}):null]})},Pt=(t,A,F,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:z,companyView:y}=t,B=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(z).map((p,$)=>{const n=p,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:wt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
1
|
+
import{u as et,X as tt,a1 as Se,j as i,M as Te,i as M,a as it,ch as at,l as L,z as st,c3 as nt,aa as ot,a0 as rt,K as lt,aV as ct,Y as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,c as yt,F as ht,a3 as gt,o as r,C as N,e as Ie,fC as xt,fa as Ce,cw as wt,c0 as St,a2 as Ct,s as ke,Q as bt,h as vt,m as k}from"./index-s8qDJKCo.js";import{b as P,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-ELXdYttn-C2ULDuzE.js";import{r as It}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-DCYUeYio-CbmzwkEi.js";import"./LabeledCreatableSingleSelectField-DCazn6yx-BaRWYFjn.js";import"./LabeledDocumentField-Cip0e83a-AMdSbb7b.js";import"./DocumentSecurityBanner-D-c2msUb-CaQCac0Q.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:$t,currency:jt,footer:ve,strings:{empty:Nt}}}=Te.getLocalizedStrings(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:z,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:$,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:je,onBackClick:V,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,onSendForVerificationClick:Ve,onEditFileName:ee,onCompanyDetailsChanged:Oe,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:ze})=>{const Be=et(),m=tt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,Ee=Se(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(Bt,{children:[s.terms.term1,i.jsx(M,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(M,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(M,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(M,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,Z]=P.useState(!1),[G,se]=P.useState("save"),[K,Ge]=P.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:Pt(t,B,E,A)}),{isValid:Me}=u.formState,Q=O?.company.company.companyBillPayInfo,W=O?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?W?.companyVerificationStatus:Q?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,Ze=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,Y=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,J=l?.primaryContactLocalData,ge=J?.firstName,xe=J?.lastName,we=J?.email;a!=null&&f!=null&&C!=null&&I!=null&&c!=null&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&Y!=null&&fe!=null&&ye!=null&&ue!=null&&Y!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:Y,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",I=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!I?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Qe=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&u.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},We=u.handleSubmit(()=>{if(G!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){u.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Me&&(Ze(),Ve?.(T))}),Xe=async(e,a)=>{e.includes(b)?Oe?.(a[b]):e.includes(v)&&Ae?.(a[v])},qe=P.useCallback(st((e,a)=>{Xe(e,a)},300),[]);P.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>qe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,u]);const oe=O?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=oe?.map(e=>e.user),Ye=oe?.map(e=>e.role),Je={onOkClick:()=>{Z(!1),V();const e=[],a=O?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Ye?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{Z(!1)}},He=ot(rt(p),p,jt.currencySymbol).toUpperCase(),q=j?.code==="pending_review"||j?.code==="verified";return y==="zeni_treasury"&&j?.code==="pending_review"&&Ee==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Qt,{children:[i.jsxs(Wt,{children:[i.jsx(It,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Kt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:V,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Nt:s.header,backgroundColor:Be.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?Z(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:ze,rightSideComponent:h?i.jsx(qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Je}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||w===!1)&&i.jsx(Ot,{windowSize:m,children:n?$t.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...u,children:i.jsxs("form",{id:De(be),onSubmit:We,children:[h&&w===!0&&i.jsxs(Vt,{children:[i.jsxs(Et,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:q?s.businessVerificationDetails:s.verifyBusinessDetails}),!q&&i.jsx(Ut,{children:i.jsxs(Gt,{children:[i.jsx(Mt,{}),i.jsx(Zt,{})]})})]}),i.jsx($e,{isReadonly:q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:$,filesEndPoint:o,authParams:z,isPopupOpen:K,openPopup:Ge,onGetOtp:Ne,onVerifyOtp:Pe,onResendOtp:Fe,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":$,fileProps:{authParams:z,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:je,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?i.jsx(zt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?W?.companyVerificationStatus?.code!=="pending_review"&&W?.companyVerificationStatus?.code!=="verified":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:G==="verification"&&R.fetchState==="In-Progress",isDisabled:$!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:G==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)V();else{const e=S[T],a=l?.primaryContactLocalData;G!=="save"&&se("save");const c=e?.email??"",f=Ke(),C=Qe();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:K?0:4}}):null]})},Pt=(t,A,F,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:z,companyView:y}=t,B=Te.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(z).map((p,$)=>{const n=p,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${$+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:wt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&$===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as g,M as w,j as t,p as x,Q as $,o as s,h as C}from"./index-
|
|
1
|
+
import{X as g,M as w,j as t,p as x,Q as $,o as s,h as C}from"./index-s8qDJKCo.js";import{n as o,b as d}from"./vendor-CnQcJ2Lu.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
|
|
2
2
|
${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as k,X as f,j as t,aV as te,M as w,cO as P,p as u,ai as U,bB as ie,o as i,g as B,C as h,s as v,dd as oe,l as y,m as l,b5 as re,b6 as ae,au as se,at as ne,aa as de,b7 as le,b9 as ce,iv as he,_ as O,bl as pe,Y as L,v as $,iw as X,ix as _,id as me,bY as ge,b$ as xe,e as T,ie as we,ig as ue}from"./index-
|
|
1
|
+
import{u as k,X as f,j as t,aV as te,M as w,cO as P,p as u,ai as U,bB as ie,o as i,g as B,C as h,s as v,dd as oe,l as y,m as l,b5 as re,b6 as ae,au as se,at as ne,aa as de,b7 as le,b9 as ce,iv as he,_ as O,bl as pe,Y as L,v as $,iw as X,ix as _,id as me,bY as ge,b$ as xe,e as T,ie as we,ig as ue}from"./index-s8qDJKCo.js";import{n as o,f as R,b as K}from"./vendor-CnQcJ2Lu.js";import{F as ye}from"./InsightsSection-BFSU6XTB-CqZsOa8Z.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-GHAOWiXe-DijU92FW.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ve=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Be,X as fe,w as nt,d2 as st,fc as Ka,l as Ne,gW as Gr,a7 as He,M as pe,fd as Xa,j as t,gk as qr,aV as Kr,m as c,fl as Ja,_ as ye,Y as Z,o as a,bs as Pt,g as p,ih as Qa,p as _,bO as Xr,ii as Jr,cI as Qr,gb as ei,a as ti,ge as ai,co as ri,C as D,f as ii,F as oi,fD as ni,K as Ct,aZ as si,be as er,a5 as Mt,ij as di,ik as tr,b4 as ar,ao as Vt,eQ as ci,a6 as rr,ae as li,il as hi,im as pi,al as Ot,v as ge,eu as ui,ic as mi,ax as dt,fe as ir,c as ot,ai as gi,di as Ci,bT as fi,bQ as wi,cv as xi,gT as yi,s as be,eW as or,io as bi,ff as je,dq as ft,cZ as Si,Q as ha,h as nr,an as $i,ip as vi,eO as ki,bY as sr,iq as Li,t as ut,bB as pa,aR as ji,da as Di,ez as Ii,e as et,f9 as Ai,Z as Ti,k as Ri,a2 as Fi,a$ as Ei,ir as xt,cW as zi,bl as Pi,is as dr,it as cr,fZ as lr,iu as wt,hE as hr,id as Mi,b$ as Vi,ea as pr,ie as Oi,ig as Hi,c_ as Ni,cq as Bi,eg as Wi,bF as Ui,bG as _i}from"./index-
|
|
1
|
+
import{u as Be,X as fe,w as nt,d2 as st,fc as Ka,l as Ne,gW as Gr,a7 as He,M as pe,fd as Xa,j as t,gk as qr,aV as Kr,m as c,fl as Ja,_ as ye,Y as Z,o as a,bs as Pt,g as p,ih as Qa,p as _,bO as Xr,ii as Jr,cI as Qr,gb as ei,a as ti,ge as ai,co as ri,C as D,f as ii,F as oi,fD as ni,K as Ct,aZ as si,be as er,a5 as Mt,ij as di,ik as tr,b4 as ar,ao as Vt,eQ as ci,a6 as rr,ae as li,il as hi,im as pi,al as Ot,v as ge,eu as ui,ic as mi,ax as dt,fe as ir,c as ot,ai as gi,di as Ci,bT as fi,bQ as wi,cv as xi,gT as yi,s as be,eW as or,io as bi,ff as je,dq as ft,cZ as Si,Q as ha,h as nr,an as $i,ip as vi,eO as ki,bY as sr,iq as Li,t as ut,bB as pa,aR as ji,da as Di,ez as Ii,e as et,f9 as Ai,Z as Ti,k as Ri,a2 as Fi,a$ as Ei,ir as xt,cW as zi,bl as Pi,is as dr,it as cr,fZ as lr,iu as wt,hE as hr,id as Mi,b$ as Vi,ea as pr,ie as Oi,ig as Hi,c_ as Ni,cq as Bi,eg as Wi,bF as Ui,bG as _i}from"./index-s8qDJKCo.js";import{b as o,n as r,j as ue,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-GHAOWiXe-DijU92FW.js";import{L as Gi,H as Je,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-C9viDXeo-ChGOccjp.js";import{A as qi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-DbBXFWnu-nkQkeoUG.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-D80JLNY4-MsCjmjS2.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=pe.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:A,setWalletType:k,setIsAddToWalletDrawerOpen:V,isDebitCard:R})=>{const z=st().analytics,{isIPadScreen:G}=hi(),{isAndroidScreen:X}=pi(),B=nt(),T=Ne.hasChargeCardAdminLevelAccess(B.loggedInUserRoleMap);return t.jsx(io,{style:g,children:G===!0?t.jsx(zt,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):X===!0?t.jsx(Et,{onClick:()=>{Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{k("apple"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}}),t.jsx(Et,{onClick:()=>{k("google"),A.current="slide-in-right-to-left-add-to-wallet",Je({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:R,isChargeCardAdmin:T,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:j,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),V(!0)}})]})})},Et=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(oo,{}),label:xr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Be();return t.jsx(Ct,{prefixIcon:t.jsx(no,{}),label:xr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Z("add-to-apple-wallet-button")})},io=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d2 as St,w as jt,fk as vt,l as M,ff as v,X as pe,M as Be,o as a,u as _e,j as t,aV as kt,fy as Pt,cO as A,p as C,bs as le,g as n,_ as It,aa as ce,Y as me,C as B,v as E,Q as Tt,h as Mt,cl as At,aB as Fe,b4 as Et,ae as ue,a5 as Lt,e as ge,m as I,d3 as Rt,Z as Dt,s as zt,c0 as Nt,ck as Ot,aP as Bt}from"./index-
|
|
1
|
+
import{d2 as St,w as jt,fk as vt,l as M,ff as v,X as pe,M as Be,o as a,u as _e,j as t,aV as kt,fy as Pt,cO as A,p as C,bs as le,g as n,_ as It,aa as ce,Y as me,C as B,v as E,Q as Tt,h as Mt,cl as At,aB as Fe,b4 as Et,ae as ue,a5 as Lt,e as ge,m as I,d3 as Rt,Z as Dt,s as zt,c0 as Nt,ck as Ot,aP as Bt}from"./index-s8qDJKCo.js";import{b as O,n as i,j as xe,k as _t}from"./vendor-CnQcJ2Lu.js";import{Y as Ft}from"./SpendManagementSection-D5lkkIVU-DvhlO9ad.js";import{ChargeCardPromoUserContent as Ut}from"./ChargeCardPromoPage-Bz3R_LIK-DxeGE2pZ.js";import{N as Wt,J as Gt}from"./PromoBaseCards-6W04d7zP-W30n2OVX.js";import{M as Yt}from"./ChargeCardListTable-BHhRhMRt-B5Q416pX.js";import{r as Ht,i as Jt}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Vt,o as Zt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-Crufcivq-DYL_5ev9.js";import"./NavigationDots-GHAOWiXe-DijU92FW.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-Bxgksma7-CwtXkA2y.js";import"./RoleWithToolTip-7IBT7PpV-Bt6xYXjy.js";import"./CardNumberSubText-DbBXFWnu-nkQkeoUG.js";import"./ChargeCardUtils-C9viDXeo-ChGOccjp.js";const be={infoSubheadingTextMarginTop:new B(I[0],I[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:l,title:h,subTitle:r,slidingTextList:u,onClick:d})=>{const p=pe();return t.jsxs(Kt,{windowSize:p,cardPromoType:e,"data-testid":me("list-page-promo-card",e),onClick:()=>d(e),children:[t.jsxs(Ue,{children:[t.jsxs(Ge,{children:[t.jsx(We,{children:l}),t.jsx(ea,{children:h}),t.jsx(ia,{children:r})]}),t.jsxs(ra,{children:[t.jsx(na,{}),u.length>0&&t.jsx(he,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ye,{children:g},`card-promo-${x.toString()}`))}),t.jsx(oa,{})]})]}),t.jsx(sa,{children:t.jsx(Wt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(da,{children:t.jsx(Gt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:l,creditLimit:h,onCreateNowClick:r})=>{const u=pe();return t.jsx(Qt,{windowSize:u,cardType:e,children:t.jsxs(Xt,{children:[t.jsxs(Ge,{children:[t.jsx(We,{children:s}),t.jsx(aa,{children:t.jsx(ta,{children:l})}),t.jsx(la,{windowSize:u,children:t.jsxs(ca,{windowSize:u,onClick:()=>r(e),"data-testid":me("total-cashback-info"),children:[t.jsx(Ye,{children:ve.createNow}),t.jsx(ha,{})]})})]}),e==="creditCard"?t.jsxs(pa,{children:[t.jsx(ma,{children:ve.creditLimit}),t.jsx(ua,{children:h})]}):null]})})},qt=e=>{const s=e-1;let l=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,X as V,w as ee,d2 as fi,u as de,fc as $i,i7 as vi,i8 as Ci,i9 as yi,Y as b,M as _,bL as ji,p as oe,g as y,ai as bi,bT as ki,ia as Si,ib as Ii,o as r,be as zi,a5 as Li,C as p,eu as Ri,ao as Pi,ic as Di,a6 as Ui,ax as Ni,v as F,fe as Ti,m as a,dq as Vi,_ as T,bV as De,c as Ue,bs as le,bl as _i,e as k,bY as we,s as U,i1 as ue,b4 as Ne,bc as Te,id as Mi,b$ as Oi,a7 as Q,ie as Ei,ig as Fi}from"./index-
|
|
1
|
+
import{j as i,X as V,w as ee,d2 as fi,u as de,fc as $i,i7 as vi,i8 as Ci,i9 as yi,Y as b,M as _,bL as ji,p as oe,g as y,ai as bi,bT as ki,ia as Si,ib as Ii,o as r,be as zi,a5 as Li,C as p,eu as Ri,ao as Pi,ic as Di,a6 as Ui,ax as Ni,v as F,fe as Ti,m as a,dq as Vi,_ as T,bV as De,c as Ue,bs as le,bl as _i,e as k,bY as we,s as U,i1 as ue,b4 as Ne,bc as Te,id as Mi,b$ as Oi,a7 as Q,ie as Ei,ig as Fi}from"./index-s8qDJKCo.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{R as Ve}from"./Menu-Bxgksma7-CwtXkA2y.js";import{T as _e}from"./RoleWithToolTip-7IBT7PpV-Bt6xYXjy.js";import{R as ce}from"./CardNumberSubText-DbBXFWnu-nkQkeoUG.js";import{_ as Me}from"./ChargeCardUtils-C9viDXeo-ChGOccjp.js";const W=_.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=_.getLocalizedStrings().common.strings.empty,$e={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Oe=e=>e===!0?[{...$e,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[$e,ve,Ce,ye,je,be],z={containerPaddingLeft:r.sp2,containerPaddingRight:r.sp3,containerPaddingTop:r.sp3,containerPaddingBottom:r.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Ei,Fi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=V(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Oe(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===t.sortKey?g.sortOrder=t.sortOrder:g.sortOrder="ascending";w(s)},[t.sortKey,t.sortOrder]);const u=(s,g)=>{let $=g;t.sortKey===s&&($=g==="ascending"?"descending":"ascending"),h(s,$)},f=c.find(s=>s.key===t.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=_.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Qi,{children:[i.jsx(Zi,{children:i.jsx(Xi,{})}),i.jsx(_i,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:t.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:oe.extraSmallRegular,titleTextStyle:oe.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rr,{onClick:()=>u(f.key,f.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:f.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:f,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(qi,{windowSize:l,children:i.jsx(Bi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Yi,{companyNameSticky:e,sortDataValue:t.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(ir,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(er,{sortDataValue:t.sortKey,windowSize:l,isVisible:t.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Gi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Wi.memo(Hi),qi=o.div`
|
|
2
2
|
top: ${r.sp0};
|
|
3
3
|
left: ${r.sp0};
|
|
4
4
|
z-index: 2;
|