@zeniai/web-cockpit-ui 1.14.87-qa → 1.14.88-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-D19fvbL2-DMxm5DaC.js → ACHDetailsPage-BBq7KpbY-BSBF4D7W.js} +1 -1
- package/dist/assets/{AIPerformancePage-DW0vgs3w-B0z-xBdt.js → AIPerformancePage-Djq6mgKa-CZUK5BgA.js} +1 -1
- package/dist/assets/{AccountInfoPage-B0HnACVZ-Ctd1qwVe.js → AccountInfoPage-CxWBk_t_-Pp-e12id.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-B9DHX_ra-KkOmhuEe.js → AccountInfoPageContent-DO6aVqBW-BatvazJB.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-CM1F6VNU-hmwWsLi-.js → AccountLockedInfoModal-DVvzKHJQ-cZarXjlh.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BbtaXRQT-ETRRoOJg.js → AccountReconDetailsDrawerPage-DEKzSPCP-AOZz4hLI.js} +1 -1
- package/dist/assets/{AccountRow-DqB8rPL2-D8MiBGLf.js → AccountRow-Ck53DDbT-DysWPQsT.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-G9g_ND9B-DQGrD2xR.js → AccountsPromoCardStack-BYjuB-4I-Bx06dRgS.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-UCJdFwxu-BdingDpr.js → AddAddressForCardDrawer-e8qbO2Y5-DPhsVh8j.js} +1 -1
- package/dist/assets/{AddToWalletPage-B-mvkRWQ-aRGVvuML.js → AddToWalletPage-DA6AmuaY-BtvjAMkZ.js} +1 -1
- package/dist/assets/{AgingReportsPage-dKUkHiCt-ZDDDAzvl.js → AgingReportsPage-B_Hhl_Is-DD-vhrRT.js} +1 -1
- package/dist/assets/{AllUserItems-CQki1qcr-aD0gLtlW.js → AllUserItems-BV22Ibpn-k5WAGMIM.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-nMjsbSmM-CulVFtNO.js → ApAgingDetailPage-DqV1vOVH-BdaVu7h7.js} +1 -1
- package/dist/assets/{AppBasePage-BYj0h9gw-J3E1vGOi.js → AppBasePage-LrgCcvIv-CSjlBbz_.js} +1 -1
- package/dist/assets/{AppDrawerContent-C21qZewJ-BhlV_BTC.js → AppDrawerContent-aZG5Qc_X-BBJ620IT.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-B84m25GW-JdJEKlEZ.js → ApprovalRulesSettingsPage-DQQw30S5-Ezj2032b.js} +1 -1
- package/dist/assets/{ArAgingChart-CLxB28eR-vuSH9ZR1.js → ArAgingChart-Am7LTkqG-DPWOzQ4G.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-C5yzbIB3-CtYJ8Fqx.js → ArAgingDetailPage-BEKsyA9Q-8CXV_-o4.js} +1 -1
- package/dist/assets/{AttachmentView-_qAuq3Am-BQIHUAtQ.js → AttachmentView-Bujbmx1d-C5yMiAGh.js} +1 -1
- package/dist/assets/{BankAccountSection-B0pfiSf6-DgflKx4A.js → BankAccountSection-C5rYUW3V-C94OLznc.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Xo-Jy-73-mWXeIJJB.js → BankAccountWarningSection-DakysSbk-CbbTSVAs.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-o5oe0ctd-BsH2zjwt.js → BankConnectionsSettingsPage-BjZDNgZG-YfsktWmR.js} +1 -1
- package/dist/assets/BillDetailPage-DYc_nZRU-CDVGo8PW.js +266 -0
- package/dist/assets/{BillPayApprovalRuleDetailPage-BQjmqKng-Dv7DopRN.js → BillPayApprovalRuleDetailPage-ppU1Epmy-BKvAcAoy.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BxCNEom7-DcgrnHVL.js → BillPayApprovalRulesPage-UblNi2mR-C7_kOGqL.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BElTLopb-CFJysV9Q.js → BillPayPromoPage-BK2J56U5-BoML2sjr.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BG8feTVd-CdKRm4ij.js → BillPaySetUpPage-Jic5E25q-DpQqZitt.js} +1 -1
- package/dist/assets/{BillingSettingsPage-07P7VjDH-Bet7OZMV.js → BillingSettingsPage-CKZVChEm-DD2k5Yit.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-D7EPuth4-C-lrPHC6.js → BillsBulkReviewDrawerPage-C4Ra5e82-CIUXbSFo.js} +1 -1
- package/dist/assets/{BoxItem-CzX5kr9f-CU1R8-1Z.js → BoxItem-8PfNfaHq-B-GLMzdK.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-WSJeMnHc-kIf0VOEn.js → BusinessVerificationPage-JGge-Iiw-BPBLeiY2.js} +1 -1
- package/dist/assets/{CardNumberSubText-D76dl24E-BDpS8ey2.js → CardNumberSubText-W81SQ4GF-WvEd7hoq.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CNxA7NQY-BqRQ97ye.js → CashbackDetailPage-DnOcmx2i-GyPOwLbn.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-K4gUpiwZ-DTk-Ryl3.js → ChargeCardDetailPage-DNVMsxzE-DJwlKf4B.js} +1 -1
- package/dist/assets/{ChargeCardListPage-CyTEY_8V-Cna-0f0d.js → ChargeCardListPage-Dgj-WWWI-DUEfSWkj.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BFyvNTeY-gqPEVf3k.js → ChargeCardListTable-uJZKWoh7-ChKxwXNK.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-C9z3yHL2-BUdne07z.js → ChargeCardPromoPage-uqT96W3_-D7PKDOS5.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DO8JYrZP-DznLnmKK.js → ChargeCardSetupPage-BDbJU-vm-n7XKTVxz.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BOikTcKC-CNgxC16i.js → ChargeCardStatementsPage-DImRqpH1-BLn2Zrht.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DH3MI8HN-C8gcudVZ.js → CheckDepositDrawerPage-BVtOOPoa-BsyE3ijL.js} +1 -1
- package/dist/assets/{CollapsableReportTable-B2M1S7L1-Ft6K8bly.js → CollapsableReportTable-Crihcv_z-B2uLpmZL.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BqY-k8Ic-DYr7jvqd.js → CompanyOfficerDetailsSection-CNxtAkKM-DIFNT_MT.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BR60dER0-BlTZ5Ob-.js → CompanyPassportCard-DMRQkRPb-D5WStHlm.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Bmd04hik-DVeV8pHY.js → CompanyPassportPage-D3XvbSF_-CEssY07i.js} +1 -1
- package/dist/assets/{CompleteProfile-UULN8u-c-DKa2I-7t.js → CompleteProfile-BqjXO5ze-DzvIvybO.js} +1 -1
- package/dist/assets/{ConfettiBurst-CozTW5Rn-DEvA5d-I.js → ConfettiBurst-DtwLo4WZ-rIdOch9Z.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D78xf5_Y-mFWNao82.js → CreateOrEditVendorPage-FrGRJxMy-D4Yfp3bV.js} +5 -5
- package/dist/assets/{CreditCardPaymentDrawerPage-CuqD_nKw-BQJxdNrV.js → CreditCardPaymentDrawerPage-BvifQpD3-DweBxpjG.js} +1 -1
- package/dist/assets/{CurrencySelectField-DWAO-FaV-DXF2YRYA.js → CurrencySelectField-ClOg6nnS-mv1_7cFa.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Cib3Mx_T-BHYkMC3M.js → CustomerOnboardingActivationPage-Du-zzeL2-B0e3T3Mf.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DMZOvVMM-DZwfJm2T.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-XJtMtsSn-CAwoUQOk.js → CustomerOnboardingDetailPageSkeleton-BgY95XeU-lrHBjHff.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-B_0Hrx2F-BdzwfopU.js → CustomerOnboardingNoStepsPage-BsKoqUta-CA8kKRAS.js} +1 -1
- package/dist/assets/CustomerOnboardingPage-DUMQKVfM-Dsr4EUaG.js +107 -0
- package/dist/assets/{CustomerOnboardingProductSuitePage-BpF-YMGr-DDxX6dHp.js → CustomerOnboardingProductSuitePage-DGVV8Tkk-D0glSq9a.js} +1 -1
- package/dist/assets/{Dashboard-PoZO9l3--BFARMf5_.js → Dashboard-CdYlvep--2zt71GwH.js} +1 -1
- package/dist/assets/{DashboardReportPage--m1KiT3x-Ce1YObOY.js → DashboardReportPage-c6q027Qp-DQOYKDaS.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-bBmcRJEU-CjZQNk5h.js → DashboardSidebarBackgroundAnimation-BdDVYK19-CImgfHLa.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-tRzKuflq-JWNpeQyn.js → DepositAccTransactionItem-D8kL8enp-C-wlu71S.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-AwxQHNLD-UBwiwRKW.js → DepositAccTransactionListPage-BS-OReem-BsY7nh5D.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CuE-QHLh-DVGsHTSJ.js → DomesticWireDetailsPage-CjM1DXnn-jBFOWKEq.js} +1 -1
- package/dist/assets/{DownloadOverlay-ebdpHSki-RVZ-duC0.js → DownloadOverlay-Dr4uLNpZ-CCGEpjyu.js} +1 -1
- package/dist/assets/{DrawerPage-DHT0UTT4-BsSbxcGP.js → DrawerPage-CbKBsc7w-C7cU3_--.js} +1 -1
- package/dist/assets/{EditPeoplePage-Ds7odnkL-B37C5GP8.js → EditPeoplePage-BgsR09q8-DdqILiC-.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-B6EHHEhj-BkDyDDxh.js → EditReimbursementDetailPage-BTrwOX_s-D-rZyGs5.js} +1 -1
- package/dist/assets/{EntityDetailPage-sR_MHnxH-Da59y-oA.js → EntityDetailPage-Cvd4MG0F-DPl-NT31.js} +1 -1
- package/dist/assets/{EntitySummarySection-BLwfMK6_-C7W5nMkc.js → EntitySummarySection-BIV9aAq2-DPBmI88A.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BqFR2yic-BPStbmP3.js → ExpenseAutomationOverviewPage-B5MtjO2p-CYiyOvTu.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-C7IKGki--Cn7YGlGs.js → ExpenseAutomationPage-DW6Pxoah-DDuDc1zW.js} +1 -1
- package/dist/assets/{ExpressPayPage-C6UtAiIN-DUJZkqFB.js → ExpressPayPage-DnpQuDmt-Bd1bzHIM.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-C_b5hdtk-CavovuCx.js → FeaturePreviewPage-BmwBZ7ZP-B5Fb6YFa.js} +1 -1
- package/dist/assets/{FollowStepsSection-dgWK-_PA-CiR7A5pw.js → FollowStepsSection-B2I9SddL-DOkk1O_M.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-Bs7BRxg_-cD_r1Edw.js → GlobalReviewListPage-D3GCP5Xd-hoz6yIFU.js} +1 -1
- package/dist/assets/{InformationCardStack-Def3TczI-BrJd8tiR.js → InformationCardStack-mEhasBqu-uwoqfXbE.js} +1 -1
- package/dist/assets/{InsightsCardStack-CDejyDrL-8gXEnXlg.js → InsightsCardStack-Mj7QcQnH-CEDxXAnc.js} +1 -1
- package/dist/assets/{InsightsSection-DeLBGRXz-ClXFlFzX.js → InsightsSection-B3xD0SZ9-44_JQBOt.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-Vd7CM5dW-OkUAHAn4.js → IntegrationsSettingsPage-CsI_agJB-C-WDxKHm.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-CPIzRzqS-u_vzKttx.js → InternationalWireSwiftDetailsPage-Dszmi69h-CXShEjfi.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-Cc3OKrpr-BBzbnL3x.js → InternationalWireVerificationPage-DG9Enrpo-B4OJYSEA.js} +1 -1
- package/dist/assets/{InviteFormPage-hXbvSboB-C8_Qz35B.js → InviteFormPage-DK6X9Zwi-DxTEXqbU.js} +1 -1
- package/dist/assets/{InvitePageListView-xv6f7OYE-Cw-ul-1N.js → InvitePageListView-CwKbcKlM-BZHkRpBj.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Bns8mbbj-CXej4OXs.js → InvitePeoplePage-BqzJOjVI-C5eGKSth.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-wKWbAAeR-YH63VcxH.js → InvoiceUploadSection-CokNNkKu-DQm7Q76q.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-BbCULpNx-hT-_5Eve.js → IssueChargeCardPage-CRtJDmrZ-SjsaHHpw.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CYPuDjMF-BIRxvorQ.js → LabeledAddressValue-BhwrrtZX-vn2WZMwa.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C4ft1l-K-DncA4cPY.js → LabeledAddressValueField-DzmwP7hP-K6Pp0Tsb.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DHrJB0QL-ClEoPfCz.js → LabeledControlledCheckBoxField-B6ndrF2e-C6dGs2IG.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BeelRB2Y-fxP4qWXW.js → LabeledCreatableSingleSelectField-CfzLlkho-D-9BqrF0.js} +1 -1
- package/dist/assets/{LabeledDocumentField-CgMzc8wC-BKcbKApj.js → LabeledDocumentField-p3pI5qLu-BDt_q3n9.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DcO2nEfi-BuIZDCsk.js → LabeledDropDownFormattedTextField-oQX33Fim-DScWTxuG.js} +1 -1
- package/dist/assets/{LabeledText-BNDM-899-ChXIOyOQ.js → LabeledText-Db46hFZY-DtE2280z.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-TSpiqQUi-C3GI4PPr.js → LabeledUserSingleSelectWithSubtitlesField-B9Xx3bxn-CdCb1YaR.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-C5I9rtgW--VPqKRla.js → LabeledZeniRolesDropDownField-Docjgj8Y-Ak8tWgXw.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BWrpuWUo-BOv35ym0.js → LinkJETransactionPage-BZSRaZqY-Ys5o0SC5.js} +1 -1
- package/dist/assets/{LockCardPage-Ddf8_2ti-BOFmRHXP.js → LockCardPage-KTyESoXL-RLL-NNgZ.js} +1 -1
- package/dist/assets/{LowBalancePopup-BMSJwe7h-DBEdfgpI.js → LowBalancePopup-B0BDCEui-BDJRdwYk.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CRYqb_qO-CMB3H95o.js → MagicLinkACHDetailsPage-DwFvuGwG-Bx8_G4pi.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CE12GLds-BXSaOWKE.js → MagicLinkDomesticWireDetailsPage-CDB2igue-C6BkcHMt.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DO4DIUrG-CTqH6wCq.js → MagicLinkInternationalWireDetailsPage-C2kxncrD-lKhup0wi.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-fsnKXDBD-C0Osj-Zm.js → MagicLinkSuccessPage-DNVe2qMu-D4SMdh6r.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DQw4cqq_-CT4F3BTM.js → MagicLinkTitleSection-CWw516D8-BNsvo93d.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CAV69_Sr-DIh0nV2P.js → MailingDetailsSection-CugAM90r-DoeFFuYK.js} +1 -1
- package/dist/assets/{Menu-B_DpiT_k-znQ5Mzct.js → Menu-CGN2qO6T-CiWOHnEv.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CM2Faxmi-D2ZQ7ET3.js → MyBankConnectionsSettingsPage-CQUfVa0r-Bh6xkh_P.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BV2N6fOb-D148YbMA.js → MyPendingActivationChargeCardListPage-TOQWRGjp-Cz3Fu-Qj.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BjGB1P4t-ggftZEKb.js → MyProfileSettingsPage-lCG03Uoh-Cp5z_COM.js} +1 -1
- package/dist/assets/{NavBarWithPicker-CrDC7aPk-DTkUQDgY.js → NavBarWithPicker-DLLvivn4-CwXjwd5E.js} +1 -1
- package/dist/assets/{NavigationArrow-AIYiZbYj-DiTp0QUh.js → NavigationArrow-B4j2t8Qu-DFN_pfjG.js} +1 -1
- package/dist/assets/{NavigationDots-CVjs5Sdt-CPy7ja5Q.js → NavigationDots-DyMqwpgy-BnOxKvTS.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Bx1M-Dpk-CJaoC_yZ.js → NewGlobalMerchantPage-Bx7iBsCP-De3Zrk_w.js} +1 -1
- package/dist/assets/{NoDataChart-B_yk9del-CPleAFJW.js → NoDataChart-Ce1_TZ5w-mzgyK4W0.js} +1 -1
- package/dist/assets/{NoDataTable-DRJW6ofl-BRBf7YWm.js → NoDataTable-l2T5Hw3t-DiA6_LOZ.js} +1 -1
- package/dist/assets/{NotFoundPage-C6X8pmKB-CLKeJF08.js → NotFoundPage-msdN-Eu6-bUOgmvTT.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CsaIk9hI-DR3HeI5a.js → NotificationSettingsPage-_ovcjr8E-oBg2AzvY.js} +1 -1
- package/dist/assets/{NotificationsListConfig-B8ldcs-T-C7FXtcv4.js → NotificationsListConfig-BJm7A9Mz-Dpzdlo_O.js} +1 -1
- package/dist/assets/{NotificationsPage-Cv2LlPX0-CMwLDF_r.js → NotificationsPage-Ddxb5kE0-sv2MHoTB.js} +1 -1
- package/dist/assets/{OpExByVendorPage-cVCb-lRK-CAMphtZD.js → OpExByVendorPage-BLAHey0l-Bvnbxr3W.js} +1 -1
- package/dist/assets/{OverlayContainerPage-CrZuT2Jj--LZv4m-w.js → OverlayContainerPage-CrZuT2Jj-PfCCV6vr.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CG5AGAFM-BVCsX48s.js → PandLWithForecastPage-B7Z73Sq--D-gg1JRT.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DFeVoMTQ-pcJ_okiT.js → PaymentAccountSetupBillingAddressSection-pL7omrJk-CMauXbLg.js} +1 -1
- package/dist/assets/{PeoplePage-vwcbvzlP-dyjVi2ZA.js → PeoplePage-BHRFiM0D-BFjjgTA4.js} +1 -1
- package/dist/assets/{ProductsCarousel-C2h9pwDb-bhSOTUmQ.js → ProductsCarousel-D2bf_6Gb-3YkaSAEs.js} +1 -1
- package/dist/assets/{PromoBaseCards-nxua6geT-B6sPAXvv.js → PromoBaseCards-CI7UOpeY-DrRHtF3C.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BRU6xjQi-DU5o3RS5.js → QBOConnectionDialog-D7MeKn1t-BAS1asBL.js} +1 -1
- package/dist/assets/{QBOSetupSection-CvWw_-bE-QtY2CQq9.js → QBOSetupSection-DWhfA4Xv-BucVH3Ow.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-CDAPt76T-B8lrbdIx.js → ReimbursementApprovalRuleDetailPage-C_dTOk5P-D-NWcf6N.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-CT8KUn9L-GRrENlhL.js → ReimbursementApprovalRulesPage-B5lca4qx-Be4jwh8K.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BlWqdoKk-D5Em_Bda.js → ReimbursementDetailPage-COIRwy7i-D_z8JZWj.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-C12vL_aT-3mwLed-8.js → ReimbursementPromoPage-Bjm0UHcm-BFGYvNxR.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-aeXyHOzw-WrQpyXgd.js → ReimbursementSetUpPage-CMYR8CcH-o7EiVYlw.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BZn17ZAb-ClMOORVO.js → ReimbursementsBulkReviewDrawerPage-BDdhVfaz-B4-3Ac_F.js} +1 -1
- package/dist/assets/{ReloadCard-BVcEjrcM-DLVPnVJS.js → ReloadCard-B2sJR97f-B7xYAAAP.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-DlD_ISoP-CdYDC6cl.js → ReportTableViewSelector-_IO343vS-CCUTRa_q.js} +1 -1
- package/dist/assets/{ReportsPage-CqXr-QZi-BWXZ9i8F.js → ReportsPage-C-aQ1bdd-BrHTUapj.js} +1 -1
- package/dist/assets/{RevenueChart-B1KEseXB-BA4ydz2o.js → RevenueChart-Bgq6My4J-DZMBvJfW.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CYhNq-J0-Dm3XNpmG.js → ReviewDetailsPage-COx9R71r-zWGCkJ71.js} +1 -1
- package/dist/assets/{ReviewOverlay-DkL6mTyl-C3MpJHFg.js → ReviewOverlay-CPU7RPiJ-D223TMrq.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DRSravXg-CJxNG7-u.js → RoleWithToolTip-DSSGBzvw-DNIC4KJA.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-BsigTjZM-CM2FG-dk.js → ScheduleDetailsFixedAssetsPage-DKGBfhAM-hAiatKQJ.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-C-lGzBL_-Hp-OdvW2.js → ScheduleDetailsPage-B-fKJ7Ct-Bh8hZts0.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BCmdqAXy-Cd4_O1UV.js → ScheduleSequenceTable-Dh_aT47H-Dsg8nn4Q.js} +1 -1
- package/dist/assets/{ScreenRoutes-B_-Uq-L7.js → ScreenRoutes-C6EpxT2f.js} +1 -1
- package/dist/assets/{SetUpAccountSection-BKOCyUH3-BQ3VpPaI.js → SetUpAccountSection-DrMCC1IY-ByWeTp_x.js} +1 -1
- package/dist/assets/{SignIn-CS-J3pfV-CsrTuEHX.js → SignIn-Ij6tlYI5-Dst5bSP1.js} +1 -1
- package/dist/assets/{SignInScreen-C100KydU.js → SignInScreen-u1nQ3ozJ.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Df2_A3Ff-CGDONdeD.js → SpendManagementListViewPage-AI676Urw-B-7dzfuE.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-CMowSBFq-BR6q5cSJ.js → SpendManagementPerTabPage-D79c3Xqh-oKXtBl-N.js} +1 -1
- package/dist/assets/{SpendManagementSection-CMV7noyB-COl9HCBZ.js → SpendManagementSection-BqWbsmBW-B_cU7_8m.js} +1 -1
- package/dist/assets/{StatementItem-DJ39tw7i-eEh-ZgSh.js → StatementItem-Aal79YaO-CFHdsNsW.js} +1 -1
- package/dist/assets/{StatementsPage-bQ7Ni723-CxbDr3sV.js → StatementsPage-BG_pNQzc-CtKK_NWp.js} +1 -1
- package/dist/assets/{StatusSwitcher-dxck0-_D-yWDQuP0O.js → StatusSwitcher-DYRXaLvx-Dg0gJadN.js} +1 -1
- package/dist/assets/{SubTabSwitcher-iw3pF9RG-9YL-LlcS.js → SubTabSwitcher-C75XU1EG-jiPBvvgH.js} +1 -1
- package/dist/assets/{SummaryCard-BhSCeFtW-BRHub0h4.js → SummaryCard-DEnzgi31-BrjfYktb.js} +1 -1
- package/dist/assets/{TaskManagementPage-g-ZeUacD-CcjtKCDB.js → TaskManagementPage-BacWm0wS-BOmzE8pj.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DV7Vkxir-BFGx5MO7.js → TimeRangeSwitcher-BOzR-0O6-DW6Hfe2T.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-n-e2hXsK-6Vl0dg9X.js → TimeframeSwitcher-BVgI_VZw-CmYJCdij.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DLiPwXnZ-Ymn-k0Z9.js → TimeframeSwitcherWithToggle-CPVSAvFa-D1niAH0D.js} +1 -1
- package/dist/assets/{TopExCard-CUCtGWMG-D6xfg7eO.js → TopExCard-ImUx-vXr-DT0VBuYA.js} +1 -1
- package/dist/assets/{TopExDetailPage-Du_E_YKe-Aq_p0Jr9.js → TopExDetailPage-Dg_8DQk8-4B9miDBg.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CgT445to-C7wpJDW_.js → TransactionDetailPage-BzaDB50S-GSmaAynz.js} +1 -1
- package/dist/assets/{TransactionList-we_zUYsL-DozSOzHA.js → TransactionList-DMd3dgoK-CAAZ5LJ9.js} +1 -1
- package/dist/assets/{TransactionListBig-nH1Qjoil-CtIEQXgp.js → TransactionListBig-BxHqh8u6-jUnMWfqS.js} +1 -1
- package/dist/assets/{TransactionListPage-38GpLjpf-Clg-F57L.js → TransactionListPage-CN9fZznd-XHmW_JO6.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-D9Xiyh8f-1hG2FFsv.js → TransactionVendorDetailPage-CykcquSh-DC5tWATQ.js} +1 -1
- package/dist/assets/{TransferDrawerPage-lmX46zkj-DIUxCA_F.js → TransferDrawerPage-oV7ickRP-DfNv0z7w.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-C4AZO1qa-C4S39TT0.js → TreasuryOverviewPage-CECDKjNn-DnTfDq_E.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-D2UpPIMJ-BVR7DdDS.js → TreasuryPromoPage-Bgt7uGAE-wBv090sg.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DJZjPYxF-Dq4sv-4y.js → TreasuryStatementsPage-QyWxshsI-MJ6226DX.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-CRhVrCVC-DQxd4WG4.js → TreasuryTaxLetterPage-BLmfU0VD-tlc_Qnp7.js} +1 -1
- package/dist/assets/{TrendChart-C6eEpBKz-DNYKoM8A.js → TrendChart-C_6ob-SX-C0qSDIOK.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CesVaJPk-DMDStOLi.js → TrendWithTransactions-lMD2sZ-C-DAKlvwC8.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-wFi1shv1-DskaKezB.js → UncategorizedAccountsMappingPage-DEgz17_R-JAtAn-dZ.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-Dc1U07vV-2EueInUy.js → UnitIntegrationPage-D9Pzxqju-MqruWQEm.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-E73Idplv-DYv8iedO.js → UploadAdditionalDocumentOverlay-CJYvOjh0-Bd6YUBSJ.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BvdRkNkS-DfVZVEAQ.js → Vendor2FAPopup-D-r0NVE--C7hhZzTV.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DSwUAV1v-B6Jst6E7.js → VendorACHDetailsPage-Dv6bTD6Y-DvJTQLef.js} +1 -1
- package/dist/assets/{VendorDetailPage-DNoyNRTj-DKnas9Tw.js → VendorDetailPage-BhfawsBd-S64BbJSz.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-Bc8qjWTX-8jcJghjJ.js → VendorDomesticWireDetailsPage-BjmlrfTQ-rHR0r6A6.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-B1B5iG9x-CX2ZqenL.js → VendorFiling1099EditablePage-glvi0GTU-BdKcShj3.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-B4yTlldy-DEQWMhz-.js → VendorFirstReviewPage-DUuUM8ZT-B1bWCBT-.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CJFUOmlk-BkRmda98.js → VendorInternationalWireDetailsPage--Lb-TviQ-C-zdKbhE.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CegBbxXf-CdtG7j7l.js → VendorInternationalWireSwiftDetailsPage-C6KviV2Z-BDqGzihc.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-WAKW9Ve9-DGucc-0l.js → VendorsAccountsSection-EmHO3wQ0-Ds60jCdB.js} +1 -1
- package/dist/assets/{VerifyDevice-CcZqv2Lp-DHp41mXs.js → VerifyDevice-DE3UbLEe-Bosmp51G.js} +1 -1
- package/dist/assets/{VideoPlayer-UPe1R-1g-D7NkSi_o.js → VideoPlayer-Gw_PLr8F-B5il9249.js} +1 -1
- package/dist/assets/{VideoPopup-CUd3F8wz-SRJsg9mB.js → VideoPopup-DPZYhLgy-CxQM8ZsJ.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CDKJe82X-ODKMHNXh.js → WarningsDrawerPage-CZvToguS-BxbFQVxO.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Bm-Zan6l-B7hJAAah.js → ZeniAccountDetailPage-CQhqngBz-CCNvCBi9.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CCB38vGw-O0YzN5Dl.js → ZeniAccountListViewPage-CpX8vqYa-CIQ7ee6i.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-Cxtt22Vg-DgNUh0ZP.js → ZeniAccountNavBarPieces-DsUwG15z-Dwp3Id4e.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CPLBUFop-DtaySZyX.js → ZeniAccountPromoPage-DA611IgH-C5-V5OIC.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-jOZVnJMr-dmjtsMFf.js → ZeniAccountSetupPage-CJv2Fk1i-DxNYIjfe.js} +1 -1
- package/dist/assets/{ZeniCopyright-BX77ah4B-wnWvagAp.js → ZeniCopyright-FFqiWypL-CqMesSm0.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-DwZiry1v-H7M_8kwg.js → ZeniTransferAmountSlider-DSrBZUbA-BhvMyB40.js} +1 -1
- package/dist/assets/{analyticsHelper-tTHd6Unu-Tq2emmCb.js → analyticsHelper-CczQLvkM-ChZB75ZC.js} +1 -1
- package/dist/assets/{analyticsHelper-BVhjt4lP.js → analyticsHelper-SHKorczp.js} +1 -1
- package/dist/assets/{chartTypes-BFYRQ3Cv-BVd5zWSz.js → chartTypes-CwQl8aoN-CqcuqCka.js} +1 -1
- package/dist/assets/{commonDimensions-C2kzP_me-j9Asxa8s.js → commonDimensions-B1u_MhON-DyL3Hxj-.js} +1 -1
- package/dist/assets/{detailCommon-BAtNx7ca-CIOYK1fQ.js → detailCommon-nYxvvV_i-CtgtxyJz.js} +1 -1
- package/dist/assets/{downloadPdf-Sdq-1kVQ-REbVDcJa.js → downloadPdf-yGlKpV2--CC5ysEvm.js} +1 -1
- package/dist/assets/{index-Bbd5Axbp.js → index-Dp0ze4-l.js} +4 -4
- package/dist/assets/{mapLoadingInProgressToTreeNode-8AkwjRg3-DrEIvbO7.js → mapLoadingInProgressToTreeNode-DIAuL28N-CHz89P0H.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZ6gG9Ko-BgH3HW3y.js → mapSectionWithAcOnlyToTreeNode-DRSmQ56_-D-Dpwz3L.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CfM4s6Ab-CVZlacDX.js → mapSpacerToTreeNode-DOEVwUIo-C0LPrLsm.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B0gWnt3S-DK9yGGLu.js → mapTimeframeBalancesToTreeNode-DbnAvW1M-DBLXBEjh.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Ckh-PZp0-D-c912Er.js → mapTimeframeBalancesToTreeNode-DkrEWOxt-DcsakCNq.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-B6ynSFN--B8hNAlf-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BucoS7vN-6GTMK9C_.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CHuRV6Cy-BoFITTEe.js → toCOABalancesWithID-rZFEkHuM-CMW_H07o.js} +1 -1
- package/dist/assets/{toChartData-DjeEqlPj-DZTApEoe.js → toChartData-C-dHC-Oz-Cn-Bmv6B.js} +1 -1
- package/dist/assets/{uploadAttachment-l_PHn7FL-DTzcJeql.js → uploadAttachment-D3clfqPu-BS_riD5o.js} +1 -1
- package/dist/assets/{uploadReceipts-Bkf_PaOH-B2puKmkS.js → uploadReceipts-Bkf_PaOH-B514mmcL.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/BillDetailPage-CtThP7Y9-go2TByqn.js +0 -266
- package/dist/assets/CustomerOnboardingContainerPage-J1gLDhpW-CJp3S6CI.js +0 -1
- package/dist/assets/CustomerOnboardingPage-aBkvsh1l-BXmnzO_g.js +0 -107
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import{Q as On,av as Fn,d as En,gc as _n,gd as Zn,ge as Wn,gf as Kn,ca as Vn,aN as Xn,F as Gn,y as u,V as t,f3 as rt,f4 as Un,o as a,f5 as qn,f6 as Hn,aK as b,f7 as Qn,aL as $e,f8 as Yn,bz as st,bm as dt,dw as ct,cm as pt,cn as mt,co as ut,gg as Jn,gh as ea,gi as ta,gj as na,fd as I,fe as $,ff as A,gk as k,fc as aa,b as yt,p as ie,fg as Nt,fh as ia,fi as la,fj as oa,gl as ra,gm as sa,aO as da,an as ht,bQ as we,gn as ca,go as L,u as r,ah as pa,b$ as ma,gp as ua,_ as ya,gq as ha,gr as bt,fn as gt,B as ba,d0 as ga,cf as xa,b5 as fa,b7 as wa,c as Ta,bS as Lt,gs as va,ag as Ot,aW as ja,b3 as Da,br as Ia,eN as $a,ak as Aa}from"./index-Bbd5Axbp.js";import{a as p}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{a as ka}from"./liveblocks-B3KbWbMM.js";import{bR as Sa,bO as Ca,bS as Pa,fI as Ba,bQ as za,bK as Ra,bj as Ma}from"./zeni-epic-state-xFtF3OLs.js";import{o as Na,t as La}from"./LowBalancePopup-BMSJwe7h-DBEdfgpI.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./utils-C70QTjQC.js";import"./lexical-DPEnH3HH.js";const Oa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Fa={formTitle:new ba("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ea,common:{noText:C,strings:{empty:d},currency:xt,via:_a,more:Za,edit:Wa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ae,bulkActions:ft,vendorCreation:wt,insufficientFunds:Ft}},collaboration:{threads:{placeholder:Tt,tooltip:vt,title:{comments:Ka}}}}=Gn.getLocalizedStrings(),Te=Ea.visual.MMMDCommaYYYYformat,Mi=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:W,signedInUser:le,isAdmin:Et,isRealTimeApprovalEnabled:_t,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Wt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:ke,isBillPayCommentingEnabled:Se,isZeniUser:Kt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Xt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Pe,deleteBill:Gt,cancelAndDeleteBill:Be,approveOrRejectBill:ze,onAddNewRule:Ut,onAttachmentClick:Re,saveBillDetails:qt,discardOutsideZeniPaymentData:Ht,onBackClick:Me,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:Jt,onRefundPaymentClick:en})=>{const l=On(),o=Fn(),Ne=En(),[tn,V]=p.useState(!1),[Le,oe]=p.useState(!1),[re,se]=p.useState(!1),[Oe,de]=p.useState(!1),[nn,ce]=p.useState(!1),[Fe,Q]=p.useState(!1),h=e.transactionDetails?.id,an=Kt?_n:Zn,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:Y}=p.useContext(an),[ln,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Wn(T,"both",!1),f=Se&&h!=null,_e=p.useMemo(()=>h==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(Kn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,on=p.useCallback((c,y)=>{Y(y),X(!1)},[Y,X]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Y(pe.threadId),Ee(null))},[pe,G,P,Y,Ee]),Vn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,We]=p.useState("approved"),[rn,Ke]=p.useState(!1),[sn,Ve]=p.useState(!1),[Xe,Ge]=p.useState(!1),Ue=()=>Ke(!1),dn=()=>Ke(!0),qe=Xn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),H())},[e,H,Pe]),p.useEffect(()=>{qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[qe,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,U=e.transactionDetails?.billPayInfo.billPaymentStatus,cn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",j=me?w:te?.code=="approved"&&U?.code?U:te,S=Va(j,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?cn:U?.code!=null&&(te?.code=="approved"||U.code==="mark_as_paid")?U:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,He=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},pn=()=>{J({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},mn=()=>{J({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},un=()=>{J({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},yn=()=>{M.trackRefundClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),J({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},hn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en())},onCancelClick:()=>{V(!1),se(!1)}},bn={onOkClick:c=>{ce(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},gn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx(Da,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Oe),M.trackZeniAssistClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??xt.currencyCode},ye=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],xn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),fn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,wn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",Tn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${wn}`,vn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(fi,{windowSize:l,children:t.jsx(xi,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${wt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
|
-
${wt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ae=e.transactionDetails?.billPayInfo!=null?Sa(e.transactionDetails?.billPayInfo):void 0,Dn=ae!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ca(Pa(ae?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Ye=e.transactionDetails?.billPayInfo.expectedDepositDate??Dn,Je=rt(s?.paymentType?.method??"").replace("Same Day",""),In=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Je,onClick:dn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,$n=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(va,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,et=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,be=!(j?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&et),tt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&et),ge=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,xe=e.zeniAssist?.isEligibleForRefund===!0,An=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",kn=Wt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(ge||xe)&&An===!1,fe=ge||xe,Sn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=j?.code,Cn=!Sn&&(!Qe||j?.code==="processing"&&!B),nt=!Qe,at=["small","medium-compact","medium-regular"].includes(l),q=Ba(e.transactionDetails?.bulkProcessingDetail?.type),F=za(e.paymentMethodType?.method),Pn=!q&&(E!=="processing"&&tt||E==="processing"&&!B||E==="processing"&&nt||g&&F&&ke),Bn=c=>{M.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",w?.code??"",j?.code??""),qt(!0,Xe,c)},it=()=>{Ve(!0),M.trackBillPayMarkAsPaid(w?.code??"",j?.code??"")},zn=()=>{Ge(!0),it()},Rn=()=>{Ht(),Ve(!1),Xe&&Ge(!1)},Mn=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"&&j?.code!=="failed"&&j?.code!=="processing"&&j?.code!=="cancelled"&&j?.code!=="returned"&&j?.code!=="rejected"?qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,lt=()=>{We("approved"),Fe===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",gt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ze({billId:e.transactionDetails?.id??"",type:"approved"})},Nn=()=>{We("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",gt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},ot=p.useRef(null);return t.jsxs(li,{windowSize:l,ref:ot,children:[t.jsx(Hn,{anchor:"right",open:rn,onClose:Ue,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Qn,{companyName:Yn(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(Te)??"",paymentType:Je,amount:$e("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ue})}),t.jsxs(di,{windowSize:l,children:[t.jsx(vi,{windowSize:l,children:l==="small"?t.jsx(st,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(Rt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),X(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>ct(y)),void 0,void 0,"page icon")},children:[t.jsx(dt,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Mt,{})]}):null,t.jsx(St,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(At,{})})]}),leftSideComponent:t.jsx($t,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(It,{})}),source:"BillDetailPage"}):t.jsx(st,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(Rt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),X(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>ct(y)),void 0,void 0,"page icon")},children:[t.jsx(dt,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Mt,{})]}):null,t.jsx(St,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(At,{})})]}),leftSideComponent:t.jsx($t,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(It,{})}),enableTitleOnScroll:!0,scrollableContent:ot,source:"BillDetailPage"})}),t.jsxs(ci,{windowSize:l,children:[Fe?t.jsx(Na,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:lt,onCancelClick:()=>{Q(!1),He()},onClickAway:()=>{Q(!1)}}):null,sn?t.jsx(La,{onCancel:Rn,onProceedForMarkAsPaid:Bn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,tn||re?t.jsx(pt,{titleComponent:t.jsx(ut,{children:N.title}),descriptionComponent:t.jsx(mt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:hn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Xa(l,e):null}):null,nn?t.jsx(pt,{titleComponent:t.jsx(ut,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(mt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:bn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(mi,{windowSize:l,children:[l!=="small"?t.jsxs(ui,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,W&&S!=null&&S.code==="deleted"?t.jsx(Ct,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ae.tabsById.overdue?t.jsx(Ct,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(Jn,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Ye,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ea,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Ye,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,qa(q,e,_),t.jsx(ta,{sectionId:na,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Re,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(De,{children:n.whatForTitle}),t.jsxs(ve,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:D},text:ne.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:D},text:ne.invoiceDate?.format(Te)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:D},text:ne.billDueDate?.format(Te)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:D},text:ne.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(pi,{windowSize:l,children:t.jsx(De,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,y)=>{const z=e?.transactionDetails?.lines?.find(Ln=>Ln.id===c.lineId)?.recipientAmount;return t.jsxs(oi,{children:[ye.length>1?t.jsx(ri,{windowSize:l,children:t.jsx(si,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(ve,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:D},text:z!=null?$e("0,0[.]00",z):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("account",y)}`},children:t.jsx(k,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("class",y)}`},children:t.jsx(k,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billable",y)}`},children:t.jsx(k,{label:{label:n.billable,width:D},text:c.billable!=null?fn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("customer",y)}`},children:t.jsx(k,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(yi,{windowSize:l,children:[t.jsx(hi,{children:n.total}),t.jsx(bi,{children:he!=null?t.jsx(aa,{amount:he,integerStyles:yt.h6Medium.cssObject,decimalStyles:yt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(De,{children:n.paymentDetailsTitle}),t.jsxs(ve,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Nt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?Ft.addMoney:_})}),t.jsx(R,{})]}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(Ra)&&Zt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Qa,{children:ia(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:F&&e.outsideZeniPaymentInfo!=null?Ua(e.outsideZeniPaymentInfo):rt(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?Tn:s.paymentToPI!=null?s.paymentToPI.displayText:vn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:jn(),additionalInfoLabel:t.jsx(Ha,{children:In})}),$n()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:oa(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:la(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(wi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ra,{onAttachmentClick:Re,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??xt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(sa,{amount:xn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ut,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Et,signedInUserId:le?.userId,showRealTimeApproval:_t,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:Yt},historicActivities:e.billHistory.activities}),t.jsx(gi,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(da,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||g,showCancel:!K&&g,cancelBtn:{label:at?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Nn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ga(K,at),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?it:()=>{_!=null?Q(!0):lt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ya,{children:t.jsxs(ii,{windowSize:l,children:[!q&&Le?t.jsx(ht,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Dt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&tt?t.jsx(Z,{onClick:pn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(Z,{onClick:mn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&&nt?t.jsx(Z,{onClick:un,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&ke?t.jsx(Z,{onClick:zn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Oe?t.jsx(ht,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Dt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[ge?t.jsx(Z,{onClick:()=>{M.trackRetryClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,xe?t.jsx(Z,{onClick:yn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(ai,{windowSize:l,children:[kn===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(gn,{}):t.jsx(ei,{})})}):null,!q&&be===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Wa,placement:"top",children:t.jsx(ni,{onClick:He,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ti,{})})}):null,!q&&Cn===!0&&Pn?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Za,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ja,{onClick:()=>oe(!Le)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(ka,{id:v,children:t.jsx(ca,{isDrawerOpen:ln,allowComposer:!0,drawerTitle:Ka,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Tt.addANewComment,replyComposerPlaceholder:Tt.replyAComment,threadResolve:vt.resolveComment,threadUnResolve:vt.unResolveComment},threadMetadata:Mn,onThreadClick:on,onCloseAllThreadsDrawer:()=>X(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Va=(e,x)=>{const g=e?.code;if(e!=null&&g!=null)return x?.isDeleted===!0?{value:Ae.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&x?.dueDate?.isBefore(Ma(),"date")===!0?{value:Ae.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[g].color,bgColor:L[g].bgColor,borderColor:L[g].borderColor}},Xa=(e,x)=>{const g=x.transactionDetails?.recipientTotalAmount;return t.jsxs(Ti,{windowSize:e,children:[t.jsxs(Pt,{windowSize:e,children:[t.jsx(Bt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:x.withdrawFrom!=null?Nt(x.withdrawFrom,e):d})]}),t.jsxs(Pt,{windowSize:e,children:[t.jsx(Bt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:g!=null?$e("0,0[.]00",g):C})]})]})},Ga=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,Ua=e=>{const x=e.paymentMode,g=n.paymentOutsideZeni.offline;if(x==null||x==="other")return g;const W=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===x)?.label;return`${g} ${_a} ${W}`},qa=(e,x,g)=>{if(e)return t.jsx(bt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:ft.duplicateWarning.title,description:ft.duplicateWarning.description});if(g!=null){const W=`${x.withdrawFrom?.label??""} ${x.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(bt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Ft.lowBalanceIn.replace("__account__",W)}`,description:g.replace("Low balance! ","")})}else return null},Ha=i.div``,Qa=i.div``,Ya=i.div`
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: flex-end;
|
|
5
|
-
`,Ja=i($a)`
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
color: ${e=>e.theme.colors.hero};
|
|
8
|
-
width: ${a.sp4};
|
|
9
|
-
height: ${a.sp4};
|
|
10
|
-
&:hover {
|
|
11
|
-
color: ${e=>e.theme.colors.primary};
|
|
12
|
-
}
|
|
13
|
-
`,jt=i.div`
|
|
14
|
-
display: flex;
|
|
15
|
-
margin-left: ${e=>e.windowSize==="small"?e.showEditIcon===!0?a.sp3:a.sp4:m.otherActionsIconContainerMarginLeft.valuePx(e.windowSize)};
|
|
16
|
-
cursor: ${e=>e.isIconClickable===!0?"pointer":"default"};
|
|
17
|
-
color: ${e=>e.theme.colors.grey1};
|
|
18
|
-
&:hover {
|
|
19
|
-
color: ${e=>e.theme.colors.primary};
|
|
20
|
-
}
|
|
21
|
-
`,ei=i(Oa)`
|
|
22
|
-
color: ${e=>e.theme.colors.hero};
|
|
23
|
-
width: ${a.sp5};
|
|
24
|
-
height: ${a.sp5};
|
|
25
|
-
margin-bottom: ${a.sp2};
|
|
26
|
-
&:hover {
|
|
27
|
-
color: ${e=>e.theme.colors.primary};
|
|
28
|
-
}
|
|
29
|
-
`,ti=i(Ia)`
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
color: ${e=>e.theme.colors.hero};
|
|
32
|
-
width: ${a.sp4};
|
|
33
|
-
height: ${a.sp4};
|
|
34
|
-
&:hover {
|
|
35
|
-
color: ${e=>e.theme.colors.primary};
|
|
36
|
-
}
|
|
37
|
-
`,ni=i.div`
|
|
38
|
-
display: flex;
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
color: ${e=>e.theme.colors.grey1};
|
|
41
|
-
margin-left: ${a.sp4};
|
|
42
|
-
&:hover {
|
|
43
|
-
color: ${e=>e.theme.colors.primary};
|
|
44
|
-
}
|
|
45
|
-
`,ai=i.div`
|
|
46
|
-
display: flex;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
`,Dt=i.div`
|
|
50
|
-
display: flex;
|
|
51
|
-
width: max-content;
|
|
52
|
-
align-items: center;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
56
|
-
color: ${e=>e.theme.colors.hero};
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
padding-top: ${a.sp1};
|
|
59
|
-
padding-bottom: ${a.sp1};
|
|
60
|
-
position: absolute;
|
|
61
|
-
bottom: ${e=>m.otherActionsContainerBottom.valuePx(e.windowSize)};
|
|
62
|
-
z-index: 3;
|
|
63
|
-
border: ${e=>`1px solid ${e.theme.colors.grey3}`};
|
|
64
|
-
border-radius: ${a.sp1};
|
|
65
|
-
right: ${e=>m.right.valuePx(e.windowSize)};
|
|
66
|
-
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.grey1}3D`};
|
|
67
|
-
`,ii=i.div`
|
|
68
|
-
width: auto;
|
|
69
|
-
justify-content: flex-end;
|
|
70
|
-
position: ${e=>e.windowSize==="small"?"static":"relative"};
|
|
71
|
-
right: ${e=>m.actionsContainerRight.valuePx(e.windowSize)};
|
|
72
|
-
height: 100%;
|
|
73
|
-
display: flex;
|
|
74
|
-
`,Z=i(Ot)`
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
width: 100%;
|
|
78
|
-
padding-left: ${a.sp3};
|
|
79
|
-
padding-right: ${a.sp3};
|
|
80
|
-
height: ${a.sp6};
|
|
81
|
-
box-sizing: border-box;
|
|
82
|
-
&:hover {
|
|
83
|
-
background-color: ${e=>e.theme.colors.background};
|
|
84
|
-
}
|
|
85
|
-
`,It=i(ma)`
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
color: ${e=>e.theme.colors.hero};
|
|
88
|
-
width: 20px;
|
|
89
|
-
height: 20px;
|
|
90
|
-
&:hover {
|
|
91
|
-
color: ${e=>e.theme.colors.primary};
|
|
92
|
-
}
|
|
93
|
-
`,$t=i.div`
|
|
94
|
-
margin-top: ${e=>m.marginTop.valuePx(e.windowSize)};
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
`,At=i(ya)`
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
width: ${a.sp4};
|
|
100
|
-
height: ${a.sp4};
|
|
101
|
-
color: ${e=>e.theme.colors.hero};
|
|
102
|
-
&:hover {
|
|
103
|
-
color: ${e=>e.theme.colors.primary};
|
|
104
|
-
}
|
|
105
|
-
`,kt=i.div`
|
|
106
|
-
display: flex;
|
|
107
|
-
flex-direction: row;
|
|
108
|
-
align-items: center;
|
|
109
|
-
gap: ${e=>m.rightIconsGap.valuePx(e.windowSize)};
|
|
110
|
-
margin-top: ${e=>m.closeContainerMarginTop.valuePx(e.windowSize)};
|
|
111
|
-
`,St=i.div`
|
|
112
|
-
float: right;
|
|
113
|
-
width: ${a.sp4};
|
|
114
|
-
height: ${a.sp4};
|
|
115
|
-
display: flex;
|
|
116
|
-
`,li=i.div`
|
|
117
|
-
height: 100%;
|
|
118
|
-
overflow: scroll;
|
|
119
|
-
`,ve=i.div`
|
|
120
|
-
display: flex;
|
|
121
|
-
flex-direction: column;
|
|
122
|
-
background-color: ${e=>e.theme.colors.grey5};
|
|
123
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
124
|
-
box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
|
|
125
|
-
border-radius: ${a.sp2};
|
|
126
|
-
margin: ${a.sp3} 0;
|
|
127
|
-
`,je=i.div`
|
|
128
|
-
display: flex;
|
|
129
|
-
flex-direction: column;
|
|
130
|
-
padding-top: ${a.sp3};
|
|
131
|
-
`,oi=i.div``,De=i(fa)`
|
|
132
|
-
color: ${e=>e.theme.colors.primary};
|
|
133
|
-
`,R=i.div`
|
|
134
|
-
display: flex;
|
|
135
|
-
flex: 1;
|
|
136
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
137
|
-
min-height: 1px;
|
|
138
|
-
max-height: 1px;
|
|
139
|
-
`,ri=i(wa)`
|
|
140
|
-
display: flex;
|
|
141
|
-
align-items: center;
|
|
142
|
-
justify-content: space-between;
|
|
143
|
-
color: ${e=>e.theme.colors.champion};
|
|
144
|
-
margin-top: ${a.sp2};
|
|
145
|
-
height: 31px;
|
|
146
|
-
`,si=i(Ta)`
|
|
147
|
-
color: ${e=>e.theme.colors.champion};
|
|
148
|
-
`,di=i.div`
|
|
149
|
-
display: flex;
|
|
150
|
-
flex-direction: column;
|
|
151
|
-
`,ci=i.div`
|
|
152
|
-
display: flex;
|
|
153
|
-
flex-direction: column;
|
|
154
|
-
background-color: ${e=>e.theme.colors.grey4};
|
|
155
|
-
padding-left: ${e=>m.containerPaddingLeft.valuePx(e.windowSize)};
|
|
156
|
-
padding-right: ${e=>m.containerPaddingRight.valuePx(e.windowSize)};
|
|
157
|
-
overflow-x: hidden;
|
|
158
|
-
margin-top: ${e=>m.navBarHeight.valuePx(e.windowSize)};
|
|
159
|
-
`,pi=i.div`
|
|
160
|
-
display: flex;
|
|
161
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
162
|
-
align-items: ${e=>e.windowSize==="small"?"unset":"center"};
|
|
163
|
-
width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
|
|
164
|
-
`,mi=i.div`
|
|
165
|
-
display: flex;
|
|
166
|
-
margin-bottom: ${a.sp3};
|
|
167
|
-
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
168
|
-
align-items: ${e=>e.windowSize==="small"?"unset":"center"};
|
|
169
|
-
width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
|
|
170
|
-
`,ui=i(ga)`
|
|
171
|
-
display: flex;
|
|
172
|
-
align-items: center;
|
|
173
|
-
flex-grow: 1;
|
|
174
|
-
${e=>`${Fa.formTitle.style(e.windowSize)}`};
|
|
175
|
-
color: ${e=>e.theme.colors.primary};
|
|
176
|
-
margin-bottom: ${e=>m.formTitleMarginTopBottom.valuePx(e.windowSize)};
|
|
177
|
-
margin-bottom: ${e=>m.formTitleMarginTopBottom.valuePx(e.windowSize)};
|
|
178
|
-
word-break: break-all;
|
|
179
|
-
padding: ${e=>`${a.sp0} ${m.formTitlePaddingLeftRight.valuePx(e.windowSize)}`};
|
|
180
|
-
`,yi=i.div`
|
|
181
|
-
padding: ${a.sp3};
|
|
182
|
-
display: flex;
|
|
183
|
-
align-items: center;
|
|
184
|
-
justify-content: center;
|
|
185
|
-
background-color: ${e=>e.theme.colors.grey3};
|
|
186
|
-
border: 1px solid ${e=>e.theme.colors.grey3};
|
|
187
|
-
border-radius: ${a.sp2};
|
|
188
|
-
color: ${e=>e.theme.colors.hero};
|
|
189
|
-
margin-bottom: ${e=>m.marginBottom.valuePx(e.windowSize)};
|
|
190
|
-
`,hi=i(Lt)`
|
|
191
|
-
display: flex;
|
|
192
|
-
width: 176px;
|
|
193
|
-
color: ${e=>e.theme.colors.primary};
|
|
194
|
-
`,bi=i(Lt)`
|
|
195
|
-
display: flex;
|
|
196
|
-
width: calc(100% - 176px);
|
|
197
|
-
justify-content: flex-end;
|
|
198
|
-
color: ${e=>e.theme.colors.primary};
|
|
199
|
-
`,Ct=i(xa)`
|
|
200
|
-
display: flex;
|
|
201
|
-
color: ${e=>e.borderColor};
|
|
202
|
-
align-items: center;
|
|
203
|
-
justify-content: flex-end;
|
|
204
|
-
padding: 1px 6px 1px 6px;
|
|
205
|
-
border: ${e=>`1px solid ${e.borderColor}`};
|
|
206
|
-
border-radius: ${a.sp1};
|
|
207
|
-
min-width: fit-content;
|
|
208
|
-
`,gi=i.div`
|
|
209
|
-
display: flex;
|
|
210
|
-
flex-direction: column;
|
|
211
|
-
height: ${a.sp11};
|
|
212
|
-
`,xi=i(pa)`
|
|
213
|
-
height: ${a.sp3};
|
|
214
|
-
width: ${a.sp3};
|
|
215
|
-
color: ${e=>e.theme.colors.hero};
|
|
216
|
-
`,fi=i.div`
|
|
217
|
-
display: flex;
|
|
218
|
-
align-items: center;
|
|
219
|
-
margin-left: ${a.sp2};
|
|
220
|
-
margin-top: ${e=>m.iconContainerMarginTop.valuePx(e.windowSize)};
|
|
221
|
-
align-self: center;
|
|
222
|
-
`,Ie=i(ha)`
|
|
223
|
-
margin-left: ${a.sp2};
|
|
224
|
-
color: ${e=>e.theme.colors.hero};
|
|
225
|
-
`,wi=i.div``,Ti=i.div`
|
|
226
|
-
display: flex;
|
|
227
|
-
flex-direction: column;
|
|
228
|
-
gap: ${a.sp2};
|
|
229
|
-
margin: ${e=>e.windowSize==="small"?`0 ${a.sp3} ${a.sp6} ${a.sp3}`:`0 ${a.sp8} ${a.sp5} ${a.sp8}`};
|
|
230
|
-
`,Pt=i.div`
|
|
231
|
-
display: flex;
|
|
232
|
-
justify-content: space-between;
|
|
233
|
-
width: ${e=>m.refundPopupWidth.valuePx(e.windowSize)};
|
|
234
|
-
`,Bt=i(Ot)`
|
|
235
|
-
text-align: left;
|
|
236
|
-
color: ${e=>e.theme.colors.grey1};
|
|
237
|
-
`,zt=i(Aa)`
|
|
238
|
-
justify-content: end;
|
|
239
|
-
display: flex;
|
|
240
|
-
flex: 1;
|
|
241
|
-
`,Rt=i.div`
|
|
242
|
-
display: flex;
|
|
243
|
-
align-items: center;
|
|
244
|
-
justify-content: center;
|
|
245
|
-
position: relative;
|
|
246
|
-
cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
|
|
247
|
-
color: ${e=>e.theme.colors.hero};
|
|
248
|
-
opacity: ${e=>e.isDisabled?.5:1};
|
|
249
|
-
&:hover {
|
|
250
|
-
color: ${e=>e.theme.colors.primary};
|
|
251
|
-
}
|
|
252
|
-
`,Mt=i(ua)`
|
|
253
|
-
display: flex;
|
|
254
|
-
width: ${a.sp4};
|
|
255
|
-
height: ${a.sp4};
|
|
256
|
-
align-items: center;
|
|
257
|
-
justify-content: center;
|
|
258
|
-
`,vi=i.div`
|
|
259
|
-
display: flex;
|
|
260
|
-
justify-content: space-evenly;
|
|
261
|
-
margin-top: 0px;
|
|
262
|
-
position: fixed;
|
|
263
|
-
top: 0px;
|
|
264
|
-
width: ${e=>m.navBarContainerWidth.valuePercentage(e.windowSize)};
|
|
265
|
-
z-index: 3;
|
|
266
|
-
`;export{Mi as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{V as t}from"./index-Bbd5Axbp.js";import o from"./CustomerOnboardingNoStepsPage-B_0Hrx2F-BdzwfopU.js";import i from"./CustomerOnboardingPage-aBkvsh1l-BXmnzO_g.js";import"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-DxvQlcJu.js";import"./zeni-epic-state-xFtF3OLs.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./PaymentAccountSetupBillingAddressSection-DFeVoMTQ-pcJ_okiT.js";import"./SetUpAccountSection-BKOCyUH3-BQ3VpPaI.js";import"./CustomerOnboardingDetailPageSkeleton-XJtMtsSn-CAwoUQOk.js";import"./CompanyOfficerDetailsSection-BqY-k8Ic-DYr7jvqd.js";import"./LabeledAddressValueField-C4ft1l-K-DncA4cPY.js";import"./LabeledCreatableSingleSelectField-BeelRB2Y-fxP4qWXW.js";import"./LabeledDocumentField-CgMzc8wC-BKcbKApj.js";import"./QBOSetupSection-CvWw_-bE-QtY2CQq9.js";import"./QBOConnectionDialog-BRU6xjQi-DU5o3RS5.js";const k=r=>r.currentTenant?.productSettings.isOtherProductsEnabled===!0?t.jsx(o,{...r}):t.jsx(i,{...r});export{k as default};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import{V as r,fs as tn,Q as We,d as nn,a8 as an,cB as me,F as Ye,aN as Qe,x as ft,aA as He,bz as on,o as re,ab as sn,u as K,aO as rn,hE as cn,g6 as ln,ft as yt,d3 as Ot,d4 as gt,y as fe,g9 as ye,cO as dn,ak as pn,hF as ht,ac as St,cM as un,g8 as mn}from"./index-Bbd5Axbp.js";import{a as m}from"./core-3dlyNYRL.js";import{n as P,k as xt}from"./mui-bYXq4XMS.js";import{bi as j}from"./zeni-epic-state-xFtF3OLs.js";import{s as Ct,o as fn}from"./PaymentAccountSetupBillingAddressSection-DFeVoMTQ-pcJ_okiT.js";import{b as bt,f as yn,a as Pt}from"./CustomerOnboardingDetailPageSkeleton-XJtMtsSn-CAwoUQOk.js";import{s as gn,S as hn}from"./CompanyOfficerDetailsSection-BqY-k8Ic-DYr7jvqd.js";import{t as Sn}from"./QBOSetupSection-CvWw_-bE-QtY2CQq9.js";import"./sentry-DxvQlcJu.js";import"./lottie-CaGAfnTY.js";import"./liveblocks-B3KbWbMM.js";import"./utils-C70QTjQC.js";import"./analytics-CThNEnNw.js";import"./recharts-CXSQ4XPK.js";import"./lexical-DPEnH3HH.js";import"./SetUpAccountSection-BKOCyUH3-BQ3VpPaI.js";import"./LabeledAddressValueField-C4ft1l-K-DncA4cPY.js";import"./LabeledCreatableSingleSelectField-BeelRB2Y-fxP4qWXW.js";import"./LabeledDocumentField-CgMzc8wC-BKcbKApj.js";import"./QBOConnectionDialog-BRU6xjQi-DU5o3RS5.js";const Cn=({companyView:n,companyOfficerLocalData:k,allNationalityCountries:c,isVerificationPopupOpen:g,setIsVerificationPopupOpen:v,verifiedPhoneNumber:I,onPhoneVerified:h,...O})=>{const y=We(),N=n?.companyOfficers.slice(0,10).sort((b,ee)=>b.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=Ye.getLocalizedStrings().customerOnboardingPage.sections,{title:V}=l,$=n?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(bn,{children:r.jsx(hn,{companyOfficerData:k,allOfficers:N??[],allNationalityCountries:c,sectionHeader:V,isPopupOpen:g,productType:"onboarding",connectedAccountProvider:$,showInfoTooltip:y!=="small",showCompletedIcon:y==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:I,onPhoneVerified:h,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...O})})},bn=P.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
`,Pn=({fileProps:n,companyDetails:k,companyIndustries:c,sectionId:g,isCompleted:v,isDisabled:I,style:h,onCompanyAddressClick:O,onRegisteredAddressClick:y})=>{const N=We(),{company_details:l}=Ye.getLocalizedStrings().customerOnboardingPage.sections,{title:V}=l;return r.jsx(In,{children:r.jsx(gn,{fileProps:n,companyDetails:k,sectionId:g,isDisabled:I,style:h,sectionHeader:V,productType:"onboarding",showInfoTooltip:N!=="small",showCompletedIcon:N==="small",isCompleted:v,allIndustries:c,optionalFields:["companyLegalName","companyDescription","companyAddress","companyIndustry","typeOfIncorporation","incDate","certificateOfIncorporation","ein","companyPhone","primaryContactName"],onCompanyAddressClick:O,onRegisteredAddressClick:y})})},In=P.div`
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
`,On=P.div`
|
|
10
|
-
display: flex;
|
|
11
|
-
`,xn=P.input`
|
|
12
|
-
display: none;
|
|
13
|
-
`,wn=({isValid:n,sectionId:k="onboardingQboConnection",...c})=>{const{register:g}=dn();return r.jsxs(On,{children:[r.jsx(xn,{type:"hidden",...g(`${k}.connected`,{validate:v=>v==="true"}),value:n?"true":"false"}),r.jsx(Sn,{isValid:n,...c})]})},B="companyDetails",C="companyOfficer",Z="onboardingPaymentAccountSetupSection",It="customerOnboardingDetailPage",f="onboardingSubscriptionBillingAddress",ge="onboardingQboConnection",he={titleWidth:new fe(343,580,726,826),topNavBarHeight:new fe(52,52,63),topNavBarLeftRightSpace:new fe(K[5],K[9],112),subTitlePaddingTop:new fe(K[3],K[3]),subTitlePaddingBottom:new fe(K[3],K[3])},kn=n=>`${n}_form`,ce=Ye.getLocalizedStrings(),vn=({fileProps:n,isRefreshingViewInBackground:k,isAdmin:c,onboardingCustomerView:g,companyTitles:v,connectedAccountProvider:I,analytics:h,cardPaymentView:O,stripeKey:y,googleAPIKey:N,handleCreateCardSetupIntent:l,handleConfirmCardSetupIntent:V,updateCardPaymentModalState:$,handleAddCardPaymentSource:b,resetCardPaymentViewState:ee,handleResetCardPaymentErrorStatuses:ve,redirectToProductSuitePage:Se,onFormErrorsChange:D,...Ae})=>{const z=We(),Ne=m.useRef(null),Ve=m.useRef(null),W=m.useRef(null),_e=m.useRef(null),[Ce,R]=m.useState(!1),[U,q]=m.useState("next"),[F,be]=m.useState(!1),[le,Pe]=m.useState(!1),[te,Y]=m.useState(null),{onAddressClick:ne,onCompanyDetailsChanged:Ie,onCompanyOfficerUpdated:_,onFetchLinkTokenClick:Oe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:oe,onDeleteFile:A,onEditFileName:Ge,updateFilesEntity:Xe,onGetOtp:wt,onSkipSetupClick:De,onUpdateCustomerView:Te,updateStepHandler:M,onVerifyOtp:kt,onResendOtp:vt,handleOnConnectClick:At,updateQBOPopupState:Nt,onUpdateStep:$e,onAddressEditHandler:Vt}=Ae,_t=nn(),s=an({mode:"onSubmit",reValidateMode:"onChange",defaultValues:Ke(g,g.allNationalityCountries),values:Ke(g,g.allNationalityCountries),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),Q=m.useCallback(()=>{const e=[];return(s.getFieldState(Z).error!=null||s.getFieldState(f).error!=null)&&e.push("link_payment_account"),s.getFieldState(ge).error!=null&&e.push("qbo_connection"),e},[s]);m.useEffect(()=>{const e=Q();D?.(e)},[Q,D]),m.useEffect(()=>{const e=s.watch((t,{name:a,type:i})=>{a!=null&&(i==="change"||i==="blur")&&me(()=>{const u=Q();D?.(u)})});return()=>e.unsubscribe()},[s,Q,D]);const Je=e=>{tt(e)},{companyView:se,companyDetailsLocalData:d,companyOfficerLocalData:E,currentStep:o,completedSteps:Ze,saveStatus:x,allSteps:S,allRequiredStepsCompleted:Fe,paymentAccount:H,paymentAccountStatus:et,externalConnections:Ee,plaidConnectionDetails:Le,uiState:je,allNationalityCountries:Be,pendingSaveDetails:{companyDetails:Dt,officer:Tt},subscriptionBillingAddress:G}=g,xe=m.useRef(""),$t=e=>{xe.current=e;const t=Object.values(g.companyOfficerLocalData).findIndex(i=>i?.isSelectedForVerification===!0)??0,a=t<0?0:t;s.clearErrors(`${C}.${a}.phone`)},tt=e=>{e!=null&&!ye(e)?s.trigger(`${C}.${X}.phone`):wt(e)},X=Object.values(E).findIndex(e=>e?.isSelectedForVerification===!0)??0,T=`Officer_${X<0?1:X+1}`,Ft=se?.companyOfficers.slice(0,10).sort((e,t)=>e.user.createTime?.isAfter(t.user.createTime)===!0?1:-1),ze=E[T]?.userId!=null?Ft?.find(e=>e.user.userId===E[T]?.userId)?.address:null,nt=E[T]?.addressStatus?.addressToCreate,we=se?.companyAddress,at=d?.addressStatus?.addressToCreate,Re=se?.registeredAddress,ot=d?.registeredAddressStatus?.addressToCreate,{customerOnboardingPage:Et,common:p}=ce,{footer:Lt,steps:jt}=Et,{buttons:st}=Lt,it=jt[o],Ue=S.length,ie=Qe(x.fetchState),L=Qe(o);function Bt(){return Ee?.accounting[0]?.isValid??!1}const ue=()=>{const e=Object.values(Le).some(u=>u.fetchStatus.fetchState==="Completed"),t=H?.providerVerificationStatus?.code?.includes("verified")??!1,a=O.cardsList.length>0,i=O.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return e&&t||!t&&!H&&a||!a&&!H&&i};function rt(){if(s.getFieldState(f).error)return!1;const e=s.getValues(f),t=G?.street.join("").trim(),a=G?.city,i=G?.state,u=G?.country,w=G?.postalCode!=null&&G.postalCode||e.postalCode||p.strings.empty;return!!t&&!!a&&!!i&&!!u&&!!w}const ct=Qe(H?.providerVerificationStatus?.code),zt=()=>{const e=d,t=[];return e?.companyLegalName!=null&&t.push("legal_name"),e?.companyDescription!=null&&e?.companyDescription!==p.strings.empty&&t.push("company_description"),e?.addressStatus?.addressToCreate!=null&&t.push("company_address"),e?.registeredAddressStatus?.addressToCreate!=null&&t.push("registered_address"),e?.website!=null&&t.push("website"),e?.companyIndustry!=null&&e?.companyIndustry!==p.strings.empty&&t.push("industry"),e?.typeOfIncorporation!=null&&e?.typeOfIncorporation!==p.strings.empty&&t.push("type_of_incorporation"),e?.incDate!=null&&t.push("inc_date"),e?.phone!=null&&t.push("phone"),e?.primaryContactLocalData?.firstName!=null&&e?.primaryContactLocalData?.lastName!=null&&t.push("primary_contact_name"),e?.primaryContactLocalData?.email!=null&&t.push("primary_contact_email"),e?.taxIdOrEIN!=null&&t.push("tax_id_or_ein"),e?.companyFiles.find(a=>a.documentType==="certificate_of_incorporation")!=null&&t.push("certificate_of_incorporation"),e?.companyFiles.find(a=>a.documentType==="tax_ein")!=null&&t.push("ein"),{completedFields:t,status:t.length===14?"complete":t.length>0?"partially_complete":"incomplete"}},Rt=()=>{const e=E[T],t=[];return e?.firstName!=null&&e.firstName!==p.strings.empty&&t.push("first_name"),e?.lastName!=null&&e.lastName!==p.strings.empty&&t.push("last_name"),e?.birthday!=null&&t.push("dob"),e?.nationalityCountryCode!=null&&t.push("nationality"),e?.addressStatus?.addressToCreate!=null&&t.push("address"),e?.phone!=null&&e.phone!==p.strings.empty&&e.isPhoneVerified===!0&&t.push("phone"),e?.titleAtCompany!=null&&e.titleAtCompany!==p.strings.empty&&t.push("company_role"),e?.ownershipInCompany!=null&&t.push("ownership"),e?.ssn!=null&&e.ssn!==p.strings.empty&&t.push("ssn"),e?.documentTypeSelectedForVerification!=null&&t.push("document_type"),e?.fileIds!=null&&e.fileIds.length>0&&t.push("document_uploaded"),{completedFields:t,status:t.length===11?"complete":t.length>0?"partially_complete":"incomplete"}};m.useEffect(()=>{ct==="pending_manual_verification"&&H?.providerVerificationStatus?.code==="manually_verified"&&h.trackOnboardingBankAccountVerified("manual")},[h,H?.providerVerificationStatus?.code,ct]);const Ut=async(e,t)=>{if(e.includes(B))Ie?.(t[B]);else if(e.includes(C))_?.(t[C]);else if(e.includes(f)&&t[f]!=null){const a=s.getValues(`${f}`).country;let i=t[f];if(e.includes(`${f}.street`)&&t[f].street!=null){const{addressValue:u}=t[f].street,w=Ot(u?.country);i={street:t[f].street??p.strings.empty,city:u?.locality??p.strings.empty,state:u?.administrativeAreaLevel1??p.strings.empty,country:w,countryCode:u?.countryCode??p.strings.empty,postalCode:u?.postalCode??p.strings.empty,secondaryInfo:t[f].secondaryInfo,suite:t[f].suite},a.selectedOption!==w.selectedOption&&(i={...i,country:w})}else e===`${f}.country`&&a.selectedOption!=null?i={...i,countryCode:gt(a.selectedOption)}:a.selectedOption!=null&&e.includes(`${f}.street`)===!1&&(i={...i,countryCode:gt(a.selectedOption)});Vt(i)}};m.useEffect(()=>{const e=s.watch((t,{name:a})=>{a!=null&&t!=null&&me(()=>Ut(a,t))});return()=>{e.unsubscribe()}}),m.useEffect(()=>{ie==="In-Progress"&&x.fetchState==="Completed"&&(s.reset(Ke(g,Be),{keepDirtyValues:!1}),L==="company_details"&&o==="link_payment_account"&&!S.includes("qbo_connection")&&!g.qboConnected&&Se())},[s,g,ie,x.fetchState,Be,L,o,S,Se]),m.useEffect(()=>{Ce&&ie==="In-Progress"&&x.fetchState==="Completed"&&(De(),h.track(ft.Event.onboardingSkipAndSave))},[ie,Ce,x.fetchState,De]),m.useEffect(()=>{te?.shouldNavigate===!0&&ie==="In-Progress"&&x.fetchState==="Completed"&&(Y(null),M(te.fromStep,te.stepDirection,!0))},[te,ie,x.fetchState,M]),m.useLayoutEffect(()=>{L!=null&&L!==o&&(S.indexOf(L)===S.indexOf(o)-1||S.indexOf(L)===Ue-1&&S.indexOf(o)===0?U!=="next"&&q("next"):(S.indexOf(L)-1===S.indexOf(o)||S.indexOf(L)===0&&S.indexOf(o)===Ue-1)&&U!=="previous"&&q("previous"))},[S,o,L,U,Ue]);const lt=()=>{const e=E[T];return!!e?.firstName||!!e?.lastName||!!e?.email||!!e?.nationalityCountryCode||!!e?.birthday||!!e?.ownershipInCompany||!!e?.phone||!!e?.ssn||!!e?.titleAtCompany||!!e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0},qt=!He(nt!=null?j(nt):null,ze!=null?j(ze):null),Mt=!He(at!=null?j(at):null,we!=null?j(we):null),Qt=!He(ot!=null?j(ot):null,Re!=null?j(Re):null),Ht=s.getFieldState(B).isDirty||Mt||Qt||Dt,qe=s.getFieldState(C).isDirty&<()||qt||Tt,dt=s.getFieldState(`${f}`).isDirty,ke=d?.primaryContactLocalData,Kt=()=>{M(o,"previous",!0)},Wt=()=>{const e=s.getValues(f),t={street:e.street.addressString,suite:e.suite,city:e.city,state:e.state,postalCode:e.postalCode,country:e.country.selectedOption??p.strings.empty,secondaryInfo:e.secondaryInfo};h.trackOnboardingBillingAddressSave(t)},Yt=()=>{switch(Pe(!1),o){case"link_payment_account":dt?setTimeout(()=>{const e=Q();D?.(e),rt()&&dt?(Wt(),Te(T,!1,!0),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):M(o,"next",!0)},200):M(o,"next",!0);break;case"qbo_connection":M(o,"next",!0);break;case"company_officer":if(qe){const e=pt();if(me(()=>{const t=Q();D?.(t)}),e.needsOtp&&e.phoneNumber&&ye(e.phoneNumber)){const t=s.formState.errors[C]?.[X<0?0:X],a=t?.phone,i=t!=null&&Object.keys(t).some(u=>u!=="phone"&&t[u]!=null);if(a!=null&&!i){Je(e.phoneNumber);return}}e.isValid&&(Te(T,!1,!1),h.trackOnboardingCompanyOfficerSave(ut(),{legalName:d?.companyLegalName},Rt()),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"}))}else M(o,"next",!0);break;case"company_details":Pe(!0);{const e=!(rt()&&ue()),t=!Bt()&&S.includes("qbo_connection");if(e||t){e&&(s.trigger(`${Z}`),s.trigger(`${f}`)),t&&s.trigger(ge),me(()=>{const a=Q();D?.(a)}),e?$e("link_payment_account"):t&&$e("qbo_connection");return}}if(Ht||qe||!ke?.email){const e=Xt(),t=qe?pt():{isValid:!0};me(()=>{const a=Q();D?.(a)}),e&&t.isValid?(Fe&&(R(!0),Jt()),Te(T,!Fe,!1),h.trackOnboardingCompanyDetailsSave({companyDescription:d?.companyDescription,legalName:d?.companyLegalName,industry:d?.companyIndustry??p.strings.empty,incDate:d?.incDate?.toString(),phone:d?.phone,website:d?.website?.toString(),formattedAddress:d?.addressStatus?.addressToCreate!=null?j(d?.addressStatus?.addressToCreate):void 0},zt(),{firstName:ke?.firstName,lastName:ke?.lastName,email:ke?.email}),Y({fromStep:o,shouldNavigate:!0,stepDirection:"next"})):t.isValid||$e("company_officer")}else Fe?Gt():M(o,"next",!0);break}},Gt=()=>{x.fetchState!=="In-Progress"&&(De(),h.track(ft.Event.onboardingSkipAndSave))},pt=()=>{const e=E[T],t=e?.email??p.strings.empty,a=e?.phone??p.strings.empty,i=e?.ssn??p.strings.empty,u=e?.ownershipInCompany,w=X<0?0:X,en=!!e?.firstName&&!!e?.lastName;let J=!0,mt=!1;return t&&!en&&(s.trigger([`${C}.${w}.name.firstName`,`${C}.${w}.name.lastName`],{shouldFocus:o==="company_officer"}),J=!1),(!t&<()||St.test(t)===!1)&&(s.trigger(`${C}.${w}.email`,{shouldFocus:o==="company_officer"}),J=!1),a&&ye(a)===!1&&(s.trigger(`${C}.${w}.phone`,{shouldFocus:o==="company_officer"}),J=!1),a&&ye(a)===!0&&I==="unit"&&(xe.current!==""&&a===xe.current||(mt=!0,s.setError(`${C}.${w}.phone`,{type:"custom",message:ce.commonSetUp.businessVerification.phoneValidationError},{shouldFocus:o==="company_officer"}),J=!1)),u!=null&&u>100&&(s.trigger(`${C}.${w}.ownership`,{shouldFocus:o==="company_officer"}),J=!1),i&&mn.test(i)===!1&&(s.trigger(`${C}.${w}.ssn`,{shouldFocus:o==="company_officer"}),J=!1),{isValid:J,needsOtp:mt,phoneNumber:a}},Xt=()=>{const e=d?.website?.toString()??p.strings.empty,t=d?.phone??p.strings.empty,a=d?.taxIdOrEIN??p.strings.empty,i=d?.primaryContactLocalData?.email??p.strings.empty;let u=!0;return e&&ht.test(e)===!1&&(s.trigger(`${B}.companyWebsite`,{shouldFocus:o==="company_details"}),u=!1),ht.lastIndex=0,t&&ye(t)===!1&&(s.trigger(`${B}.companyPhone`,{shouldFocus:o==="company_details"}),u=!1),(!i||St.test(i)===!1)&&(s.trigger(`${B}.primaryContactEmail`,{shouldFocus:o==="company_details"}),u=!1),a&&un.test(a)===!1&&(s.trigger(`${B}.companyTaxId`,{shouldFocus:o==="company_details"}),u=!1),u},ut=()=>{const e=E[T];return{email:e?.email??p.strings.empty,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?j(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification}},Jt=()=>{const e=d?.primaryContactLocalData;h.trackBusinessVerificationSave(ut(),{companyDescription:d?.companyDescription,legalName:d?.companyLegalName,phone:d?.phone,website:d?.website?.toString(),industry:d?.companyIndustry??p.strings.empty,formattedAddress:d?.addressStatus?.addressToCreate!=null?j(d?.addressStatus?.addressToCreate):void 0},{firstName:e?.firstName,lastName:e?.lastName,email:e?.email},"onboarding")},[Me,Zt]=m.useState(!1);return r.jsxs(Vn,{children:[r.jsxs(_n,{windowSize:z,children:[S.indexOf(o)>=0?r.jsx(on,{title:it.sectionTitle,showBackButton:!1,backgroundColor:_t.colors.grey4,style:{zIndex:4},showLeftSection:z!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:re.sp0,paddingBottom:re.sp0},source:"CustomerOnboardingDetailPage"}):r.jsx(Dn,{windowSize:z,children:r.jsx($n,{windowSize:z,children:r.jsx(Tn,{})})}),r.jsx(sn,{...s,children:r.jsx(En,{id:kn(It),children:S.map(e=>{let t;t=r.jsx(Ct,{connectedAccountProvider:I,paymentAccount:H,accountStatus:et,plaidConnectionDetails:Le,sectionId:Z,hasError:s.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,cardPaymentView:O,resetCardPaymentViewState:ee,updateCardPaymentModalState:$,cardSetupInProgress:Me,subscriptionBillingAddressSectionId:f});let a=Ne;switch(e){case"link_payment_account":t=r.jsx(Ct,{connectedAccountProvider:I,paymentAccount:H,accountStatus:et,plaidConnectionDetails:Le,subscriptionBillingAddressSectionId:f,sectionId:Z,hasError:s.getFieldState(Z).error!=null||le&&!ue(),isValid:ue(),analytics:h,onFetchLinkTokenClick:Oe,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ae,onEstablishConnectionSuccess:oe,updateCardPaymentModalState:$,cardPaymentView:O,resetCardPaymentViewState:ee,cardSetupInProgress:Me,googleAPIKey:N,subscriptionBillingAddress:G});break;case"qbo_connection":t=r.jsx(wn,{sectionId:ge,hasError:s.getFieldState(ge).error!=null,isAdmin:c,isValid:Ee?.accounting[0]?.isValid??!1,companyName:se?.company.company.companyInfo.companyLegalName,saveConnectionState:Ee?.saveConnectionState,isQBOPopupOpen:je.isQBOPopupOpen,handleOnConnectClick:At,updateQBOPopupState:Nt}),a=Ve;break;case"company_officer":t=r.jsx(Cn,{companyOfficerLocalData:E,allNationalityCountries:Be,isCompleted:Ze.includes("company_officer"),companyView:se,sectionId:C,filesEndPoint:n.filesEndPoint,authParams:n.authParams,isRefreshingViewInBackground:k,companyTitles:v,isVerificationPopupOpen:F,setIsVerificationPopupOpen:be,onGetOtp:Je,onVerifyOtp:kt,onResendOtp:vt,onOfficerAddressClick:i=>ne(i,ze?.addressId),updateFilesEntity:Xe,onEditFileName:Ge,onDeleteFile:A,verifiedPhoneNumber:xe.current,onPhoneVerified:$t,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,triggerError:tt}),a=_e;break;case"company_details":t=r.jsx(Pn,{fileProps:{...n,onEditFileName:Ge,onDeleteFile:A,updateFilesEntity:Xe},sectionId:B,companyIndustries:g.companyIndustries,companyDetails:d,isDisabled:x.fetchState==="In-Progress"?"readonly":void 0,isCompleted:Ze.includes("company_details"),onCompanyAddressClick:i=>{const u=se?.company.company.companyOnboardingInfo.subscriptionBillingAddressId;we?.addressId==null&&u!=null?ne(i,u):ne(i,we?.addressId)},onRegisteredAddressClick:i=>ne(i,Re?.addressId)}),a=W;break}return r.jsxs(Fn,{ref:a,isVisible:o===e,includeAnimation:o==="link_payment_account"||o==="qbo_connection"?!je.isQBOPopupOpen:o==="company_officer"?!F:!0,paddingBottom:e==="company_details"||e==="company_officer"?K[6]:K[0],stepAnimationDirection:U,children:[S.indexOf(o)>=0?r.jsx(Ln,{windowSize:z,children:it.sectionSubTitle}):null,t]},e)})})}),r.jsx(rn,{formId:`${It}`,style:{width:z==="small"?"auto":"100%",paddingTop:re.sp2,paddingBottom:re.sp2},primaryBtn:{onClick:Yt,label:o==="company_details"?p.footer.submit:st.next,isLoading:x.fetchState==="In-Progress",isDisabled:x.fetchState==="In-Progress"},cancelBtn:{onClick:Kt,label:st.back,isDisabled:x.fetchState==="In-Progress"||S.indexOf(o)===0},containerStyle:{width:"auto",justifyContent:"center"},showCancel:!0})]}),r.jsx(fn,{handleConfirmCardSetupIntent:V,updateCardPaymentModalState:$,handleCreateCardSetupIntent:l,handleAddCardPaymentSource:b,cardPaymentView:O,stripeKey:y,isCardPaymentOpen:je.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ve,cardSetupInProgress:Me,setCardSetupInProgress:Zt})]})},An=xt`
|
|
14
|
-
from {
|
|
15
|
-
transform: translateY(100%);
|
|
16
|
-
opacity: 0;
|
|
17
|
-
}
|
|
18
|
-
to {
|
|
19
|
-
transform: translateY(0);
|
|
20
|
-
opacity: 1;
|
|
21
|
-
}
|
|
22
|
-
`,Nn=xt`
|
|
23
|
-
from {
|
|
24
|
-
transform: translateY(-100%);
|
|
25
|
-
opacity: 0;
|
|
26
|
-
}
|
|
27
|
-
to {
|
|
28
|
-
transform: translateY(0);
|
|
29
|
-
opacity: 1;
|
|
30
|
-
}
|
|
31
|
-
`,Vn=P.div`
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
align-items: center;
|
|
35
|
-
min-width: calc(100% - ${Pt}px);
|
|
36
|
-
padding-left: ${Pt}px;
|
|
37
|
-
flex: 1;
|
|
38
|
-
|
|
39
|
-
${n=>n.theme.breakpoints.down("md")} {
|
|
40
|
-
width: 100%;
|
|
41
|
-
padding-left: ${re.sp0};
|
|
42
|
-
}
|
|
43
|
-
`,_n=P.div`
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-direction: column;
|
|
46
|
-
align-items: center;
|
|
47
|
-
flex: 1;
|
|
48
|
-
width: 100%;
|
|
49
|
-
min-height: 100vh;
|
|
50
|
-
background-image: ${n=>`url(https://storage.googleapis.com/zeni-apis.appspot.com/images/signin-background-${n.windowSize==="small"?"m":"w"}-${n.theme.mode==="dark"?"d":"l"}.svg)`};
|
|
51
|
-
background-color: ${n=>n.theme.colors.grey4};
|
|
52
|
-
background-size: inherit;
|
|
53
|
-
background-attachment: fixed;
|
|
54
|
-
background-position: ${n=>n.windowSize==="small"?"center center":"right center"};
|
|
55
|
-
background-repeat: no-repeat;
|
|
56
|
-
|
|
57
|
-
${n=>n.theme.breakpoints.down("lg")} {
|
|
58
|
-
background-size: cover;
|
|
59
|
-
}
|
|
60
|
-
`,Dn=P.div`
|
|
61
|
-
display: flex;
|
|
62
|
-
flex-direction: column;
|
|
63
|
-
align-items: center;
|
|
64
|
-
text-align: center;
|
|
65
|
-
width: ${n=>`calc(100% - ${he.topNavBarLeftRightSpace.valuePx(n.windowSize)})`};
|
|
66
|
-
`,Tn=P.div``,$n=P.div`
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
justify-content: space-between;
|
|
70
|
-
width: 100%;
|
|
71
|
-
min-height: ${n=>he.topNavBarHeight.valuePx(n.windowSize)};
|
|
72
|
-
`,Fn=P.div`
|
|
73
|
-
min-height: 100%;
|
|
74
|
-
display: ${n=>n.isVisible?"flex":"none"};
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
padding-bottom: ${n=>n.paddingBottom+"px"};
|
|
77
|
-
animation-name: ${n=>n.stepAnimationDirection==="next"?An:Nn};
|
|
78
|
-
${n=>n.includeAnimation?`
|
|
79
|
-
animation-duration: 0.6s;
|
|
80
|
-
animation-delay: 0s;
|
|
81
|
-
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
82
|
-
animation-fill-mode: both;
|
|
83
|
-
`:null}
|
|
84
|
-
`,En=P.form`
|
|
85
|
-
padding-top: ${re.sp0};
|
|
86
|
-
flex: 1;
|
|
87
|
-
`,Ln=P(pn)`
|
|
88
|
-
color: ${n=>n.theme.colors.hero};
|
|
89
|
-
display: flex;
|
|
90
|
-
justify-content: center;
|
|
91
|
-
width: ${n=>he.titleWidth.valuePx(n.windowSize)};
|
|
92
|
-
padding-top: ${n=>he.subTitlePaddingTop.valuePx(n.windowSize)};
|
|
93
|
-
padding-bottom: ${n=>he.subTitlePaddingBottom.valuePx(n.windowSize)};
|
|
94
|
-
text-align: ${n=>n.windowSize==="small"?"initial":"center"};
|
|
95
|
-
width: 100%;
|
|
96
|
-
white-space: pre-line;
|
|
97
|
-
`,Ke=(n,k)=>{const{companyDetailsLocalData:c,companyOfficerLocalData:g,companyView:v}=n,I=ce.commonSetUp.businessVerification,h=ce.companyPassport,O=v?.companyOfficers!=null&&v?.companyOfficers.length>0;return{[B]:{companyDescription:c?.companyDescription??ce.common.strings.empty,ein:c?.companyFiles.find(y=>y.documentType==="tax_ein"),companyId:c?.companyId,syncToken:c?.syncToken,companyLegalName:c?.companyLegalName,companyWebsite:c?.website?.toString()??ce.common.strings.empty,companyAddress:c?.addressStatus?.addressToCreate,registeredAddress:c?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:c?.companyIndustry,allOptions:n.companyIndustries.map(y=>y.code)},companyPhone:c?.phone,companyTaxId:c?.taxIdOrEIN,primaryContactName:{firstName:c?.primaryContactLocalData?.firstName,lastName:c?.primaryContactLocalData?.lastName},primaryContactEmail:c?.primaryContactLocalData?.email,primaryContactUserId:c?.primaryContactLocalData?.userId,primaryContactSyncToken:c?.primaryContactLocalData?.syncToken,fileIds:c?.companyFiles.map(y=>y.fileId)??[],certificateOfIncorporation:c?.companyFiles.find(y=>y.documentType==="certificate_of_incorporation"),incDate:c?.incDate?.toDate(),typeOfIncorporation:{selectedOption:c?.typeOfIncorporation,allOptions:h.companyIncInfo.allTypesOfIncorporation}},[C]:Object.values(g).map((y,N)=>{const l=y,V=ln(l?.documentTypeSelectedForVerification);return{userId:l?.userId,officerType:l?.officerType??`Officer_${N+1}`,name:{firstName:l?.firstName,lastName:l?.lastName},email:l?.email,fileIds:l?.fileIds??[],dob:l?.birthday?.toDate(),nationalityCountryCode:Ot(l?.nationalityCountryCode,k.map($=>$.countryCode)),ssn:l?.ssn,role:{selectedOption:l?.titleAtCompany,allOptions:I.allTypesOfRoles},phone:l?.phone,ownership:l?.ownershipInCompany,officerAddress:l?.addressStatus?.addressToCreate,selectDocument:{front:yt(!0,l?.userFiles??[],V),back:yt(!1,l?.userFiles??[],V),selectDocumentType:V},isSelectedForVerification:!O&&N===0?!0:l?.isSelectedForVerification??!1,userVerificationStatus:l?.userVerificationStatus,syncToken:l?.syncToken,isPhoneVerified:l?.isPhoneVerified,otpChallenge:l?.otpChallenge}}),[Z]:{account:{allOptions:[],selectedOption:void 0}},[f]:cn(f,n?.subscriptionBillingAddress)[f],[ge]:{connected:n.externalConnections?.accounting[0]?.isValid??!1}}},ia=n=>{const{onboardingCustomerView:k,cardPaymentView:c,signedInUser:g,currentTenant:v,isOnAddressPage:I,stripeKey:h,googleAPIKey:O,onUpdateStep:y,onZeniLogoClick:N,handleLogOutClick:l,handleCockpitClick:V,meetingUrl:$,analytics:b,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:ve,handleFetchPaymentSources:Se,updateCardPaymentModalState:D,resetCardPaymentViewState:Ae,handleResetCardPaymentErrorStatuses:z,redirectToProductSuitePage:Ne,...Ve}=n,{allSteps:W,completedSteps:_e,halfCompletedSteps:Ce,currentStep:R,fetchStatus:U}=k,q=m.useRef(R),F=m.useRef(W),[be,le]=m.useState(!1),[Pe,te]=m.useState([]),Y={allSteps:W,isOnAddressPage:I,completedSteps:_e,halfCompletedSteps:Ce,errorSteps:Pe,currentStep:R,fetchStatus:U,signedInUser:g,currentTenant:v,onUpdateStep:_=>{y(_)},onZeniLogoClick:N,handleLogOutClick:l,handleCockpitClick:V,setIsStepClicked:le};m.useEffect(()=>{if(q.current!==R){const _=q.current;be===!0&&(b?.trackOnboardingCurrentStep(R,_),le(!1)),q.current=R}},[R,be,b]),m.useEffect(()=>{W.length!==F.current.length&&(F.current=W)},[W]);const ne=(_,Oe,de)=>{const ae=F.current.length,pe=F.current.indexOf(_);switch(Oe){case"next":{const oe=(pe+1)%ae,A=F.current[oe];q.current=A,y(A),de===!0?b.trackOnboardingNext(_,A):b.trackOnboardingCurrentStep(A,_);break}case"previous":{const oe=(pe+ae-1)%ae,A=F.current[oe];q.current=A,y(A),de===!0?b.trackOnboardingBack(_,A):b.trackOnboardingCurrentStep(A,_);break}}},Ie=U.fetchState==="In-Progress"||U.fetchState==="Not-Started";return r.jsx(jn,{isOnAddressPage:I,children:I?r.jsx(bt,{...Y}):r.jsxs(Bn,{children:[r.jsx(bt,{...Y}),Ie?r.jsx(yn,{isNoStepsPage:!1}):r.jsx(vn,{onboardingCustomerView:k,analytics:b,updateStepHandler:ne,onUpdateStep:y,handleCreateCardSetupIntent:ee,handleConfirmCardSetupIntent:ve,updateCardPaymentModalState:D,handleFetchPaymentSources:Se,cardPaymentView:c,resetCardPaymentViewState:Ae,stripeKey:h,googleAPIKey:O,handleResetCardPaymentErrorStatuses:z,redirectToProductSuitePage:Ne,onFormErrorsChange:te,...Ve}),Ie?null:r.jsx(tn,{isFooterRendered:!0,meetingUrl:$,analytics:b,productType:"onboarding"})]})})},jn=P.div`
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
width: ${n=>n.isOnAddressPage?"fit-content":"100%"};
|
|
101
|
-
height: 100vh;
|
|
102
|
-
`,Bn=P.div`
|
|
103
|
-
display: flex;
|
|
104
|
-
flex-direction: column;
|
|
105
|
-
width: 100%;
|
|
106
|
-
height: 100vh;
|
|
107
|
-
`;export{ia as default};
|