@zeniai/web-app-ui 4.14.34-prod → 4.14.34-qa
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-iiVBlQka-DOdcnea1.js → ACHDetailsPage-iiVBlQka-BwzGZzbR.js} +1 -1
- package/dist/assets/{AIPerformancePage-MBAB5kgB-GiPvCRJA.js → AIPerformancePage-MBAB5kgB-B8K3J1iD.js} +1 -1
- package/dist/assets/{AccountInfoPage-Cz9yoVl8-i4SdDCSW.js → AccountInfoPage-Cz9yoVl8-2cCezdu3.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-j85psx_A-DeBCdl3d.js → AccountInfoPageContent-j85psx_A-tY3-Fkrr.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-B1JxHllU-DyFOkn-g.js → AccountLockedInfoModal-B1JxHllU-D8YQo6Cx.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DF-X46_u-Dv2VQ_UN.js → AccountReconDetailsDrawerPage-DF-X46_u-DSfyKamu.js} +1 -1
- package/dist/assets/{AccountRow-DEtntSrL-0u2oxgMR.js → AccountRow-DEtntSrL-DQN6__Ng.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-Cvixqb_6-Cy_UpDhS.js → AccountsPromoCardStack-Cvixqb_6-_JKcyl4L.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-B1Qfn44J-BWdxQBZs.js → AddAddressForCardDrawer-B1Qfn44J-CKwvHf9L.js} +1 -1
- package/dist/assets/{AddToWalletPage-BLxUsh1Y-xvXEX-Ux.js → AddToWalletPage-BLxUsh1Y-DjOENQIP.js} +1 -1
- package/dist/assets/{AddressRoutes-ffTj4-XE.js → AddressRoutes-B9JRerSF.js} +1 -1
- package/dist/assets/{AddressScreen-CwbSwP2P.js → AddressScreen-CfU0pxqN.js} +1 -1
- package/dist/assets/{AgingReportsPage-XIzuLRE4-C-s9DGYa.js → AgingReportsPage-XIzuLRE4-w17wS1R5.js} +1 -1
- package/dist/assets/{AiCfoScreen-ky7GYy31.js → AiCfoScreen-BRwWpLyW.js} +1 -1
- package/dist/assets/{AllUserItems-BGMZCYUO-Dadr9Gec.js → AllUserItems-BGMZCYUO-B7Mldc5e.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-B-1gVAu6-CXso1m5Y.js → ApAgingDetailPage-B-1gVAu6-D6PdKU-A.js} +1 -1
- package/dist/assets/{AppBasePage-CYjdUgY4-N8in2lu3.js → AppBasePage-CYjdUgY4-Cvt-yGcI.js} +1 -1
- package/dist/assets/{AppDrawerContent-CbF8TOjd-HEzUvQD5.js → AppDrawerContent-CbF8TOjd-D9lcwo49.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-RCtygkuw-6E84O9sA.js → ApprovalRulesSettingsPage-RCtygkuw-BNnzaj0l.js} +1 -1
- package/dist/assets/{ArAgingChart-ZwWwEBJ3-BSFQLwWJ.js → ArAgingChart-ZwWwEBJ3-rk20lkwC.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DtqyngrA-CcwxPD_r.js → ArAgingDetailPage-DtqyngrA-BO2XynIt.js} +1 -1
- package/dist/assets/{AttachmentView-UxkSFZmq-C2YzlN6Z.js → AttachmentView-UxkSFZmq-BUfVfjv7.js} +1 -1
- package/dist/assets/{BalancesInsightWithToolTip-Co6ZUc5x-BSkB04b8.js → BalancesInsightWithToolTip-Co6ZUc5x--aTwEc-g.js} +1 -1
- package/dist/assets/{BankAccountSection-DnBVOkJC-vpE8xbp3.js → BankAccountSection-DnBVOkJC-CPDSPfOj.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-D7OuLiLz-DfeZIMEg.js → BankAccountWarningSection-D7OuLiLz-CnjpdW6M.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BDLTuNLu-OBPhlcth.js → BankConnectionsSettingsPage-BDLTuNLu-LAjrAQJF.js} +1 -1
- package/dist/assets/{BillDetailPage-V8us93cj-a4bc14UJ.js → BillDetailPage-V8us93cj-DAlTWroi.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-CRqEGV5h.js → BillPayApprovalRoutes-CRjAMn3U.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-C_REwEVS-B1_RM9n8.js → BillPayApprovalRuleDetailPage-C_REwEVS-D-eeATAS.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-C6G_eDX9-CDGGBdw4.js → BillPayApprovalRulesPage-C6G_eDX9-Bfhw5F-a.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CTQSknOB-C2T9b-Vq.js → BillPayPromoPage-CTQSknOB-CQkU1mWk.js} +1 -1
- package/dist/assets/{BillPayRoutes-IwCLBQ4C.js → BillPayRoutes-DKQ62RT9.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BmgMLaf--hKXnXW7y.js → BillPaySetUpPage-BmgMLaf--ES1CtqR5.js} +1 -1
- package/dist/assets/{BillingSettingsPage-IHY3ak0N-BYPEX6n6.js → BillingSettingsPage-IHY3ak0N-DkV09JRl.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-ZoFahXYa-DETAm1nH.js → BillsBulkReviewDrawerPage-ZoFahXYa-BLrjKyuB.js} +1 -1
- package/dist/assets/{BoxItem-XoWq-tnh-CNFx_qzU.js → BoxItem-XoWq-tnh-BjJmrBFm.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-D9HtnNOu-ZRSnva4Q.js → BusinessVerificationPage-D9HtnNOu-aehnUeCQ.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-CBtz2-zR.js → BusinessVerificationPageScreen-DM_2HDeS.js} +1 -1
- package/dist/assets/{BusyIndication-BLGcHlgu-DaOngyN9.js → BusyIndication-BLGcHlgu-Bpswk6Co.js} +1 -1
- package/dist/assets/{CardNumberSubText-Cn0EZrNE-DUYxvvHo.js → CardNumberSubText-Cn0EZrNE-CWAYYKOe.js} +1 -1
- package/dist/assets/{CashbackDetailPage-Bk5ssPnj-DvaMlHNq.js → CashbackDetailPage-Bk5ssPnj-DBYQYc6c.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-Ge9Aw7PA-CIu-TGGw.js → ChargeCardDetailPage-Ge9Aw7PA-7BhKZ-yZ.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BNLOoSv3-B-StV0nu.js → ChargeCardListPage-BNLOoSv3-kJJQn2HY.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BoufojYF-DZi3AnCd.js → ChargeCardListTable-BoufojYF-Ctlyddwf.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-5lUxK8pF-BCsrr76G.js → ChargeCardPaymentHistoryPage-5lUxK8pF-LRwaIGjI.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CKl6K-nr-DW3UNOti.js → ChargeCardPromoPage-CKl6K-nr-B6A43An0.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-qFs5VmEt.js → ChargeCardRoutes-CE_xzqxh.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-Dqoel2Do-CcQz84BS.js → ChargeCardSetupPage-Dqoel2Do-B15YO0OW.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-Dalrj66w-4SSCFPQ4.js → ChargeCardStatementsPage-Dalrj66w-PEmpxN8W.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-mYjv1H0f-SmPvhIJ-.js → CheckDepositDrawerPage-mYjv1H0f-CojKKN3D.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CIaa7SIH-BHE5m01A.js → CollapsableReportTable-CIaa7SIH-DVSoJKAV.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BSFNYauO-CLhqGMI2.js → CompanyOfficerDetailsSection-BSFNYauO-D850YK66.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B-mBb9Q5-Djs-y_lF.js → CompanyPassportCard-B-mBb9Q5-BGp8cd7y.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Blyl_Z-c-CfshBdbX.js → CompanyPassportPage-Blyl_Z-c--NnGP254.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-CfkYFhOH.js → CompanyPassportScreen-BS_NrRd8.js} +1 -1
- package/dist/assets/{CompleteProfile-ySk9I1Ut-BkCkkFbF.js → CompleteProfile-ySk9I1Ut-TK-gYMQ0.js} +1 -1
- package/dist/assets/{ConfettiBurst-CeAc4Ily-DA7b9h73.js → ConfettiBurst-CeAc4Ily-C--23SuA.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-Bt9nVDvl.js → ConnectionAuthScreen-CiGpGWMD.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-DpAfq4d_.js → ConstrainedInnerElement-CgdnMeoA-3tX8qIpJ.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BRkqkhfw-BjR4IlX5.js → CreateOrEditVendorPage-BRkqkhfw-CIvcW7Pf.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-oUIakAtz-BWbFgsjF.js → CreditCardPaymentDrawerPage-oUIakAtz-CAvPHr87.js} +1 -1
- package/dist/assets/{CurrencySelectField-CSPhUjwG-CnRANTg2.js → CurrencySelectField-CSPhUjwG-lrBDW4z2.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CoOyWe6_-BUv4wnWa.js → CustomerOnboardingActivationPage-CoOyWe6_-CqbitCEF.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-B2lt5fG2.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-B4YFIOQJ-BbB2fOP5.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CWNyUuRp-zXc9wagp.js → CustomerOnboardingDetailPageSkeleton-CWNyUuRp-kM5f4mlx.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-DWx46Z6R-C-ExaFC2.js → CustomerOnboardingNoStepsPage-DWx46Z6R-CLbxMC39.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-D86Sj2KP-D6-04E6_.js → CustomerOnboardingPage-D86Sj2KP-ChThvvAW.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-Bo0LFveG-BzG7cQxy.js → CustomerOnboardingProductSuitePage-Bo0LFveG-DXr6zIWU.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-DtIuxucw.js → CustomerOnboardingRoutes-B32JzwEY.js} +1 -1
- package/dist/assets/{Dashboard-DQLJzr16-CVWpnSBo.js → Dashboard-DQLJzr16-8ajoVQ5R.js} +1 -1
- package/dist/assets/{DashboardReportPage-CwfTMXY5-CYxNkh7v.js → DashboardReportPage-CwfTMXY5-Daspm0l6.js} +1 -1
- package/dist/assets/{DashboardRoutes-ChFJ7MHp.js → DashboardRoutes-CDKIVXdz.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CUZGIAxW-CgiNswdF.js → DashboardSidebarBackgroundAnimation-CUZGIAxW-CoQ7Va6i.js} +1 -1
- package/dist/assets/{DefaultTenantHome-DpbVQ8O_.js → DefaultTenantHome-BdMoMXCc.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-Ci-LxLsk-DRNN1br-.js → DepositAccTransactionItem-Ci-LxLsk-DpkYzfIT.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-RG7P8vQS-KiHqHADW.js → DepositAccTransactionListPage-RG7P8vQS-BicQqvfl.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-mFjAiqsH.js → DomesticWireDetailScreen-CNZmf-ak.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DsPFUOcE-D5dltjE3.js → DomesticWireDetailsPage-DsPFUOcE-C97tbPQ3.js} +1 -1
- package/dist/assets/{DownloadOverlay-BjTf50Dz-BTRZen3n.js → DownloadOverlay-BjTf50Dz-BngOF4Fl.js} +1 -1
- package/dist/assets/{DrawerPage-0OFinUxM-Dw-wONp5.js → DrawerPage-0OFinUxM-DY6RVolf.js} +1 -1
- package/dist/assets/{DrawerScreen-CnU-VoMe.js → DrawerScreen-Dd2Niphu.js} +1 -1
- package/dist/assets/{EditPeoplePage-BKcOmYVv-DqbQfjtE.js → EditPeoplePage-BKcOmYVv-DjZAwBTY.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BFIHhQbx-DZUd4Itz.js → EditReimbursementDetailPage-BFIHhQbx-CAS_iqEJ.js} +1 -1
- package/dist/assets/{EntityDetailPage-D8FzsqNk-a6QKQbsr.js → EntityDetailPage-D8FzsqNk-_LZsKMKD.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-Bl0VaL7D.js → EntityDetailRoutes-DB5wcfPj.js} +1 -1
- package/dist/assets/{EntitySummarySection-ORJ2pE_k-BoOr8fVU.js → EntitySummarySection-ORJ2pE_k-CojKKN9g.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Dzf7j2zV-CwsDMrKO.js → ExpenseAutomationOverviewPage-Dzf7j2zV-DtCtSmNb.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BRsKGeoM-xnjjT-mx.js → ExpenseAutomationPage-BRsKGeoM-T0dMJf4X.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-D8OIvCDd.js → ExpenseAutomationRoutes-CGo-MPWO.js} +1 -1
- package/dist/assets/{ExpressPayPage-DlBFtMaR-SeZBy6gS.js → ExpressPayPage-DlBFtMaR-JAoUcgra.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-C31F3Gmz-C0P6i02u.js → FeaturePreviewPage-C31F3Gmz-DW0MQyCb.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-CcjSI5cK.js → FeaturePreviewScreen-Xsnk0neq.js} +1 -1
- package/dist/assets/{FollowStepsSection-BVT2K7mu-CY3KrJG7.js → FollowStepsSection-BVT2K7mu-L8a-cjiL.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-0cZe1hh0-QDZIOJkv.js → GlobalReviewListPage-0cZe1hh0-DnEwqpdI.js} +1 -1
- package/dist/assets/{InformationCardStack-t8eELRLU-Bxjmly9q.js → InformationCardStack-t8eELRLU-CR-1KqF_.js} +1 -1
- package/dist/assets/{InsightsCardStack-CJBPZbzD-Bb1JSXvK.js → InsightsCardStack-CJBPZbzD-CmIAX8OK.js} +1 -1
- package/dist/assets/{InsightsSection-tUBzsCix-CHqlcKsY.js → InsightsSection-tUBzsCix-C1MMhp25.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-Ce0yKUWI-Bd8qZ6Sn.js → IntegrationsSettingsPage-Ce0yKUWI-CuYIzRU8.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-BzR-rKaL-DTdizezB.js → InternationalWireSwiftDetailsPage-BzR-rKaL-BMKFEJtD.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-7tCXdJ3Y-CfPz5aLZ.js → InternationalWireVerificationPage-7tCXdJ3Y-BfVhZg4Y.js} +1 -1
- package/dist/assets/{InviteFormPage-DePVC0CH-BoGyyI8-.js → InviteFormPage-DePVC0CH-B9qhol7M.js} +1 -1
- package/dist/assets/{InvitePageListView-ChbvDKgQ-DW8tQqHU.js → InvitePageListView-ChbvDKgQ-cbCv5Fj9.js} +1 -1
- package/dist/assets/{InvitePeoplePage-DJiEzIeY-BVfacopw.js → InvitePeoplePage-DJiEzIeY-BkUhir7D.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-BjNMjhQR-B7H94Qr_.js → InvoiceUploadSection-BjNMjhQR-zjdmYVnU.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-4xbGf5Ut-D1NZ5n0C.js → IssueChargeCardPage-4xbGf5Ut-DCMcjwN7.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Czt7QvSJ-DQcySL2B.js → LabeledAddressValue-Czt7QvSJ-CD9Aduhg.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-Dl3atH92-9Bh85cZL.js → LabeledAddressValueField-Dl3atH92-C9wYUqfv.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DT_nxhPN-C7uKsE8n.js → LabeledControlledCheckBoxField-DT_nxhPN-BUvo7K-8.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-BnljZpX0-B68SMHkZ.js → LabeledCountryMultiSelectField-BnljZpX0-BbXC-8fZ.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CiInq9yD-B0SGNp0O.js → LabeledCreatableSingleSelectField-CiInq9yD-DRsosHBZ.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Ceb8vgVH-CBxNcBjR.js → LabeledDocumentField-Ceb8vgVH-BZkKKAqB.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-B98gNWTE-fV4URX6J.js → LabeledDropDownFormattedTextField-B98gNWTE-CawOSouY.js} +1 -1
- package/dist/assets/{LabeledEmailInputField-C53P9fJl-CkFXu9dG.js → LabeledEmailInputField-C53P9fJl-Z2TstoOK.js} +1 -1
- package/dist/assets/{LabeledNameField-BdVztq_8-DOZ2ED2j.js → LabeledNameField-BdVztq_8-D10OpiZc.js} +1 -1
- package/dist/assets/{LabeledSingleSelectField-sjDjhxfQ-CpanQxt-.js → LabeledSingleSelectField-sjDjhxfQ-Bt2z3QjJ.js} +1 -1
- package/dist/assets/{LabeledText-CFJSoGtK-WYjBLL4Z.js → LabeledText-CFJSoGtK-CZ5epgLx.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CDiG37rQ-CmNHahAF.js → LabeledUserSingleSelectWithSubtitlesField-CDiG37rQ-C6kssl4a.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CQiP2rEh-dj-ud4dM.js → LabeledZeniRolesDropDownField-CQiP2rEh-DntPFlku.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-ANY7Ns42-mjp3UwWz.js → LinkJETransactionPage-ANY7Ns42-BhiQBcK9.js} +1 -1
- package/dist/assets/{LockCardPage-0piclOz3-Ckqd1b8v.js → LockCardPage-0piclOz3-COCJUyKc.js} +1 -1
- package/dist/assets/{LowBalancePopup-CplxkRHP-CQO3ycRf.js → LowBalancePopup-CplxkRHP-BGs8KELn.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BKh8WrCR-yzbitn8u.js → MagicLinkACHDetailsPage-BKh8WrCR-BXzJ0B3q.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Cv19HbKi-CyHS18r2.js → MagicLinkDomesticWireDetailsPage-Cv19HbKi-DKgp0Chf.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DbFxpWOg-EDVvFAle.js → MagicLinkInternationalWireDetailsPage-DbFxpWOg-hgGDkayb.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-DaX13Is3.js → MagicLinkRoutes-B4kpsUud.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-Je-xXgqt.js → MagicLinkSignInScreen-D5uIadTT.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BA1LfhVb-BgAj_Mic.js → MagicLinkSuccessPage-BA1LfhVb-C9LyLKwm.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DLdaV8WG-8WWnBNb8.js → MagicLinkTitleSection-DLdaV8WG-DB32RhHy.js} +1 -1
- package/dist/assets/{MailingDetailsSection-BNVPaGFt-BxMdrzgd.js → MailingDetailsSection-BNVPaGFt-9PxBYnWw.js} +1 -1
- package/dist/assets/{MobileAppDrawer-Bcyem12-.js → MobileAppDrawer-Db6wEz5B.js} +1 -1
- package/dist/assets/{MoreMenuButton-DrAQ635T-CmGmYM-R.js → MoreMenuButton-DrAQ635T-D5jjSMJd.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-BiDvyO_G-BmGEKHOY.js → MyBankConnectionsSettingsPage-BiDvyO_G-CeGG9xf_.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Bb4_b9o6-QySvTesc.js → MyPendingActivationChargeCardListPage-Bb4_b9o6-aOgnXpMM.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-nY_eDqfm-CUAB-1K_.js → MyProfileSettingsPage-nY_eDqfm-CjX8_jlY.js} +1 -1
- package/dist/assets/{NavBarWithPicker-Dr5XHgP5-BMoWiwl5.js → NavBarWithPicker-Dr5XHgP5-DipOtu26.js} +1 -1
- package/dist/assets/{NavigationArrow-DT82hMh--DsUaY4v0.js → NavigationArrow-DT82hMh--DseMcfRR.js} +1 -1
- package/dist/assets/{NavigationDots-CwCZ9EAa-BB9rS2z2.js → NavigationDots-CwCZ9EAa-_HA0CoRv.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D1lxnByE-DmJjA0eC.js → NewGlobalMerchantPage-D1lxnByE-Cl-h3ANA.js} +1 -1
- package/dist/assets/{NoDataChart-DCTRXLc7-BRwtqbdY.js → NoDataChart-DCTRXLc7-EBM1CKB5.js} +1 -1
- package/dist/assets/{NoDataTable-D8Xw5pAY-CJGJMrLD.js → NoDataTable-D8Xw5pAY-BXvKgMjH.js} +1 -1
- package/dist/assets/{NotFoundPage-B_zPUigU-CqL87o0B.js → NotFoundPage-B_zPUigU-DIj19qB5.js} +1 -1
- package/dist/assets/{NotFoundScreen-Ceul2a4k.js → NotFoundScreen-DXnaOvLy.js} +1 -1
- package/dist/assets/{NotificationRoutes-BjIV5PW8.js → NotificationRoutes-BKIq8Ht7.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-aKLRiMp--gxJ4ef8p.js → NotificationSettingsPage-aKLRiMp--CKvGRtqq.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CVEetkBc-DvchCo1R.js → NotificationsListConfig-CVEetkBc-Ga3CIQDy.js} +1 -1
- package/dist/assets/{NotificationsPage-DEw6V83J-BMiLOKv6.js → NotificationsPage-DEw6V83J-BdF4XISU.js} +1 -1
- package/dist/assets/{OpExByVendorPage-DJMov6Ux-CSTc2zF7.js → OpExByVendorPage-DJMov6Ux-6GxDxMs2.js} +1 -1
- package/dist/assets/{OverlayContainerPage-BG9y5C0t-7YT_HLI5.js → OverlayContainerPage-BG9y5C0t-8_-MKFW1.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-RBTh1bFk-CYrlYxiW.js → PandLWithForecastPage-RBTh1bFk-Ck7cJPme.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-D46AftWd.js → PandLWithForecastRoutes-Btf2U6pN.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-D-kQI4nd-BXInRRHh.js → PaymentAccountSetupBillingAddressSection-D-kQI4nd-PRTE5aBh.js} +1 -1
- package/dist/assets/{PeoplePage-BEc-Oss7-CYTf-n47.js → PeoplePage-BEc-Oss7-CZ9GLNBp.js} +1 -1
- package/dist/assets/{PeopleRoutes-B6Hh54SM.js → PeopleRoutes-B8XNBABT.js} +1 -1
- package/dist/assets/{PerformanceRoutes-CZK-MKEJ.js → PerformanceRoutes-COWN278X.js} +1 -1
- package/dist/assets/{Preview-Dz6VBJ2u.js → Preview-CIMwFR6h.js} +1 -1
- package/dist/assets/{ProductsCarousel-BRo0P4GW-Bx79qkz1.js → ProductsCarousel-BRo0P4GW-CYg74cXu.js} +1 -1
- package/dist/assets/{PromoBaseCards-BrXJEufN-wliyWMwp.js → PromoBaseCards-BrXJEufN-DpCBBSNa.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BIg9Iais-BhNTbLuP.js → QBOConnectionDialog-BIg9Iais-Bu7slYzO.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-Dyzyd1p0.js → QBOConnectionScreen-CMTxTGLB.js} +1 -1
- package/dist/assets/{QBOSetupSection-DDoUJ7L6-DQnE3KzF.js → QBOSetupSection-DDoUJ7L6-ChX7ka6s.js} +1 -1
- package/dist/assets/{ReferralListScreen-BOWr342j.js → ReferralListScreen-DZvURbe-.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-m5L8sFJ5.js → ReimbursementApprovalRoutes-B0fTE5c5.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CP0muUGK-Cd-uHeUo.js → ReimbursementApprovalRuleDetailPage-CP0muUGK-DmbqRb9l.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CC5sxHbJ.js → ReimbursementApprovalRuleDetailScreen-CE-klt57.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BpVWq3rk-NVHIG-OE.js → ReimbursementApprovalRulesPage-BpVWq3rk-Cihs8V2H.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-pCg86_Ty-BpFwxhjT.js → ReimbursementDetailPage-pCg86_Ty-BzrQK1ml.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BW6icjG5-L-8yyH_M.js → ReimbursementPromoPage-BW6icjG5-DP-6P5yh.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-LUt3h9UV.js → ReimbursementRoutes-B0OQr3VA.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-B6OhWEWH-B07qbUkS.js → ReimbursementSetUpPage-B6OhWEWH-BsBBd9B_.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DmDoqEZh-uzEFRQ-S.js → ReimbursementsBulkReviewDrawerPage-DmDoqEZh-DA9h4Ju5.js} +1 -1
- package/dist/assets/{ReloadCard-DIFXZM9U-DBPBbgAk.js → ReloadCard-DIFXZM9U-Dw0wHj_z.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BsIDwouQ-CPsb7qgs.js → ReportTableViewSelector-BsIDwouQ-DTQN43vt.js} +1 -1
- package/dist/assets/{ReportsPage-BFTuYQt2-DMFsqd7C.js → ReportsPage-BFTuYQt2-BOdMPGqx.js} +1 -1
- package/dist/assets/{ReportsRoutes-o9bGTZG2.js → ReportsRoutes-DDZOhFNw.js} +1 -1
- package/dist/assets/{RevenueChart-BoFq3ebd-BKAB0VPm.js → RevenueChart-BoFq3ebd-Dep8qPIO.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-6kCQzaHm-BuMU9buw.js → ReviewDetailsPage-6kCQzaHm-vpPb22cD.js} +1 -1
- package/dist/assets/{ReviewOverlay-Dhb-kL6G-T1Rt0JTi.js → ReviewOverlay-Dhb-kL6G-7aZ79rRC.js} +1 -1
- package/dist/assets/{RewardsRoutes-BgoAL3gc.js → RewardsRoutes-Tsydnhre.js} +1 -1
- package/dist/assets/{RoleWithToolTip-BfM8Ltz4-GXXfeOBC.js → RoleWithToolTip-BfM8Ltz4-C9PA5RE5.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ccewwmwc-DNDpwGYk.js → ScheduleDetailsFixedAssetsPage-Ccewwmwc-P3n6us6f.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-D4LK83qQ-CrubqPOA.js → ScheduleDetailsPage-D4LK83qQ-BWZmqAgS.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BZR2cL6z-w_YgKqjP.js → ScheduleSequenceTable-BZR2cL6z-DKWBlbjs.js} +1 -1
- package/dist/assets/{ScreenRoutes-TOE80oct.js → ScreenRoutes-BshWKT8L.js} +2 -2
- package/dist/assets/{SetUpAccountSection-CxjYbrXu-DQJqTTcH.js → SetUpAccountSection-CxjYbrXu-s5rUPVRP.js} +1 -1
- package/dist/assets/{SettingsRoutes-DiQAnQke.js → SettingsRoutes-D0MoVRRP.js} +1 -1
- package/dist/assets/{SetupPagesScreen-B44zrHwc.js → SetupPagesScreen-ClrT9x-n.js} +1 -1
- package/dist/assets/{SignIn-CVmtPGKL-CXpuQZF7.js → SignIn-CVmtPGKL-DafJ0myc.js} +1 -1
- package/dist/assets/{SignInScreen-C2qODMhD.js → SignInScreen-B0MWBUA7.js} +1 -1
- package/dist/assets/{SignOutScreen-BuY2-rDM.js → SignOutScreen-BHQQUANt.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BLjP9T8h-Bnkn6BRU.js → SpendManagementListViewPage-BLjP9T8h-CZg1c21r.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Ck4brjun-BbdiQcvt.js → SpendManagementPerTabPage-Ck4brjun-DYiWnXoY.js} +1 -1
- package/dist/assets/{SpendManagementSection-DAqR2c98-C5fgGVtc.js → SpendManagementSection-DAqR2c98-CppRRTDr.js} +1 -1
- package/dist/assets/{StatementItem-B_iG99XI-BDI0UE9q.js → StatementItem-B_iG99XI-D9Qua-97.js} +1 -1
- package/dist/assets/{StatementsPage-DcKziEfZ-CpFQ2fm7.js → StatementsPage-DcKziEfZ-D6FL0knM.js} +1 -1
- package/dist/assets/{StatusSwitcher-BI-dgnrK-esyU6zat.js → StatusSwitcher-BI-dgnrK-wXJw_ZNb.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BpNI5Wke-DY-WyLZ7.js → SubTabSwitcher-BpNI5Wke-PE6NJvqU.js} +1 -1
- package/dist/assets/{SuccessAnimation-AojDorqX-Ct3YtoCE.js → SuccessAnimation-AojDorqX-BdMSXfoJ.js} +1 -1
- package/dist/assets/{SummaryCard-HW-1WXN9-CoLCJfe-.js → SummaryCard-HW-1WXN9-CKrqyyU_.js} +1 -1
- package/dist/assets/{TaskDetailPage-Cwe193JO-NTfqA0n4.js → TaskDetailPage-Cwe193JO-i9Sljen6.js} +1 -1
- package/dist/assets/{TaskListScreen-pLglWsFm.js → TaskListScreen-DFbIcDmb.js} +1 -1
- package/dist/assets/{TaskManagementPage-Bz1uP5hK-CpLCNkk4.js → TaskManagementPage-Bz1uP5hK-BIKNCgym.js} +1 -1
- package/dist/assets/{TaskRoutes-DnaScSH0.js → TaskRoutes-Co5GAtGe.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-oORYeFzN-D8_bwHZK.js → TimeRangeSwitcher-oORYeFzN-CAiWb64s.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-JcJSbn0--WBWh3QNc.js → TimeframeSwitcher-JcJSbn0--DbavpCXX.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-BEZU-KDj-D-7PUQTb.js → TimeframeSwitcherWithToggle-BEZU-KDj-D7lbyLQ0.js} +1 -1
- package/dist/assets/{TopExCard-CF6z0JWk-BU77sN9h.js → TopExCard-CF6z0JWk-BtE5RMXD.js} +1 -1
- package/dist/assets/{TopExDetailPage-DrcKlFuy-DtCTyGEZ.js → TopExDetailPage-DrcKlFuy-ClCuoO0K.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-BB4q0jan-Dt9C7u25.js → TransactionActivityLogPage-BB4q0jan-BsaJX_wW.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DRG_qosz-CdI1Sif1.js → TransactionDetailPage-DRG_qosz-4K6JYgr_.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-LeQoOoop.js → TransactionDetailRoutes-CHu8_uXM.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-DmniS92w.js → TransactionDetailScreen-8ecVGvyF.js} +1 -1
- package/dist/assets/{TransactionList-iw4pyMYF-BZXHb6ne.js → TransactionList-iw4pyMYF-mPHBoCgm.js} +1 -1
- package/dist/assets/{TransactionListBig-BljAUwAB-CwuevZBI.js → TransactionListBig-BljAUwAB-BvX9nmmr.js} +1 -1
- package/dist/assets/{TransactionListPage-ReGTmF43-3dryvOZg.js → TransactionListPage-ReGTmF43-Cg71CfBs.js} +1 -1
- package/dist/assets/{TransactionListRoutes-B0NbfJGc.js → TransactionListRoutes-BH0onuUu.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-DXuYIj-p-BAGVAnze.js → TransactionVendorDetailPage-DXuYIj-p-INYYwexD.js} +1 -1
- package/dist/assets/{TransferDrawerPage-C3q8h8Zy-BoniTEmb.js → TransferDrawerPage-C3q8h8Zy-DvswHDCp.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DqjFEV9B-DKLiFiZv.js → TreasuryOverviewPage-DqjFEV9B-B8HEv02z.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-ByeK0W_5-CSsspYlY.js → TreasuryPromoPage-ByeK0W_5-7ZtCK_x2.js} +1 -1
- package/dist/assets/{TreasuryRoutes-RdusD-Rs.js → TreasuryRoutes-DjIaFsbd.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-BjGwvMFL-rl7Xwq3o.js → TreasuryStatementsPage-BjGwvMFL-xqt4JjCQ.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DwLyqS86-DtzjbSZs.js → TreasuryTaxLetterPage-DwLyqS86-q3-mZZiq.js} +1 -1
- package/dist/assets/{TrendChart-Dgh_21FN-fE4rL1gs.js → TrendChart-Dgh_21FN-BUN7WqwY.js} +1 -1
- package/dist/assets/{TrendWithTransactions-BgIPapHk-CoxM2wed.js → TrendWithTransactions-BgIPapHk-DhBJ4ja-.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DIIJcGrj-BjS9g3RO.js → UncategorizedAccountsMappingPage-DIIJcGrj-BEadu1px.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DIOZhQOZ-BAgYpBnA.js → UnitIntegrationPage-DIOZhQOZ-pBfy0J4D.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-qrcEQmkz-Pa5hfJ1q.js → UploadAdditionalDocumentOverlay-qrcEQmkz-km4_SH9P.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-C58w6vC7-BNROU96t.js → Vendor2FAPopup-C58w6vC7-BX6NPq24.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BbxRwrEv-Bd-GOuTM.js → VendorACHDetailsPage-BbxRwrEv-Bcfg0w4a.js} +1 -1
- package/dist/assets/{VendorDetailPage-CEQFcNHr-CdHY7Z8F.js → VendorDetailPage-CEQFcNHr-BzpOC2Af.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-C02ZhGg3-B_msRt77.js → VendorDomesticWireDetailsPage-C02ZhGg3-Ds0ralM2.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Dl7jZYBV-D7-yK69r.js → VendorFiling1099EditablePage-Dl7jZYBV-aKmowmhJ.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-yVbtg_tG-DkVJi06p.js → VendorFirstReviewPage-yVbtg_tG-DK2E4A2j.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DNDv_s8G-Bjr44b-O.js → VendorInternationalWireDetailsPage-DNDv_s8G-COfy135o.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Bdt0UR_b-DHmy9Qnb.js → VendorInternationalWireSwiftDetailsPage-Bdt0UR_b-DxxL_aBl.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Cscbgqrx-Bo3Iqcup.js → VendorsAccountsSection-Cscbgqrx-BhbRW82b.js} +1 -1
- package/dist/assets/{VendorsRoutes-SOKeFy8n.js → VendorsRoutes-CDhATRU9.js} +1 -1
- package/dist/assets/{VerifyDevice-D1vsUSdJ-DgLDroCx.js → VerifyDevice-D1vsUSdJ-eGBtSBPS.js} +1 -1
- package/dist/assets/{VideoPlayer-TlEy-oD0-u3_il_Y_.js → VideoPlayer-TlEy-oD0-FvFO3heV.js} +1 -1
- package/dist/assets/{VideoPopup-3DD646kG-DAIfDEuP.js → VideoPopup-3DD646kG-TOybjXu5.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-DH4LFnlh.js → WiseConfirmationScreen-C1RA1Ldj.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BbsXzuHD-D5t6KpKy.js → ZeniAccountDetailPage-BbsXzuHD-Dui1mjq_.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-lmuVUpKS-BoKhHVdj.js → ZeniAccountListViewPage-lmuVUpKS-CkMXwzu4.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CQhwBKXD-w44Ezq7c.js → ZeniAccountNavBarPieces-CQhwBKXD-Dl7I8K_B.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CXEb9tRE-Clp7jZPs.js → ZeniAccountPromoPage-CXEb9tRE-DbrBCcxq.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-DFjwyu_L.js → ZeniAccountRoutes-CE8jZq_j.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DPhYQu6u-CIYZ11Sw.js → ZeniAccountSetupPage-DPhYQu6u-Dn-mOjTr.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-C6QxYG3m.js → ZeniAccountStatementScreen-DDPrZzz9.js} +1 -1
- package/dist/assets/{ZeniAvatar-CCOD249Z-aNjy2A_h.js → ZeniAvatar-CCOD249Z-ByE5Nx_e.js} +1 -1
- package/dist/assets/{ZeniCopyright-pvaggW6x-CiSnJmIZ.js → ZeniCopyright-pvaggW6x-BLgnKSEe.js} +1 -1
- package/dist/assets/{ZeniDatePicker-EhzRlpFY-CeeUTfjC.js → ZeniDatePicker-EhzRlpFY-D5GIgjl0.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-Dlyom9dD-ssTMZPmj.js → ZeniTransferAmountSlider-Dlyom9dD-BwjTfvmr.js} +1 -1
- package/dist/assets/{accountMappingHelper-BiN37Afq.js → accountMappingHelper-DnytOxBh.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CPiuqV_c.js → add-to-wallet-DgdBD8_G-BDS4bqaK.js} +1 -1
- package/dist/assets/{analytics-wdo9XAAq.js → analytics-lZopEqtI.js} +1 -1
- package/dist/assets/{analyticsHelper-AeOsAjMK-BGRykG4C.js → analyticsHelper-AeOsAjMK-9GsVy5uR.js} +1 -1
- package/dist/assets/{analyticsHelper-DCVh2Q2D.js → analyticsHelper-sSJGGzsr.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-Cha4vEKb.js → arrow-south-east-round-PEovUgvH-PZQhaHEw.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-BOscmwTD.js → auto-transfer-rule-mbafm5D3-BJqlTaL4.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-Cy0EjR0N.js → avatar-Dz7aEm3d-D-qe2ybq.js} +1 -1
- package/dist/assets/{bank-letter-BOcVjN6J-Dipf9hW8.js → bank-letter-BOcVjN6J-BAI3BcgX.js} +1 -1
- package/dist/assets/{calculateSize-D-LzlJzs-DzScwWaZ.js → calculateSize-D-LzlJzs-H8aFTaA8.js} +1 -1
- package/dist/assets/{chartTypes-BLsP7rGF-Da9uYAcr.js → chartTypes-BLsP7rGF-BTfpmJqx.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-CnqntmQY.js → clock-CJkylEKt-Aj8yCCM3.js} +1 -1
- package/dist/assets/{common-CAmBErdt-mQeN1s1o.js → common-CAmBErdt-gt_uFFPU.js} +1 -1
- package/dist/assets/{commonDimensions-DIm7kTtR-BvbgEdIW.js → commonDimensions-DIm7kTtR-LC7HUPCB.js} +1 -1
- package/dist/assets/{commonTypes-B3mnx2x_-DYgG7K13.js → commonTypes-B3mnx2x_-bGKW9_Lf.js} +1 -1
- package/dist/assets/{core-BcVj2gTX.js → core-CbpF8wW5.js} +1 -1
- package/dist/assets/{dash.all.min-C98tiWV1.js → dash.all.min-8b6mRaf1.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-ClJHrrjv.js → decodeURIComponentSafe-CqkAxC0p.js} +1 -1
- package/dist/assets/{dnd-eXDjf6Lj.js → dnd-PN_2LgQk.js} +1 -1
- package/dist/assets/{dollar-round-D18u7nlm-B8-M7Nzo.js → dollar-round-D18u7nlm-BhSn6DYS.js} +1 -1
- package/dist/assets/{downloadPdf-B5WrL0K1-CyBUyeC8.js → downloadPdf-B5WrL0K1-DumpN6AC.js} +1 -1
- package/dist/assets/{empty-C4qv3p9z.js → empty-BvRt8sTu.js} +1 -1
- package/dist/assets/{empty-wYUB3tSo.js → empty-Ccpah3HZ.js} +1 -1
- package/dist/assets/{epic-BQcpQKad.js → epic-G4Y_asZ_.js} +1 -1
- package/dist/assets/{filter-cZIFUNvj-BvpfZxhV.js → filter-cZIFUNvj-CAMGerao.js} +1 -1
- package/dist/assets/{getLocaleForTenant-Cgh9LbcE.js → getLocaleForTenant-BAdWD_sf.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-DmzAN1Y2.js → gift-box-Cmt9OgIZ-CxU0MaIs.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-C2w81gyO.js → graphic-no-data-l-DU4J8fDt-DMougQJz.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-B9Kj_9xA.js → graphic-no-data-net-burn-l-CzmycA0m-Q8dYUrIm.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-C5EsxlDc.js → handshake-BPg58FML-DJv997hY.js} +1 -1
- package/dist/assets/{helper-BVESv00--CCWSdc0u.js → helper-BVESv00--BSBoxTwN.js} +1 -1
- package/dist/assets/{hyperlink-DQyCeXx2-B8GMs2Qi.js → hyperlink-DQyCeXx2-ByO7QjF0.js} +1 -1
- package/dist/assets/{index-Lqpf6Iwl.js → index-BScUKNNV.js} +1 -1
- package/dist/assets/{index-CHxhGC-k.js → index-C2kgfwQ0.js} +1 -1
- package/dist/assets/{index-CDsOcKsG.js → index-C5NS4k1k.js} +6 -6
- package/dist/assets/{index-DlrbNfLu.js → index-CtaVzrbN.js} +1 -1
- package/dist/assets/{index-Bnlx-O7K.js → index-Ir5iePqW.js} +1 -1
- package/dist/assets/{index-DxRPAtdN.js → index-bFwDyqSe.js} +1 -1
- package/dist/assets/{lexical-DEeAev9O.js → lexical-wFFjFeQS.js} +1 -1
- package/dist/assets/{liveblocks-BAIL303h.js → liveblocks-DAzt4XWX.js} +1 -1
- package/dist/assets/{lottie-DP5A4Fs7.js → lottie-DCpFrhzh.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DJxRl0X1-CqHpAmA4.js → mapLoadingInProgressToTreeNode-DJxRl0X1-BiIcVS7d.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BIiMj0sc-BSyDfjzw.js → mapSectionWithAcOnlyToTreeNode-BIiMj0sc-CYHAjMYB.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Bj3f2irs-BQdWgZ0d.js → mapSpacerToTreeNode-Bj3f2irs-DaSaAPgD.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-AI17uMHa-BqlDWqT_.js → mapTimeframeBalancesToTreeNode-AI17uMHa-qKxAkbp_.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CyO5pm8k-_jPUKmdI.js → mapTimeframeBalancesToTreeNode-CyO5pm8k-CNnw8Wla.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-NKafOEXu-n_XJX95T.js → mapTimeframeHeaderLoadingInProgressToTreeNode-NKafOEXu-D3MVK9I-.js} +1 -1
- package/dist/assets/{media-player-Bc98lKB5.js → media-player-CfnH7IPR.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-DIu_vl7e.js → money-2cg1MuG4-DfhxL46u.js} +1 -1
- package/dist/assets/{mui-hn9thxzh.js → mui-CsJjaFS3.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-6zbdwm2S.js → page-detail-CWX5S47F-BqAM7jrq.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-BOxy1JzR.js → page-summary-D7_VQHwN-BEqozVIp.js} +1 -1
- package/dist/assets/{panelSelectedMixin-Cddsb26L-B7PwrSV9.js → panelSelectedMixin-Cddsb26L-_TcaqYgi.js} +1 -1
- package/dist/assets/{pathToGoBack-CQ5L4Qtj.js → pathToGoBack-BfqJ0YlJ.js} +1 -1
- package/dist/assets/{pdf-Cs-mh77O.js → pdf-CotdgJU1.js} +3 -3
- package/dist/assets/{pdf-lib-sBkKqPTU.js → pdf-lib-D_D0fjcQ.js} +1 -1
- package/dist/assets/{plaid-NpQK5k22.js → plaid-BTCtHWVp.js} +1 -1
- package/dist/assets/{pusher-DWT0gMh9.js → pusher-BQ8DKEaa.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-CFx63U5w.js → radio-default-CiSgisfh-Bf3NugY4.js} +1 -1
- package/dist/assets/{react-D8Ql5Ir3.js → react-BBeDYsAV.js} +1 -1
- package/dist/assets/{react-C6SHTtsh.js → react-BUIAuHwU.js} +3 -3
- package/dist/assets/{react-CDpJbt9S.js → react-BqQ4cQqX.js} +1 -1
- package/dist/assets/{react-D7EJTKAr.js → react-DPwINmE2.js} +1 -1
- package/dist/assets/{react-BTmu8DG-.js → react-DXQJSc1U.js} +1 -1
- package/dist/assets/{react-D2TGyR4z.js → react-D_8V1wyK.js} +1 -1
- package/dist/assets/{react-xLLMyMiK.js → react-DqT05IJk.js} +1 -1
- package/dist/assets/{react-GYK8-ald.js → react-qeQ53cUY.js} +1 -1
- package/dist/assets/{recharts-B4dFoR35.js → recharts-Z1H4NIT9.js} +1 -1
- package/dist/assets/{routePaths-C-_oCckx.js → routePaths-Canmm7cj.js} +1 -1
- package/dist/assets/{sentry-BkPUuNvL.js → sentry-B7C9wEq0.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-aMF7hqRR.js → shield-DOlUxcFf-Bj4akX0-.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-C-17E3uX.js → spend-limit-D6SyboD4-BgiUCsPc.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BWMF0py6-COMd_TR_.js → toCOABalancesWithID-BWMF0py6-DXg0RqcA.js} +1 -1
- package/dist/assets/{toChartData-BkubFDq8-CRAS8Brl.js → toChartData-BkubFDq8-Dqms1_zM.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-B2H47PYQ.js → transaction-placeholder-CpOwZAMG-C1Qe8Rh2.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-DnfqwuXr.js → undo-b_3XZ5CX-eTBdG90-.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-PO6XR31-.js → unlock-BPWn2I5L-Bw2sQZ5n.js} +1 -1
- package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-CkquQ_GZ.js → upload-reimbursement-receipt-O2N8vcO7-CnNIPHqW.js} +1 -1
- package/dist/assets/{uploadAttachment-CzgakLtr-w-CpO5ZH.js → uploadAttachment-CzgakLtr-FsVc9-o9.js} +1 -1
- package/dist/assets/{uploadReceipts-CIgkuVpu-DItV8z0n.js → uploadReceipts-CIgkuVpu-w07yQGh1.js} +1 -1
- package/dist/assets/{url-DmgUP0mV.js → url-B_60JuDM.js} +1 -1
- package/dist/assets/{url-Bagborol.js → url-BvfHN6gt.js} +1 -1
- package/dist/assets/{useDeviceId-eLv7tFR4.js → useDeviceId-BrDKA5Dy.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-BQU3Jo1E.js → useInitialThreadRequest-CpkcHK8z.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-Cftpm8Z6.js → useLongPress-GCK2COYQ-nY-Uopy3.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-D_M71co8.js → usp-line-BBd1wKwW-DadTGyfk.js} +1 -1
- package/dist/assets/{utils-DkgigH7S.js → utils-DSKkIaRb.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-H3IbO2pr.js → withTransactionSidePanel-BJJbIkbE.js} +1 -1
- package/dist/assets/{zeni-epic-state-CsRsIUwY.js → zeni-epic-state-CjUXhad7.js} +3 -3
- package/dist/assets/{zeni-icon-only-QItZ_P8a.js → zeni-icon-only-DmigVd7z.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-D7hLcvD9.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-B4YFIOQJ-t-Qqzm11.js +0 -1
package/dist/assets/{BillDetailPage-V8us93cj-a4bc14UJ.js → BillDetailPage-V8us93cj-DAlTWroi.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as Ot,V as t,fI as Ba,e as Ra,y as za,ba as Ma,bb as Na,fJ as La,fK as Fa,bF as Oa,a7 as Ea,x as y,eF as pt,eG as _a,o as i,eH as Za,eI as Ka,eJ as Wa,a5 as Ce,eK as Ua,b as g,a_ as mt,aM as ut,cR as yt,bR as ht,bS as bt,bT as xt,fL as Va,fM as Ga,fN as Xa,fO as Ya,c$ as j,fP as $,eQ as A,d5 as k,eO as qa,w as gt,f as re,eP as Et,eW as Ha,eR as Ja,eS as Qa,fQ as ei,fR as ti,a9 as ai,k as ft,bo as De,be as ii,fS as N,O as ni,m as s,u as li,bx as oi,bf as ri,a8 as si,fT as di,eX as wt,d as ci,cu as pi,bH as mi,fU as Tt,ar as ui,at as yi,n as hi,bq as _t,cv as bi,fV as xi,C as Zt,z as gi,ap as fi,aR as wi,fW as Ti,l as vi}from"./index-CDsOcKsG.js";import{a as p}from"./sentry-BkPUuNvL.js";import{n}from"./mui-hn9thxzh.js";import{c5 as Di,bG as Ii,c6 as ji,G6 as $i,c4 as Ai,bX as ki,bs as Si}from"./zeni-epic-state-CsRsIUwY.js";import{o as Ci,t as Pi}from"./LowBalancePopup-CplxkRHP-CQO3ycRf.js";import"./pdf-Cs-mh77O.js";import"./core-BcVj2gTX.js";import"./lottie-DP5A4Fs7.js";import"./liveblocks-BAIL303h.js";import"./recharts-B4dFoR35.js";import"./dnd-eXDjf6Lj.js";import"./analytics-wdo9XAAq.js";import"./plaid-NpQK5k22.js";import"./utils-DkgigH7S.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="f3115c62-a74a-48fa-9882-3693ed638312",e._sentryDebugIdIdentifier="sentry-dbid-f3115c62-a74a-48fa-9882-3693ed638312")}catch{}})();const Bi={formTitle:new ci("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ri,common:{noText:S,strings:{empty:c},currency:vt,via:zi,more:Mi,edit:Ni},spendManagement:{billPay:{billDetails:a,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Kt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Li}}}}=ni.getLocalizedStrings(),je=Ri.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:E,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Vt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Gt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:qt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Ht,onAttachmentClick:Fe,saveBillDetails:Jt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:ea,onSaveRealTimeApprovals:ta,onRetryPaymentClick:aa,onRefundPaymentClick:ia,initialOpenThreadRequest:V})=>{const l=Ra(),o=Ot(),Ee=za(),[na,G]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[Ze,me]=p.useState(!1),[la,ue]=p.useState(!1),[Ke,Q]=p.useState(!1),x=e.transactionDetails?.id,oa=Gt?Ma:Na,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(oa);p.useEffect(()=>{V?.threadId!=null&&V?.companyId!=null&&V?.entityType!=null&&ee(V)},[V,ee]);const[ra,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:x,isGlobalComment:!1},f=Re&&x!=null,{threads:Y,isLoading:C}=La(),We=p.useMemo(()=>x==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Fa)),[Y,x]).length,D=`dashboard_${o.currentTenant?.companyId}`,sa=p.useCallback((r,u)=>{te(u),X(!1)},[te,X]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!C&&(te(ye.threadId),ee(null))},[ye,Y,C,te,ee]);const Ue=p.useRef(!1),[da,ca]=p.useState(!1),pa=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,ca(!0))});Oa({componentName:"bill.details",enabled:da});const[M,ae]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ve,Ge]=p.useState("approved"),[ma,Xe]=p.useState(!1),[ua,Ye]=p.useState(!1),[qe,He]=p.useState(!1),Je=()=>Xe(!1),Qe=Ea(e.zeniAssist?.refundStatus.fetchState),ie=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ie())},[Qe,e.zeniAssist?.refundStatus,ie]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,ya=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ne?.code=="approved"&&q?.code?q:ne,L=Fi(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?ya:q?.code==null||ne?.code!="approved"&&q.code!=="mark_as_paid"?ne:q,be=e.transactionDetails?.vendor?.name,P=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},ha={onOkClick:()=>{G(!1),M.primaryButtonText===a.delete?qt?.(e.isRecurring):M.title===a.cancelBillTitle?Ne?.(e.isRecurring):M.title===a.cancelAndDeleteBillTitle||M.title===a.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):M.primaryButtonText===a.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ia())},onCancelClick:()=>{G(!1),pe(!1)}},ba={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},xa=()=>{const[r]=gi("ZeniAssist");return r!=null?t.jsx(fi,{"data-testid":g("bill-details-zeni-assist-icon",x),onClick:()=>{me(!Ze),z.trackZeniAssistClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${i.sp5}`,height:`${i.sp5}`,marginBottom:`${i.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},xe=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,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}})??[],ga=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),fa=r=>r==="billable"||r==="has_been_billed"?a.yes:a.no,wa=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Ta=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wa}`,va=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(yn,{windowSize:l,children:t.jsx(un,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),oe=e.transactionDetails?.billPayInfo!=null?Di(e.transactionDetails?.billPayInfo):void 0,Da=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ii(ji(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,at=e.transactionDetails?.billPayInfo.expectedDepositDate??Da,it=pt(d?.paymentType?.method??"").replace("Same Day",""),Ia=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?a.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(_a,{paymentTypeLabel:it,onClick:()=>Xe(!0),style:{marginTop:`${l==="small"?i.sp2:i.sp0}`}}):void 0,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,ja=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$a=Vt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&ja===!1,ve=we||Te,Aa=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,Z=v?.code,ka=!Aa&&(!tt||v?.code==="processing"&&!P),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),H=$i(e.transactionDetails?.bulkProcessingDetail?.type),O=Ai(e.paymentMethodType?.method),Sa=!H&&(Z!=="processing"&<||Z==="processing"&&!P||Z==="processing"&&ot||h&&O&&Be),st=()=>{Ye(!0),z.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Ca=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:x??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,x]),K=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Za(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Ge("approved"),Ke===!0&&Q(!1),K!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ji,{windowSize:l,ref:ct,children:[t.jsx(Ka,{anchor:"right",open:ma,onClose:Je,transitionDuration:250,"data-testid":g("vendor-email-preview-drawer"),children:t.jsx(Wa,{companyName:Ua(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:it,amount:Ce("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(an,{ref:pa.current,windowSize:l,children:[t.jsx(xn,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":g("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),backgroundColor:Ee.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-small-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":g("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(nn,{windowSize:l,children:[Ke?t.jsx(Ci,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,ua?t.jsx(Pi,{onCancel:()=>{Qt(),Ye(!1),qe&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Jt(!0,qe,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,na||ce?t.jsx(ht,{titleComponent:t.jsx(xt,{children:M.title}),descriptionComponent:t.jsx(bt,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:ha,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oi(l,e):null}):null,la?t.jsx(ht,{titleComponent:t.jsx(xt,{children:a.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:a.rejectBillDescription}),primaryButtonText:a.send,secondaryButtonText:a.cancel,action:ba,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:a.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(on,{windowSize:l,children:[l!=="small"?t.jsxs(rn,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:i.sp5,width:i.sp5}):null]}):null,E&&L!=null&&L.code==="deleted"||L?.value===Pe.tabsById.overdue?t.jsx(pn,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Va,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Ga,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Zi(H,e,K),t.jsx(Xa,{sectionId:Ya,currentVendorOption:{defaultOptions:[]},billId:x,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Fe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:a.invoiceNumber,width:I},text:le.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:a.invoiceDate,width:I},text:le.invoiceDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:a.billDueDate,width:I},text:le.billDueDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:a.memo,width:I},text:le.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(ln,{windowSize:l,children:t.jsx(ke,{children:a.lineItemsTitle})}),xe.length>0?xe.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Pa=>Pa.id===r.lineId)?.recipientAmount;return t.jsxs(Qi,{children:[xe.length>1?t.jsx(en,{windowSize:l,children:t.jsx(tn,{windowSize:l,children:`${a.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:a.amount,width:I},text:B!=null?Ce("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:a.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:a.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:a.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:a.billable,width:I},text:r.billable!=null?fa(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:a.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(sn,{windowSize:l,children:[t.jsx(dn,{children:a.total}),t.jsx(cn,{children:ge!=null?t.jsx(qa,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:a.withdrawFrom,width:I},text:e.withdrawFrom!=null?Et(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:K!=null&&w?.code==="pending_approval"?Kt.addMoney:K})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(ki)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wi,{children:Ha(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:a.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_i(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentTo,width:I},text:d.paymentToBankAccount!=null?Ta:d.paymentToPI!=null?d.paymentToPI.displayText:va,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?bi(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{_ as Ot,V as t,fI as Ba,e as Ra,y as za,ba as Ma,bb as Na,fJ as La,fK as Fa,bF as Oa,a7 as Ea,x as y,eF as pt,eG as _a,o as i,eH as Za,eI as Ka,eJ as Wa,a5 as Ce,eK as Ua,b as g,a_ as mt,aM as ut,cR as yt,bR as ht,bS as bt,bT as xt,fL as Va,fM as Ga,fN as Xa,fO as Ya,c$ as j,fP as $,eQ as A,d5 as k,eO as qa,w as gt,f as re,eP as Et,eW as Ha,eR as Ja,eS as Qa,fQ as ei,fR as ti,a9 as ai,k as ft,bo as De,be as ii,fS as N,O as ni,m as s,u as li,bx as oi,bf as ri,a8 as si,fT as di,eX as wt,d as ci,cu as pi,bH as mi,fU as Tt,ar as ui,at as yi,n as hi,bq as _t,cv as bi,fV as xi,C as Zt,z as gi,ap as fi,aR as wi,fW as Ti,l as vi}from"./index-C5NS4k1k.js";import{a as p}from"./sentry-B7C9wEq0.js";import{n}from"./mui-CsJjaFS3.js";import{c5 as Di,bG as Ii,c6 as ji,G6 as $i,c4 as Ai,bX as ki,bs as Si}from"./zeni-epic-state-CjUXhad7.js";import{o as Ci,t as Pi}from"./LowBalancePopup-CplxkRHP-BGs8KELn.js";import"./pdf-CotdgJU1.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="f3115c62-a74a-48fa-9882-3693ed638312",e._sentryDebugIdIdentifier="sentry-dbid-f3115c62-a74a-48fa-9882-3693ed638312")}catch{}})();const Bi={formTitle:new ci("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ri,common:{noText:S,strings:{empty:c},currency:vt,via:zi,more:Mi,edit:Ni},spendManagement:{billPay:{billDetails:a,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Kt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Li}}}}=ni.getLocalizedStrings(),je=Ri.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:E,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Vt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Gt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:qt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Ht,onAttachmentClick:Fe,saveBillDetails:Jt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:ea,onSaveRealTimeApprovals:ta,onRetryPaymentClick:aa,onRefundPaymentClick:ia,initialOpenThreadRequest:V})=>{const l=Ra(),o=Ot(),Ee=za(),[na,G]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[Ze,me]=p.useState(!1),[la,ue]=p.useState(!1),[Ke,Q]=p.useState(!1),x=e.transactionDetails?.id,oa=Gt?Ma:Na,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(oa);p.useEffect(()=>{V?.threadId!=null&&V?.companyId!=null&&V?.entityType!=null&&ee(V)},[V,ee]);const[ra,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:x,isGlobalComment:!1},f=Re&&x!=null,{threads:Y,isLoading:C}=La(),We=p.useMemo(()=>x==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Fa)),[Y,x]).length,D=`dashboard_${o.currentTenant?.companyId}`,sa=p.useCallback((r,u)=>{te(u),X(!1)},[te,X]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!C&&(te(ye.threadId),ee(null))},[ye,Y,C,te,ee]);const Ue=p.useRef(!1),[da,ca]=p.useState(!1),pa=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,ca(!0))});Oa({componentName:"bill.details",enabled:da});const[M,ae]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ve,Ge]=p.useState("approved"),[ma,Xe]=p.useState(!1),[ua,Ye]=p.useState(!1),[qe,He]=p.useState(!1),Je=()=>Xe(!1),Qe=Ea(e.zeniAssist?.refundStatus.fetchState),ie=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ie())},[Qe,e.zeniAssist?.refundStatus,ie]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,ya=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ne?.code=="approved"&&q?.code?q:ne,L=Fi(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?ya:q?.code==null||ne?.code!="approved"&&q.code!=="mark_as_paid"?ne:q,be=e.transactionDetails?.vendor?.name,P=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},ha={onOkClick:()=>{G(!1),M.primaryButtonText===a.delete?qt?.(e.isRecurring):M.title===a.cancelBillTitle?Ne?.(e.isRecurring):M.title===a.cancelAndDeleteBillTitle||M.title===a.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):M.primaryButtonText===a.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ia())},onCancelClick:()=>{G(!1),pe(!1)}},ba={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},xa=()=>{const[r]=gi("ZeniAssist");return r!=null?t.jsx(fi,{"data-testid":g("bill-details-zeni-assist-icon",x),onClick:()=>{me(!Ze),z.trackZeniAssistClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${i.sp5}`,height:`${i.sp5}`,marginBottom:`${i.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},xe=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,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}})??[],ga=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),fa=r=>r==="billable"||r==="has_been_billed"?a.yes:a.no,wa=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Ta=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wa}`,va=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(yn,{windowSize:l,children:t.jsx(un,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),oe=e.transactionDetails?.billPayInfo!=null?Di(e.transactionDetails?.billPayInfo):void 0,Da=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ii(ji(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,at=e.transactionDetails?.billPayInfo.expectedDepositDate??Da,it=pt(d?.paymentType?.method??"").replace("Same Day",""),Ia=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?a.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(_a,{paymentTypeLabel:it,onClick:()=>Xe(!0),style:{marginTop:`${l==="small"?i.sp2:i.sp0}`}}):void 0,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,ja=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$a=Vt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&ja===!1,ve=we||Te,Aa=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,Z=v?.code,ka=!Aa&&(!tt||v?.code==="processing"&&!P),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),H=$i(e.transactionDetails?.bulkProcessingDetail?.type),O=Ai(e.paymentMethodType?.method),Sa=!H&&(Z!=="processing"&<||Z==="processing"&&!P||Z==="processing"&&ot||h&&O&&Be),st=()=>{Ye(!0),z.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Ca=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:x??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,x]),K=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Za(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Ge("approved"),Ke===!0&&Q(!1),K!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ji,{windowSize:l,ref:ct,children:[t.jsx(Ka,{anchor:"right",open:ma,onClose:Je,transitionDuration:250,"data-testid":g("vendor-email-preview-drawer"),children:t.jsx(Wa,{companyName:Ua(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:it,amount:Ce("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(an,{ref:pa.current,windowSize:l,children:[t.jsx(xn,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":g("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),backgroundColor:Ee.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-small-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":g("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(nn,{windowSize:l,children:[Ke?t.jsx(Ci,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,ua?t.jsx(Pi,{onCancel:()=>{Qt(),Ye(!1),qe&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Jt(!0,qe,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,na||ce?t.jsx(ht,{titleComponent:t.jsx(xt,{children:M.title}),descriptionComponent:t.jsx(bt,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:ha,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oi(l,e):null}):null,la?t.jsx(ht,{titleComponent:t.jsx(xt,{children:a.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:a.rejectBillDescription}),primaryButtonText:a.send,secondaryButtonText:a.cancel,action:ba,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:a.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(on,{windowSize:l,children:[l!=="small"?t.jsxs(rn,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:i.sp5,width:i.sp5}):null]}):null,E&&L!=null&&L.code==="deleted"||L?.value===Pe.tabsById.overdue?t.jsx(pn,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Va,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Ga,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Zi(H,e,K),t.jsx(Xa,{sectionId:Ya,currentVendorOption:{defaultOptions:[]},billId:x,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Fe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:a.invoiceNumber,width:I},text:le.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:a.invoiceDate,width:I},text:le.invoiceDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:a.billDueDate,width:I},text:le.billDueDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:a.memo,width:I},text:le.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(ln,{windowSize:l,children:t.jsx(ke,{children:a.lineItemsTitle})}),xe.length>0?xe.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Pa=>Pa.id===r.lineId)?.recipientAmount;return t.jsxs(Qi,{children:[xe.length>1?t.jsx(en,{windowSize:l,children:t.jsx(tn,{windowSize:l,children:`${a.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:a.amount,width:I},text:B!=null?Ce("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:a.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:a.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:a.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:a.billable,width:I},text:r.billable!=null?fa(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:a.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(sn,{windowSize:l,children:[t.jsx(dn,{children:a.total}),t.jsx(cn,{children:ge!=null?t.jsx(qa,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:a.withdrawFrom,width:I},text:e.withdrawFrom!=null?Et(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:K!=null&&w?.code==="pending_approval"?Kt.addMoney:K})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(ki)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wi,{children:Ha(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:a.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_i(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentTo,width:I},text:d.paymentToBankAccount!=null?Ta:d.paymentToPI!=null?d.paymentToPI.displayText:va,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?bi(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
2
|
${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`})(),additionalInfoLabel:t.jsx(Ki,{children:Ia})}),d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(xi,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:Qa(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:Ja(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(hn,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ei,{onAttachmentClick:Fe,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ti,{amount:ga,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ht,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:se,signedInUserId:_?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:ea,onSaveRealTimeApprovals:ta},historicActivities:e.billHistory.activities}),t.jsx(mn,{})]}),e.transactionDetails?.vendor==null||he||e.transactionDetails.isDeleted?null:t.jsx(ai,{separatorStyle:{marginRight:i.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?a.buttons.reject:a.buttons.rejectBill,isLoading:Ve==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{Ge("rejected"),K!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ei(U,rt),isLoading:Ve==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{K!=null?Q(!0):dt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ui,{children:t.jsxs(Hi,{windowSize:l,children:[!H&&_e?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-container"),children:[Z!=="processing"&<?t.jsx(W,{onClick:()=>{ae({title:P?a.recurringBill.deleteRecurringTitle:a.deleteBillTitle,description:P?a.recurringBill.deleteRecurringAlertText:a.deleteAlertDescription,primaryButtonText:a.delete,secondaryButtonText:a.cancel}),G(!0)},"data-testid":g("delete-bill-action-item"),children:a.buttons.deleteBill}):null,Z!=="processing"||P?null:t.jsx(W,{onClick:()=>{ae({title:a.cancelBillTitle,description:a.cancelAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-bill-action-item"),children:a.buttons.cancel}),Z==="processing"&&ot?t.jsx(W,{onClick:()=>{ae({title:P?a.recurringBill.cancelAndDeleteRecurringTitle:a.cancelAndDeleteBillTitle,description:P?a.recurringBill.cancelAndDeleteRecurringAlertText:a.cancelAndDeleteAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-and-delete-bill-action-item"),children:a.buttons.cancelAndDelete}):null,h&&O&&Be?t.jsx(W,{onClick:()=>{He(!0),st()},"data-testid":g("mark-as-paid-action-item"),children:a.paymentOutsideZeni.markAsPaid}):null]})}):null,Ze?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(W,{onClick:()=>{z.trackRetryClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),aa()},"data-testid":g("retry-bill-action-item"),children:a.buttons.retry}):null,Te?t.jsx(W,{onClick:()=>{z.trackRefundClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ae({title:a.zeniAssist.refundTitle,description:a.zeniAssist.refundDescription,primaryButtonText:a.zeniAssist.proceed,secondaryButtonText:a.cancel}),pe(!0)},"data-testid":g("refund-bill-action-item"),children:a.buttons.refund}):null]})}):null,t.jsxs(qi,{windowSize:l,children:[$a===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:ve?a.zeniAssist.tooltip:a.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:ve,"data-testid":g("other-actions-icon-container"),children:ve?t.jsx(xa,{}):t.jsx(Gi,{})})}):null,H||fe!==!0?null:t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Ni,placement:"top",children:t.jsx(Yi,{onClick:et,"data-testid":g("edit-bill-icon-container"),children:t.jsx(Xi,{})})}),!H&&ka===!0&&Sa?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Mi,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":g("more-details-icon-container"),children:t.jsx(Vi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}})]}),f?t.jsx(ii,{isDrawerOpen:ra,allowComposer:!0,drawerTitle:Li,threads:Y,filter:T,autoExpand:!0,autoFocus:!1,isLoading:C,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Ca,onThreadClick:sa,onCloseAllThreadsDrawer:()=>X(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${i.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ee.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}}):null]})},Bn=e=>{const b=Ot(),h=e.billDetails.transactionDetails?.id,E=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!E||_==null||h==null)return t.jsx($t,{...e});const se=`dashboard_${_}`;return t.jsx(Ba,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Fi=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:N.deleted.color,bgColor:N.deleted.bgColor,borderColor:N.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Si(),"date")===!0?{value:Pe.tabsById.overdue,color:N.overdue.color,bgColor:N.overdue.bgColor,borderColor:N.overdue.borderColor}:{value:e.name,color:N[h].color,bgColor:N[h].bgColor,borderColor:N[h].borderColor}},Oi=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(bn,{windowSize:e,children:[t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.accountNumber}),t.jsx(Nt,{children:b.withdrawFrom!=null?Et(b.withdrawFrom,e):c})]}),t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.amount}),t.jsx(Nt,{children:h!=null?Ce("0,0[.]00",h):S})]})]})},Ei=(e,b)=>e?a.paymentOutsideZeni.markAsPaid:b?a.buttons.approve:a.buttons.approveBill,_i=e=>{const b=e.paymentMode,h=a.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const E=a.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${zi} ${E}`},Zi=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:i.sp5,marginBottom:i.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const E=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:i.sp2,marginBottom:i.sp3},title:`${Kt.lowBalanceIn.replace("__account__",E)}`,description:h.replace("Low balance! ","")})}return null},Ki=n.div``,Wi=n.div``,Ui=n.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as l}from"./pdf-
|
|
1
|
+
import{j as l}from"./pdf-CotdgJU1.js";import{a as y}from"./sentry-B7C9wEq0.js";import{j,h as U,i as B,u as v,N as O,k as T,l as $,R as L,m as h}from"./core-CbpF8wW5.js";import{ct as N,L9 as A,KR as b,tU as I,tO as F,tS as w,tH as K,KT as W,tK as q,tW as H,tV as C}from"./zeni-epic-state-CjUXhad7.js";import{y as k,js as P,jQ as V,k9 as Q,lo as z,ki as _,lp as G}from"./index-C5NS4k1k.js";import"./mui-CsJjaFS3.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-CE-klt57.js";import M from"./NotFoundScreen-DXnaOvLy.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="27cf8ee3-8798-4b17-acaf-d0339ea7a0da",e._sentryDebugIdIdentifier="sentry-dbid-27cf8ee3-8798-4b17-acaf-d0339ea7a0da")}catch{}})();const R="bill-approval-rule-update",X=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(Q(z)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=y.useState(!1),[u,s]=y.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>N(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(F(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");y.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const f={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx(O,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(X,{currentTenant:c,location:o,navigate:e,...f})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(f=>{const i=f.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=f.actors.selectedNonUsers.map(S=>{const E=!!J(S.value);return{type:E?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!E}}),m=i.concat(x);g.push({action:f.stepType.selectedOption,actors:m,operator:m.length>1?f.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(H())},onSaveRuleSuccess:()=>{t("../")}}})(G);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=$(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=y.useState(!1);if(y.useEffect(()=>{n||(c(!0),o(q(!0)))}),y.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(L,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as F,m as U,e as M,O as _,T as W,a7 as G,a1 as X,c8 as H,V as o,a_ as J,A as K,a9 as Q,o as d,fy as Y}from"./index-
|
|
1
|
+
import{x as F,m as U,e as M,O as _,T as W,a7 as G,a1 as X,c8 as H,V as o,a_ as J,A as K,a9 as Q,o as d,fy as Y}from"./index-C5NS4k1k.js";import{a as L}from"./sentry-B7C9wEq0.js";import{n as h}from"./mui-CsJjaFS3.js";import{b as Z,f as ee,o as R,l as $}from"./FollowStepsSection-BVT2K7mu-L8a-cjiL.js";import"./pdf-CotdgJU1.js";import"./zeni-epic-state-CjUXhad7.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="6ccb00fb-1504-4356-bf26-cdaaebca0eca",e._sentryDebugIdIdentifier="sentry-dbid-6ccb00fb-1504-4356-bf26-cdaaebca0eca")}catch{}})();const T="billPayApprovalRuleDetailPage",C="lowerBound",k="upperBound",I="steps",b="applyToExistingBills",ae={footerPadding:new F(U[2],U[2])};function Se({localData:e,approvalUpdateActionType:a,onBackClick:l,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:w}){const P=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=le(e,a==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:u}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(u!=null&&u.type==="approval_update"&&u.data!=null){const{approvalRuleId:i}=u.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return L.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=X(m);H(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&w()},[B,c?.fetchState,w]),o.jsxs(se,{children:[o.jsx(J,{title:a==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j(T),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j(T),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:a==="approval_create"&&p.length===0?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const le=(e,a)=>{const{criteria:l,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),R(e.allAttributes),R(e.filteredAttributes),s??[])??[],[C]:a?void 0:l!=null?l.range.min.amount??0:0,[k]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},te=(e,a,l,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:$},actors:{allUsers:a,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(l,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},actors:{allUsers:a,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,a)=>e.filter(l=>l.userId!=null&&a.findIndex(s=>s.userId===l.userId)>-1),oe=(e,a)=>e.filter(l=>a.findIndex(s=>s.subType===l.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bo as P,bR as q,bS as V,bT as O,cq as F,m as r,at as J,d as T,as as K,f as j,cp as Q,aR as X,w as Y}from"./index-
|
|
1
|
+
import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bo as P,bR as q,bS as V,bT as O,cq as F,m as r,at as J,d as T,as as K,f as j,cp as Q,aR as X,w as Y}from"./index-C5NS4k1k.js";import{n as t}from"./mui-CsJjaFS3.js";import{a as Z}from"./sentry-B7C9wEq0.js";import"./pdf-CotdgJU1.js";import"./zeni-epic-state-CjUXhad7.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="c617441c-cef6-4cc1-a1e4-57dc865d266c",e._sentryDebugIdIdentifier="sentry-dbid-c617441c-cef6-4cc1-a1e4-57dc865d266c")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:g=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(x)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(k,{}),o.jsx(le,{}),o.jsx(k,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{f(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,_)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,E)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${E}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},_))})}),v?o.jsx(q,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-CTQSknOB-C2T9b-Vq.js → BillPayPromoPage-CTQSknOB-CQkU1mWk.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,c as m,O as M,o,D as ie,c2 as oe,y as I,ab as U,H as se,x as le,f as b,bM as re,ac as te,au as ae,m as ne}from"./index-
|
|
1
|
+
import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,c as m,O as M,o,D as ie,c2 as oe,y as I,ab as U,H as se,x as le,f as b,bM as re,ac as te,au as ae,m as ne}from"./index-C5NS4k1k.js";import{a as g}from"./sentry-B7C9wEq0.js";import{n as s}from"./mui-CsJjaFS3.js";import{FX as de,bK as ce,FY as pe}from"./zeni-epic-state-CjUXhad7.js";import{C as me}from"./VideoPopup-3DD646kG-TOybjXu5.js";import{M as $}from"./usp-line-BBd1wKwW-DadTGyfk.js";import"./pdf-CotdgJU1.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";import"./VideoPlayer-TlEy-oD0-FvFO3heV.js";import"./media-player-CfnH7IPR.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="51bd17cd-b798-4616-a795-0e6a0f7acf7b",i._sentryDebugIdIdentifier="sentry-dbid-51bd17cd-b798-4616-a795-0e6a0f7acf7b")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ne[5],44)},he=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./pdf-Cs-mh77O.js";import{j as Q,i as se,h as q,l as ee,u as k,N as X,k as J,g as Kt,R as zt,m as y}from"./core-BcVj2gTX.js";import{ct as O,Kr as Ve,bt as rt,Dr as Zt,bn as ct,FX as de,Ks as dt,tc as ut,um as Pe,tL as Ht,bm as xe,Kt as Wt,Ku as qt,bE as Jt,Kv as Yt,Kw as pt,Kx as mt,uY as $e,tr as we,Ky as Xt,t0 as He,Kz as Qt,y9 as ea,t4 as ta,ta as bt,KA as Be,KB as Le,KC as aa,KD as na,uq as Ue,KE as ia,un as ht,uD as oa,KF as gt,u7 as We,uc as la,KG as sa,KH as ce,KI as St,KJ as yt,KK as ft,dp as ra,tw as Fe,FY as vt,KL as ca,eg as da,KM as ua,KN as pa,cA as It,cy as kt,KO as _e,KP as ma,KQ as ba,I9 as Ge,KR as ha,Ia as ne,Ib as Me,KS as ga,KT as Sa,KU as ya,ue as qe,ub as fa,KV as va,KW as Ia,KX as ka,tZ as wa,KY as Ba,KZ as Ca,K_ as Aa,F5 as wt,bM as Bt,gW as xa,c4 as Da,bs as Ct,FW as At,sB as Ea,K$ as Ta,xY as ja,y2 as Pa,pc as Fa,uo as Ra,v3 as Va,h7 as Se,L0 as $a,L1 as xt,hB as La,h1 as Dt,hm as Et,hl as Je,bG as pe,bX as Ua,L2 as _a,L3 as ye,fI as Ga,L4 as Ye,L5 as Ma,fM as Na,g5 as Oa,vh as Ka,L6 as za,hu as Za,v7 as Ha,L7 as Xe,vb as Wa,vg as qa,vd as Ja,v5 as Ya,L8 as Tt,tl as Xa,L9 as Qa,La as en,dj as tn,di as an,dh as nn,ha as on,hs as Qe,hD as ln,mK as sn,hj as rn,v9 as cn,fS as dn,hI as un,Lb as pn,fK as mn,mB as bn,Lc as hn,u3 as gn,G5 as Sn,F4 as yn,Hb as fn,bO as vn,bN as In,bK as kn,bL as wn}from"./zeni-epic-state-CsRsIUwY.js";import{y as ie,js as V,_ as fe,aE as oe,aG as g,aF as Ce,jQ as Y,o as w,bk as De,jz as T,l2 as Bn,jM as z,k4 as Ne,jO as E,e as ve,N as jt,kn as Cn,O as Oe,jT as Ee,f as Pt,kH as An,x as Ft,kv as Rt,l3 as xn,k2 as Dn,J as Vt,k9 as En,l4 as Tn,l5 as jn,l6 as Pn,l7 as Fn,l8 as Rn,l9 as Vn,la as $n,lb as Ln,k_ as Un,lc as _n,ld as Gn,kc as Mn}from"./index-CDsOcKsG.js";import{n as $,S as Nn}from"./mui-hn9thxzh.js";import{A as et}from"./AddressScreen-CwbSwP2P.js";import{g as le,a as Te,i as $t,V as Ke,b as ze,c as On,v as Kn,d as zn,A as me,D as be}from"./DomesticWireDetailScreen-mFjAiqsH.js";import{a as v}from"./sentry-BkPUuNvL.js";import{u as Lt}from"./useInitialThreadRequest-BQU3Jo1E.js";import Ae from"./NotFoundScreen-Ceul2a4k.js";import{S as Zn}from"./zeni-icon-only-QItZ_P8a.js";import{D as Hn}from"./DrawerScreen-CnU-VoMe.js";import{M as Ut}from"./MobileAppDrawer-Bcyem12-.js";import{F as _t}from"./FeaturePreviewScreen-CcjSI5cK.js";import{S as je}from"./SetupPagesScreen-B44zrHwc.js";import{B as Wn}from"./BillPayApprovalRoutes-CRqEGV5h.js";import{FallBackRoute as qn}from"./ScreenRoutes-TOE80oct.js";import"./lottie-DP5A4Fs7.js";import"./liveblocks-BAIL303h.js";import"./recharts-B4dFoR35.js";import"./dnd-eXDjf6Lj.js";import"./analytics-wdo9XAAq.js";import"./plaid-NpQK5k22.js";import"./utils-DkgigH7S.js";import"./analyticsHelper-DCVh2Q2D.js";import"./routePaths-C-_oCckx.js";import"./BusinessVerificationPageScreen-CBtz2-zR.js";import"./ReimbursementApprovalRuleDetailScreen-CC5sxHbJ.js";import"./getLocaleForTenant-Cgh9LbcE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="33b0adb1-ce5c-4b90-b17e-6dc3a6a8e5c1",e._sentryDebugIdIdentifier="sentry-dbid-33b0adb1-ce5c-4b90-b17e-6dc3a6a8e5c1")}catch{}})();const Jn=J(function(e,t){const i=Ve(e,t.billId),o=V.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:c??""},u=z(t.location.state?.pathnameStackToGoBack);let l=!0;u.poppedPathname?.includes("bills")===!0&&(l=!1);let s=`${i.createdBy?.firstName??"Zeni"} ${i.createdBy?.lastName??""}`;const n=xe(o);n||!i.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(i?.billActivities.length>0){const{isApprovalorRejectBtnVisible:S,isMarkAsPaidBtnVisible:h}=Wt(i.billActivities,qt(t.currentTenant),o);d=S,p=h}const m=Jt(t.currentTenant?.userRole??[]),b=i.transactionDetails!=null&&Yt(i.transactionDetails,m,o);return{billDetails:i,createdBy:s,authParams:r,transactionAttachmentEndpoint:`${Ne}/transaction_attachment`,signedInUser:o,showBackButton:l,isAdmin:m,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:T,showMarkAsPaidButtonToCreator:b,isZeniUser:n}},function(e,t){const{billId:i,currentTenant:o,location:c,navigate:r}=t,{tenantEmailDomain:u}=o;return{redirectToBillsScreen:()=>{const l=le(u),s=E(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}})},discardBillDetailsFromLocalStore:()=>{e(Be({}))},deleteBill:l=>{T.trackBillPayDeleteBill(i,l),e(bt(i))},cancelAndDeleteBill:(l,s)=>{s===!0?T.trackBillPayCancelAndDeleteBill(i,l):T.trackBillPayCancelBill(i),e(ta(i,s))},onSaveRealTimeApprovals:l=>{e(ea(i,"bill_pay",l))},updateEditRealTimeApproverClicked:l=>{e(Qt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(He(i,l.type,"")):e(He(i,l.type,l.description??""))},retryOrRefundBill:l=>{l.type==="retry"?e(we(i,"retry")):e(we(i,"refund"))},onAddNewRule:()=>{r("../../bills/approval-rules")},onAttachmentClick:(l,s)=>{const n=Te(u,l,s),d=E(c.state?.pathnameStackToGoBack,c.pathname);r(n,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const l=z(t.location.state?.pathnameStackToGoBack),s=l.poppedPathname??le(u);r(s,{state:{pathnameStackToGoBack:l.newStack}})},onRetryPaymentClick:()=>{const l=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Xt({billId:t.billId}))},onRefundPaymentClick:()=>{e(we(t.billId,"refund"))},saveBillDetails:(l,s,n)=>{l&&e(mt({data:n,billId:i})),e($e(l?"paid":"pending_approval",l,s,i))},discardOutsideZeniPaymentData:()=>{e(pt({billId:i}))}}})(Bn);function Yn(){const e=Q(),t=se(),i=q(),{billId:o}=ee(),c=ie(),r=V.getSignedInUser(),u=fe(),l=k(M=>O(M)),s=k(M=>Ve(M,o??"")),n=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Lt(l?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),p=l?.userRole!=null&&rt(l?.userRole),m=l?.company==null||l.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p,[b,S]=v.useState(!1),[h,f]=v.useState(!1),[x,D]=v.useState(!1),{useFeatureGate:I,useDynamicConfig:U}=oe(),{isFeatureEnabled:F}=I(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=I(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=I(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=U(Ce.zeniAssistConfig),Z=Zt(l),A=ct(l.userRole),K=m&&de(u?.loggedInUserRoleMap),_=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:H}=I(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:W}=I(g.billPaySetupShowInternationalPaymentByWise);if(v.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&Z===!1?D(!1):D(s.billActivities[0]?.isRealTimeApprovalEnabled&&(A||K||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,A,K,l.isZeni,Z,r]),v.useEffect(()=>{o!=null&&t(dt(o))},[o]),v.useEffect(()=>{b||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,_,!1)))},[b,s,o,t]),v.useEffect(()=>{h||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,_,W,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Ht()))},[h,s,o,t]),r==null)throw Error("Can't access address page without signing in...");return s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1?a.jsx(X,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(Y,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(De,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(Jn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:x,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:H,hasZeniAssistAccess:_,isDetectInsufficientFundsEnabled:R})]})}const he=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Xn={containerWidth:new Ft(100,58)},Qn=J(function(e,t){const i=V.getSignedInUser(),o=e.tenantState.currentTenantId,c={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:o??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Rt.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:T,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u}},function(e,t){const i=V.getSignedInUser();return{onInvoiceUpload:o=>{o!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(o),t.setShowConfirmationPopup(!0)):e(Ue(o,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:o=>{e(oa({fetchState:{fetchState:o,error:void 0},billId:t.billId}))},onSkipAutofill:o=>{T?.trackBillPaySkipAutofill(),e(ht(o))},onDeleteClick:()=>{e(ia({billId:t.billId})),T?.trackInvoiceActionClick(t.billStage??"","delete",i?.userEmail??"",null)}}})(An);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=q().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=ve(),u=jt(),l=V.getSignedInUser(),s=ie(),{useFeatureGate:n,useDynamicConfig:d}=oe(),{isFeatureEnabled:p}=n(g.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:m}=n(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:b}=n(g.isDepositAccountsFeatureEnabled),{isFeatureEnabled:S}=n(g.billPaySetupShowInternationalPaymentByWise),{configValue:h}=d(Ce.zeniAssistConfig),f=h.user_ids!=null&&l?.userId!=null&&h.user_ids.includes(l?.userId),x=k(L=>O(L)).companyName,[D,I]=v.useState(!1),[U,F]=v.useState(!1),[G,R]=v.useState(!1),[B,Z]=v.useState(),A=k(L=>Le(L,p,b,i));let K=A.fetchState,_=A.file,H=A.showAutofill;const W=k(L=>Ve(L,i??""));c===!1&&(K=W.fetchState,_=W.transactionDetails?.attachments?.[0],H=!1);const M=()=>{u.toggle()},te=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;v.useEffect(()=>{K==="Not-Started"&&(c&&U?F(!1):!c&&D&&I(!1))},[i]),v.useEffect(()=>{D||i==null||c||(I(!0),t(ut(i,m,f,!1)),U||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!U&&(F(!0),t(Pe(!1,m,f,S,i)))},[D,U,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(Ue(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(K==="Error"||W.fetchState==="Error")return a.jsx(Ae,{});if(K!="Completed")return a.jsx(Y,{fetchState:K,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const L=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;return a.jsxs(di,{windowSize:r,children:[G?a.jsx(Cn,{titleComponent:a.jsx(pi,{children:he.overwriteTitle}),descriptionComponent:a.jsx(mi,{children:he.overwriteDescription}),primaryButtonText:he.buttons.yes,secondaryButtonText:he.buttons.no,action:ue,isEditPopup:!0}):null,r!=="small"?a.jsxs(ni,{children:[a.jsx(ci,{onClick:M}),a.jsxs(ai,{showContent:l?.userEmailDomain==="zeni.ai",children:[a.jsx(ii,{showAutofill:H}),a.jsx(oi,{showAutofill:H,children:x})]})]}):null,a.jsx(Qn,{billId:i,file:_,showAutofill:H,uploadStatus:A.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,W,A),setShowConfirmationPopup:R,setPayload:Z,showActionButtons:ti(c,A),isInitialEdit:!!A.isInitialEdit,billStage:L}),a.jsx(ui,{windowSize:r,children:e})]})}}function ei(e,t,i){let o,c;return e?(o=i.recurringConfig?.currentInstance,c=i.recurringConfig?.totalPaymentCycles):(o=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(li,{children:[a.jsx(si,{children:`${he.recurringBill.recurringCycle}
|
|
1
|
+
import{j as a}from"./pdf-CotdgJU1.js";import{j as Q,i as se,h as q,l as ee,u as k,N as X,k as J,g as Kt,R as zt,m as y}from"./core-CbpF8wW5.js";import{ct as O,Kr as Ve,bt as rt,Dr as Zt,bn as ct,FX as de,Ks as dt,tc as ut,um as Pe,tL as Ht,bm as xe,Kt as Wt,Ku as qt,bE as Jt,Kv as Yt,Kw as pt,Kx as mt,uY as $e,tr as we,Ky as Xt,t0 as He,Kz as Qt,y9 as ea,t4 as ta,ta as bt,KA as Be,KB as Le,KC as aa,KD as na,uq as Ue,KE as ia,un as ht,uD as oa,KF as gt,u7 as We,uc as la,KG as sa,KH as ce,KI as St,KJ as yt,KK as ft,dp as ra,tw as Fe,FY as vt,KL as ca,eg as da,KM as ua,KN as pa,cA as It,cy as kt,KO as _e,KP as ma,KQ as ba,I9 as Ge,KR as ha,Ia as ne,Ib as Me,KS as ga,KT as Sa,KU as ya,ue as qe,ub as fa,KV as va,KW as Ia,KX as ka,tZ as wa,KY as Ba,KZ as Ca,K_ as Aa,F5 as wt,bM as Bt,gW as xa,c4 as Da,bs as Ct,FW as At,sB as Ea,K$ as Ta,xY as ja,y2 as Pa,pc as Fa,uo as Ra,v3 as Va,h7 as Se,L0 as $a,L1 as xt,hB as La,h1 as Dt,hm as Et,hl as Je,bG as pe,bX as Ua,L2 as _a,L3 as ye,fI as Ga,L4 as Ye,L5 as Ma,fM as Na,g5 as Oa,vh as Ka,L6 as za,hu as Za,v7 as Ha,L7 as Xe,vb as Wa,vg as qa,vd as Ja,v5 as Ya,L8 as Tt,tl as Xa,L9 as Qa,La as en,dj as tn,di as an,dh as nn,ha as on,hs as Qe,hD as ln,mK as sn,hj as rn,v9 as cn,fS as dn,hI as un,Lb as pn,fK as mn,mB as bn,Lc as hn,u3 as gn,G5 as Sn,F4 as yn,Hb as fn,bO as vn,bN as In,bK as kn,bL as wn}from"./zeni-epic-state-CjUXhad7.js";import{y as ie,js as V,_ as fe,aE as oe,aG as g,aF as Ce,jQ as Y,o as w,bk as De,jz as T,l2 as Bn,jM as z,k4 as Ne,jO as E,e as ve,N as jt,kn as Cn,O as Oe,jT as Ee,f as Pt,kH as An,x as Ft,kv as Rt,l3 as xn,k2 as Dn,J as Vt,k9 as En,l4 as Tn,l5 as jn,l6 as Pn,l7 as Fn,l8 as Rn,l9 as Vn,la as $n,lb as Ln,k_ as Un,lc as _n,ld as Gn,kc as Mn}from"./index-C5NS4k1k.js";import{n as $,S as Nn}from"./mui-CsJjaFS3.js";import{A as et}from"./AddressScreen-CfU0pxqN.js";import{g as le,a as Te,i as $t,V as Ke,b as ze,c as On,v as Kn,d as zn,A as me,D as be}from"./DomesticWireDetailScreen-CNZmf-ak.js";import{a as v}from"./sentry-B7C9wEq0.js";import{u as Lt}from"./useInitialThreadRequest-CpkcHK8z.js";import Ae from"./NotFoundScreen-DXnaOvLy.js";import{S as Zn}from"./zeni-icon-only-DmigVd7z.js";import{D as Hn}from"./DrawerScreen-Dd2Niphu.js";import{M as Ut}from"./MobileAppDrawer-Db6wEz5B.js";import{F as _t}from"./FeaturePreviewScreen-Xsnk0neq.js";import{S as je}from"./SetupPagesScreen-ClrT9x-n.js";import{B as Wn}from"./BillPayApprovalRoutes-CRjAMn3U.js";import{FallBackRoute as qn}from"./ScreenRoutes-BshWKT8L.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";import"./analyticsHelper-sSJGGzsr.js";import"./routePaths-Canmm7cj.js";import"./BusinessVerificationPageScreen-DM_2HDeS.js";import"./ReimbursementApprovalRuleDetailScreen-CE-klt57.js";import"./getLocaleForTenant-BAdWD_sf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="33b0adb1-ce5c-4b90-b17e-6dc3a6a8e5c1",e._sentryDebugIdIdentifier="sentry-dbid-33b0adb1-ce5c-4b90-b17e-6dc3a6a8e5c1")}catch{}})();const Jn=J(function(e,t){const i=Ve(e,t.billId),o=V.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:c??""},u=z(t.location.state?.pathnameStackToGoBack);let l=!0;u.poppedPathname?.includes("bills")===!0&&(l=!1);let s=`${i.createdBy?.firstName??"Zeni"} ${i.createdBy?.lastName??""}`;const n=xe(o);n||!i.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(i?.billActivities.length>0){const{isApprovalorRejectBtnVisible:S,isMarkAsPaidBtnVisible:h}=Wt(i.billActivities,qt(t.currentTenant),o);d=S,p=h}const m=Jt(t.currentTenant?.userRole??[]),b=i.transactionDetails!=null&&Yt(i.transactionDetails,m,o);return{billDetails:i,createdBy:s,authParams:r,transactionAttachmentEndpoint:`${Ne}/transaction_attachment`,signedInUser:o,showBackButton:l,isAdmin:m,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:T,showMarkAsPaidButtonToCreator:b,isZeniUser:n}},function(e,t){const{billId:i,currentTenant:o,location:c,navigate:r}=t,{tenantEmailDomain:u}=o;return{redirectToBillsScreen:()=>{const l=le(u),s=E(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}})},discardBillDetailsFromLocalStore:()=>{e(Be({}))},deleteBill:l=>{T.trackBillPayDeleteBill(i,l),e(bt(i))},cancelAndDeleteBill:(l,s)=>{s===!0?T.trackBillPayCancelAndDeleteBill(i,l):T.trackBillPayCancelBill(i),e(ta(i,s))},onSaveRealTimeApprovals:l=>{e(ea(i,"bill_pay",l))},updateEditRealTimeApproverClicked:l=>{e(Qt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(He(i,l.type,"")):e(He(i,l.type,l.description??""))},retryOrRefundBill:l=>{l.type==="retry"?e(we(i,"retry")):e(we(i,"refund"))},onAddNewRule:()=>{r("../../bills/approval-rules")},onAttachmentClick:(l,s)=>{const n=Te(u,l,s),d=E(c.state?.pathnameStackToGoBack,c.pathname);r(n,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const l=z(t.location.state?.pathnameStackToGoBack),s=l.poppedPathname??le(u);r(s,{state:{pathnameStackToGoBack:l.newStack}})},onRetryPaymentClick:()=>{const l=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Xt({billId:t.billId}))},onRefundPaymentClick:()=>{e(we(t.billId,"refund"))},saveBillDetails:(l,s,n)=>{l&&e(mt({data:n,billId:i})),e($e(l?"paid":"pending_approval",l,s,i))},discardOutsideZeniPaymentData:()=>{e(pt({billId:i}))}}})(Bn);function Yn(){const e=Q(),t=se(),i=q(),{billId:o}=ee(),c=ie(),r=V.getSignedInUser(),u=fe(),l=k(M=>O(M)),s=k(M=>Ve(M,o??"")),n=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Lt(l?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),p=l?.userRole!=null&&rt(l?.userRole),m=l?.company==null||l.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p,[b,S]=v.useState(!1),[h,f]=v.useState(!1),[x,D]=v.useState(!1),{useFeatureGate:I,useDynamicConfig:U}=oe(),{isFeatureEnabled:F}=I(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=I(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=I(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=U(Ce.zeniAssistConfig),Z=Zt(l),A=ct(l.userRole),K=m&&de(u?.loggedInUserRoleMap),_=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:H}=I(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:W}=I(g.billPaySetupShowInternationalPaymentByWise);if(v.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&Z===!1?D(!1):D(s.billActivities[0]?.isRealTimeApprovalEnabled&&(A||K||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,A,K,l.isZeni,Z,r]),v.useEffect(()=>{o!=null&&t(dt(o))},[o]),v.useEffect(()=>{b||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,_,!1)))},[b,s,o,t]),v.useEffect(()=>{h||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,_,W,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Ht()))},[h,s,o,t]),r==null)throw Error("Can't access address page without signing in...");return s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1?a.jsx(X,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(Y,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(De,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(Jn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:x,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:H,hasZeniAssistAccess:_,isDetectInsufficientFundsEnabled:R})]})}const he=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Xn={containerWidth:new Ft(100,58)},Qn=J(function(e,t){const i=V.getSignedInUser(),o=e.tenantState.currentTenantId,c={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:o??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Rt.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:T,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u}},function(e,t){const i=V.getSignedInUser();return{onInvoiceUpload:o=>{o!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(o),t.setShowConfirmationPopup(!0)):e(Ue(o,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:o=>{e(oa({fetchState:{fetchState:o,error:void 0},billId:t.billId}))},onSkipAutofill:o=>{T?.trackBillPaySkipAutofill(),e(ht(o))},onDeleteClick:()=>{e(ia({billId:t.billId})),T?.trackInvoiceActionClick(t.billStage??"","delete",i?.userEmail??"",null)}}})(An);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=q().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=ve(),u=jt(),l=V.getSignedInUser(),s=ie(),{useFeatureGate:n,useDynamicConfig:d}=oe(),{isFeatureEnabled:p}=n(g.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:m}=n(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:b}=n(g.isDepositAccountsFeatureEnabled),{isFeatureEnabled:S}=n(g.billPaySetupShowInternationalPaymentByWise),{configValue:h}=d(Ce.zeniAssistConfig),f=h.user_ids!=null&&l?.userId!=null&&h.user_ids.includes(l?.userId),x=k(L=>O(L)).companyName,[D,I]=v.useState(!1),[U,F]=v.useState(!1),[G,R]=v.useState(!1),[B,Z]=v.useState(),A=k(L=>Le(L,p,b,i));let K=A.fetchState,_=A.file,H=A.showAutofill;const W=k(L=>Ve(L,i??""));c===!1&&(K=W.fetchState,_=W.transactionDetails?.attachments?.[0],H=!1);const M=()=>{u.toggle()},te=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;v.useEffect(()=>{K==="Not-Started"&&(c&&U?F(!1):!c&&D&&I(!1))},[i]),v.useEffect(()=>{D||i==null||c||(I(!0),t(ut(i,m,f,!1)),U||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!U&&(F(!0),t(Pe(!1,m,f,S,i)))},[D,U,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(Ue(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(K==="Error"||W.fetchState==="Error")return a.jsx(Ae,{});if(K!="Completed")return a.jsx(Y,{fetchState:K,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const L=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;return a.jsxs(di,{windowSize:r,children:[G?a.jsx(Cn,{titleComponent:a.jsx(pi,{children:he.overwriteTitle}),descriptionComponent:a.jsx(mi,{children:he.overwriteDescription}),primaryButtonText:he.buttons.yes,secondaryButtonText:he.buttons.no,action:ue,isEditPopup:!0}):null,r!=="small"?a.jsxs(ni,{children:[a.jsx(ci,{onClick:M}),a.jsxs(ai,{showContent:l?.userEmailDomain==="zeni.ai",children:[a.jsx(ii,{showAutofill:H}),a.jsx(oi,{showAutofill:H,children:x})]})]}):null,a.jsx(Qn,{billId:i,file:_,showAutofill:H,uploadStatus:A.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,W,A),setShowConfirmationPopup:R,setPayload:Z,showActionButtons:ti(c,A),isInitialEdit:!!A.isInitialEdit,billStage:L}),a.jsx(ui,{windowSize:r,children:e})]})}}function ei(e,t,i){let o,c;return e?(o=i.recurringConfig?.currentInstance,c=i.recurringConfig?.totalPaymentCycles):(o=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(li,{children:[a.jsx(si,{children:`${he.recurringBill.recurringCycle}
|
|
2
2
|
${o}/${c}`}),a.jsx(ri,{})]}):void 0}function ti(e,t){const i=t.billActivities?.[0],o=t.billStage==="pending_approval"&&i?.areApprovalsSerialized===!0&&i?.currentPendingStepIndex===0;return e&&(t.billStage==="draft"||o)}const ai=$.div`
|
|
3
3
|
display: ${e=>e.showContent?"flex":"none"};
|
|
4
4
|
align-items: center;
|
package/dist/assets/{BillPaySetUpPage-BmgMLaf--hKXnXW7y.js → BillPaySetUpPage-BmgMLaf--ES1CtqR5.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as Oe,e as Ue,a7 as V,T as Re,c8 as $e,O as ze,ad as Y,V as t,eI as He,f as Le,b as qe,x as u,a_ as Ne,L as Me,A as Je,eZ as R,de as Ze,e_ as Ge,aU as Ke,d4 as Qe,bo as Xe,e$ as Ye,a9 as et,o as z,f0 as tt,m as o,l as it,b6 as nt}from"./index-
|
|
1
|
+
import{y as Oe,e as Ue,a7 as V,T as Re,c8 as $e,O as ze,ad as Y,V as t,eI as He,f as Le,b as qe,x as u,a_ as Ne,L as Me,A as Je,eZ as R,de as Ze,e_ as Ge,aU as Ke,d4 as Qe,bo as Xe,e$ as Ye,a9 as et,o as z,f0 as tt,m as o,l as it,b6 as nt}from"./index-C5NS4k1k.js";import{a as m}from"./sentry-B7C9wEq0.js";import{n as y}from"./mui-CsJjaFS3.js";import{cg as ot}from"./zeni-epic-state-CjUXhad7.js";import{g as at}from"./UploadAdditionalDocumentOverlay-qrcEQmkz-km4_SH9P.js";import"./pdf-CotdgJU1.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="257a6223-06e0-4c18-917e-e05bf72cae21",e._sentryDebugIdIdentifier="sentry-dbid-257a6223-06e0-4c18-917e-e05bf72cae21")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,o[5],o[5]),sectionRowGap:new u(o[5],o[9],o[9]),lastSectionPaddingBottom:new u(o[7],o[10],o[10]),iconWidthHeight:new u(20,o[4]),subTitlePaddingTop:new u(12,o[3]),subTitlePaddingBottom:new u(o[3],o[3]),overlayWidth:new u(100,100,59)},ee="billPaySetUpPage",F="billPayAccount",Tt=({billPaySetupView:e,isDisabled:p,billpayApprovalView:x,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ie,isAccountsEnabled:ne,isLocalCurrencyEnabled:oe,analytics:b,filesEndPoint:ae,authParams:le,accountsPromoConfig:ce,onBackClick:se,onBusinessVerificationSectionClick:de,onSetupApprovalRulesSectionClick:re,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:fe,onUpdatePrimaryFundingAccount:he,onUpdateAccountClick:ge,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:ye,onEnableBillPayClick:be,onEnableBillPaySuccess:H,onClickMenuIcon:Se,onInternationPaymentSetUpClick:we,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke,onSignUpClick:Ae})=>{const C=Oe(),i=Ue(),[k,S]=m.useState(!1),L=m.useRef(null),{fetchState:f,updateStatus:w,accountUpdateStatus:Te,plaidConnectionDetails:E,allBankAccounts:Ie,companyBillPayInfo:A,isRefreshingViewInBackground:je,selectedCompanyOfficer:l,primaryFundingAccount:d,allFundingAccounts:q}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:I,approvalRulesStatus:Be}=x,_=E.link_account.updateStatus,W=E.update_account.updateStatus,j=V(f),M=V(w.fetchState),J=V(_.fetchState),Z=V(W.fetchState),P=Re({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>$(e),[e]),values:$(e)});m.useEffect(()=>{!k&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&S(!0),k&&j==="In-Progress"&&f==="Completed"&&S(!1)},[l,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||J==="In-Progress"&&_.fetchState==="Completed"||Z==="In-Progress"&&W.fetchState==="Completed")&&P.reset($(e))},[j,f,P,e,J,_.fetchState,Z,W.fetchState]);const Ve=P.handleSubmit(G=>{b.trackEnableBillPay(),be()});m.useEffect(()=>{const G=P.watch((K,{name:Q})=>{Q!=null&&K!=null&&$e(()=>(async(X,De)=>{const c=De[F];if(X.includes(F)){if(X.includes("fundingAccount")){if(c.fundingAccount.selectedOption!=null&&d?.id!=c.fundingAccount.selectedOption){const g=q.find(U=>U.id===c.fundingAccount.selectedOption);g!=null&&he(c.fundingAccount.selectedOption,g.accType)}}else if(c.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=c.account.selectedOption){const g=c.account.allOptions.find(U=>U.value===c.account.selectedOption);g!=null&&typeof g.label=="string"&&b.trackConnectBankLink(g.value,g.label,"bill_pay"),ge(c.account.selectedOption,d.id,d.accType)}}})(Q,K))});return()=>{G.unsubscribe()}}),m.useEffect(()=>{M==="In-Progress"&&w.fetchState==="Completed"&&H()},[H,M,w.fetchState]);const{commonSetUp:Fe,spendManagement:Ee}=ze.getLocalizedStrings(),{setUp:r}=Fe,{billPaySetup:a}=Ee.billPay,D=A?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||ot(d?.providerVerificationStatus?.code??"")),O=A?.isBillPayEnabled===!0,_e=D?r.setupVerifiedSubTitle:a.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||N==="In-Progress"||N==="Not-Started",B=C.mode==="light"?new Y(C.colors.brandColorJadeLight):new Y(C.colors.brandColorJadeDark);return t.jsxs(ct,{ref:L,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":qe("bill-pay-setup-drawer"),children:t.jsx(at,{authParams:le,filesEndPoint:ae,updateStatus:w,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,companyOfficer:l,onClose:()=>S(!1),onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke})}),t.jsx(Ne,{title:a.setupTitle,style:{zIndex:3},onBackClick:se,showMenuIcon:!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:Se,scrollableContent:L,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(dt,{windowSize:i,children:_e}),We?t.jsx(ut,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(lt,{children:[t.jsx(Je,{...P,children:t.jsx("form",{id:te(ee),onSubmit:Ve,children:t.jsxs(pt,{windowSize:i,children:[t.jsx(R,{onClick:()=>{k||l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!l.areAdditionalDocumentsRequestedForVerification||l.areAdditionalDocumentsSubmittedForVerification||l.userVerificationStatus?.code!=="require_info"?de?.():S(!0)},title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:je,isActiveWhileLoading:!0}),t.jsx(Ge,{connectedAccountProvider:ie,primaryFundingAccount:d,allFundingAccounts:q,plaidConnectionDetails:E,allBankAccounts:Ie,sectionId:F,isDisabled:p,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:ye,onEstablishConnectionSuccess:fe,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:b,productType:"bill_pay",isAccountsEnabled:ne,onSignUpClick:Ae,pageName:"Bill Pay Setup",accountsPromoConfig:ce}),t.jsx(R,{title:I.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:a.approvalSubTitle,header:I.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:re,status:I.length>0?Be:void 0})]})})}),s===!0?t.jsx(R,{title:T?a.enableInternationalWireTitle:a.internationWireTitle,subTitle:a.internationalWireSubTitle2,header:a.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&b.trackEnableIntlWire(oe),we?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?a.tooltipTexts.pendingInternationalVerificationText:a.tooltipTexts.internationalVerificationFailed,children:t.jsx(st,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!O&&I.length>0?t.jsx(et,{formId:te(ee),primaryBtn:{label:a.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:w.fetchState==="In-Progress"||Te.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:a.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!O,meetingUrl:v,analytics:b,productType:"bill_pay"})]})},lt=y.div``,ct=y.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as Ce,e as Pe,T as xe,c8 as Ie,ad as k,O as Ae,V as t,x as C,a_ as ve,L as je,A as ke,aU as $e,c9 as Te,a9 as Be,o as a,ha as De,eu as Ve,ev as Ee,m as P,l as Le,gh as ze,f as Oe,d as _e}from"./index-
|
|
1
|
+
import{y as Ce,e as Pe,T as xe,c8 as Ie,ad as k,O as Ae,V as t,x as C,a_ as ve,L as je,A as ke,aU as $e,c9 as Te,a9 as Be,o as a,ha as De,eu as Ve,ev as Ee,m as P,l as Le,gh as ze,f as Oe,d as _e}from"./index-C5NS4k1k.js";import{a as F}from"./sentry-B7C9wEq0.js";import{n as d}from"./mui-CsJjaFS3.js";import{F as Me,o as H,t as Re}from"./PaymentAccountSetupBillingAddressSection-D-kQI4nd-PRTE5aBh.js";import{F as Ue}from"./SetUpAccountSection-CxjYbrXu-s5rUPVRP.js";import"./pdf-CotdgJU1.js";import"./zeni-epic-state-CjUXhad7.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-B3mnx2x_-bGKW9_Lf.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="6adc46b3-add0-4955-b161-6a1d7b9642be",e._sentryDebugIdIdentifier="sentry-dbid-6adc46b3-add0-4955-b161-6a1d7b9642be")}catch{}})();const u={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,P[5],P[5]),iconWidthHeight:new C(20,P[4]),subTitlePaddingTop:new C(12,P[3])},We={title:new _e("standardSemiBold","largeSemiBold")},K="billingSetupPage",x="payAccountSectionId",n="subscriptionBillingAddressSectionId",gt=({analytics:e,billingSetupView:i,connectedAccountProvider:p,isDisabled:r,onClickMenuIcon:I,uiState:G,stripeKey:J,googleAPIKey:Z,companyId:Q,onUpdateAccountClick:Y,onFetchLinkTokenClick:X,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleAddCardPaymentSource:se,resetCardPaymentViewState:de,handleResetCardPaymentErrorStatuses:re,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const w=Ce(),o=Pe(),{setupView:{paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,accountFetchStatus:T},cardPaymentView:m}=i,me=i.subscriptionBillingAddress,B=h?.providerVerificationStatus,he=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",g=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:N(i),values:N(i),resetOptions:{keepDirtyValues:!0}}),ge=g.handleSubmit(R=>{le(Q)}),D=i.subscriptionBillingAddressSaveStatus;F.useEffect(()=>{const R=g.watch((U,{name:W})=>{W!=null&&U!=null&&Ie(()=>(async(f,s)=>{const A=s[x];if(f.includes(n)&&s[n]!=null){const v=g.getValues(`${n}`).country;let c=s[n];if(f.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:S}=s[n].street,j=Ve(S?.country);c={street:s[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},v.selectedOption!==j.selectedOption&&(c={...c,country:j})}else f===`${n}.country`&&v.selectedOption!=null&&(c={...c,countryCode:Ee(v.selectedOption)});c!=null&&ce(c)}else f.includes(x)&&A.account.selectedOption!=null&&h?.paymentAccountId!=null&&h.zeniAccountId!==A.account.selectedOption&&Y(A.account.selectedOption,h.paymentAccountId)})(W,U))});return()=>{R.unsubscribe()}});const V=w.mode==="light"?new k(w.colors.brandColorJadeLight):new k(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:ye,card_payment_method:y}},common:l,billingSetupPage:E}=Ae.getLocalizedStrings(),Se=E.section.subTitle,{text:we,subText:be}=ye,L=m.cardsList.length>0,z=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,b=Me(y.header,y.titleText,y.protectedCardNo,m);let _;L&&(_={header:b.header,title:b.title,subtitle:b.subtitle,status:b.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:H(z).iconURL,width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o),alt:H(z).name}),color:new k(V)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,fe]=F.useState(!1);return t.jsxs(He,{children:[t.jsx(ve,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:I}),t.jsxs(Fe,{windowSize:o,children:[t.jsx(Ke,{windowSize:o,children:Se}),he?t.jsx(Ne,{children:t.jsx(je,{size:"ExtraLarge",start:!0})}):t.jsx(ke,{...g,children:t.jsx(Qe,{children:t.jsx("form",{id:q(K),onSubmit:ge,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ue,{connectedAccountProvider:p,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:we,defaultSectionSubTitle:be,sectionId:x,isDisabled:r,onFetchLinkTokenClick:X,onEstablishConnectionClick:ne,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionSuccess:ie,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx($e,{width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:_,cardPaymentView:m,resetCardPaymentViewState:de,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),Ge(o,l.headers.billingAddress,me,Z,r)]})})})}),Te(g.formState.dirtyFields)?t.jsx(Be,{formId:q(K),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Re,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:m,isCardPaymentOpen:G.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:re,stripeKey:J,cardSetupInProgress:M,setCardSetupInProgress:fe})]})},N=e=>{const{paymentAccount:i,allBankAccounts:p}=e.setupView;return{[x]:{account:{selectedOption:i?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[n]:De(n,e.subscriptionBillingAddress)[n]}},Fe=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as b,bR as U,bS as L,bT as V,iT as M,ag as W,O as q}from"./index-
|
|
1
|
+
import{V as b,bR as U,bS as L,bT as V,iT as M,ag as W,O as q}from"./index-C5NS4k1k.js";import{a as g}from"./sentry-B7C9wEq0.js";import{GJ as z}from"./zeni-epic-state-CjUXhad7.js";import{u as G}from"./ReviewOverlay-Dhb-kL6G-7aZ79rRC.js";import"./pdf-CotdgJU1.js";import"./core-CbpF8wW5.js";import"./mui-CsJjaFS3.js";import"./recharts-Z1H4NIT9.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7119190c-5295-4116-8f02-ecbad6559afd",e._sentryDebugIdIdentifier="sentry-dbid-7119190c-5295-4116-8f02-ecbad6559afd")}catch{}})();const{common:s,spendManagement:{billPay:x}}=q.getLocalizedStrings(),l=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:o,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:_,currentSubTab:f}=e,u=i==="review",[C,w]=g.useState(!1),[n,v]=g.useState(B(e,u)),[d,k]=g.useState(u),[T,E]=g.useState(0),[y,j]=g.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});g.useEffect(()=>(u&&(I=setInterval(()=>{v(p=>p.map((S,O)=>(clearInterval(I),O===T?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(p=>p+1)},1e3)),T===n.length&&d&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(B(e,!1)),()=>{clearInterval(I)}),[n.length,T,d,e.fetchState,u,e]);const R=n.length,h=n.filter(p=>p.reviewStatus.code!=="error").length,D={onOkClick:p=>{w(!1),r.trackBillPayBulkPopupConfirm(i,_,f,J(e)),o("reject",p)},onCancelClick:()=>{w(!1)}},{title:A,description:F}=K(m,h,R,d),P=e.fetchState==="Completed"&&h===0,N={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:()=>{r.trackBillPayBulkSubmit(i,_,f),o(i)},style:i==="send_for_approval"?{minWidth:"92px"}:{}},$={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:()=>{const{title:p,description:S}=H(h);j({type:"reject",title:p,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,_,f),w(!0)},style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(U,{titleComponent:b.jsx(V,{children:y.title}),descriptionComponent:b.jsx(L,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(G,{title:A,description:{content:F,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!d,footerProps:{primaryButton:N,cancelButton:$,hideCancel:P}})]})},B=(e,r)=>{const o=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:W("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&z(t.reviewErrors[0].reviewErrorCode),subTitle:Q(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?l.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:!!r||o,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},J=e=>{const r=e.billsForReview;let o=[];return r.forEach(t=>{o=M([...o,t.isRecurring?"recurring":"one-time"])}),o},H=e=>{const{this_:r,these:o,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:l.popUps.reject.title.replace("<_payment_>",l.payments),description:l.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:l.popUps.reject.title.replace("<_payment_>",l.payment),description:l.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},K=(e,r,o,t)=>{const{has:c,have:m,bill:a,bills:i,are:_,is:f,do_:u,does:C}=s.texts,w=r>1,n=o>1;let v="",d="";return e!=="Completed"||t?(v=l.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),d=l.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)):(v=l.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:l.bill).replace("<_has_>",n?m:c),d=r===0?l.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):`${r}/${o} ${l.reviewPage.billsReviewed.description.replace("<_bill_>",o>1?i:a).replace("<_is_>",w?_:f)}`),{title:v,description:d}},Q=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${l.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,J as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as n,V as s,b,o as e}from"./index-
|
|
1
|
+
import{e as n,V as s,b,o as e}from"./index-C5NS4k1k.js";import{n as a}from"./mui-CsJjaFS3.js";import{o as l}from"./commonDimensions-DIm7kTtR-LC7HUPCB.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="2d8c3e82-647d-4a7d-afdb-448c649c23cb",o._sentryDebugIdIdentifier="sentry-dbid-2d8c3e82-647d-4a7d-afdb-448c649c23cb")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=n();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(p,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const p=a.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{y as rt,e as lt,a7 as Te,V as t,c as Q,T as ct,cl as dt,B as pt,c8 as ut,ag as Ie,a6 as ke,fB as mt,a as ft,a_ as yt,b as ht,c9 as gt,bR as xt,bS as St,bT as wt,L as Ct,A as bt,a9 as vt,o as c,x as L,H as Le,O as _e,fC as Dt,f1 as $e,eu as Ot,c2 as Tt,a8 as It,l as Ae,d as kt,M as $t,m as k}from"./index-CDsOcKsG.js";import{a as _}from"./sentry-BkPUuNvL.js";import{n as d}from"./mui-hn9thxzh.js";import{F6 as Nt,bQ as J,FE as Vt,FD as jt,FF as Ft}from"./zeni-epic-state-CsRsIUwY.js";import{r as Pt,z as Lt}from"./CompanyOfficerDetailsSection-BSFNYauO-CLhqGMI2.js";import"./pdf-Cs-mh77O.js";import"./core-BcVj2gTX.js";import"./lottie-DP5A4Fs7.js";import"./liveblocks-BAIL303h.js";import"./recharts-B4dFoR35.js";import"./dnd-eXDjf6Lj.js";import"./analytics-wdo9XAAq.js";import"./plaid-NpQK5k22.js";import"./utils-DkgigH7S.js";import"./helper-BVESv00--CCWSdc0u.js";import"./LabeledAddressValueField-Dl3atH92-9Bh85cZL.js";import"./LabeledCountryMultiSelectField-BnljZpX0-B68SMHkZ.js";import"./LabeledCreatableSingleSelectField-CiInq9yD-B0SGNp0O.js";import"./LabeledDocumentField-Ceb8vgVH-CBxNcBjR.js";import"./LabeledNameField-BdVztq_8-DOZ2ED2j.js";import"./commonTypes-B3mnx2x_-DYgG7K13.js";import"./avatar-Dz7aEm3d-Cy0EjR0N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="b5640ed0-497b-4224-8229-94290a66449f",e._sentryDebugIdIdentifier="sentry-dbid-b5640ed0-497b-4224-8229-94290a66449f")}catch{}})();const w={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,k[3]),subTitlePaddingBottom:new L(k[3],k[3]),verificationDetailsRowGap:new L(12,k[5],k[5]),termsPaddingLeftRight:new L(k[0],k[3])},_t={stepTitle:new kt("h6Regular","h5Regular")},Ne="businessVerificationPage",D="companyDetails",O="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:Ve,footer:je,strings:{empty:Bt}}}=_e.getLocalizedStrings(),Ta=({businessVerificationDetails:e,allNationalityCountries:C,verficationDetailsFetchState:$,isRefreshingViewInBackground:R,filesEndPoint:a,authParams:E,productType:h,allIndustries:A,companyTitles:U,maxInsuredAmount:f,isDisabled:N,isSettings:s=!1,isOverlay:x=!1,analytics:S,isStepInProgress:b=!1,isTreasuryTransferInitiated:K=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:B,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,onSendForVerificationClick:Me,onEditFileName:le,onCompanyDetailsChanged:We,updateFilesEntity:ce,onDeleteFile:de,onDeleteFileList:Ze,onCompanyOfficerUpdated:Xe,saveNewAddressInLocalStore:pe,onSaveDetailsClick:qe,onClickMenuIcon:Ge,onExecuteTreasuryTransfer:He})=>{const Qe=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:v}=e,Je=Te(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(Q,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(Q,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(Q,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(Q,{href:i.terms.tosUrl,onZeniLinkClick:()=>(S?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Y]=_.useState(!1),[X,ue]=_.useState("save"),[ee,et]=_.useState(!1),u=ct({mode:"all",reValidateMode:"onChange",defaultValues:zt(e,A,U,C)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,V=h==="zeni_treasury"?te?.companyVerificationStatus:q?.companyVerificationStatus,T=Object.values(v).findIndex(n=>n?.isSelectedForVerification===!0),I=`Officer_${T<0?1:T+1}`,at=u.handleSubmit(()=>{if(X!=="verification"&&ue("verification"),Z==="unit"&&v[I]?.isPhoneVerified!==!0)return void u.setError(`${O}.${T}.phone`,{type:"custom"});const n=dt(Object.values(v).map(r=>Object.values(r?.deleteFileStatusById??{}).filter(g=>g!=null))),m=Object.values(o?.deleteFileStatusById??{}).filter(r=>r!=null);Nt(n.concat(m)).fetchState!=="In-Progress"&&tt&&((()=>{const r=v[I],g=r?.email,j=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,F=r?.lastName,P=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?J(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,Ce=o?.website,be=o?.addressStatus?.addressToCreate!=null?J(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,ve=ne?.firstName,De=ne?.lastName,Oe=ne?.email;g!=null&&l!=null&&y!=null&&F!=null&&j!=null&&P!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&Ce!=null&&Se!=null&&se!=null&&be!=null&&ve!=null&&De!=null&&Oe!=null&&S?.trackBusinessVerificationSend({email:g,birthday:j.toString(),companyOwnership:l,firstName:y,lastName:F,companyRole:P,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:Ce.toString(),industry:Se,formattedAddress:be},{firstName:ve,lastName:De,email:Oe},h,s?"Settings":void 0)})(),Me?.(I),K===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(D)?We?.(g[D]):r.includes(O)&&Xe?.(g[O])})(n,m)},300),[]);_.useEffect(()=>{const n=u.watch((m,{name:r})=>{r!=null&&m!=null&&ut(()=>it(r,m))});return()=>{n.unsubscribe()}});const me=Te(e.companyDetailsLocalData?.addressStatus);_.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&me==null&&(pe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${D}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,me,pe,u]);const fe=z?.companyOfficers.slice(0,10).sort((n,m)=>n.user.createTime?.isAfter(m.user.createTime)===!0?1:-1),ae=fe?.map(n=>n.user),st=fe?.map(n=>n.role),nt={onOkClick:()=>{Y(!1),B();const n=[],m=z?.company.company.incInfo.fileIds??[];u.getValues(`${D}.fileIds`).forEach(r=>{m.includes(r)||n.push(r)}),st?.forEach((r,g)=>{const j=r?.fileIds??[];u.getValues(`${O}.${g}.fileIds`).forEach(l=>{j.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(ke(f),f,Ve.currencySymbol).toUpperCase(),ie=V?.code==="pending_review"||V?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&V?.code==="pending_review"&&Je==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:K===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:K===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(ke(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,Ve.currencySymbol)).replace("__account__",M?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),t.jsx(ft,{label:i.submittedButton,onClick:()=>{B(),oe?.()},variant:"primary"})]}):t.jsxs(Rt,{isSettings:s,children:[t.jsx(yt,{title:x&&b===!0?Bt:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:ee?1:4},onBackClick:()=>{gt(u.formState.dirtyFields)?Y(!0):B()},showBackButton:!s&&!x,showMenuIcon:!!s&&(p==="medium-compact"||p==="small"),onClickMenuIcon:Ge,rightSideComponent:x?t.jsx(ia,{"data-testid":ht("nav-bar-close-business-verification-overlay"),onClick:()=>{B(),oe?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?t.jsx(xt,{titleComponent:t.jsx(wt,{children:i.discardTitle}),descriptionComponent:t.jsx(St,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:nt}):null,t.jsxs(Mt,{windowSize:p,children:[(!x||b===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(Ct,{size:"ExtraLarge",start:!0})}):t.jsx(bt,{...u,children:t.jsxs("form",{id:Fe(Ne),onSubmit:at,children:[x&&b===!0&&t.jsxs(Et,{children:[t.jsxs(Gt,{windowSize:p,children:[t.jsx(Ht,{windowSize:p,children:ie?i.businessVerificationDetails:ye?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Qt,{children:t.jsxs(Jt,{children:[t.jsx(Pe,{}),ye&&t.jsx(Pe,{}),t.jsx(Kt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Pt,{companyOfficerData:v,allNationalityCountries:C,allOfficers:ae??[],sectionId:O,isRefreshingViewInBackground:R,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:N,filesEndPoint:a,authParams:E,isPopupOpen:ee,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Lt,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:V,isRefreshingViewInBackground:R},productType:"business_verification",showTreasuryFields:h==="zeni_treasury",hideNewOnboardingFields:q?.companyVerificationStatus?.code==="verified"&&!((o?.countriesOfOperations?.length??0)>0||o?.companySourceOfFunds!=null||o?.transactionVolume!=null||o?.purposeOfAccount!=null||o?.registeredAddressStatus!=null||o?.usNexus!=null),sectionId:D,isDisabled:V?.code==="pending_review"||V?.code==="verified"?"readonly":N,fileProps:{authParams:E,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:C})]}),h==="zeni_accounts"?t.jsx(Xt,{windowSize:p,children:i.threadText.replace("__amount__",ot)}):null]})})]}),$==="Completed"&&(h==="zeni_treasury"?te?.companyVerificationStatus?.code!=="pending_review"&&te?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?t.jsx(vt,{formId:Fe(Ne),primaryBtn:{label:b?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":b?"83px":"181px"},isLoading:X==="verification"&&W.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?w.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?w.width.valuePx(p):"auto",paddingLeft:w.termsPaddingLeftRight.valuePx(p),paddingRight:w.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:b?je.back:i.saveDetailsButton,style:{width:p==="small"?"auto":b?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(b)B();else{const n=v[I],m=o?.primaryContactLocalData;X!=="save"&&ue("save");const r=n?.email??"",g=(()=>{const l=v[I],y=o?.primaryContactLocalData,F=l?.email??"",P=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return F&&!P?((!l?.firstName||!l?.lastName)&&u.trigger(`${O}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),1))})(),j=(()=>{const l=v[I],y=o?.primaryContactLocalData,F=l?.email,P=y?.email;if(F){if(!P)return(y?.firstName||y?.lastName)&&u.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(l?.firstName||l?.lastName||l?.birthday||l?.nationalityCountryCode||l?.ownershipInCompany||l?.phone||l?.ssn||l?.titleAtCompany||l?.addressStatus?.addressToCreate||l?.fileIds!=null&&l?.fileIds.length>0||ae!=null&&ae?.length>0)return u.trigger(`${O}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0})();g&&j&&(S?.trackBusinessVerificationSave({email:r,birthday:n?.birthday?.toString(),companyOwnership:n?.ownershipInCompany,firstName:n?.firstName,lastName:n?.lastName,companyRole:n?.titleAtCompany,phone:n?.phone,formattedAddress:n?.addressStatus?.addressToCreate!=null?J(n?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:n?.documentTypeSelectedForVerification},{companyDescription:o?.companyDescription,legalName:o?.companyLegalName,phone:o?.phone,website:o?.website?.toString(),industry:o?.companyIndustry??"",formattedAddress:o?.addressStatus?.addressToCreate!=null?J(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Ke,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,C,$,R)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:E,companyView:h}=e,A=_e.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[D]:{companyDescription:a?.companyDescription??"",ein:a?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:a?.companyId??"",syncToken:a?.syncToken,companyLegalName:a?.companyLegalName??"",companyWebsite:a?.website?.toString()??"",companyAddress:a?.addressStatus?.addressToCreate,registeredAddress:a?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:a?.companyIndustry,allOptions:C?.map(f=>f.code)},companyPhone:a?.phone??"",companyTaxId:a?.taxIdOrEIN??"",primaryContactName:{firstName:a?.primaryContactLocalData?.firstName??"",lastName:a?.primaryContactLocalData?.lastName??""},primaryContactEmail:a?.primaryContactLocalData?.email??"",primaryContactUserId:a?.primaryContactLocalData?.userId,primaryContactSyncToken:a?.primaryContactLocalData?.syncToken,fileIds:a?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:a?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:a?.incDate?.toDate(),typeOfIncorporation:{selectedOption:a?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:a?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:a?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:a?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:a?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:a?.transactionVolume,allOptions:[...Ft]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...jt]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...Vt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[O]:Object.values(E).map((f,N)=>{const s=f,x=Dt(s?.documentTypeSelectedForVerification);return{userId:s?.userId,officerType:s?.officerType??`Officer_${N+1}`,name:{firstName:s?.firstName,lastName:s?.lastName},email:s?.email,fileIds:s?.fileIds??[],dob:s?.birthday?.toDate(),nationalityCountryCode:Ot(s?.nationalityCountryCode,R.map(S=>S.countryCode)),ssn:s?.ssn,role:{selectedOption:s?.titleAtCompany,allOptions:$?.map(S=>S.code)},phone:s?.phone??"",ownership:s?.ownershipInCompany,officerAddress:s?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,s?.userFiles??[],x),back:$e(!1,s?.userFiles??[],x),selectDocumentType:x},isSelectedForVerification:!U&&N===0||(s?.isSelectedForVerification??!1),userVerificationStatus:s?.userVerificationStatus,treasuryUserVerificationStatus:s?.treasuryUserVerificationStatus,syncToken:s?.syncToken,isPhoneVerified:s?.isPhoneVerified,otpChallenge:s?.otpChallenge}})}},Fe=e=>`${e}_form`,Rt=d.div`
|
|
1
|
+
import{y as rt,e as lt,a7 as Te,V as t,c as Q,T as ct,cl as dt,B as pt,c8 as ut,ag as Ie,a6 as ke,fB as mt,a as ft,a_ as yt,b as ht,c9 as gt,bR as xt,bS as St,bT as wt,L as Ct,A as bt,a9 as vt,o as c,x as L,H as Le,O as _e,fC as Dt,f1 as $e,eu as Ot,c2 as Tt,a8 as It,l as Ae,d as kt,M as $t,m as k}from"./index-C5NS4k1k.js";import{a as _}from"./sentry-B7C9wEq0.js";import{n as d}from"./mui-CsJjaFS3.js";import{F6 as Nt,bQ as J,FE as Vt,FD as jt,FF as Ft}from"./zeni-epic-state-CjUXhad7.js";import{r as Pt,z as Lt}from"./CompanyOfficerDetailsSection-BSFNYauO-D850YK66.js";import"./pdf-CotdgJU1.js";import"./core-CbpF8wW5.js";import"./lottie-DCpFrhzh.js";import"./liveblocks-DAzt4XWX.js";import"./recharts-Z1H4NIT9.js";import"./dnd-PN_2LgQk.js";import"./analytics-lZopEqtI.js";import"./plaid-BTCtHWVp.js";import"./utils-DSKkIaRb.js";import"./helper-BVESv00--BSBoxTwN.js";import"./LabeledAddressValueField-Dl3atH92-C9wYUqfv.js";import"./LabeledCountryMultiSelectField-BnljZpX0-BbXC-8fZ.js";import"./LabeledCreatableSingleSelectField-CiInq9yD-DRsosHBZ.js";import"./LabeledDocumentField-Ceb8vgVH-BZkKKAqB.js";import"./LabeledNameField-BdVztq_8-D10OpiZc.js";import"./commonTypes-B3mnx2x_-bGKW9_Lf.js";import"./avatar-Dz7aEm3d-D-qe2ybq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="b5640ed0-497b-4224-8229-94290a66449f",e._sentryDebugIdIdentifier="sentry-dbid-b5640ed0-497b-4224-8229-94290a66449f")}catch{}})();const w={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,k[3]),subTitlePaddingBottom:new L(k[3],k[3]),verificationDetailsRowGap:new L(12,k[5],k[5]),termsPaddingLeftRight:new L(k[0],k[3])},_t={stepTitle:new kt("h6Regular","h5Regular")},Ne="businessVerificationPage",D="companyDetails",O="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:Ve,footer:je,strings:{empty:Bt}}}=_e.getLocalizedStrings(),Ta=({businessVerificationDetails:e,allNationalityCountries:C,verficationDetailsFetchState:$,isRefreshingViewInBackground:R,filesEndPoint:a,authParams:E,productType:h,allIndustries:A,companyTitles:U,maxInsuredAmount:f,isDisabled:N,isSettings:s=!1,isOverlay:x=!1,analytics:S,isStepInProgress:b=!1,isTreasuryTransferInitiated:K=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:B,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,onSendForVerificationClick:Me,onEditFileName:le,onCompanyDetailsChanged:We,updateFilesEntity:ce,onDeleteFile:de,onDeleteFileList:Ze,onCompanyOfficerUpdated:Xe,saveNewAddressInLocalStore:pe,onSaveDetailsClick:qe,onClickMenuIcon:Ge,onExecuteTreasuryTransfer:He})=>{const Qe=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:v}=e,Je=Te(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(Q,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(Q,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(Q,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(Q,{href:i.terms.tosUrl,onZeniLinkClick:()=>(S?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Y]=_.useState(!1),[X,ue]=_.useState("save"),[ee,et]=_.useState(!1),u=ct({mode:"all",reValidateMode:"onChange",defaultValues:zt(e,A,U,C)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,V=h==="zeni_treasury"?te?.companyVerificationStatus:q?.companyVerificationStatus,T=Object.values(v).findIndex(n=>n?.isSelectedForVerification===!0),I=`Officer_${T<0?1:T+1}`,at=u.handleSubmit(()=>{if(X!=="verification"&&ue("verification"),Z==="unit"&&v[I]?.isPhoneVerified!==!0)return void u.setError(`${O}.${T}.phone`,{type:"custom"});const n=dt(Object.values(v).map(r=>Object.values(r?.deleteFileStatusById??{}).filter(g=>g!=null))),m=Object.values(o?.deleteFileStatusById??{}).filter(r=>r!=null);Nt(n.concat(m)).fetchState!=="In-Progress"&&tt&&((()=>{const r=v[I],g=r?.email,j=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,F=r?.lastName,P=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?J(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,Ce=o?.website,be=o?.addressStatus?.addressToCreate!=null?J(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,ve=ne?.firstName,De=ne?.lastName,Oe=ne?.email;g!=null&&l!=null&&y!=null&&F!=null&&j!=null&&P!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&Ce!=null&&Se!=null&&se!=null&&be!=null&&ve!=null&&De!=null&&Oe!=null&&S?.trackBusinessVerificationSend({email:g,birthday:j.toString(),companyOwnership:l,firstName:y,lastName:F,companyRole:P,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:Ce.toString(),industry:Se,formattedAddress:be},{firstName:ve,lastName:De,email:Oe},h,s?"Settings":void 0)})(),Me?.(I),K===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(D)?We?.(g[D]):r.includes(O)&&Xe?.(g[O])})(n,m)},300),[]);_.useEffect(()=>{const n=u.watch((m,{name:r})=>{r!=null&&m!=null&&ut(()=>it(r,m))});return()=>{n.unsubscribe()}});const me=Te(e.companyDetailsLocalData?.addressStatus);_.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&me==null&&(pe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${D}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,me,pe,u]);const fe=z?.companyOfficers.slice(0,10).sort((n,m)=>n.user.createTime?.isAfter(m.user.createTime)===!0?1:-1),ae=fe?.map(n=>n.user),st=fe?.map(n=>n.role),nt={onOkClick:()=>{Y(!1),B();const n=[],m=z?.company.company.incInfo.fileIds??[];u.getValues(`${D}.fileIds`).forEach(r=>{m.includes(r)||n.push(r)}),st?.forEach((r,g)=>{const j=r?.fileIds??[];u.getValues(`${O}.${g}.fileIds`).forEach(l=>{j.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(ke(f),f,Ve.currencySymbol).toUpperCase(),ie=V?.code==="pending_review"||V?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&V?.code==="pending_review"&&Je==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:K===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:K===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(ke(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,Ve.currencySymbol)).replace("__account__",M?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),t.jsx(ft,{label:i.submittedButton,onClick:()=>{B(),oe?.()},variant:"primary"})]}):t.jsxs(Rt,{isSettings:s,children:[t.jsx(yt,{title:x&&b===!0?Bt:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:ee?1:4},onBackClick:()=>{gt(u.formState.dirtyFields)?Y(!0):B()},showBackButton:!s&&!x,showMenuIcon:!!s&&(p==="medium-compact"||p==="small"),onClickMenuIcon:Ge,rightSideComponent:x?t.jsx(ia,{"data-testid":ht("nav-bar-close-business-verification-overlay"),onClick:()=>{B(),oe?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?t.jsx(xt,{titleComponent:t.jsx(wt,{children:i.discardTitle}),descriptionComponent:t.jsx(St,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:nt}):null,t.jsxs(Mt,{windowSize:p,children:[(!x||b===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(Ct,{size:"ExtraLarge",start:!0})}):t.jsx(bt,{...u,children:t.jsxs("form",{id:Fe(Ne),onSubmit:at,children:[x&&b===!0&&t.jsxs(Et,{children:[t.jsxs(Gt,{windowSize:p,children:[t.jsx(Ht,{windowSize:p,children:ie?i.businessVerificationDetails:ye?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Qt,{children:t.jsxs(Jt,{children:[t.jsx(Pe,{}),ye&&t.jsx(Pe,{}),t.jsx(Kt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Pt,{companyOfficerData:v,allNationalityCountries:C,allOfficers:ae??[],sectionId:O,isRefreshingViewInBackground:R,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:N,filesEndPoint:a,authParams:E,isPopupOpen:ee,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Lt,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:V,isRefreshingViewInBackground:R},productType:"business_verification",showTreasuryFields:h==="zeni_treasury",hideNewOnboardingFields:q?.companyVerificationStatus?.code==="verified"&&!((o?.countriesOfOperations?.length??0)>0||o?.companySourceOfFunds!=null||o?.transactionVolume!=null||o?.purposeOfAccount!=null||o?.registeredAddressStatus!=null||o?.usNexus!=null),sectionId:D,isDisabled:V?.code==="pending_review"||V?.code==="verified"?"readonly":N,fileProps:{authParams:E,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:C})]}),h==="zeni_accounts"?t.jsx(Xt,{windowSize:p,children:i.threadText.replace("__amount__",ot)}):null]})})]}),$==="Completed"&&(h==="zeni_treasury"?te?.companyVerificationStatus?.code!=="pending_review"&&te?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?t.jsx(vt,{formId:Fe(Ne),primaryBtn:{label:b?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":b?"83px":"181px"},isLoading:X==="verification"&&W.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?w.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?w.width.valuePx(p):"auto",paddingLeft:w.termsPaddingLeftRight.valuePx(p),paddingRight:w.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:b?je.back:i.saveDetailsButton,style:{width:p==="small"?"auto":b?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(b)B();else{const n=v[I],m=o?.primaryContactLocalData;X!=="save"&&ue("save");const r=n?.email??"",g=(()=>{const l=v[I],y=o?.primaryContactLocalData,F=l?.email??"",P=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return F&&!P?((!l?.firstName||!l?.lastName)&&u.trigger(`${O}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),1))})(),j=(()=>{const l=v[I],y=o?.primaryContactLocalData,F=l?.email,P=y?.email;if(F){if(!P)return(y?.firstName||y?.lastName)&&u.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(l?.firstName||l?.lastName||l?.birthday||l?.nationalityCountryCode||l?.ownershipInCompany||l?.phone||l?.ssn||l?.titleAtCompany||l?.addressStatus?.addressToCreate||l?.fileIds!=null&&l?.fileIds.length>0||ae!=null&&ae?.length>0)return u.trigger(`${O}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0})();g&&j&&(S?.trackBusinessVerificationSave({email:r,birthday:n?.birthday?.toString(),companyOwnership:n?.ownershipInCompany,firstName:n?.firstName,lastName:n?.lastName,companyRole:n?.titleAtCompany,phone:n?.phone,formattedAddress:n?.addressStatus?.addressToCreate!=null?J(n?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:n?.documentTypeSelectedForVerification},{companyDescription:o?.companyDescription,legalName:o?.companyLegalName,phone:o?.phone,website:o?.website?.toString(),industry:o?.companyIndustry??"",formattedAddress:o?.addressStatus?.addressToCreate!=null?J(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Ke,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,C,$,R)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:E,companyView:h}=e,A=_e.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[D]:{companyDescription:a?.companyDescription??"",ein:a?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:a?.companyId??"",syncToken:a?.syncToken,companyLegalName:a?.companyLegalName??"",companyWebsite:a?.website?.toString()??"",companyAddress:a?.addressStatus?.addressToCreate,registeredAddress:a?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:a?.companyIndustry,allOptions:C?.map(f=>f.code)},companyPhone:a?.phone??"",companyTaxId:a?.taxIdOrEIN??"",primaryContactName:{firstName:a?.primaryContactLocalData?.firstName??"",lastName:a?.primaryContactLocalData?.lastName??""},primaryContactEmail:a?.primaryContactLocalData?.email??"",primaryContactUserId:a?.primaryContactLocalData?.userId,primaryContactSyncToken:a?.primaryContactLocalData?.syncToken,fileIds:a?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:a?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:a?.incDate?.toDate(),typeOfIncorporation:{selectedOption:a?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:a?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:a?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:a?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:a?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:a?.transactionVolume,allOptions:[...Ft]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...jt]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...Vt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[O]:Object.values(E).map((f,N)=>{const s=f,x=Dt(s?.documentTypeSelectedForVerification);return{userId:s?.userId,officerType:s?.officerType??`Officer_${N+1}`,name:{firstName:s?.firstName,lastName:s?.lastName},email:s?.email,fileIds:s?.fileIds??[],dob:s?.birthday?.toDate(),nationalityCountryCode:Ot(s?.nationalityCountryCode,R.map(S=>S.countryCode)),ssn:s?.ssn,role:{selectedOption:s?.titleAtCompany,allOptions:$?.map(S=>S.code)},phone:s?.phone??"",ownership:s?.ownershipInCompany,officerAddress:s?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,s?.userFiles??[],x),back:$e(!1,s?.userFiles??[],x),selectDocumentType:x},isSelectedForVerification:!U&&N===0||(s?.isSelectedForVerification??!1),userVerificationStatus:s?.userVerificationStatus,treasuryUserVerificationStatus:s?.treasuryUserVerificationStatus,syncToken:s?.syncToken,isPhoneVerified:s?.isPhoneVerified,otpChallenge:s?.otpChallenge}})}},Fe=e=>`${e}_form`,Rt=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as D}from"./pdf-
|
|
1
|
+
import{j as D}from"./pdf-CotdgJU1.js";import{a as w}from"./sentry-B7C9wEq0.js";import{j as ae,h as ne,i as se,l as oe,u as V,N as ie,k as re}from"./core-CbpF8wW5.js";import{_ as ce,aE as ue,y as de,aF as le,js as E,bk as pe,jz as j,ki as x,jQ as me,J as z,lk as fe,kv as ye,jO as B,ev as L}from"./index-C5NS4k1k.js";import{KZ as Se,ct as G,oD as ge,Dv as Ie,tZ as he,wI as be,zf as ke,zV as Oe,AO as De,Lk as Te,Ll as Ce,Lm as Ve,Ln as we,Lo as Ae,HS as Ne,Kl as _e,I2 as ve,hr as Fe,dj as xe,di as ze,dh as Ee,mK as je,mB as Be,my as Le,hj as Pe,oM as Re,oK as P,bG as R,oY as M,bJ as Me}from"./zeni-epic-state-CjUXhad7.js";import{n as Ue}from"./mui-CsJjaFS3.js";import{c as U}from"./routePaths-Canmm7cj.js";import{M as Ge}from"./MobileAppDrawer-Db6wEz5B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2328855e-eda9-4613-b57f-5f6d92252646",e._sentryDebugIdIdentifier="sentry-dbid-2328855e-eda9-4613-b57f-5f6d92252646")}catch{}})();const Ke=Ue.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{BusyIndication-BLGcHlgu-DaOngyN9.js → BusyIndication-BLGcHlgu-Bpswk6Co.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as n,L as r,o as a}from"./index-
|
|
1
|
+
import{V as n,L as r,o as a}from"./index-C5NS4k1k.js";import{n as i}from"./mui-CsJjaFS3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b47872d8-7fa2-4095-9a65-64c1aca34f2d",e._sentryDebugIdIdentifier="sentry-dbid-b47872d8-7fa2-4095-9a65-64c1aca34f2d")}catch{}})();const d=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|