@zeniai/web-app-ui 4.14.28-prod → 4.14.28-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-URcYg-_E-CnKQi3u4.js → ACHDetailsPage-URcYg-_E-Cgyaw_bU.js} +1 -1
- package/dist/assets/{AIPerformancePage-VILPvNCr-BPT7YRxu.js → AIPerformancePage-VILPvNCr-Cwwj6J5d.js} +1 -1
- package/dist/assets/{AccountInfoPage-BTogpO7M-BUQAmyzG.js → AccountInfoPage-BTogpO7M-D_v0KOJI.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-g_X840C3-Bf7uv7Ip.js → AccountInfoPageContent-g_X840C3-qxu9MQ5W.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DDNvWMEQ-D21ggUhc.js → AccountLockedInfoModal-DDNvWMEQ-C_ICPJ-z.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CydLoK6D-DgTwHDXu.js → AccountReconDetailsDrawerPage-CydLoK6D-CMDZeEvJ.js} +1 -1
- package/dist/assets/{AccountRow-Zjkju8uM-6N6Zy9oH.js → AccountRow-Zjkju8uM-CGaR_v-A.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-D8mOW1Wp-Bllhxb1U.js → AccountsPromoCardStack-D8mOW1Wp-BglIlica.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-BvGnuIf6-DHHz24yV.js → AddAddressForCardDrawer-BvGnuIf6-e2c4M17b.js} +1 -1
- package/dist/assets/{AddToWalletPage-BMCgd2A5-DYYQJbMt.js → AddToWalletPage-BMCgd2A5-jP1yYMeJ.js} +1 -1
- package/dist/assets/{AddressRoutes-BRhTpo4o.js → AddressRoutes-zoF4RBjS.js} +1 -1
- package/dist/assets/{AddressScreen-DDbvTrW2.js → AddressScreen-BGSyJ4PZ.js} +1 -1
- package/dist/assets/{AgingReportsPage-BL_aBNzL-Rfib8YTF.js → AgingReportsPage-BL_aBNzL-BMEhVDXZ.js} +1 -1
- package/dist/assets/{AiCfoScreen-BMeMMkhN.js → AiCfoScreen-CFoKGkjU.js} +1 -1
- package/dist/assets/{AllUserItems-b0wgd0Wz-HghicmNo.js → AllUserItems-b0wgd0Wz-CZ891kMU.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CD2EkZkg-C3t2oIzS.js → ApAgingDetailPage-CD2EkZkg-CoiRS4ai.js} +1 -1
- package/dist/assets/{AppBasePage-BM1NMPdI-DTjsrnRl.js → AppBasePage-BM1NMPdI-CHojPGrn.js} +1 -1
- package/dist/assets/{AppDrawerContent-XR9dBd-C-BEm_wBDf.js → AppDrawerContent-XR9dBd-C-BWr9bkjA.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-6unABLlP-Dy0-KpVU.js → ApprovalRulesSettingsPage-6unABLlP-YLoMFZPp.js} +1 -1
- package/dist/assets/{ArAgingChart-DePiNxcV-D_qXJGXM.js → ArAgingChart-DePiNxcV-Byuo2Avb.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DiJ6PePf-DNZvBCjF.js → ArAgingDetailPage-DiJ6PePf-_AIaQwgF.js} +1 -1
- package/dist/assets/{AttachmentView-ENg9Osic-P9NYY_0P.js → AttachmentView-ENg9Osic-CFLP9uHu.js} +1 -1
- package/dist/assets/{BankAccountSection-oL-aN0I_-Dgtd5LW7.js → BankAccountSection-oL-aN0I_-tuaETO0_.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CtRFcHTv-D_XRICo4.js → BankAccountWarningSection-CtRFcHTv-DFmiiX69.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-B848OGHq-Cd04Ls8R.js → BankConnectionsSettingsPage-B848OGHq-DAs4lJR2.js} +1 -1
- package/dist/assets/{BillDetailPage-CPxVWXx6-1Oioq8DD.js → BillDetailPage-CPxVWXx6-C9i2mOHw.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-D2WhMQ-d.js → BillPayApprovalRoutes-BHVZ8537.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DtAj6RxA-cHLoC7d8.js → BillPayApprovalRuleDetailPage-DtAj6RxA-C9r_i-YB.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DLHvMgeY-o_RLMJzv.js → BillPayApprovalRulesPage-DLHvMgeY-C_BMrvHA.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DQJAZi1a-nMEmkS30.js → BillPayPromoPage-DQJAZi1a-BdT-embc.js} +1 -1
- package/dist/assets/{BillPayRoutes-BUUZZuBG.js → BillPayRoutes-CTbVCMt9.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BVOLWF1M-BteYr6zk.js → BillPaySetUpPage-BVOLWF1M-B3PsvONS.js} +1 -1
- package/dist/assets/{BillingSettingsPage-Cfe4Vmza-BztoAmNg.js → BillingSettingsPage-Cfe4Vmza-13uWqRc_.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-7y9q0HF_-BQu7vS0s.js → BillsBulkReviewDrawerPage-7y9q0HF_-ClMItAU3.js} +1 -1
- package/dist/assets/{BoxItem-CTEOx6Nh-C4z3ogUT.js → BoxItem-CTEOx6Nh-BFlNqqzJ.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-D05hRyo1-CBEBIqW_.js → BusinessVerificationPage-D05hRyo1-aQRofHCL.js} +1 -1
- package/dist/assets/{BusinessVerificationPageScreen-Cmz7lCYf.js → BusinessVerificationPageScreen-pyooLZWt.js} +1 -1
- package/dist/assets/{BusyIndication-Nz8htndZ-DYZEgBsh.js → BusyIndication-Nz8htndZ-DK3qiNAN.js} +1 -1
- package/dist/assets/{CardNumberSubText-DijJqFXC-9bJRWO6u.js → CardNumberSubText-DijJqFXC-CsY-4Pix.js} +1 -1
- package/dist/assets/{CashbackDetailPage-BxIWU0z2-5aSz_QAT.js → CashbackDetailPage-BxIWU0z2-SGhDWItl.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-ClyQPqJf-1IHjkCeF.js → ChargeCardDetailPage-ClyQPqJf-DiYand-n.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CYhY6c52-CMF1P6xh.js → ChargeCardListPage-CYhY6c52-By-D4GaU.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Dblodw9X-CDugn7Oq.js → ChargeCardListTable-Dblodw9X-xnf7vtTY.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-wt6arCEL-CW6KbxWs.js → ChargeCardPaymentHistoryPage-wt6arCEL-mnUI1wBw.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-AihUlwys-Dk9L2iB8.js → ChargeCardPromoPage-AihUlwys-Do4EWC8a.js} +1 -1
- package/dist/assets/{ChargeCardRoutes-Bi6qtFGx.js → ChargeCardRoutes-CnifKuME.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-C59WR7nm-BzmfqBsT.js → ChargeCardSetupPage-C59WR7nm-B7_BDfgy.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DF5rt4B5-DgWKrTjO.js → ChargeCardStatementsPage-DF5rt4B5-BSFQBDIJ.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-B9-ktuL_-qZS941d9.js → CheckDepositDrawerPage-B9-ktuL_-Ck0uGpSM.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BAz0DbFh-CAhAQGEZ.js → CollapsableReportTable-BAz0DbFh-BcvkKcP6.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BNSHkrC4-ClzL1rA4.js → CompanyOfficerDetailsSection-BNSHkrC4-BohcManJ.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DTfKmcGv-De1PPEAL.js → CompanyPassportCard-DTfKmcGv-CHazCsBK.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DqhT6YL_-C387_Sbn.js → CompanyPassportPage-DqhT6YL_-9fmBJGak.js} +1 -1
- package/dist/assets/{CompanyPassportScreen-Bw3qq-Ht.js → CompanyPassportScreen-CRe5P-th.js} +1 -1
- package/dist/assets/{CompleteProfile-DdA-FkwG-CwuL_HZU.js → CompleteProfile-DdA-FkwG-BiHuwAkX.js} +1 -1
- package/dist/assets/{ConfettiBurst-Dc0iIaw3-B7boQlLF.js → ConfettiBurst-Dc0iIaw3-BJexFSkA.js} +1 -1
- package/dist/assets/{ConnectionAuthScreen-Du50wdfI.js → ConnectionAuthScreen-CdkXEtyU.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DRfa7meL.js → ConstrainedInnerElement-BeIpAPjB-KpARPyfe.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CODInbfe-yXgVF4QO.js → CreateOrEditVendorPage-CODInbfe-DiFVD6Qj.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-DZNUIDa0-JL4MKrF6.js → CreditCardPaymentDrawerPage-DZNUIDa0-Bhxy7Srv.js} +1 -1
- package/dist/assets/{CurrencySelectField-D_D8AUqS-BZdJIXWt.js → CurrencySelectField-D_D8AUqS-CMSYPUvM.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CBlyvq0r-BGxcXIVy.js → CustomerOnboardingActivationPage-CBlyvq0r-DsKfu_6g.js} +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-B9h5R6h7.js +1 -0
- package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-Djr78RES.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-CnjT99uZ.js → CustomerOnboardingDetailPageSkeleton-CIhb8Zvx-D-qu4kro.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CLFh9K94-eo3A1qkf.js → CustomerOnboardingNoStepsPage-CLFh9K94-C-IOhhJS.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-BJGDpI-d-BQ9XwM-v.js → CustomerOnboardingPage-BJGDpI-d-z5jUKu6P.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DmgQGvpp-Bu9zcjpR.js → CustomerOnboardingProductSuitePage-DmgQGvpp-MaxHOFlf.js} +1 -1
- package/dist/assets/{CustomerOnboardingRoutes-C8nMZVtS.js → CustomerOnboardingRoutes-CTvxPGQo.js} +1 -1
- package/dist/assets/{Dashboard-Cvmg-DzK-puV8ebMR.js → Dashboard-Cvmg-DzK-B4C3yfRb.js} +1 -1
- package/dist/assets/{DashboardReportPage-C7bT-gmW-B8nCLsAW.js → DashboardReportPage-C7bT-gmW-CnABTNc-.js} +1 -1
- package/dist/assets/{DashboardRoutes-Cs6trW6R.js → DashboardRoutes-BJYzpoZN.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-CcTStx9W-Bnz6LhkJ.js → DashboardSidebarBackgroundAnimation-CcTStx9W-PqRgrLcG.js} +1 -1
- package/dist/assets/{DefaultTenantHome-RFtlxhsO.js → DefaultTenantHome-Cnbh-hLO.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-XZgomj7v-Bhnnv8Ar.js → DepositAccTransactionItem-XZgomj7v-DIzmHak6.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-B11lcuip-BIFNXmB4.js → DepositAccTransactionListPage-B11lcuip-EcEiN_CO.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-CDquLvw_.js → DomesticWireDetailScreen-C2_h3QsH.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-Cw4aq8Ar-D7iaVqqU.js → DomesticWireDetailsPage-Cw4aq8Ar-BB4UsO3F.js} +1 -1
- package/dist/assets/{DownloadOverlay-DE63RFQe-rm17dQJa.js → DownloadOverlay-DE63RFQe-Crn2Ieq2.js} +1 -1
- package/dist/assets/{DrawerPage-DGuh6P-6-BcyuUjYZ.js → DrawerPage-DGuh6P-6-vbiOWCGQ.js} +1 -1
- package/dist/assets/{DrawerScreen-C-gJlwdg.js → DrawerScreen-CCgZ71G-.js} +1 -1
- package/dist/assets/{EditPeoplePage-Dmz2l8uY-DdG9SBff.js → EditPeoplePage-Dmz2l8uY-BViOrN91.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BrQ60mqq-BnVEgdU7.js → EditReimbursementDetailPage-BrQ60mqq-CiiPaBXi.js} +1 -1
- package/dist/assets/{EntityDetailPage-BbeHCNGS-CuhXo5UK.js → EntityDetailPage-BbeHCNGS-D-w0bQjx.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-Bjmke2zn.js → EntityDetailRoutes-CDn_Sj24.js} +1 -1
- package/dist/assets/{EntitySummarySection-BgjWn9vX-B3b1MF7S.js → EntitySummarySection-BgjWn9vX-LOppYcen.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-V2cvYWxH-CNs6UVeS.js → ExpenseAutomationOverviewPage-V2cvYWxH-DgccKeRs.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BDZ6aX0q-DC7_gDiI.js → ExpenseAutomationPage-BDZ6aX0q-DsIPZFRk.js} +1 -1
- package/dist/assets/{ExpenseAutomationRoutes-N5IH8NJS.js → ExpenseAutomationRoutes-DGeHwe0Y.js} +1 -1
- package/dist/assets/{ExpressPayPage-5VdASApP-D9MlPJBc.js → ExpressPayPage-5VdASApP-Bbb90acR.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CA_fxOHn-Bf1rij6M.js → FeaturePreviewPage-CA_fxOHn-lBAw00-n.js} +1 -1
- package/dist/assets/{FeaturePreviewScreen-CLKJ2QAB.js → FeaturePreviewScreen-mO_J_upF.js} +1 -1
- package/dist/assets/{FollowStepsSection-CTSjTKjT-BGVIDRAe.js → FollowStepsSection-CTSjTKjT-CfO_mWmk.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DmrnXFgW-B57SMtSt.js → GlobalReviewListPage-DmrnXFgW-BY6NnEtn.js} +1 -1
- package/dist/assets/{InformationCardStack-D_Z7Ebe0-CrFTMoBP.js → InformationCardStack-D_Z7Ebe0-CdzcV8l3.js} +1 -1
- package/dist/assets/{InsightsCardStack-Dbpzjgf4-CmY1A9uH.js → InsightsCardStack-Dbpzjgf4-RDSpnan7.js} +1 -1
- package/dist/assets/{InsightsSection-DgViiL7e-D07WWVHm.js → InsightsSection-DgViiL7e-DSerJB8L.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-4OV7HFwe-DZdJwIZ8.js → IntegrationsSettingsPage-4OV7HFwe-BkdxTWi0.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-B1nvNamF-BTijFGVO.js → InternationalWireSwiftDetailsPage-B1nvNamF-D8dvELa5.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-HZgqUkj4-BQdwtp6K.js → InternationalWireVerificationPage-HZgqUkj4-CGNhvpQ2.js} +1 -1
- package/dist/assets/{InviteFormPage-C5mS-6c8-CQ3pBA8X.js → InviteFormPage-C5mS-6c8-B0IN7EaK.js} +1 -1
- package/dist/assets/{InvitePageListView-Yj83_lDA-BObL1UwR.js → InvitePageListView-Yj83_lDA-CRdOQu_U.js} +1 -1
- package/dist/assets/{InvitePeoplePage-C7DlxHsy-Ch_cCeBl.js → InvitePeoplePage-C7DlxHsy-BebMBIo7.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DdIQCBkC-B4QsOjKN.js → InvoiceUploadSection-DdIQCBkC-Cl8PEl5w.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-BIOTVOMR-BjJzOdS5.js → IssueChargeCardPage-BIOTVOMR-v1cJqLjo.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Bb1x9jR--K66XVI1l.js → LabeledAddressValue-Bb1x9jR--BEbVa18t.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D3_DsNPu-DVmbiKLN.js → LabeledAddressValueField-D3_DsNPu-736YXF_H.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DdHmj0q2-BmQSyhgm.js → LabeledControlledCheckBoxField-DdHmj0q2-DW5E7xm-.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-LeubJT8b-DKahjV4C.js → LabeledCountryMultiSelectField-LeubJT8b-COwPVYGE.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CzrPLo-T-BnUMrxSH.js → LabeledCreatableSingleSelectField-CzrPLo-T-Cy0xU_nR.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CFtFroDl-BAzH2vry.js → LabeledDocumentField-CFtFroDl-CMnHYN21.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-CFsuVVp3-Cllg2-kq.js → LabeledDropDownFormattedTextField-CFsuVVp3-BZagwxlS.js} +1 -1
- package/dist/assets/{LabeledEmailInputField-BOEHGgHy-B8PcLj3U.js → LabeledEmailInputField-BOEHGgHy-BnfP78Li.js} +1 -1
- package/dist/assets/{LabeledNameField-DWKoivcI-Bg7Loxzf.js → LabeledNameField-DWKoivcI-CNclT5Xy.js} +1 -1
- package/dist/assets/{LabeledSingleSelectField-BkGsnV9P-BmcuJIvo.js → LabeledSingleSelectField-BkGsnV9P-DEP7xmaE.js} +1 -1
- package/dist/assets/{LabeledText-CZMUFsPf-BzxAzPVQ.js → LabeledText-CZMUFsPf-CD_2e2aX.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-CA9RNgOe.js → LabeledUserSingleSelectWithSubtitlesField-BTo_s8x5-BHV3CQzI.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-C3LoYUh_-B2cjpWvF.js → LabeledZeniRolesDropDownField-C3LoYUh_-C0QgGm5O.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BbpybbwD-CgRdsDGC.js → LinkJETransactionPage-BbpybbwD-C4x4kUF5.js} +1 -1
- package/dist/assets/{LockCardPage-C0XjGES8-DzPwjGzp.js → LockCardPage-C0XjGES8-COA53Q9C.js} +1 -1
- package/dist/assets/{LowBalancePopup-CkO97HGX-nozhu0WG.js → LowBalancePopup-CkO97HGX-roXJtnln.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CcaWGIEm-3uajWvNb.js → MagicLinkACHDetailsPage-CcaWGIEm-tnKPve8j.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-6V37rCS5-Dxqj-iaP.js → MagicLinkDomesticWireDetailsPage-6V37rCS5-FOh6a44O.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BKWBDCxr-BHR9xOJ3.js → MagicLinkInternationalWireDetailsPage-BKWBDCxr-BhDtlKOU.js} +1 -1
- package/dist/assets/{MagicLinkRoutes-D99wiuRu.js → MagicLinkRoutes-BGp-m3tE.js} +1 -1
- package/dist/assets/{MagicLinkSignInScreen-D9jNjUlX.js → MagicLinkSignInScreen-D2ieCdvR.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-L5UJIvTe-BW7N1yCO.js → MagicLinkSuccessPage-L5UJIvTe-CWVlYB8D.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-CEZGF8ER-DCWrw88D.js → MagicLinkTitleSection-CEZGF8ER-DeKkt3UA.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CRsQVOYi-xwOtQnim.js → MailingDetailsSection-CRsQVOYi-UNrx0RmS.js} +1 -1
- package/dist/assets/{MobileAppDrawer-D_OmB8VL.js → MobileAppDrawer-C0MjRK8u.js} +1 -1
- package/dist/assets/{MoreMenuButton-BWNCapgP-BFDpJyIR.js → MoreMenuButton-BWNCapgP-DzMadVuo.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-C6p5J_f5-2jAZ0hVQ.js → MyBankConnectionsSettingsPage-C6p5J_f5-BgARv7Gs.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CluWS3nS-DHrdaNvb.js → MyPendingActivationChargeCardListPage-CluWS3nS-28_T6_I6.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-Ctkx_sAQ-BiLtfbOe.js → MyProfileSettingsPage-Ctkx_sAQ-TcUoiri6.js} +1 -1
- package/dist/assets/{NavBarWithPicker-ClP6LCUF-D7FqbQNc.js → NavBarWithPicker-ClP6LCUF-DkWJWEu4.js} +1 -1
- package/dist/assets/{NavigationArrow-CUPvxfZv-CROxnh_J.js → NavigationArrow-CUPvxfZv-s1L-Z7hs.js} +1 -1
- package/dist/assets/{NavigationDots-Cu9LZj7T-BoVhghfD.js → NavigationDots-Cu9LZj7T-Dck-bGwO.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-g9JuX6MR-Cddrtv6r.js → NewGlobalMerchantPage-g9JuX6MR-BZjrX0Tw.js} +1 -1
- package/dist/assets/{NoDataChart-DcMRzXHU-DbjmTgYu.js → NoDataChart-DcMRzXHU-D7_5REKF.js} +1 -1
- package/dist/assets/{NoDataTable-D1v085Vv-CeExg0EA.js → NoDataTable-D1v085Vv-WRE6ppwn.js} +1 -1
- package/dist/assets/{NotFoundPage-Bf-EPtU9-DffpH6WC.js → NotFoundPage-Bf-EPtU9-Dix88l92.js} +1 -1
- package/dist/assets/{NotFoundScreen-DykxXNVn.js → NotFoundScreen-OFT7uJSm.js} +1 -1
- package/dist/assets/{NotificationRoutes-C-lRR8pY.js → NotificationRoutes-CHaXDc9a.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-Zv4-2vEl-CP53OCrD.js → NotificationSettingsPage-Zv4-2vEl-DMc4wF7J.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CO5uOSs7-aAnj3j2i.js → NotificationsListConfig-CO5uOSs7-DsPdEX8y.js} +1 -1
- package/dist/assets/{NotificationsPage-BH6B4Q8b-D1IQhl37.js → NotificationsPage-BH6B4Q8b-boFjpwya.js} +1 -1
- package/dist/assets/{OpExByVendorPage-EjyJRLhn-BhVe3s3b.js → OpExByVendorPage-EjyJRLhn-CQJtKQn8.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-C20bjbix.js → OverlayContainerPage-D4QU0p4o-DuZLyKjH.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-UpDz4Qqu-BN-vVvpP.js → PandLWithForecastPage-UpDz4Qqu-amIAlSUm.js} +1 -1
- package/dist/assets/{PandLWithForecastRoutes-zzKekdOK.js → PandLWithForecastRoutes-CnIh_V-S.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-CqavirRU-BkF9Y6IP.js → PaymentAccountSetupBillingAddressSection-CqavirRU-DY_xWf64.js} +1 -1
- package/dist/assets/{PeoplePage-D2N1XP-O-caSWGUZc.js → PeoplePage-D2N1XP-O-CJwoERS5.js} +1 -1
- package/dist/assets/{PeopleRoutes-CsdzM7DQ.js → PeopleRoutes-BhDCeLPU.js} +1 -1
- package/dist/assets/{PerformanceRoutes-DoL3UdHs.js → PerformanceRoutes-BuAZi3MY.js} +1 -1
- package/dist/assets/{Preview-BI7JdS0A.js → Preview-f_rz4qOg.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dx8bStwI-DCDAdb91.js → ProductsCarousel-Dx8bStwI-5WXVKcMh.js} +1 -1
- package/dist/assets/{PromoBaseCards-Bauxzwzt-D83UTBk-.js → PromoBaseCards-Bauxzwzt-CEuKIUTF.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-COlHLDTh-Ca5S7kv5.js → QBOConnectionDialog-COlHLDTh-CZNls81U.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-Bdjj5_fC.js → QBOConnectionScreen-DHVNs-vu.js} +1 -1
- package/dist/assets/{QBOSetupSection-Cb4AlHU9-D57sQXWJ.js → QBOSetupSection-Cb4AlHU9-BwUUouj5.js} +1 -1
- package/dist/assets/{ReferralListScreen-CmCz8zc8.js → ReferralListScreen-C3cSD6GP.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-Cei43fBO.js → ReimbursementApprovalRoutes-BR5Pg3Il.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cb4wyiiA-5a2mo1SI.js → ReimbursementApprovalRuleDetailPage-Cb4wyiiA-OE1Rk5kC.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-D1GmaX--.js → ReimbursementApprovalRuleDetailScreen-C0xqudkd.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BEid42KU-CqL0yvKr.js → ReimbursementApprovalRulesPage-BEid42KU-DOok7S1u.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CuuOsKPv-BmGXaLa_.js → ReimbursementDetailPage-CuuOsKPv-D_7TSHrP.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-fvIAhNdR-CIqsc5v3.js → ReimbursementPromoPage-fvIAhNdR-BvbfNbzp.js} +1 -1
- package/dist/assets/{ReimbursementRoutes-CtyvtqmD.js → ReimbursementRoutes-CqJXKBBa.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-CBKANstD-CS_Qn9By.js → ReimbursementSetUpPage-CBKANstD-DthsR-eI.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BXO46shT-BXeQO4_5.js → ReimbursementsBulkReviewDrawerPage-BXO46shT-BZFw04rn.js} +1 -1
- package/dist/assets/{ReloadCard-BKHKE8Pu-BkEOOlFz.js → ReloadCard-BKHKE8Pu-DDzNv6xf.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-gYxUii1M-CxYX420D.js → ReportTableViewSelector-gYxUii1M-CddF7tJN.js} +1 -1
- package/dist/assets/{ReportsPage-D7rEPLAa-CTGwy7xH.js → ReportsPage-D7rEPLAa-CzmUwcBX.js} +1 -1
- package/dist/assets/{ReportsRoutes-DzvU0X2a.js → ReportsRoutes-CYQKfAgF.js} +1 -1
- package/dist/assets/{RevenueChart-BHrj8Dy9-CDfFyh6U.js → RevenueChart-BHrj8Dy9-DkPntOZK.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-B9SMV_va-DpCKxVZs.js → ReviewDetailsPage-B9SMV_va-Dz7Rn666.js} +1 -1
- package/dist/assets/{ReviewOverlay-Be_F1hd--BbTRhL0o.js → ReviewOverlay-Be_F1hd--DTVVFQpK.js} +1 -1
- package/dist/assets/{RewardsRoutes-vGh4ydPL.js → RewardsRoutes-DCITkj5z.js} +1 -1
- package/dist/assets/{RoleWithToolTip-D9DCHaph-BK_HFdm8.js → RoleWithToolTip-D9DCHaph-nKJIR_IN.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-h1Ewtn5T-BEUluqGW.js → ScheduleDetailsFixedAssetsPage-h1Ewtn5T-BwfadKPa.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-Cr-KaH2D-BD6uE37t.js → ScheduleDetailsPage-Cr-KaH2D-BVZeWx8N.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BBbLa0gA-BpQ_H6dR.js → ScheduleSequenceTable-BBbLa0gA-Btbrm5JR.js} +1 -1
- package/dist/assets/{ScreenRoutes-Ddt_3qWB.js → ScreenRoutes-cViWFW2H.js} +2 -2
- package/dist/assets/{SetUpAccountSection-ULABF-Md-zu_CEzKT.js → SetUpAccountSection-ULABF-Md-6cmPJvyE.js} +1 -1
- package/dist/assets/{SettingsRoutes-DjjTCzCe.js → SettingsRoutes-_v8Kd5Pc.js} +1 -1
- package/dist/assets/{SetupPagesScreen-n_J03kZN.js → SetupPagesScreen-DwKZajDO.js} +1 -1
- package/dist/assets/{SignIn-6YH_riJW-CoJmoytJ.js → SignIn-6YH_riJW-Cbh0GUA9.js} +1 -1
- package/dist/assets/{SignInScreen-C81bBqwd.js → SignInScreen-CQ0tPRGx.js} +1 -1
- package/dist/assets/{SignOutScreen-CEuaozcz.js → SignOutScreen-DnZtVxxQ.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-D_RrkezV-Gg_jrdXn.js → SpendManagementListViewPage-D_RrkezV-DBINRHHC.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BnugLA94-ISau-F_A.js → SpendManagementPerTabPage-BnugLA94-B0bXgpZd.js} +1 -1
- package/dist/assets/{SpendManagementSection-DCk1isQq-DqP3iWuL.js → SpendManagementSection-DCk1isQq-Ctg203qT.js} +1 -1
- package/dist/assets/{StatementItem-BWKA6BsE-B8aggs_N.js → StatementItem-BWKA6BsE-j_qG9rDI.js} +1 -1
- package/dist/assets/{StatementsPage-C5KuiVH4-BGiHKDOi.js → StatementsPage-C5KuiVH4-xnkoQRuk.js} +1 -1
- package/dist/assets/{StatusSwitcher-CgzMvf5t-BZOhbmQ7.js → StatusSwitcher-CgzMvf5t-BwsAKxQf.js} +1 -1
- package/dist/assets/{SubTabSwitcher-gc5g6vV0-DPlVBwi9.js → SubTabSwitcher-gc5g6vV0-Cc389X5o.js} +1 -1
- package/dist/assets/{SuccessAnimation-CcFXT4sg-BETTrulo.js → SuccessAnimation-CcFXT4sg-BdtQuwgP.js} +1 -1
- package/dist/assets/{SummaryCard-DgPg2oPm-DQSV3AJ_.js → SummaryCard-DgPg2oPm-2d3grF3d.js} +1 -1
- package/dist/assets/{TaskDetailPage-Brq3l5Lm-D1g8XH38.js → TaskDetailPage-Brq3l5Lm-CTeGSq5Z.js} +1 -1
- package/dist/assets/{TaskListScreen-D_rI0d2T.js → TaskListScreen-BEZfxkT_.js} +1 -1
- package/dist/assets/{TaskManagementPage-Dyy-A0ij-BRtOKHgc.js → TaskManagementPage-Dyy-A0ij-BjtjsR1V.js} +1 -1
- package/dist/assets/{TaskRoutes-CcAxScvl.js → TaskRoutes-CmFMqx0S.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-PcHPZNOq-Bhy6ebhC.js → TimeRangeSwitcher-PcHPZNOq-BoIkN8Yn.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-XZjkUS_W-L_xk8ffg.js → TimeframeSwitcher-XZjkUS_W-BbzICW0F.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-KxCdrFMS-aH0QwP3R.js → TimeframeSwitcherWithToggle-KxCdrFMS-CZUmEkN6.js} +1 -1
- package/dist/assets/{TopExCard-CRxFMC50-DI0Ys14u.js → TopExCard-CRxFMC50-DMFErWO2.js} +1 -1
- package/dist/assets/{TopExDetailPage-D7dCJGpQ-0fQzChNa.js → TopExDetailPage-D7dCJGpQ-CMGX79Ma.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-ByyxovGE-DjV_kYSi.js → TransactionActivityLogPage-ByyxovGE-srnxYFyd.js} +1 -1
- package/dist/assets/{TransactionDetailPage-D0_Tjv5D-BzMxrc83.js → TransactionDetailPage-D0_Tjv5D-CTxa80yD.js} +1 -1
- package/dist/assets/{TransactionDetailRoutes-CKp9VtFU.js → TransactionDetailRoutes-CJny34aF.js} +1 -1
- package/dist/assets/{TransactionDetailScreen-BB7cA6Qz.js → TransactionDetailScreen-Cf5V0oOT.js} +1 -1
- package/dist/assets/{TransactionList-DoYieHoy-Dq8Ds1Cb.js → TransactionList-DoYieHoy-BgtAc9_H.js} +1 -1
- package/dist/assets/{TransactionListBig-BOKPby7d-BEnm2yMd.js → TransactionListBig-BOKPby7d-DtBWL-yV.js} +1 -1
- package/dist/assets/{TransactionListPage-Bfx0PW2V-Bv5CoGoz.js → TransactionListPage-Bfx0PW2V-CJeBc1uC.js} +1 -1
- package/dist/assets/{TransactionListRoutes-C8lRyPOF.js → TransactionListRoutes-FXzof8yS.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BK4zpJ1F-CN3xlCoQ.js → TransactionVendorDetailPage-BK4zpJ1F-CDApXn9_.js} +1 -1
- package/dist/assets/{TransferDrawerPage-B5ofYt0y-GqcyFVry.js → TransferDrawerPage-B5ofYt0y-DEB7bAJ_.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-D4LuhPMd-CAEUMavm.js → TreasuryOverviewPage-D4LuhPMd-CuGu_xGc.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-ofZQDboF-CT-dKX0-.js → TreasuryPromoPage-ofZQDboF-9WAzeWsO.js} +1 -1
- package/dist/assets/{TreasuryRoutes-aZ6pdLcv.js → TreasuryRoutes-DAJ1nuDy.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-D4bGPC_n-BmKF81fd.js → TreasuryStatementsPage-D4bGPC_n-CT-z0lr5.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-4aV14kQe-DVnspMQ5.js → TreasuryTaxLetterPage-4aV14kQe-iwLPWGPo.js} +1 -1
- package/dist/assets/{TrendChart-BJLik8fK-B6jK66HA.js → TrendChart-BJLik8fK-DKQC7WiX.js} +1 -1
- package/dist/assets/{TrendWithTransactions-R1FCSydB-BZtJh6Ko.js → TrendWithTransactions-R1FCSydB-BqoO14_s.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-mYSXtdgK-C0jjOEyX.js → UncategorizedAccountsMappingPage-mYSXtdgK-O1FdgaEf.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-C44UiDRH-CnXGyk33.js → UnitIntegrationPage-C44UiDRH-BgZ2EdVh.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CJmvE3y6-B0vgA0Ji.js → UploadAdditionalDocumentOverlay-CJmvE3y6-OjNfOtyQ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Bt_phaZI-DuVfk6Oy.js → Vendor2FAPopup-Bt_phaZI-Dci0tpRN.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CxlQSWGZ-CJCZBXzk.js → VendorACHDetailsPage-CxlQSWGZ-Dbr0vyn-.js} +1 -1
- package/dist/assets/{VendorDetailPage-BixXt95H-CEzpHcoG.js → VendorDetailPage-BixXt95H-Cvkoy_Y0.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-BmFZeCgu-DciG2YXd.js → VendorDomesticWireDetailsPage-BmFZeCgu-BrnPFu_g.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DIyS2YV_-BSd00dOl.js → VendorFiling1099EditablePage-DIyS2YV_-BTWZ-u7c.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-DZ00XYRi-COzJ3EOL.js → VendorFirstReviewPage-DZ00XYRi-DOa-NUD4.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DOYmaAmB-CP8642Mt.js → VendorInternationalWireDetailsPage-DOYmaAmB-DTnVoiG2.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BCafZBL5-De6VzWbh.js → VendorInternationalWireSwiftDetailsPage-BCafZBL5-a5ZNRrE7.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D6DinIAj-BpUOgRZp.js → VendorsAccountsSection-D6DinIAj-D7Ln9yoe.js} +1 -1
- package/dist/assets/{VendorsRoutes-BcdOO99u.js → VendorsRoutes-DoHaVaFK.js} +1 -1
- package/dist/assets/{VerifyDevice-DFug_o82-D9msA2pt.js → VerifyDevice-DFug_o82-Cp_iN918.js} +1 -1
- package/dist/assets/{VideoPlayer-BuOlZW0M-BMl86S4m.js → VideoPlayer-BuOlZW0M-SyXdcn2w.js} +1 -1
- package/dist/assets/{VideoPopup-B03SM83j--LOH40s0.js → VideoPopup-B03SM83j-Bz8522QR.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-D_LadT7o.js → WiseConfirmationScreen-BSiQio9j.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BJQvxY7D-DuzKrnCG.js → ZeniAccountDetailPage-BJQvxY7D-CD6_hnPE.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CvwGdUPT-Bay6wmzi.js → ZeniAccountListViewPage-CvwGdUPT-Dfa2vteS.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-OGXEdZmI-DsgZBmco.js → ZeniAccountNavBarPieces-OGXEdZmI-DYGQS9LW.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-iELT-FzW-BjCD72m0.js → ZeniAccountPromoPage-iELT-FzW-DKlKFYZl.js} +1 -1
- package/dist/assets/{ZeniAccountRoutes-DBnPGXKs.js → ZeniAccountRoutes-XOuwsxr4.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-feqonZIV-CG1KriVL.js → ZeniAccountSetupPage-feqonZIV-CVuTGOWG.js} +1 -1
- package/dist/assets/{ZeniAccountStatementScreen-Br16O1Ed.js → ZeniAccountStatementScreen-xw2x-Y_T.js} +1 -1
- package/dist/assets/{ZeniAvatar-CHmpyZc4-D3SEyYvU.js → ZeniAvatar-CHmpyZc4-CgFMIt8E.js} +1 -1
- package/dist/assets/{ZeniCopyright-Cy7xQhak-ScelyO6I.js → ZeniCopyright-Cy7xQhak-XXB-MVSK.js} +1 -1
- package/dist/assets/{ZeniDatePicker--Wk1Y9-b-DVDC_pYc.js → ZeniDatePicker--Wk1Y9-b-ILzjIY8q.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BGK6jY7c-BE0jJw55.js → ZeniTransferAmountSlider-BGK6jY7c-BOtVC5lY.js} +1 -1
- package/dist/assets/{accountMappingHelper-CTk3qsZA.js → accountMappingHelper-B_bqtQmE.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-DBixabBc.js → add-to-wallet-DgdBD8_G-BJTVCmjO.js} +1 -1
- package/dist/assets/{analytics-DeMdmyL7.js → analytics-BwviiuqB.js} +1 -1
- package/dist/assets/{analyticsHelper-MsboCQcB-CSXrY7fF.js → analyticsHelper-MsboCQcB-BLnXrwhy.js} +1 -1
- package/dist/assets/{analyticsHelper-LPY3WkeX.js → analyticsHelper-cKb29Ct6.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-CpIzET1p.js → arrow-south-east-round-PEovUgvH-BLBs8ugU.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-NghmWVqE.js → auto-transfer-rule-mbafm5D3-BZd_9SiP.js} +1 -1
- package/dist/assets/{avatar-Dz7aEm3d-bHemC5rL.js → avatar-Dz7aEm3d-BFq-rVXj.js} +1 -1
- package/dist/assets/{calculateSize-DtEgyuiA-CjEqHti4.js → calculateSize-DtEgyuiA-BxRureQo.js} +1 -1
- package/dist/assets/{chartTypes-BZL6U2-d-jpm0hHlK.js → chartTypes-BZL6U2-d-6ZTLkQO6.js} +1 -1
- package/dist/assets/{clock-CJkylEKt-7F524_Wn.js → clock-CJkylEKt-D86aDGgx.js} +1 -1
- package/dist/assets/{common-DspMM85g-CC6Rl9Du.js → common-DspMM85g-D8gXTZ7G.js} +1 -1
- package/dist/assets/{commonDimensions-RZ10geET-CKOh47Tk.js → commonDimensions-RZ10geET-D7qPZRI_.js} +1 -1
- package/dist/assets/{commonTypes-lunwFIdl-CvIuXwQA.js → commonTypes-lunwFIdl-DX_CuL_U.js} +1 -1
- package/dist/assets/{core-CSCSHf4h.js → core-tQbf9q8c.js} +1 -1
- package/dist/assets/{dash.all.min-DD8xAjYr.js → dash.all.min-BrwO-Juz.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-CjRggx5I.js → decodeURIComponentSafe-DvIz9TKf.js} +1 -1
- package/dist/assets/{detailCommon-CxEOrtjx-Ct263sBr.js → detailCommon-CxEOrtjx-DMWr3OWb.js} +1 -1
- package/dist/assets/{dnd-COr1F31f.js → dnd-C4z4yHh0.js} +1 -1
- package/dist/assets/{dollar-round-D18u7nlm-jCztdMWk.js → dollar-round-D18u7nlm-DZNtiKOk.js} +1 -1
- package/dist/assets/{downloadPdf-BpxrRqLr-DZAS6b5B.js → downloadPdf-BpxrRqLr-CgsZPCp9.js} +1 -1
- package/dist/assets/{empty-CxBrUVur.js → empty-D8sw2kbY.js} +1 -1
- package/dist/assets/{empty-BUd3exG5.js → empty-OIMWR8Ju.js} +1 -1
- package/dist/assets/{epic-DybEFF0H.js → epic-CtBuyKa-.js} +1 -1
- package/dist/assets/{filter-cZIFUNvj-CXXx4fNz.js → filter-cZIFUNvj-CE5zJJJ0.js} +1 -1
- package/dist/assets/{getLocaleForTenant-CjEkOXZy.js → getLocaleForTenant-x-_ZsHih.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-CKc8hoEH.js → gift-box-Cmt9OgIZ-DP-9tFF0.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-C4iKOud4.js → graphic-no-data-l-DU4J8fDt-OTAmLtfp.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-VLqn_raX.js → graphic-no-data-net-burn-l-CzmycA0m-C1xtOjga.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-DNYsMVIY.js → handshake-BPg58FML-BLfSpPLa.js} +1 -1
- package/dist/assets/{helper-2Z01-P8G-6WuzcTRW.js → helper-2Z01-P8G-4I-xsv8A.js} +1 -1
- package/dist/assets/{hyperlink-DQyCeXx2-CQAWbGo_.js → hyperlink-DQyCeXx2-B5DTBQjH.js} +1 -1
- package/dist/assets/{index-BOP14OKw.js → index-14QtSMKx.js} +1 -1
- package/dist/assets/{index-BRX_XEL-.js → index-7BmdvSTY.js} +1 -1
- package/dist/assets/{index-DDbdy58V.js → index-BVjkKCLf.js} +444 -444
- package/dist/assets/{index-CWdL8pZi.js → index-C4KA_rsP.js} +1 -1
- package/dist/assets/{index-iatqQdID.js → index-Ch36miPU.js} +1 -1
- package/dist/assets/{index-CCO5Gdps.js → index-DztUk-4t.js} +1 -1
- package/dist/assets/{lexical-O2a-WmAf.js → lexical-Cxv_EhfG.js} +1 -1
- package/dist/assets/{liveblocks-CxtxQte5.js → liveblocks-ClmZMiZG.js} +1 -1
- package/dist/assets/{lottie-BQDwpIDJ.js → lottie-C1jDoN6L.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-BJRnX8Ir-U3ElZRzN.js → mapLoadingInProgressToTreeNode-BJRnX8Ir-CWTptJHk.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode--0eoufeA-Z11hNQZX.js → mapSectionWithAcOnlyToTreeNode--0eoufeA-D7gRkuwi.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CQvnRjWo-CdPsLyjM.js → mapSpacerToTreeNode-CQvnRjWo-DwJKT6-z.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CY0Vs8kK-DzlhNi2D.js → mapTimeframeBalancesToTreeNode-CY0Vs8kK-VBbq9rDC.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cytg0KxN-BBQ4MiQI.js → mapTimeframeBalancesToTreeNode-Cytg0KxN-XJ0C0lAw.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-DB9phXRk.js → mapTimeframeHeaderLoadingInProgressToTreeNode-3KVmTdIZ-OlNigbrb.js} +1 -1
- package/dist/assets/{media-player-En9R4zy-.js → media-player-CixAJJd1.js} +2 -2
- package/dist/assets/{money-2cg1MuG4-Dg41nRSv.js → money-2cg1MuG4-Bg567PNs.js} +1 -1
- package/dist/assets/{mui-CVWe5m7x.js → mui-Bjwhey0L.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-BOzcKZnj.js → page-detail-CWX5S47F-BjxkU9bj.js} +1 -1
- package/dist/assets/{page-summary-D7_VQHwN-CcrLQmlI.js → page-summary-D7_VQHwN-B63O8toS.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-DlyoL7DQ.js → panelSelectedMixin-CzfD5-Zs-C8dW-sTb.js} +1 -1
- package/dist/assets/{pathToGoBack-DIP3w2mF.js → pathToGoBack-C0-y9K8A.js} +1 -1
- package/dist/assets/{pdf-rNAmIEF5.js → pdf-DJ-oF9-h.js} +3 -3
- package/dist/assets/{pdf-lib-JWzwvdNX.js → pdf-lib-CRmnAdOL.js} +1 -1
- package/dist/assets/{plaid-CiVnbkxs.js → plaid-CFQSLZ5I.js} +1 -1
- package/dist/assets/{pusher-CfFxSIhQ.js → pusher-BBjghr5u.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-dW1yKl4Q.js → radio-default-CiSgisfh-D0C1Nxwy.js} +1 -1
- package/dist/assets/{react-DRNApT94.js → react-2Ejhu-dV.js} +1 -1
- package/dist/assets/{react-4TAXbemT.js → react-BGKYEK8M.js} +3 -3
- package/dist/assets/{react-BLXPSNxU.js → react-BV8b3CRD.js} +1 -1
- package/dist/assets/{react-CWo9VOAE.js → react-BXiKrbq0.js} +1 -1
- package/dist/assets/{react-DreXWt5i.js → react-By0Yo34B.js} +1 -1
- package/dist/assets/{react-BeMs2FpL.js → react-C5-2CZ_j.js} +1 -1
- package/dist/assets/{react-BQsk4BoF.js → react-CInUMAlk.js} +1 -1
- package/dist/assets/{react-C8m8Qc1h.js → react-D1LHkJvC.js} +1 -1
- package/dist/assets/{recharts-C5pBg015.js → recharts-DxWcXnAv.js} +1 -1
- package/dist/assets/{routePaths-fz0y1bUD.js → routePaths-nQF_3DXR.js} +1 -1
- package/dist/assets/{sentry-DXG8OAzW.js → sentry-Bsfq8iFp.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-Cd3QAXsn.js → shield-DOlUxcFf-BK5y8PC1.js} +1 -1
- package/dist/assets/{spend-limit-D6SyboD4-D2szeI3Z.js → spend-limit-D6SyboD4-BMKkrJ-o.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DzAIFjHl-Dd4AXSDY.js → toCOABalancesWithID-DzAIFjHl-CpHF0N9N.js} +1 -1
- package/dist/assets/{toChartData-BurvmO_S-Dcja8_o1.js → toChartData-BurvmO_S-BSey2eFY.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-B2mLzfbH.js → transaction-placeholder-CpOwZAMG-PFo9FUbu.js} +1 -1
- package/dist/assets/{undo-b_3XZ5CX-DSJzH_Tn.js → undo-b_3XZ5CX-BAh3h0-i.js} +1 -1
- package/dist/assets/{unlock-BPWn2I5L-Do1fnqx6.js → unlock-BPWn2I5L-DEd9hnmz.js} +1 -1
- package/dist/assets/{uploadAttachment-DtJo5Tp4-BZBGp8x9.js → uploadAttachment-DtJo5Tp4-DeK-C7ju.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-Bk3l52rk.js → uploadReceipts-Dge0cNF1-D7Fo4MnD.js} +1 -1
- package/dist/assets/{url-DHNwFLzp.js → url-BaJJd1my.js} +1 -1
- package/dist/assets/{url-D1_xUHHk.js → url-gf9VSr2b.js} +1 -1
- package/dist/assets/{useDeviceId-CbEpWwMZ.js → useDeviceId-C7oMV5vx.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-B_AZH90H.js → useInitialThreadRequest-BFyDtASP.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-B5PGidsY.js → useLongPress-GCK2COYQ-_KCebyG-.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BIw6ZPFi.js → usp-line-BBd1wKwW-Ce0bTbAT.js} +1 -1
- package/dist/assets/{utils-CEFC9M68.js → utils-BxRS7J8i.js} +1 -1
- package/dist/assets/{withTransactionSidePanel-CV9mcG0R.js → withTransactionSidePanel-D5JSDlfI.js} +1 -1
- package/dist/assets/{zeni-epic-state-B_a_iTrR.js → zeni-epic-state-CjVTQ4J3.js} +3 -3
- package/dist/assets/{zeni-icon-only-CqALPKNP.js → zeni-icon-only-CYgNDWlk.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingAuthScreen-Bmfm6EF8.js +0 -1
- package/dist/assets/CustomerOnboardingContainerPage-BJV0xAFp-C9np5L3h.js +0 -1
package/dist/assets/{BillDetailPage-CPxVWXx6-1Oioq8DD.js → BillDetailPage-CPxVWXx6-C9i2mOHw.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Pn,t as Bn,y as Rn,fy as zn,fz as Mn,fA as Nn,fB as Ln,bz as Fn,a7 as On,b as y,V as t,et as dt,eu as En,o as a,ev as _n,ew as Kn,ex as Wn,a4 as Se,ey as Zn,a6 as b,a_ as pt,aM as mt,cK as ut,bK as yt,bL as ht,bM as bt,fC as Un,fD as Vn,fE as Gn,fF as Xn,eD as j,fG as $,eF as A,eG as k,eC as Yn,j as gt,e as oe,eE as Lt,eM as Hn,eH as qn,eI as Jn,fH as Qn,fI as ea,a9 as ta,m as xt,bg as ve,fJ as na,fK as N,O as aa,u as s,K as ia,bp as la,fL as oa,a8 as ra,fM as sa,eN as ft,H as ca,cl as da,bB as pa,fN as wt,ar as ma,at as ua,l as ya,bi as Ft,cm as ha,fO as ba,x as Ot,r as ga,ap as xa,aR as fa,fP as wa,s as Ta}from"./index-DDbdy58V.js";import{a as p}from"./sentry-DXG8OAzW.js";import{n as i}from"./mui-CVWe5m7x.js";import{_ as va}from"./liveblocks-CxtxQte5.js";import{bZ as Da,bG as Ia,b_ as ja,Fl as $a,bW as Aa,bX as ka,bs as Sa}from"./zeni-epic-state-B_a_iTrR.js";import{o as Ca,t as Pa}from"./LowBalancePopup-CkO97HGX-nozhu0WG.js";import"./pdf-rNAmIEF5.js";import"./core-CSCSHf4h.js";import"./lottie-BQDwpIDJ.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./plaid-CiVnbkxs.js";import"./recharts-C5pBg015.js";import"./utils-CEFC9M68.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="cb0a2bca-90d0-49cc-8013-2987ac469878",e._sentryDebugIdIdentifier="sentry-dbid-cb0a2bca-90d0-49cc-8013-2987ac469878")}catch{}})();const Ba={formTitle:new ca("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:Ra,common:{noText:S,strings:{empty:d},currency:Tt,via:za,more:Ma,edit:Na},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:Et}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:La}}}}=aa.getLocalizedStrings(),Ie=Ra.visual.MMMDCommaYYYYformat,Pi=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:_t,isRealTimeApprovalEnabled:Kt,isInternationalPaymentShaVsOurEnabled:Wt,hasZeniAssistAccess:Zt,analytics:z,showMarkAsPaidButtonToCreator:Z,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Ut,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:ze,deleteBill:Xt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Yt,onAttachmentClick:Le,saveBillDetails:Ht,discardOutsideZeniPaymentData:qt,onBackClick:Fe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:en,onRefundPaymentClick:tn,initialOpenThreadRequest:U})=>{const l=Pn(),o=Bn(),Oe=Rn(),[nn,V]=p.useState(!1),[Ee,se]=p.useState(!1),[ce,de]=p.useState(!1),[_e,pe]=p.useState(!1),[an,me]=p.useState(!1),[Ke,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?zn:Mn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(ln);p.useEffect(()=>{U?.threadId!=null&&U?.companyId!=null&&U?.entityType!=null&&Q(U)},[U,Q]);const[on,G]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:C}=Nn(T,"both",!1),f=Be&&h!=null,We=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(Ln)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{ee(u),G(!1)},[ee,G]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!C&&(ee(ue.threadId),Q(null))},[ue,X,C,ee,Q]);const Ze=p.useRef(!1),[sn,cn]=p.useState(!1),dn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,cn(!0))});Fn({componentName:"bill.details",enabled:sn});const[M,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ue,Ve]=p.useState("approved"),[pn,Ge]=p.useState(!1),[mn,Xe]=p.useState(!1),[Ye,He]=p.useState(!1),qe=()=>Ge(!1),Je=On(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),q())},[e,q,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,un=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&Y?.code?Y:ae,L=Fa(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?un:Y?.code==null||ae?.code!="approved"&&Y.code!=="mark_as_paid"?ae:Y,he=e.transactionDetails?.vendor?.name,P=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},yn={onOkClick:()=>{V(!1),M.primaryButtonText===n.delete?Xt?.(e.isRecurring):M.title===n.cancelBillTitle?Me?.(e.isRecurring):M.title===n.cancelAndDeleteBillTitle||M.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):M.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{V(!1),de(!1)}},hn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},bn=()=>{const[r]=ga("ZeniAssist");return r!=null?t.jsx(xa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),z.trackZeniAssistClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const 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}})??[],gn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,c={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),xn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,fn=c.paymentToBankAccount?.bankAccountNumber?c.paymentToBankAccount?.bankAccountNumber?.slice(c.paymentToBankAccount?.bankAccountNumber?.length-4):c.paymentType?.method?.includes("international")&&c.paymentToBankAccount?.bankAccountIban?c.paymentToBankAccount?.bankAccountIban?.slice(c.paymentToBankAccount?.bankAccountIban.length-4):"",wn=c.paymentToBankAccount?.bankAccountName!=null&&c.paymentToBankAccount?.bankAccountName!=""?c.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${c.paymentToBankAccount?.bankName} XXXX${fn}`,Tn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),le=e.transactionDetails?.billPayInfo!=null?Da(e.transactionDetails?.billPayInfo):void 0,vn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ia(ja(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,nt=dt(c?.paymentType?.method??"").replace("Same Day",""),Dn=(c?.paymentToBankAccount!=null||c?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(En,{paymentTypeLabel:nt,onClick:()=>Ge(!0),style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,xe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),fe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",jn=Zt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(fe||we)&&In===!1,Te=fe||we,$n=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,An=!$n&&(!et||D?.code==="processing"&&!P),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),H=$a(e.transactionDetails?.bulkProcessingDetail?.type),O=Aa(e.paymentMethodType?.method),kn=!H&&(E!=="processing"&&it||E==="processing"&&!P||E==="processing"&<||x&&O&&Pe),rt=()=>{Xe(!0),z.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Sn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?_n(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,c.paymentDate):void 0,st=()=>{Ve("approved"),Ke===!0&&J(!1),_!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ja,{windowSize:l,ref:ct,children:[t.jsx(Kn,{anchor:"right",open:pn,onClose:qe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Wn,{companyName:Zn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:c.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:qe})}),t.jsxs(ni,{ref:dn.current,windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Oe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Fe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:Re?"visible":"hidden"},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Fe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:Re?"visible":"hidden"},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(ai,{windowSize:l,children:[Ke?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,mn?t.jsx(Pa,{onCancel:()=>{qt(),Xe(!1),Ye&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Ht(!0,Ye,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||ce?t.jsx(yt,{titleComponent:t.jsx(bt,{children:M.title}),descriptionComponent:t.jsx(ht,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:yn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oa(l,e):null}):null,an?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:hn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(li,{windowSize:l,children:[l!=="small"?t.jsxs(oi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,W&&L!=null&&L.code==="deleted"||L?.value===Ce.tabsById.overdue?t.jsx(di,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Un,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Vn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ka(H,e,_),t.jsx(Gn,{sectionId:Xn,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),c.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:ie.memo??S,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(ii,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Cn=>Cn.id===r.lineId)?.recipientAmount;return t.jsxs(Qa,{children:[be.length>1?t.jsx(ei,{windowSize:l,children:t.jsx(ti,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:B!=null?Se("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:r.billable!=null?xn(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(ri,{windowSize:l,children:[t.jsx(si,{children:n.total}),t.jsx(ci,{children:ge!=null?t.jsx(Yn,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?Et.addMoney:_})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:c.paymentType?.method!=null&&c.paymentType.method.includes(ka)&&Wt&&c.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:Hn(c.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_a(e.outsideZeniPaymentInfo):dt(c.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:c.paymentToBankAccount!=null?wn:c.paymentToPI!=null?c.paymentToPI.displayText:Tn,style:{width:"auto"},showEyeIcon:c.paymentToBankAccount!=null&&!!c.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||c.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=c?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?ha(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${c?.paymentToBankAccount?.bankRoutingNumberAch}, ${c?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{J as Pn,t as Bn,y as Rn,fy as zn,fz as Mn,fA as Nn,fB as Ln,bz as Fn,a7 as On,b as y,V as t,et as dt,eu as En,o as a,ev as _n,ew as Kn,ex as Wn,a4 as Se,ey as Zn,a6 as b,a_ as pt,aM as mt,cK as ut,bK as yt,bL as ht,bM as bt,fC as Un,fD as Vn,fE as Gn,fF as Xn,eD as j,fG as $,eF as A,eG as k,eC as Yn,j as gt,e as oe,eE as Lt,eM as Hn,eH as qn,eI as Jn,fH as Qn,fI as ea,a9 as ta,m as xt,bg as ve,fJ as na,fK as N,O as aa,u as s,K as ia,bp as la,fL as oa,a8 as ra,fM as sa,eN as ft,H as ca,cl as da,bB as pa,fN as wt,ar as ma,at as ua,l as ya,bi as Ft,cm as ha,fO as ba,x as Ot,r as ga,ap as xa,aR as fa,fP as wa,s as Ta}from"./index-BVjkKCLf.js";import{a as p}from"./sentry-Bsfq8iFp.js";import{n as i}from"./mui-Bjwhey0L.js";import{_ as va}from"./liveblocks-ClmZMiZG.js";import{bZ as Da,bG as Ia,b_ as ja,Fl as $a,bW as Aa,bX as ka,bs as Sa}from"./zeni-epic-state-CjVTQ4J3.js";import{o as Ca,t as Pa}from"./LowBalancePopup-CkO97HGX-roXJtnln.js";import"./pdf-DJ-oF9-h.js";import"./core-tQbf9q8c.js";import"./lottie-C1jDoN6L.js";import"./dnd-C4z4yHh0.js";import"./analytics-BwviiuqB.js";import"./plaid-CFQSLZ5I.js";import"./recharts-DxWcXnAv.js";import"./utils-BxRS7J8i.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="cb0a2bca-90d0-49cc-8013-2987ac469878",e._sentryDebugIdIdentifier="sentry-dbid-cb0a2bca-90d0-49cc-8013-2987ac469878")}catch{}})();const Ba={formTitle:new ca("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:Ra,common:{noText:S,strings:{empty:d},currency:Tt,via:za,more:Ma,edit:Na},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:Et}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:La}}}}=aa.getLocalizedStrings(),Ie=Ra.visual.MMMDCommaYYYYformat,Pi=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:_t,isRealTimeApprovalEnabled:Kt,isInternationalPaymentShaVsOurEnabled:Wt,hasZeniAssistAccess:Zt,analytics:z,showMarkAsPaidButtonToCreator:Z,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Ut,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:ze,deleteBill:Xt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Yt,onAttachmentClick:Le,saveBillDetails:Ht,discardOutsideZeniPaymentData:qt,onBackClick:Fe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:en,onRefundPaymentClick:tn,initialOpenThreadRequest:U})=>{const l=Pn(),o=Bn(),Oe=Rn(),[nn,V]=p.useState(!1),[Ee,se]=p.useState(!1),[ce,de]=p.useState(!1),[_e,pe]=p.useState(!1),[an,me]=p.useState(!1),[Ke,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?zn:Mn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(ln);p.useEffect(()=>{U?.threadId!=null&&U?.companyId!=null&&U?.entityType!=null&&Q(U)},[U,Q]);const[on,G]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:C}=Nn(T,"both",!1),f=Be&&h!=null,We=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(Ln)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{ee(u),G(!1)},[ee,G]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!C&&(ee(ue.threadId),Q(null))},[ue,X,C,ee,Q]);const Ze=p.useRef(!1),[sn,cn]=p.useState(!1),dn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,cn(!0))});Fn({componentName:"bill.details",enabled:sn});const[M,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ue,Ve]=p.useState("approved"),[pn,Ge]=p.useState(!1),[mn,Xe]=p.useState(!1),[Ye,He]=p.useState(!1),qe=()=>Ge(!1),Je=On(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),q())},[e,q,ze]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,un=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&Y?.code?Y:ae,L=Fa(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?un:Y?.code==null||ae?.code!="approved"&&Y.code!=="mark_as_paid"?ae:Y,he=e.transactionDetails?.vendor?.name,P=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},yn={onOkClick:()=>{V(!1),M.primaryButtonText===n.delete?Xt?.(e.isRecurring):M.title===n.cancelBillTitle?Me?.(e.isRecurring):M.title===n.cancelAndDeleteBillTitle||M.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):M.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{V(!1),de(!1)}},hn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},bn=()=>{const[r]=ga("ZeniAssist");return r!=null?t.jsx(xa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),z.trackZeniAssistClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const 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}})??[],gn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,c={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),xn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,fn=c.paymentToBankAccount?.bankAccountNumber?c.paymentToBankAccount?.bankAccountNumber?.slice(c.paymentToBankAccount?.bankAccountNumber?.length-4):c.paymentType?.method?.includes("international")&&c.paymentToBankAccount?.bankAccountIban?c.paymentToBankAccount?.bankAccountIban?.slice(c.paymentToBankAccount?.bankAccountIban.length-4):"",wn=c.paymentToBankAccount?.bankAccountName!=null&&c.paymentToBankAccount?.bankAccountName!=""?c.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${c.paymentToBankAccount?.bankName} XXXX${fn}`,Tn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),le=e.transactionDetails?.billPayInfo!=null?Da(e.transactionDetails?.billPayInfo):void 0,vn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ia(ja(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,nt=dt(c?.paymentType?.method??"").replace("Same Day",""),Dn=(c?.paymentToBankAccount!=null||c?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(En,{paymentTypeLabel:nt,onClick:()=>Ge(!0),style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,xe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),fe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",jn=Zt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(fe||we)&&In===!1,Te=fe||we,$n=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,An=!$n&&(!et||D?.code==="processing"&&!P),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),H=$a(e.transactionDetails?.bulkProcessingDetail?.type),O=Aa(e.paymentMethodType?.method),kn=!H&&(E!=="processing"&&it||E==="processing"&&!P||E==="processing"&<||x&&O&&Pe),rt=()=>{Xe(!0),z.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Sn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?_n(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,c.paymentDate):void 0,st=()=>{Ve("approved"),Ke===!0&&J(!1),_!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ja,{windowSize:l,ref:ct,children:[t.jsx(Kn,{anchor:"right",open:pn,onClose:qe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Wn,{companyName:Zn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:c.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:qe})}),t.jsxs(ni,{ref:dn.current,windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Oe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Fe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:Re?"visible":"hidden"},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:C,"data-testid":b("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),G(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Fe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:Re?"visible":"hidden"},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(ai,{windowSize:l,children:[Ke?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,mn?t.jsx(Pa,{onCancel:()=>{qt(),Xe(!1),Ye&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Ht(!0,Ye,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||ce?t.jsx(yt,{titleComponent:t.jsx(bt,{children:M.title}),descriptionComponent:t.jsx(ht,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:yn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oa(l,e):null}):null,an?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:hn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(li,{windowSize:l,children:[l!=="small"?t.jsxs(oi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,W&&L!=null&&L.code==="deleted"||L?.value===Ce.tabsById.overdue?t.jsx(di,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Un,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Vn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ka(H,e,_),t.jsx(Gn,{sectionId:Xn,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),c.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:ie.memo??S,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(ii,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Cn=>Cn.id===r.lineId)?.recipientAmount;return t.jsxs(Qa,{children:[be.length>1?t.jsx(ei,{windowSize:l,children:t.jsx(ti,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:B!=null?Se("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:r.billable!=null?xn(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(ri,{windowSize:l,children:[t.jsx(si,{children:n.total}),t.jsx(ci,{children:ge!=null?t.jsx(Yn,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?Et.addMoney:_})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:c.paymentType?.method!=null&&c.paymentType.method.includes(ka)&&Wt&&c.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:Hn(c.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_a(e.outsideZeniPaymentInfo):dt(c.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:c.paymentToBankAccount!=null?wn:c.paymentToPI!=null?c.paymentToPI.displayText:Tn,style:{width:"auto"},showEyeIcon:c.paymentToBankAccount!=null&&!!c.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||c.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=c?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?ha(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${c?.paymentToBankAccount?.bankRoutingNumberAch}, ${c?.paymentToBankAccount?.bankName}
|
|
2
2
|
${De.achDetails.bankAccountNumber} ${c?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`})(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),c?.paymentToBankAccount==null&&c?.paymentToPI==null&&c?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ba,{paymentType:c?.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:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:Jn(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:qn(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(yi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(Qn,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ea,{amount:gn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Yt,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:_t,signedInUserId:re?.userId,showRealTimeApproval:Kt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:Qt},historicActivities:e.billHistory.activities}),t.jsx(pi,{})]}),e.transactionDetails?.vendor==null||ye||e.transactionDetails.isDeleted?null:t.jsx(ta,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:Z||x,showCancel:!Z&&x,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ue==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{Ve("rejected"),_!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ea(Z,ot),isLoading:Ue==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Z?rt:()=>{_!=null?J(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:Z?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ua,{children:t.jsxs(qa,{windowSize:l,children:[!H&&Ee?t.jsx(xt,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(K,{onClick:()=>{te({title:P?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:P?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E!=="processing"||P?null:t.jsx(K,{onClick:()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}),E==="processing"&<?t.jsx(K,{onClick:()=>{te({title:P?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:P?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&O&&Pe?t.jsx(K,{onClick:()=>{He(!0),rt()},"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(xt,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[fe?t.jsx(K,{onClick:()=>{z.trackRetryClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(K,{onClick:()=>{z.trackRefundClick(D?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ha,{windowSize:l,children:[jn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:xe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(bn,{}):t.jsx(Ga,{})})}):null,H||xe!==!0?null:t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Na,placement:"top",children:t.jsx(Ya,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Xa,{})})}),!H&&An===!0&&kn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ma,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:xe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Va,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}})]}),f?t.jsx(va,{id:v,children:t.jsx(na,{isDrawerOpen:on,allowComposer:!0,drawerTitle:La,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:C,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:It.resolveComment,threadUnResolve:It.unResolveComment},threadMetadata:Sn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>G(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Oe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Fa=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:N.deleted.color,bgColor:N.deleted.bgColor,borderColor:N.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(Sa(),"date")===!0?{value:Ce.tabsById.overdue,color:N.overdue.color,bgColor:N.overdue.bgColor,borderColor:N.overdue.borderColor}:{value:e.name,color:N[x].color,bgColor:N[x].bgColor,borderColor:N[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(hi,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Lt(g.withdrawFrom,e):d})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:x!=null?Se("0,0[.]00",x):S})]})]})},Ea=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,_a=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const W=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${x} ${za} ${W}`},Ka=(e,g,x)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(x!=null){const W=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",W)}`,description:x.replace("Low balance! ","")})}return null},Wa=i.div``,Za=i.div``,Ua=i.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-DJ-oF9-h.js";import{a as f}from"./sentry-Bsfq8iFp.js";import{j,h as U,i as B,u as v,N as $,k as T,l as O,R as N,m as h}from"./core-tQbf9q8c.js";import{cs as F,Km as A,K2 as b,t8 as I,t2 as L,t6 as w,sX as K,K4 as W,s_ as X,ta as q,t9 as E}from"./zeni-epic-state-CjVTQ4J3.js";import{y as k,je as P,jC as V,jX as z,l9 as G,k3 as _,la as H}from"./index-BVjkKCLf.js";import"./mui-Bjwhey0L.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-C0xqudkd.js";import M from"./NotFoundScreen-OFT7uJSm.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]="09fef146-27f5-4d6b-bb16-a0475c54bbd1",e._sentryDebugIdIdentifier="sentry-dbid-09fef146-27f5-4d6b-bb16-a0475c54bbd1")}catch{}})();const R="bill-approval-rule-update",Q=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"))}}})(z(G)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=f.useState(!1),[u,s]=f.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>F(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(f.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),f.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(L(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");f.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const y={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($,{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(Q,{currentTenant:c,location:o,navigate:e,...y})},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(y=>{const i=y.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=y.actors.selectedNonUsers.map(S=>{const C=!!J(S.value);return{type:C?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!C}}),m=i.concat(x);g.push({action:y.stepType.selectedOption,actors:m,operator:m.length>1?y.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(E(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(E(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(q())},onSaveRuleSuccess:()=>{t("../")}}})(H);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=O(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=f.useState(!1);if(f.useEffect(()=>{n||(c(!0),o(X(!0)))}),f.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(N,{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{b as F,u as U,J as M,O as _,T as W,a7 as G,a0 as J,b$ as X,V as o,a_ as H,A as K,a9 as Q,o as d,fo as Y}from"./index-
|
|
1
|
+
import{b as F,u as U,J as M,O as _,T as W,a7 as G,a0 as J,b$ as X,V as o,a_ as H,A as K,a9 as Q,o as d,fo as Y}from"./index-BVjkKCLf.js";import{a as $}from"./sentry-Bsfq8iFp.js";import{n as h}from"./mui-Bjwhey0L.js";import{b as Z,f as ee,o as L,l as T}from"./FollowStepsSection-CTSjTKjT-CfO_mWmk.js";import"./pdf-DJ-oF9-h.js";import"./zeni-epic-state-CjVTQ4J3.js";import"./core-tQbf9q8c.js";import"./lottie-C1jDoN6L.js";import"./liveblocks-ClmZMiZG.js";import"./recharts-DxWcXnAv.js";import"./dnd-C4z4yHh0.js";import"./analytics-BwviiuqB.js";import"./plaid-CFQSLZ5I.js";import"./utils-BxRS7J8i.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="1e018e00-6058-44c6-8e1b-446e99825ad4",e._sentryDebugIdIdentifier="sentry-dbid-1e018e00-6058-44c6-8e1b-446e99825ad4")}catch{}})();const R="billPayApprovalRuleDetailPage",C="lowerBound",k="upperBound",I="steps",b="applyToExistingBills",le={footerPadding:new F(U[2],U[2])};function Se({localData:e,approvalUpdateActionType:l,onBackClick:a,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=ae(e,l==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.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 $.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=J(m);X(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&w()},[B,u?.fetchState,w]),o.jsxs(se,{children:[o.jsx(H,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j(R),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(R),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="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:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,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),L(e.allAttributes),L(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[k]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:T},actors:{allUsers:l,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(a,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),oe=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.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{J as W,O as S,V as o,a_ as E,f as G,a6 as b,b as l,s as M,o as i,a4 as z,bg as P,bK as V,bL as q,bM as O,ch as F,u as r,at as J,H as k,as as K,e as j,cg as Q,aR as X,j as Y}from"./index-
|
|
1
|
+
import{J as W,O as S,V as o,a_ as E,f as G,a6 as b,b as l,s as M,o as i,a4 as z,bg as P,bK as V,bL as q,bM as O,ch as F,u as r,at as J,H as k,as as K,e as j,cg as Q,aR as X,j as Y}from"./index-BVjkKCLf.js";import{n as t}from"./mui-Bjwhey0L.js";import{a as Z}from"./sentry-Bsfq8iFp.js";import"./pdf-DJ-oF9-h.js";import"./zeni-epic-state-CjVTQ4J3.js";import"./core-tQbf9q8c.js";import"./lottie-C1jDoN6L.js";import"./liveblocks-ClmZMiZG.js";import"./recharts-DxWcXnAv.js";import"./dnd-C4z4yHh0.js";import"./analytics-BwviiuqB.js";import"./plaid-CFQSLZ5I.js";import"./utils-BxRS7J8i.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]="da7e85b8-e7c8-4392-929f-0bcbec5c2946",e._sentryDebugIdIdentifier="sentry-dbid-da7e85b8-e7c8-4392-929f-0bcbec5c2946")}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 k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:x=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:g}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(g)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:x,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(T,{}),o.jsx(le,{}),o.jsx(T,{})]}),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(g)},"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,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,_)=>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}_${_}`)),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))]},H))})}),v?o.jsx(V,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(q,{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-DQJAZi1a-nMEmkS30.js → BillPayPromoPage-DQJAZi1a-BdT-embc.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as H,J as f,a7 as Q,V as e,eO as Y,a_ as ee,i as C,a6 as B,F as m,O as M,o,I as ie,bX as oe,y as I,ab as U,W as se,b as le,e as $,bG as re,ac as te,au as ne,u as ae}from"./index-
|
|
1
|
+
import{t as H,J as f,a7 as Q,V as e,eO as Y,a_ as ee,i as C,a6 as B,F as m,O as M,o,I as ie,bX as oe,y as I,ab as U,W as se,b as le,e as $,bG as re,ac as te,au as ne,u as ae}from"./index-BVjkKCLf.js";import{a as g}from"./sentry-Bsfq8iFp.js";import{n as s}from"./mui-Bjwhey0L.js";import{Fa as de,bK as ce,Fb as pe}from"./zeni-epic-state-CjVTQ4J3.js";import{C as me}from"./VideoPopup-B03SM83j-Bz8522QR.js";import{M as b}from"./usp-line-BBd1wKwW-Ce0bTbAT.js";import"./pdf-DJ-oF9-h.js";import"./core-tQbf9q8c.js";import"./lottie-C1jDoN6L.js";import"./liveblocks-ClmZMiZG.js";import"./recharts-DxWcXnAv.js";import"./dnd-C4z4yHh0.js";import"./analytics-BwviiuqB.js";import"./plaid-CFQSLZ5I.js";import"./utils-BxRS7J8i.js";import"./VideoPlayer-BuOlZW0M-SyXdcn2w.js";import"./media-player-CixAJJd1.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]="33100dd8-ea70-43cf-991c-febf1a2ec454",i._sentryDebugIdIdentifier="sentry-dbid-33100dd8-ea70-43cf-991c-febf1a2ec454")}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(ae[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-rNAmIEF5.js";import{j as Y,i as se,h as W,l as ee,u as k,N as Q,k as q,g as zt,R as Zt,m as y}from"./core-CSCSHf4h.js";import{cs as O,JE as Ve,bt as rt,CI as Ht,bn as ct,Fa as de,JF as dt,ss as ut,tC as Pe,s$ as Kt,bm as Ae,JG as Jt,JH as Wt,bE as qt,JI as Xt,JJ as pt,JK as mt,uc as $e,sH as we,JL as Qt,sg as Ke,JM as Yt,xp as ea,sk as ta,sq as ht,JN as Be,JO as Ue,JP as aa,JQ as na,tG as _e,JR as ia,tD as bt,tT as oa,JS as gt,tn as Je,ts as la,JT as sa,JU as ce,JV as St,JW as yt,JX as ft,dn as ra,sM as Fe,Fb as It,JY as ca,ef as da,JZ as ua,J_ as pa,cz as vt,cx as kt,J$ as Le,K0 as ma,K1 as ha,Hm as Ge,K2 as ba,Hn as ne,Ho as Me,K3 as ga,K4 as Sa,K5 as ya,tu as We,tr as fa,K6 as Ia,K7 as va,K8 as ka,td as wa,K9 as Ba,Ka as Ca,Kb as xa,Ek as wt,bM as Bt,gV as Aa,bW as Ea,bs as Ct,F9 as xt,rR as Da,Kc as Ta,xc as ja,xi as Pa,os as Fa,tE as Ra,uj as Va,h6 as Se,Kd as $a,Ke as At,hz as Ua,h0 as Et,hl as Dt,hk as qe,bG as pe,bX as _a,Kf as La,Kg as ye,fH as Ga,Kh as Xe,Ki as Ma,fL as Na,g4 as Oa,ux as za,Kj as Za,ht as Ha,un as Ka,Kk as Qe,ur as Ja,uw as Wa,ut as qa,ul as Xa,Kl as Tt,sB as Qa,Km as Ya,Kn as en,di as tn,dh as an,dg as nn,h9 as on,hr as Ye,hB as ln,l_ as sn,hi as rn,up as cn,fR as dn,hG as un,Ko as pn,fJ as mn,lR as hn,Kp as bn,tj as gn,Fk as Sn,Ej as yn,Gp as fn,bO as In,bN as vn,bK as kn,bL as wn}from"./zeni-epic-state-B_a_iTrR.js";import{y as ie,je as V,t as fe,aE as oe,aG as g,aF as Ce,jC as X,o as w,bc as Ee,jl as T,kP as Bn,jy as Z,jT as Ne,jA as D,J as Ie,w as jt,k8 as Cn,O as Oe,jF as De,e as Pt,ks as xn,b as Ft,kg as Rt,kQ as An,jR as En,G as Vt,jX as Dn,kR as Tn,kS as jn,kT as Pn,kU as Fn,kV as Rn,kW as Vn,kX as $n,kY as Un,kL as _n,kZ as Ln,k_ as Gn,jZ as Mn}from"./index-DDbdy58V.js";import{n as $,S as Nn}from"./mui-CVWe5m7x.js";import{A as et}from"./AddressScreen-DDbvTrW2.js";import{g as le,a as Te,i as $t,V as ze,b as Ze,c as On,v as zn,d as Zn,A as me,D as he}from"./DomesticWireDetailScreen-CDquLvw_.js";import{a as I}from"./sentry-DXG8OAzW.js";import{u as Ut}from"./useInitialThreadRequest-B_AZH90H.js";import xe from"./NotFoundScreen-DykxXNVn.js";import{S as Hn}from"./zeni-icon-only-CqALPKNP.js";import{D as Kn}from"./DrawerScreen-C-gJlwdg.js";import{M as _t}from"./MobileAppDrawer-D_OmB8VL.js";import{F as Lt}from"./FeaturePreviewScreen-CLKJ2QAB.js";import{S as je}from"./SetupPagesScreen-n_J03kZN.js";import{B as Jn}from"./BillPayApprovalRoutes-D2WhMQ-d.js";import{FallBackRoute as Wn}from"./ScreenRoutes-Ddt_3qWB.js";import"./lottie-BQDwpIDJ.js";import"./liveblocks-CxtxQte5.js";import"./recharts-C5pBg015.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./plaid-CiVnbkxs.js";import"./utils-CEFC9M68.js";import"./analyticsHelper-LPY3WkeX.js";import"./routePaths-fz0y1bUD.js";import"./BusinessVerificationPageScreen-Cmz7lCYf.js";import"./ReimbursementApprovalRuleDetailScreen-D1GmaX--.js";import"./getLocaleForTenant-CjEkOXZy.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]="0eaec19d-189e-450d-a3bd-4c0859847e53",e._sentryDebugIdIdentifier="sentry-dbid-0eaec19d-189e-450d-a3bd-4c0859847e53")}catch{}})();const qn=q(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=Ae(o);n||!i.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(i?.billActivities.length>0){const{isApprovalorRejectBtnVisible:S,isMarkAsPaidBtnVisible:b}=Jt(i.billActivities,Wt(t.currentTenant),o);d=S,p=b}const m=qt(t.currentTenant?.userRole??[]),h=i.transactionDetails!=null&&Xt(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:h,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=D(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}})},discardBillDetailsFromLocalStore:()=>{e(Be({}))},deleteBill:l=>{T.trackBillPayDeleteBill(i,l),e(ht(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(Yt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(Ke(i,l.type,"")):e(Ke(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=D(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=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Qt({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 Xn(){const e=Y(),t=se(),i=W(),{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=Ut(l?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),p=l?.userRole!=null&&rt(l?.userRole),m=l?.company==null||l.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p,[h,S]=I.useState(!1),[b,f]=I.useState(!1),[A,E]=I.useState(!1),{useFeatureGate:v,useDynamicConfig:_}=oe(),{isFeatureEnabled:F}=v(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=v(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=v(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=_(Ce.zeniAssistConfig),H=Ht(l),x=ct(l.userRole),z=m&&de(u?.loggedInUserRoleMap),L=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:K}=v(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:J}=v(g.billPaySetupShowInternationalPaymentByWise);if(I.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&H===!1?E(!1):E(s.billActivities[0]?.isRealTimeApprovalEnabled&&(x||z||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,x,z,l.isZeni,H,r]),I.useEffect(()=>{o!=null&&t(dt(o))},[o]),I.useEffect(()=>{h||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,L,!1)))},[h,s,o,t]),I.useEffect(()=>{b||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,L,J,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Kt()))},[b,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(Q,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(X,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(Ee,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(qn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:A,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:K,hasZeniAssistAccess:L,isDetectInsufficientFundsEnabled:R})]})}const be=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Qn={containerWidth:new Ft(100,58)},Yn=q(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(_e(o,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:o=>{e(oa({fetchState:{fetchState:o,error:void 0},billId:t.billId}))},onSkipAutofill:o=>{T?.trackBillPaySkipAutofill(),e(bt(o))},onDeleteClick:()=>{e(ia({billId:t.billId})),T?.trackInvoiceActionClick(t.billStage??"","delete",i?.userEmail??"",null)}}})(xn);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=W().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=Ie(),u=jt(),l=V.getSignedInUser(),s=ie(),{useFeatureGate:n,useDynamicConfig:d}=oe(),{isFeatureEnabled:p}=n(g.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:m}=n(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:h}=n(g.isDepositAccountsFeatureEnabled),{isFeatureEnabled:S}=n(g.billPaySetupShowInternationalPaymentByWise),{configValue:b}=d(Ce.zeniAssistConfig),f=b.user_ids!=null&&l?.userId!=null&&b.user_ids.includes(l?.userId),A=k(U=>O(U)).companyName,[E,v]=I.useState(!1),[_,F]=I.useState(!1),[G,R]=I.useState(!1),[B,H]=I.useState(),x=k(U=>Ue(U,p,h,i));let z=x.fetchState,L=x.file,K=x.showAutofill;const J=k(U=>Ve(U,i??""));c===!1&&(z=J.fetchState,L=J.transactionDetails?.attachments?.[0],K=!1);const M=()=>{u.toggle()},te=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;I.useEffect(()=>{z==="Not-Started"&&(c&&_?F(!1):!c&&E&&v(!1))},[i]),I.useEffect(()=>{E||i==null||c||(v(!0),t(ut(i,m,f,!1)),_||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!_&&(F(!0),t(Pe(!1,m,f,S,i)))},[E,_,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(_e(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(z==="Error"||J.fetchState==="Error")return a.jsx(xe,{});if(z!="Completed")return a.jsx(X,{fetchState:z,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const U=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;return a.jsxs(di,{windowSize:r,children:[G?a.jsx(Cn,{titleComponent:a.jsx(pi,{children:be.overwriteTitle}),descriptionComponent:a.jsx(mi,{children:be.overwriteDescription}),primaryButtonText:be.buttons.yes,secondaryButtonText:be.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:K}),a.jsx(oi,{showAutofill:K,children:A})]})]}):null,a.jsx(Yn,{billId:i,file:L,showAutofill:K,uploadStatus:x.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,J,x),setShowConfirmationPopup:R,setPayload:H,showActionButtons:ti(c,x),isInitialEdit:!!x.isInitialEdit,billStage:U}),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:`${be.recurringBill.recurringCycle}
|
|
1
|
+
import{j as a}from"./pdf-DJ-oF9-h.js";import{j as Y,i as se,h as W,l as ee,u as k,N as Q,k as q,g as zt,R as Zt,m as y}from"./core-tQbf9q8c.js";import{cs as O,JE as Ve,bt as rt,CI as Ht,bn as ct,Fa as de,JF as dt,ss as ut,tC as Pe,s$ as Kt,bm as Ae,JG as Jt,JH as Wt,bE as qt,JI as Xt,JJ as pt,JK as mt,uc as $e,sH as we,JL as Qt,sg as Ke,JM as Yt,xp as ea,sk as ta,sq as ht,JN as Be,JO as Ue,JP as aa,JQ as na,tG as _e,JR as ia,tD as bt,tT as oa,JS as gt,tn as Je,ts as la,JT as sa,JU as ce,JV as St,JW as yt,JX as ft,dn as ra,sM as Fe,Fb as It,JY as ca,ef as da,JZ as ua,J_ as pa,cz as vt,cx as kt,J$ as Le,K0 as ma,K1 as ha,Hm as Ge,K2 as ba,Hn as ne,Ho as Me,K3 as ga,K4 as Sa,K5 as ya,tu as We,tr as fa,K6 as Ia,K7 as va,K8 as ka,td as wa,K9 as Ba,Ka as Ca,Kb as xa,Ek as wt,bM as Bt,gV as Aa,bW as Ea,bs as Ct,F9 as xt,rR as Da,Kc as Ta,xc as ja,xi as Pa,os as Fa,tE as Ra,uj as Va,h6 as Se,Kd as $a,Ke as At,hz as Ua,h0 as Et,hl as Dt,hk as qe,bG as pe,bX as _a,Kf as La,Kg as ye,fH as Ga,Kh as Xe,Ki as Ma,fL as Na,g4 as Oa,ux as za,Kj as Za,ht as Ha,un as Ka,Kk as Qe,ur as Ja,uw as Wa,ut as qa,ul as Xa,Kl as Tt,sB as Qa,Km as Ya,Kn as en,di as tn,dh as an,dg as nn,h9 as on,hr as Ye,hB as ln,l_ as sn,hi as rn,up as cn,fR as dn,hG as un,Ko as pn,fJ as mn,lR as hn,Kp as bn,tj as gn,Fk as Sn,Ej as yn,Gp as fn,bO as In,bN as vn,bK as kn,bL as wn}from"./zeni-epic-state-CjVTQ4J3.js";import{y as ie,je as V,t as fe,aE as oe,aG as g,aF as Ce,jC as X,o as w,bc as Ee,jl as T,kP as Bn,jy as Z,jT as Ne,jA as D,J as Ie,w as jt,k8 as Cn,O as Oe,jF as De,e as Pt,ks as xn,b as Ft,kg as Rt,kQ as An,jR as En,G as Vt,jX as Dn,kR as Tn,kS as jn,kT as Pn,kU as Fn,kV as Rn,kW as Vn,kX as $n,kY as Un,kL as _n,kZ as Ln,k_ as Gn,jZ as Mn}from"./index-BVjkKCLf.js";import{n as $,S as Nn}from"./mui-Bjwhey0L.js";import{A as et}from"./AddressScreen-BGSyJ4PZ.js";import{g as le,a as Te,i as $t,V as ze,b as Ze,c as On,v as zn,d as Zn,A as me,D as he}from"./DomesticWireDetailScreen-C2_h3QsH.js";import{a as I}from"./sentry-Bsfq8iFp.js";import{u as Ut}from"./useInitialThreadRequest-BFyDtASP.js";import xe from"./NotFoundScreen-OFT7uJSm.js";import{S as Hn}from"./zeni-icon-only-CYgNDWlk.js";import{D as Kn}from"./DrawerScreen-CCgZ71G-.js";import{M as _t}from"./MobileAppDrawer-C0MjRK8u.js";import{F as Lt}from"./FeaturePreviewScreen-mO_J_upF.js";import{S as je}from"./SetupPagesScreen-DwKZajDO.js";import{B as Jn}from"./BillPayApprovalRoutes-BHVZ8537.js";import{FallBackRoute as Wn}from"./ScreenRoutes-cViWFW2H.js";import"./lottie-C1jDoN6L.js";import"./liveblocks-ClmZMiZG.js";import"./recharts-DxWcXnAv.js";import"./dnd-C4z4yHh0.js";import"./analytics-BwviiuqB.js";import"./plaid-CFQSLZ5I.js";import"./utils-BxRS7J8i.js";import"./analyticsHelper-cKb29Ct6.js";import"./routePaths-nQF_3DXR.js";import"./BusinessVerificationPageScreen-pyooLZWt.js";import"./ReimbursementApprovalRuleDetailScreen-C0xqudkd.js";import"./getLocaleForTenant-x-_ZsHih.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]="0eaec19d-189e-450d-a3bd-4c0859847e53",e._sentryDebugIdIdentifier="sentry-dbid-0eaec19d-189e-450d-a3bd-4c0859847e53")}catch{}})();const qn=q(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=Ae(o);n||!i.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(i?.billActivities.length>0){const{isApprovalorRejectBtnVisible:S,isMarkAsPaidBtnVisible:b}=Jt(i.billActivities,Wt(t.currentTenant),o);d=S,p=b}const m=qt(t.currentTenant?.userRole??[]),h=i.transactionDetails!=null&&Xt(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:h,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=D(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}})},discardBillDetailsFromLocalStore:()=>{e(Be({}))},deleteBill:l=>{T.trackBillPayDeleteBill(i,l),e(ht(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(Yt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(Ke(i,l.type,"")):e(Ke(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=D(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=D(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Qt({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 Xn(){const e=Y(),t=se(),i=W(),{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=Ut(l?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),p=l?.userRole!=null&&rt(l?.userRole),m=l?.company==null||l.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p,[h,S]=I.useState(!1),[b,f]=I.useState(!1),[A,E]=I.useState(!1),{useFeatureGate:v,useDynamicConfig:_}=oe(),{isFeatureEnabled:F}=v(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=v(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=v(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=_(Ce.zeniAssistConfig),H=Ht(l),x=ct(l.userRole),z=m&&de(u?.loggedInUserRoleMap),L=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:K}=v(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:J}=v(g.billPaySetupShowInternationalPaymentByWise);if(I.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&H===!1?E(!1):E(s.billActivities[0]?.isRealTimeApprovalEnabled&&(x||z||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,x,z,l.isZeni,H,r]),I.useEffect(()=>{o!=null&&t(dt(o))},[o]),I.useEffect(()=>{h||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,L,!1)))},[h,s,o,t]),I.useEffect(()=>{b||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,L,J,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Kt()))},[b,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(Q,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(X,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(Ee,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(qn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:A,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:K,hasZeniAssistAccess:L,isDetectInsufficientFundsEnabled:R})]})}const be=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Qn={containerWidth:new Ft(100,58)},Yn=q(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(_e(o,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:o=>{e(oa({fetchState:{fetchState:o,error:void 0},billId:t.billId}))},onSkipAutofill:o=>{T?.trackBillPaySkipAutofill(),e(bt(o))},onDeleteClick:()=>{e(ia({billId:t.billId})),T?.trackInvoiceActionClick(t.billStage??"","delete",i?.userEmail??"",null)}}})(xn);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=W().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=Ie(),u=jt(),l=V.getSignedInUser(),s=ie(),{useFeatureGate:n,useDynamicConfig:d}=oe(),{isFeatureEnabled:p}=n(g.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:m}=n(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:h}=n(g.isDepositAccountsFeatureEnabled),{isFeatureEnabled:S}=n(g.billPaySetupShowInternationalPaymentByWise),{configValue:b}=d(Ce.zeniAssistConfig),f=b.user_ids!=null&&l?.userId!=null&&b.user_ids.includes(l?.userId),A=k(U=>O(U)).companyName,[E,v]=I.useState(!1),[_,F]=I.useState(!1),[G,R]=I.useState(!1),[B,H]=I.useState(),x=k(U=>Ue(U,p,h,i));let z=x.fetchState,L=x.file,K=x.showAutofill;const J=k(U=>Ve(U,i??""));c===!1&&(z=J.fetchState,L=J.transactionDetails?.attachments?.[0],K=!1);const M=()=>{u.toggle()},te=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;I.useEffect(()=>{z==="Not-Started"&&(c&&_?F(!1):!c&&E&&v(!1))},[i]),I.useEffect(()=>{E||i==null||c||(v(!0),t(ut(i,m,f,!1)),_||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!_&&(F(!0),t(Pe(!1,m,f,S,i)))},[E,_,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(_e(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const U=L!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",U,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(z==="Error"||J.fetchState==="Error")return a.jsx(xe,{});if(z!="Completed")return a.jsx(X,{fetchState:z,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const U=x.billPayInfo!=null&&x.billPayInfo.stage.code==="pending_approval"?x.billPayInfo.billStatus.code:x.billStage;return a.jsxs(di,{windowSize:r,children:[G?a.jsx(Cn,{titleComponent:a.jsx(pi,{children:be.overwriteTitle}),descriptionComponent:a.jsx(mi,{children:be.overwriteDescription}),primaryButtonText:be.buttons.yes,secondaryButtonText:be.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:K}),a.jsx(oi,{showAutofill:K,children:A})]})]}):null,a.jsx(Yn,{billId:i,file:L,showAutofill:K,uploadStatus:x.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,J,x),setShowConfirmationPopup:R,setPayload:H,showActionButtons:ti(c,x),isInitialEdit:!!x.isInitialEdit,billStage:U}),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:`${be.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-BVOLWF1M-BteYr6zk.js → BillPaySetUpPage-BVOLWF1M-B3PsvONS.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as Oe,J as Ue,a7 as V,T as Re,b$ as $e,O as ze,ad as Z,V as t,ew as He,e as Le,a6 as qe,b as u,a_ as Ne,f as Me,A as Je,eP as R,d3 as Qe,eQ as Ge,aU as Ke,cW as Xe,bg as Ye,eR as Ze,a9 as et,o as z,eS as tt,u as o,s as it,b6 as nt}from"./index-
|
|
1
|
+
import{y as Oe,J as Ue,a7 as V,T as Re,b$ as $e,O as ze,ad as Z,V as t,ew as He,e as Le,a6 as qe,b as u,a_ as Ne,f as Me,A as Je,eP as R,d3 as Qe,eQ as Ge,aU as Ke,cW as Xe,bg as Ye,eR as Ze,a9 as et,o as z,eS as tt,u as o,s as it,b6 as nt}from"./index-BVjkKCLf.js";import{a as m}from"./sentry-Bsfq8iFp.js";import{n as b}from"./mui-Bjwhey0L.js";import{ca as ot}from"./zeni-epic-state-CjVTQ4J3.js";import{g as at}from"./UploadAdditionalDocumentOverlay-CJmvE3y6-OjNfOtyQ.js";import"./pdf-DJ-oF9-h.js";import"./core-tQbf9q8c.js";import"./lottie-C1jDoN6L.js";import"./liveblocks-ClmZMiZG.js";import"./recharts-DxWcXnAv.js";import"./dnd-C4z4yHh0.js";import"./analytics-BwviiuqB.js";import"./plaid-CFQSLZ5I.js";import"./utils-BxRS7J8i.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]="754a934f-214d-47ee-9eea-bbacc571b8f3",e._sentryDebugIdIdentifier="sentry-dbid-754a934f-214d-47ee-9eea-bbacc571b8f3")}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:y,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:be,onEnableBillPayClick:ye,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,W=E.link_account.updateStatus,_=E.update_account.updateStatus,j=V(f),M=V(w.fetchState),J=V(W.fetchState),Q=V(_.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"&&W.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&P.reset($(e))},[j,f,P,e,J,W.fetchState,Q,_.fetchState]);const Ve=P.handleSubmit(G=>{y.trackEnableBillPay(),ye()});m.useEffect(()=>{const G=P.watch((K,{name:X})=>{X!=null&&K!=null&&$e(()=>(async(Y,De)=>{const c=De[F];if(Y.includes(F)){if(Y.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"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),ge(c.account.selectedOption,d.id,d.accType)}}})(X,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,We=D?r.setupVerifiedSubTitle:a.setupSubTitle,_e=f==="In-Progress"||f==="Not-Started"||N==="In-Progress"||N==="Not-Started",B=C.mode==="light"?new Z(C.colors.brandColorJadeLight):new Z(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:We}),_e?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(Qe,{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:be,onEstablishConnectionSuccess:fe,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,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(Xe,{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(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(oe),we?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ye,{title:h.code==="verification_pending"?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:y,productType:"bill_pay"})]})},lt=b.div``,ct=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as Ce,J as Pe,T as xe,b$ as Ie,ad as k,O as Ae,V as t,b as C,a_ as ve,f as je,A as ke,aU as $e,c0 as Te,a9 as Be,o as a,gY as De,ei as Ve,ej as Ee,u as P,s as ze,g7 as Le,e as Oe,H as _e}from"./index-
|
|
1
|
+
import{y as Ce,J as Pe,T as xe,b$ as Ie,ad as k,O as Ae,V as t,b as C,a_ as ve,f as je,A as ke,aU as $e,c0 as Te,a9 as Be,o as a,gY as De,ei as Ve,ej as Ee,u as P,s as ze,g7 as Le,e as Oe,H as _e}from"./index-BVjkKCLf.js";import{a as W}from"./sentry-Bsfq8iFp.js";import{n as r}from"./mui-Bjwhey0L.js";import{M as Me,o as F,t as He}from"./PaymentAccountSetupBillingAddressSection-CqavirRU-DY_xWf64.js";import{F as Re}from"./SetUpAccountSection-ULABF-Md-6cmPJvyE.js";import"./pdf-DJ-oF9-h.js";import"./zeni-epic-state-CjVTQ4J3.js";import"./core-tQbf9q8c.js";import"./lottie-C1jDoN6L.js";import"./liveblocks-ClmZMiZG.js";import"./recharts-DxWcXnAv.js";import"./dnd-C4z4yHh0.js";import"./analytics-BwviiuqB.js";import"./plaid-CFQSLZ5I.js";import"./utils-BxRS7J8i.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-lunwFIdl-DX_CuL_U.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]="8d594abb-c13e-467f-8596-692815908281",e._sentryDebugIdIdentifier="sentry-dbid-8d594abb-c13e-467f-8596-692815908281")}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])},Ue={title:new _e("standardSemiBold","largeSemiBold")},K="billingSetupPage",x="payAccountSectionId",n="subscriptionBillingAddressSectionId",gt=({analytics:e,billingSetupView:i,connectedAccountProvider:p,isDisabled:d,onClickMenuIcon:I,uiState:q,stripeKey:G,googleAPIKey:Y,companyId:Q,onUpdateAccountClick:X,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleAddCardPaymentSource:se,resetCardPaymentViewState:re,handleResetCardPaymentErrorStatuses:de,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const f=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(H=>{le(Q)}),D=i.subscriptionBillingAddressSaveStatus;W.useEffect(()=>{const H=g.watch((R,{name:U})=>{U!=null&&R!=null&&Ie(()=>(async(b,s)=>{const A=s[x];if(b.includes(n)&&s[n]!=null){const v=g.getValues(`${n}`).country;let c=s[n];if(b.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 b===`${n}.country`&&v.selectedOption!=null&&(c={...c,countryCode:Ee(v.selectedOption)});c!=null&&ce(c)}else b.includes(x)&&A.account.selectedOption!=null&&h?.paymentAccountId!=null&&h.zeniAccountId!==A.account.selectedOption&&X(A.account.selectedOption,h.paymentAccountId)})(U,R))});return()=>{H.unsubscribe()}});const V=f.mode==="light"?new k(f.colors.brandColorJadeLight):new k(f.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:ye,card_payment_method:y}},common:l,billingSetupPage:E}=Ae.getLocalizedStrings(),Se=E.section.subTitle,{text:fe,subText:we}=ye,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,w=Me(y.header,y.titleText,y.protectedCardNo,m);let _;z&&(_={header:w.header,title:w.title,subtitle:w.subtitle,status:w.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:F(L).iconURL,width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o),alt:F(L).name}),color:new k(V)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,be]=W.useState(!1);return t.jsxs(Fe,{children:[t.jsx(ve,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:f.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:I}),t.jsxs(We,{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:J(K),onSubmit:ge,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Re,{connectedAccountProvider:p,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:fe,defaultSectionSubTitle:we,sectionId:x,isDisabled:d,onFetchLinkTokenClick:Z,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:re,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),qe(o,l.headers.billingAddress,me,Y,d)]})})})}),Te(g.formState.dirtyFields)?t.jsx(Be,{formId:J(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(He,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:m,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:de,stripeKey:G,cardSetupInProgress:M,setCardSetupInProgress:be})]})},N=e=>{const{paymentAccount:i,allBankAccounts:p}=e.setupView;return{[x]:{account:{selectedOption:i?.zeniAccountId,allOptions:p.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:De(n,e.subscriptionBillingAddress)[n]}},We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as b,bK as U,bL as L,bM as M,iH as V,ag as W,O as q}from"./index-
|
|
1
|
+
import{V as b,bK as U,bL as L,bM as M,iH as V,ag as W,O as q}from"./index-BVjkKCLf.js";import{a as g}from"./sentry-Bsfq8iFp.js";import{FY as z}from"./zeni-epic-state-CjVTQ4J3.js";import{u as H}from"./ReviewOverlay-Be_F1hd--DTVVFQpK.js";import"./pdf-DJ-oF9-h.js";import"./core-tQbf9q8c.js";import"./mui-Bjwhey0L.js";import"./recharts-DxWcXnAv.js";import"./lottie-C1jDoN6L.js";import"./liveblocks-ClmZMiZG.js";import"./dnd-C4z4yHh0.js";import"./analytics-BwviiuqB.js";import"./plaid-CFQSLZ5I.js";import"./utils-BxRS7J8i.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]="0c2a0128-b79c-4fec-af99-e1b2dd0a6528",e._sentryDebugIdIdentifier="sentry-dbid-0c2a0128-b79c-4fec-af99-e1b2dd0a6528")}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(T(e,u)),[d,k]=g.useState(u),[P,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===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(p=>p+1)},1e3)),P===n.length&&d&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,P,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,K(e)),o("reject",p)},onCancelClick:()=>{w(!1)}},{title:F,description:A}=G(m,h,R,d),B=e.fetchState==="Completed"&&h===0,N={label:B?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:B?c:()=>{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}=Y(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(M,{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(H,{title:F,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!d,footerProps:{primaryButton:N,cancelButton:$,hideCancel:B}})]})},T=(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:J(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??""}}))},K=e=>{const r=e.billsForReview;let o=[];return r.forEach(t=>{o=V([...o,t.isRecurring?"recurring":"one-time"])}),o},Y=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)}},G=(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}},J=(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,K as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as n,V as s,a6 as b,o as e}from"./index-
|
|
1
|
+
import{J as n,V as s,a6 as b,o as e}from"./index-BVjkKCLf.js";import{n as a}from"./mui-Bjwhey0L.js";import{o as l}from"./commonDimensions-RZ10geET-D7qPZRI_.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]="d0dc4c67-05a1-46cf-b274-94937c828fce",o._sentryDebugIdIdentifier="sentry-dbid-d0dc4c67-05a1-46cf-b274-94937c828fce")}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(c,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(u,{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,J as lt,a7 as Te,V as t,F as J,T as ct,cc as dt,z as pt,b$ as ut,ag as Ie,a5 as ke,fr as mt,i as ft,a_ as yt,a6 as ht,c0 as gt,bK as xt,bL as St,bM as wt,f as bt,A as Ct,a9 as vt,o as c,b as L,W as Le,O as _e,fs as Ot,eT as $e,ei as Dt,bX as Tt,a8 as It,s as Ae,H as kt,B as $t,u as k}from"./index-DDbdy58V.js";import{a as _}from"./sentry-DXG8OAzW.js";import{n as d}from"./mui-CVWe5m7x.js";import{El as Nt,bQ as K,ES as jt,ER as Pt,ET as Vt}from"./zeni-epic-state-B_a_iTrR.js";import{r as Ft,z as Lt}from"./CompanyOfficerDetailsSection-BNSHkrC4-ClzL1rA4.js";import"./pdf-rNAmIEF5.js";import"./core-CSCSHf4h.js";import"./lottie-BQDwpIDJ.js";import"./liveblocks-CxtxQte5.js";import"./recharts-C5pBg015.js";import"./dnd-COr1F31f.js";import"./analytics-DeMdmyL7.js";import"./plaid-CiVnbkxs.js";import"./utils-CEFC9M68.js";import"./helper-2Z01-P8G-6WuzcTRW.js";import"./LabeledAddressValueField-D3_DsNPu-DVmbiKLN.js";import"./LabeledCountryMultiSelectField-LeubJT8b-DKahjV4C.js";import"./LabeledCreatableSingleSelectField-CzrPLo-T-BnUMrxSH.js";import"./LabeledDocumentField-CFtFroDl-BAzH2vry.js";import"./LabeledNameField-DWKoivcI-Bg7Loxzf.js";import"./commonTypes-lunwFIdl-CvIuXwQA.js";import"./avatar-Dz7aEm3d-bHemC5rL.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]="1ce4cc39-1cc0-412a-af55-dca6d4c06272",e._sentryDebugIdIdentifier="sentry-dbid-1ce4cc39-1cc0-412a-af55-dca6d4c06272")}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",O="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:je,footer:Pe,strings:{empty:Bt}}}=_e.getLocalizedStrings(),Ta=({businessVerificationDetails:e,allNationalityCountries:b,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:C=!1,isTreasuryTransferInitiated:Q=!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 Je=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:v}=e,Ke=Te(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Qe=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(J,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(J,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(J,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(J,{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,b)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,j=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(`${D}.${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,P=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,V=r?.lastName,F=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?K(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,be=o?.website,Ce=o?.addressStatus?.addressToCreate!=null?K(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,ve=ne?.firstName,Oe=ne?.lastName,De=ne?.email;g!=null&&l!=null&&y!=null&&V!=null&&P!=null&&F!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&be!=null&&Se!=null&&se!=null&&Ce!=null&&ve!=null&&Oe!=null&&De!=null&&S?.trackBusinessVerificationSend({email:g,birthday:P.toString(),companyOwnership:l,firstName:y,lastName:V,companyRole:F,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:be.toString(),industry:Se,formattedAddress:Ce},{firstName:ve,lastName:Oe,email:De},h,s?"Settings":void 0)})(),Me?.(I),Q===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(O)?We?.(g[O]):r.includes(D)&&Xe?.(g[D])})(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(`${O}.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(`${O}.fileIds`).forEach(r=>{m.includes(r)||n.push(r)}),st?.forEach((r,g)=>{const P=r?.fileIds??[];u.getValues(`${D}.${g}.fileIds`).forEach(l=>{P.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(ke(f),f,je.currencySymbol).toUpperCase(),ie=j?.code==="pending_review"||j?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&j?.code==="pending_review"&&Ke==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:Q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:Q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(ke(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.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&&C===!0?Bt:i.header,backgroundColor:Je.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||C===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(bt,{size:"ExtraLarge",start:!0})}):t.jsx(Ct,{...u,children:t.jsxs("form",{id:Ve(Ne),onSubmit:at,children:[x&&C===!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(Jt,{children:t.jsxs(Kt,{children:[t.jsx(Fe,{}),ye&&t.jsx(Fe,{}),t.jsx(Qt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Ft,{companyOfficerData:v,allNationalityCountries:b,allOfficers:ae??[],sectionId:D,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:j,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:O,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:E,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:b})]}),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:Ve(Ne),primaryBtn:{label:C?Pe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":C?"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:C?Pe.back:i.saveDetailsButton,style:{width:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(C)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,V=l?.email??"",F=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return V&&!F?((!l?.firstName||!l?.lastName)&&u.trigger(`${D}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${O}.primaryContactName`,{shouldFocus:!0}),1))})(),P=(()=>{const l=v[I],y=o?.primaryContactLocalData,V=l?.email,F=y?.email;if(V){if(!F)return(y?.firstName||y?.lastName)&&u.trigger(`${O}.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(`${D}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0})();g&&P&&(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?K(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?K(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Qe,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,b,$,R)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:E,companyView:h}=e,A=_e.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[O]:{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:b?.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:[...Vt]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...Pt]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[D]:Object.values(E).map((f,N)=>{const s=f,x=Ot(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:Dt(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}})}},Ve=e=>`${e}_form`,Rt=d.div`
|
|
1
|
+
import{y as rt,J as lt,a7 as Te,V as t,F as J,T as ct,cc as dt,z as pt,b$ as ut,ag as Ie,a5 as ke,fr as mt,i as ft,a_ as yt,a6 as ht,c0 as gt,bK as xt,bL as St,bM as wt,f as bt,A as Ct,a9 as vt,o as c,b as L,W as Le,O as _e,fs as Ot,eT as $e,ei as Dt,bX as Tt,a8 as It,s as Ae,H as kt,B as $t,u as k}from"./index-BVjkKCLf.js";import{a as _}from"./sentry-Bsfq8iFp.js";import{n as d}from"./mui-Bjwhey0L.js";import{El as Nt,bQ as K,ES as jt,ER as Pt,ET as Vt}from"./zeni-epic-state-CjVTQ4J3.js";import{r as Ft,z as Lt}from"./CompanyOfficerDetailsSection-BNSHkrC4-BohcManJ.js";import"./pdf-DJ-oF9-h.js";import"./core-tQbf9q8c.js";import"./lottie-C1jDoN6L.js";import"./liveblocks-ClmZMiZG.js";import"./recharts-DxWcXnAv.js";import"./dnd-C4z4yHh0.js";import"./analytics-BwviiuqB.js";import"./plaid-CFQSLZ5I.js";import"./utils-BxRS7J8i.js";import"./helper-2Z01-P8G-4I-xsv8A.js";import"./LabeledAddressValueField-D3_DsNPu-736YXF_H.js";import"./LabeledCountryMultiSelectField-LeubJT8b-COwPVYGE.js";import"./LabeledCreatableSingleSelectField-CzrPLo-T-Cy0xU_nR.js";import"./LabeledDocumentField-CFtFroDl-CMnHYN21.js";import"./LabeledNameField-DWKoivcI-CNclT5Xy.js";import"./commonTypes-lunwFIdl-DX_CuL_U.js";import"./avatar-Dz7aEm3d-BFq-rVXj.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]="1ce4cc39-1cc0-412a-af55-dca6d4c06272",e._sentryDebugIdIdentifier="sentry-dbid-1ce4cc39-1cc0-412a-af55-dca6d4c06272")}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",O="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:je,footer:Pe,strings:{empty:Bt}}}=_e.getLocalizedStrings(),Ta=({businessVerificationDetails:e,allNationalityCountries:b,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:C=!1,isTreasuryTransferInitiated:Q=!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 Je=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:v}=e,Ke=Te(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Qe=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(J,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(J,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(J,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(J,{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,b)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,j=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(`${D}.${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,P=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,V=r?.lastName,F=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?K(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,be=o?.website,Ce=o?.addressStatus?.addressToCreate!=null?K(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,ve=ne?.firstName,Oe=ne?.lastName,De=ne?.email;g!=null&&l!=null&&y!=null&&V!=null&&P!=null&&F!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&be!=null&&Se!=null&&se!=null&&Ce!=null&&ve!=null&&Oe!=null&&De!=null&&S?.trackBusinessVerificationSend({email:g,birthday:P.toString(),companyOwnership:l,firstName:y,lastName:V,companyRole:F,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:be.toString(),industry:Se,formattedAddress:Ce},{firstName:ve,lastName:Oe,email:De},h,s?"Settings":void 0)})(),Me?.(I),Q===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(O)?We?.(g[O]):r.includes(D)&&Xe?.(g[D])})(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(`${O}.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(`${O}.fileIds`).forEach(r=>{m.includes(r)||n.push(r)}),st?.forEach((r,g)=>{const P=r?.fileIds??[];u.getValues(`${D}.${g}.fileIds`).forEach(l=>{P.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(ke(f),f,je.currencySymbol).toUpperCase(),ie=j?.code==="pending_review"||j?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&j?.code==="pending_review"&&Ke==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:Q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:Q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(ke(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.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&&C===!0?Bt:i.header,backgroundColor:Je.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||C===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(bt,{size:"ExtraLarge",start:!0})}):t.jsx(Ct,{...u,children:t.jsxs("form",{id:Ve(Ne),onSubmit:at,children:[x&&C===!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(Jt,{children:t.jsxs(Kt,{children:[t.jsx(Fe,{}),ye&&t.jsx(Fe,{}),t.jsx(Qt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Ft,{companyOfficerData:v,allNationalityCountries:b,allOfficers:ae??[],sectionId:D,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:j,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:O,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:E,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:b})]}),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:Ve(Ne),primaryBtn:{label:C?Pe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":C?"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:C?Pe.back:i.saveDetailsButton,style:{width:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(C)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,V=l?.email??"",F=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return V&&!F?((!l?.firstName||!l?.lastName)&&u.trigger(`${D}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${O}.primaryContactName`,{shouldFocus:!0}),1))})(),P=(()=>{const l=v[I],y=o?.primaryContactLocalData,V=l?.email,F=y?.email;if(V){if(!F)return(y?.firstName||y?.lastName)&&u.trigger(`${O}.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(`${D}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0})();g&&P&&(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?K(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?K(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Qe,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,b,$,R)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:E,companyView:h}=e,A=_e.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[O]:{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:b?.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:[...Vt]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...Pt]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[D]:Object.values(E).map((f,N)=>{const s=f,x=Ot(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:Dt(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}})}},Ve=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 k}from"./pdf-
|
|
1
|
+
import{j as k}from"./pdf-DJ-oF9-h.js";import{a as A}from"./sentry-Bsfq8iFp.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-tQbf9q8c.js";import{t as ce,aE as ue,y as de,aF as le,je as E,bc as pe,jl as B,k3 as x,jC as me,G as z,l5 as fe,kg as ye,jA as j,ej as R}from"./index-BVjkKCLf.js";import{Ka as Se,cs as G,nT as ge,CK as Ie,td as he,vY as be,yv as Oe,z9 as Te,A2 as ke,Kx as Ce,Ky as De,Kz as Ve,KA as Ae,KB as we,H3 as Ne,Jy as _e,Hf as ve,hq as Fe,di as xe,dh as ze,dg as Ee,l_ as Be,lR as je,lO as Re,hi as Pe,o0 as Me,n_ as P,bG as M,oc as U,bJ as Ue}from"./zeni-epic-state-CjVTQ4J3.js";import{n as Le}from"./mui-Bjwhey0L.js";import{c as L}from"./routePaths-nQF_3DXR.js";import{M as Ge}from"./MobileAppDrawer-C0MjRK8u.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]="2b05b710-472d-4a39-989d-b23ee10a004e",e._sentryDebugIdIdentifier="sentry-dbid-2b05b710-472d-4a39-989d-b23ee10a004e")}catch{}})();const Ke=Le.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
width: 100%;
|
package/dist/assets/{BusyIndication-Nz8htndZ-DYZEgBsh.js → BusyIndication-Nz8htndZ-DK3qiNAN.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as n,f as r,o as i}from"./index-
|
|
1
|
+
import{V as n,f as r,o as i}from"./index-BVjkKCLf.js";import{n as d}from"./mui-Bjwhey0L.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]="2edc2c01-f957-4568-9b04-7ff007e4a666",e._sentryDebugIdIdentifier="sentry-dbid-2edc2c01-f957-4568-9b04-7ff007e4a666")}catch{}})();const f=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as m,V as t,O as y,j as w,o as a,H as b,B as x}from"./index-
|
|
1
|
+
import{J as m,V as t,O as y,j as w,o as a,H as b,B as x}from"./index-BVjkKCLf.js";import{n as o}from"./mui-Bjwhey0L.js";import{a as c}from"./sentry-Bsfq8iFp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="f2a4433d-a2d0-483b-afde-90b914a9bd4d",e._sentryDebugIdIdentifier="sentry-dbid-f2a4433d-a2d0-483b-afde-90b914a9bd4d")}catch{}})();const{common:p,spendManagement:{chargeCard:r}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=p.strings.space+r.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code!=="request_on_hold"&&s?i:d,n=e.type.code.includes("physical");return t.jsxs($,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,t.jsx(H,{}),d,n&&!s?t.jsx(u,{className:"physical-card-icon"}):null,e.status.code!=="request_on_hold"&&s?i:null,n&&s?t.jsx(u,{}):null]})},$=o(x)`
|
|
2
2
|
${e=>e.forDetailPage?{...w.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|