@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
|
@@ -0,0 +1,266 @@
|
|
|
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,V as t,f3 as st,f4 as Un,o as a,f5 as qn,f6 as Hn,aK as b,f7 as Qn,aL as Ae,f8 as Yn,bz as dt,bm as ct,dw as pt,cm as mt,cn as ut,co as yt,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 ht,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 bt,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 gt,fn as xt,B as ba,d0 as ga,cf as xa,b5 as fa,b7 as wa,c as Ta,bS as Lt,gs as va,d1 as Da,ag as Ot,aW as ja,b3 as Ia,br as $a,eN as Aa,ak as ka}from"./index-Dp0ze4-l.js";import{a as p}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{a as Sa}from"./liveblocks-B3KbWbMM.js";import{bR as Ca,bO as Pa,bS as Ba,fI as Ra,bQ as za,bK as Ma,bj as Na}from"./zeni-epic-state-xFtF3OLs.js";import{o as La,t as Oa}from"./LowBalancePopup-B0BDCEui-BDJRdwYk.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 Fa=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"})))),Ea={formTitle:new ba("h6Medium","h5Medium")},m={containerPaddingLeft:new y(r[3],r[6],r[6]),containerPaddingRight:new y(r[3],r[6],r[8]),marginBottom:new y(r[3],r[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(r[1],0),rightIconsGap:new y(r[4],r[5]),closeContainerMarginTop:new y(r[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(r[3],r[0]),actionsContainerRight:new y(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new y(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,r[1]),recurringSchedulePaddingLeft:new y(r[2],0),paddingRight:new y(r[2],r[3]),labelMarginRight:new y(r[0],r[3]),textPadding:new y(r[0],r[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(r[4],r[5]),infoLabelPaddingRight:new y(r[3],r[3]),infoLabelMarginTop:new y(r[1],r[0]),navBarHeight:new y(0,0,r[8]),navBarContainerWidth:new y(100,58)},{dateFormat:_a,common:{noText:C,strings:{empty:c},currency:ft,via:Za,more:Wa,edit:Ka},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Te,insufficientFunds:Ft}},collaboration:{threads:{placeholder:Tt,tooltip:vt,title:{comments:Va}}}}=Gn.getLocalizedStrings(),ve=_a.visual.MMMDCommaYYYYformat,Ni=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:W,signedInUser:le,isAdmin:Et,isRealTimeApprovalEnabled:_t,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Wt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Kt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Xt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Be,deleteBill:Gt,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:Ut,onAttachmentClick:Me,saveBillDetails:qt,discardOutsideZeniPaymentData:Ht,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:Jt,onRefundPaymentClick:en})=>{const l=On(),o=Fn(),Le=En(),[tn,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[nn,ce]=p.useState(!1),[Ee,Q]=p.useState(!1),h=e.transactionDetails?.id,an=Kt?_n:Zn,{requestToOpenThread:pe,setRequestToOpenThread:_e,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=Ce&&h!=null,Ze=p.useMemo(()=>h==null?[]:G.filter(s=>s.resolved===!1&&!s.id.includes(Kn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,on=p.useCallback((s,u)=>{Y(u),X(!1)},[Y,X]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Y(pe.threadId),_e(null))},[pe,G,P,Y,_e]),Vn({componentName:"bill.details"});const[N,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[We,Ke]=p.useState("approved"),[rn,Ve]=p.useState(!1),[sn,Xe]=p.useState(!1),[Ge,Ue]=p.useState(!1),qe=()=>Ve(!1),dn=()=>Ve(!0),He=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")&&(Be(),H())},[e,H,Be]),p.useEffect(()=>{He==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[He,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",D=me?w:te?.code=="approved"&&U?.code?U:te,S=Xa(D,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,Qe=()=>{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(D?.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?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en())},onCancelClick:()=>{V(!1),se(!1)}},bn={onOkClick:s=>{ce(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{ce(!1)}},gn=()=>{const[s]=ja("ZeniAssist");return s!=null?t.jsx(Ia,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:s,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??ft.currencyCode},ye=e.transactionDetails?.lines?.map((s,u)=>{const R=s;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],xn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),fn=s=>s==="billable"||s==="has_been_billed"?n.yes:n.no,wn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Tn=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wn}`,vn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(wi,{windowSize:l,children:t.jsx(fi,{})})]}):void 0,Ye=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Dn=()=>{const s=d?.paymentToBankAccount?.bankAccountType,u=s!=null&&s!==""?Da(s.toLowerCase()):s??"";return`${Te.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
|
+
${Te.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Te.achDetails.accountTypeLabel} ${u}`},ae=e.transactionDetails?.billPayInfo!=null?Ca(e.transactionDetails?.billPayInfo):void 0,jn=ae!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Pa(Ba(ae?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Je=e.transactionDetails?.billPayInfo.expectedDepositDate??jn,et=st(d?.paymentType?.method??"").replace("Same Day",""),In=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:et,onClick:dn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,$n=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(va,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,tt=e.transactionDetails?.lines?.some(s=>{const u=s.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,be=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&tt),nt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&tt),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=D?.code,Cn=!Sn&&(!Ye||D?.code==="processing"&&!B),at=!Ye,it=["small","medium-compact","medium-regular"].includes(l),q=Ra(e.transactionDetails?.bulkProcessingDetail?.type),F=za(e.paymentMethodType?.method),Pn=!q&&(E!=="processing"&&nt||E==="processing"&&!B||E==="processing"&&at||g&&F&&Se),Bn=s=>{M.trackBillPayMarkAsPaidSubmit(s.paymentMode??"other",w?.code??"",D?.code??""),qt(!0,Ge,s)},lt=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Rn=()=>{Ue(!0),lt()},zn=()=>{Ht(),Xe(!1),Ge&&Ue(!1)},Mn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,ot=()=>{Ke("approved"),Ee===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ze({billId:e.transactionDetails?.id??"",type:"approved"})},Nn=()=>{Ke("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},rt=p.useRef(null);return t.jsxs(oi,{windowSize:l,ref:rt,children:[t.jsx(Hn,{anchor:"right",open:rn,onClose:qe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Qn,{companyName:Yn(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(ve)??"",paymentType:et,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:qe})}),t.jsxs(ci,{windowSize:l,children:[t.jsx(Di,{windowSize:l,children:l==="small"?t.jsx(dt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Le.colors.grey4,rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(zt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:s=>{s.preventDefault(),s.stopPropagation(),X(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>pt(u)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:Ze,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:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),source:"BillDetailPage"}):t.jsx(dt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(zt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:s=>{s.preventDefault(),s.stopPropagation(),X(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>pt(u)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:Ze,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:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),enableTitleOnScroll:!0,scrollableContent:rt,source:"BillDetailPage"})}),t.jsxs(pi,{windowSize:l,children:[Ee?t.jsx(La,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:ot,onCancelClick:()=>{Q(!1),Qe()},onClickAway:()=>{Q(!1)}}):null,sn?t.jsx(Oa,{onCancel:zn,onProceedForMarkAsPaid:Bn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,tn||re?t.jsx(mt,{titleComponent:t.jsx(yt,{children:N.title}),descriptionComponent:t.jsx(ut,{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?Ga(l,e):null}):null,nn?t.jsx(mt,{titleComponent:t.jsx(yt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ut,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:bn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ui,{windowSize:l,children:[l!=="small"?t.jsxs(yi,{windowSize:l,children:[ue,e.isRecurring?t.jsx($e,{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===ke.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:Je,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ea,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Je,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ha(q,e,_),t.jsx(ta,{sectionId:na,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:j},text:ne.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:j},text:ne.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:j},text:ne.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:j},text:ne.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(mi,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),ye.length>0?ye.map((s,u)=>{const R=e?.transactionDetails?.lines?.find(Ln=>Ln.id===s.lineId)?.recipientAmount;return t.jsxs(ri,{children:[ye.length>1?t.jsx(si,{windowSize:l,children:t.jsx(di,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(De,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recipientAmount",u)}`},children:t.jsx(k,{label:{label:n.amount,width:j},text:R!=null?Ae("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("lineDescription",u)}`},children:t.jsx(k,{label:{label:n.description,width:j},text:s.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("account",u)}`},children:t.jsx(k,{label:{label:n.category,width:j},text:s.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("class",u)}`},children:t.jsx(k,{label:{label:n.class,width:j},text:s.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billable",u)}`},children:t.jsx(k,{label:{label:n.billable,width:j},text:s.billable!=null?fn(s.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("customer",u)}`},children:t.jsx(k,{label:{label:n.customer,width:j},text:s.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(hi,{windowSize:l,children:[t.jsx(bi,{children:n.total}),t.jsx(gi,{children:he!=null?t.jsx(aa,{amount:he,integerStyles:ht.h6Medium.cssObject,decimalStyles:ht.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{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??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Nt(e.withdrawFrom,l):c,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(z,{})]}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ma)&&Zt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Ya,{children:ia(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?qa(e.outsideZeniPaymentInfo):st(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:j},text:d.paymentToBankAccount!=null?Tn:d.paymentToPI!=null?d.paymentToPI.displayText:vn,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:Dn(),additionalInfoLabel:t.jsx(Qa,{children:In})}),$n()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:j},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(Ti,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ra,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ft.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(xi,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(da,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||g,showCancel:!K&&g,cancelBtn:{label:it?n.buttons.reject:n.buttons.rejectBill,isLoading:We==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Nn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ua(K,it),isLoading:We==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?lt:()=>{_!=null?Q(!0):ot()},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(Ja,{children:t.jsxs(li,{windowSize:l,children:[!q&&Oe?t.jsx(bt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(jt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&nt?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"&&at?t.jsx(Z,{onClick:un,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&Se?t.jsx(Z,{onClick:Rn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(bt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(jt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[ge?t.jsx(Z,{onClick:()=>{M.trackRetryClick(D?.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(ii,{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(Dt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(gn,{}):t.jsx(ti,{})})}):null,!q&&be===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ka,placement:"top",children:t.jsx(ai,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ni,{})})}):null,!q&&Cn===!0&&Pn?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Wa,placement:"top",children:t.jsx(Dt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(ei,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Sa,{id:v,children:t.jsx(ca,{isDrawerOpen:ln,allowComposer:!0,drawerTitle:Va,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:Le.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Xa=(e,x)=>{const g=e?.code;if(e!=null&&g!=null)return x?.isDeleted===!0?{value:ke.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&x?.dueDate?.isBefore(Na(),"date")===!0?{value:ke.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}},Ga=(e,x)=>{const g=x.transactionDetails?.recipientTotalAmount;return t.jsxs(vi,{windowSize:e,children:[t.jsxs(Pt,{windowSize:e,children:[t.jsx(Bt,{children:n.zeniAssist.accountNumber}),t.jsx(Rt,{children:x.withdrawFrom!=null?Nt(x.withdrawFrom,e):c})]}),t.jsxs(Pt,{windowSize:e,children:[t.jsx(Bt,{children:n.zeniAssist.amount}),t.jsx(Rt,{children:g!=null?Ae("0,0[.]00",g):C})]})]})},Ua=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,qa=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} ${Za} ${W}`},Ha=(e,x,g)=>{if(e)return t.jsx(gt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:wt.duplicateWarning.title,description:wt.duplicateWarning.description});if(g!=null){const W=`${x.withdrawFrom?.label??""} ${x.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(gt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Ft.lowBalanceIn.replace("__account__",W)}`,description:g.replace("Low balance! ","")})}else return null},Qa=i.div``,Ya=i.div``,Ja=i.div`
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: flex-end;
|
|
5
|
+
`,ei=i(Aa)`
|
|
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
|
+
`,Dt=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
|
+
`,ti=i(Fa)`
|
|
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
|
+
`,ni=i($a)`
|
|
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
|
+
`,ai=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
|
+
`,ii=i.div`
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
align-items: center;
|
|
49
|
+
`,jt=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
|
+
`,li=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
|
+
`,oi=i.div`
|
|
117
|
+
height: 100%;
|
|
118
|
+
overflow: scroll;
|
|
119
|
+
`,De=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
|
+
`,ri=i.div``,Ie=i(fa)`
|
|
132
|
+
color: ${e=>e.theme.colors.primary};
|
|
133
|
+
`,z=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
|
+
`,si=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
|
+
`,di=i(Ta)`
|
|
147
|
+
color: ${e=>e.theme.colors.champion};
|
|
148
|
+
`,ci=i.div`
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
`,pi=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
|
+
`,mi=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
|
+
`,ui=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
|
+
`,yi=i(ga)`
|
|
171
|
+
display: flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
flex-grow: 1;
|
|
174
|
+
${e=>`${Ea.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
|
+
`,hi=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
|
+
`,bi=i(Lt)`
|
|
191
|
+
display: flex;
|
|
192
|
+
width: 176px;
|
|
193
|
+
color: ${e=>e.theme.colors.primary};
|
|
194
|
+
`,gi=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
|
+
`,xi=i.div`
|
|
209
|
+
display: flex;
|
|
210
|
+
flex-direction: column;
|
|
211
|
+
height: ${a.sp11};
|
|
212
|
+
`,fi=i(pa)`
|
|
213
|
+
height: ${a.sp3};
|
|
214
|
+
width: ${a.sp3};
|
|
215
|
+
color: ${e=>e.theme.colors.hero};
|
|
216
|
+
`,wi=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
|
+
`,$e=i(ha)`
|
|
223
|
+
margin-left: ${a.sp2};
|
|
224
|
+
color: ${e=>e.theme.colors.hero};
|
|
225
|
+
`,Ti=i.div``,vi=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
|
+
`,Rt=i(ka)`
|
|
238
|
+
justify-content: end;
|
|
239
|
+
display: flex;
|
|
240
|
+
flex: 1;
|
|
241
|
+
`,zt=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
|
+
`,Di=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{Ni as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as q,u as U,Q as O,F as L,a8 as M,aN as W,V as o,aH as G,cB as H,bz as Q,ab as X,aO as Z,o as c}from"./index-
|
|
1
|
+
import{y as q,u as U,Q as O,F as L,a8 as M,aN as W,V as o,aH as G,cB as H,bz as Q,ab as X,aO as Z,o as c}from"./index-Dp0ze4-l.js";import{a as R}from"./core-3dlyNYRL.js";import{n as b}from"./mui-bYXq4XMS.js";import{b as J,f as K,l as D,o as j}from"./FollowStepsSection-B2I9SddL-DOkk1O_M.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";const C="billPayApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",Y={footerPadding:new q(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:t,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:h=!0,hideUpperBoundField:A=!1,onSaveRuleClick:_,onSaveRuleSuccess:S}){const I=O(),l=L.getLocalizedStrings().commonSetUp.approval,P=L.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),g=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:B}=x,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const F=g.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return R.useEffect(()=>{const i=g.watch((d,{name:$})=>{if($!=null&&d!=null){const z=G(d);H(()=>V($,z))}});return()=>{i.unsubscribe()}}),R.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(X,{...g,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(J,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-1,min:v,validate:i=>n?!0:i!=null&&i>v},isDisabled:n,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:h,hideField:A,additionalInfoLabel:l.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(K,{sectionId:y,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:x[y],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(Z,{formId:N(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:ae(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:a!=null?a.range.min.amount??0:0,[k]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},ae=(e,t,a,r,s)=>s&&s.length>0?s.map((n,h)=>({stepIndex:h,stepType:{selectedOption:n.action,allOptions:D},actors:{allUsers:t,selectedUsers:le(e,n.actors),allNonUsers:r,selectedNonUsers:te(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:D},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],le=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(r=>r.userId===a.userId)>-1),te=(e,t)=>e.filter(a=>t.findIndex(r=>r.subType===a.value)>-1),N=e=>`${e}_form`,Ae=e=>`${e}`,re=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as I,F as v,V as t,bz as N,A as H,aK as b,y as r,ak as B,aL as j,cm as V,cn as E,co as U,o as i,cY as G,u as l,b7 as Y,B as z,b6 as q,p as S,cV as F,br as J,b as _}from"./index-
|
|
1
|
+
import{Q as I,F as v,V as t,bz as N,A as H,aK as b,y as r,ak as B,aL as j,cm as V,cn as E,co as U,o as i,cY as G,u as l,b7 as Y,B as z,b6 as q,p as S,cV as F,br as J,b as _}from"./index-Dp0ze4-l.js";import{n as o}from"./mui-bYXq4XMS.js";import{a as K}from"./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";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},O=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:$})=>{const[m,x]=K.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=v.getLocalizedStrings().commonSetUp.approval,A=()=>{x(!0)},W={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(Q,{windowSize:n,isLastSection:f,children:[t.jsxs(X,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:A,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{y(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,D)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${M}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},D))})}),m?t.jsx(V,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(E,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},Q=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-BElTLopb-CFJysV9Q.js → BillPayPromoPage-BK2J56U5-BoML2sjr.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as Y,Q as f,aN as _,F as C,V as e,fo as ee,bz as ie,n as T,aK as B,ad as x,o as l,ap as le,E as se,d as M,aQ as U,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,u as de}from"./index-
|
|
1
|
+
import{av as Y,Q as f,aN as _,F as C,V as e,fo as ee,bz as ie,n as T,aK as B,ad as x,o as l,ap as le,E as se,d as M,aQ as U,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,u as de}from"./index-Dp0ze4-l.js";import{a as g}from"./core-3dlyNYRL.js";import{n as s}from"./mui-bYXq4XMS.js";import{fx as ce,bV as pe,fy as xe}from"./zeni-epic-state-xFtF3OLs.js";import{f as me}from"./VideoPopup-DPZYhLgy-CxQM8ZsJ.js";import{M as S}from"./usp-line-BBd1wKwW-ClwDS-nj.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"./VideoPlayer-Gw_PLr8F-B5il9249.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-BG8feTVd-CdKRm4ij.js → BillPaySetUpPage-Jic5E25q-DpQqZitt.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as $e,Q as Re,aN as F,a8 as De,cB as Ue,F as _e,aS as Z,V as t,f6 as He,aK as ze,p as Le,y as u,bz as Ne,A as qe,ab as Me,fp as H,dR as Ge,fq as Je,bu as Ke,dH as Qe,bQ as Ze,fr as Xe,aO as Ye,o as L,fs as et,u as a,ak as tt,bI as it}from"./index-
|
|
1
|
+
import{d as $e,Q as Re,aN as F,a8 as De,cB as Ue,F as _e,aS as Z,V as t,f6 as He,aK as ze,p as Le,y as u,bz as Ne,A as qe,ab as Me,fp as H,dR as Ge,fq as Je,bu as Ke,dH as Qe,bQ as Ze,fr as Xe,aO as Ye,o as L,fs as et,u as a,ak as tt,bI as it}from"./index-Dp0ze4-l.js";import{a as g}from"./core-3dlyNYRL.js";import{n as m}from"./mui-bYXq4XMS.js";import{bM as nt}from"./zeni-epic-state-xFtF3OLs.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-CJYvOjh0-Bd6YUBSJ.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";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:w,billpayApprovalView:E,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:b,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:N,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=$e(),i=Re(),[k,y]=g.useState(!1),q=g.useRef(null),{fetchState:p,updateStatus:S,accountUpdateStatus:ke,plaidConnectionDetails:O,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:M}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:B,approvalRulesStatus:Be}=E,$=O.link_account.updateStatus,R=O.update_account.updateStatus,I=F(p),J=F(S.fetchState),K=F($.fetchState),Q=F(R.fetchState),P=De({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>z(e),[e]),values:z(e)});g.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&y(!0),k&&I==="In-Progress"&&p==="Completed"&&y(!1)},[c,p,I]),g.useEffect(()=>{(I==="In-Progress"&&p==="Completed"||K==="In-Progress"&&$.fetchState==="Completed"||Q==="In-Progress"&&R.fetchState==="Completed")&&P.reset(z(e))},[I,p,P,e,K,$.fetchState,Q,R.fetchState]);const Ie=P.handleSubmit(x=>{b.trackEnableBillPay(),me()}),Ve=async(x,j)=>{const o=j[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=M.find(_=>_.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(_=>_.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&b.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};g.useEffect(()=>{const x=P.watch((j,{name:o})=>{o!=null&&j!=null&&Ue(()=>Ve(o,j))});return()=>{x.unsubscribe()}}),g.useEffect(()=>{J==="In-Progress"&&S.fetchState==="Completed"&&N()},[N,J,S.fetchState]);const{commonSetUp:je,spendManagement:Fe}=_e.getLocalizedStrings(),{setUp:d}=je,{billPaySetup:l}=Fe.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||nt(r?.providerVerificationStatus?.code??"")),U=A?.isBillPayEnabled===!0,We=D?d.setupVerifiedSubTitle:l.setupSubTitle,Ee=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=C.mode==="light"?new Z(C.colors.brandColorJadeLight):new Z(C.colors.brandColorJadeDark),Oe=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:S,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,companyOfficer:c,onClose:()=>y(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Ne,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!U&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:We}),Ee?t.jsx(dt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...P,children:t.jsx("form",{id:Y(X),onSubmit:Ie,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:Oe,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:M,plaidConnectionDetails:O,allBankAccounts:Ae,sectionId:W,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:b,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:B.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:B.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:B.length>0?Be:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&b.trackEnableIntlWire(ie),ye?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ze,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!U&&B.length>0?t.jsx(Ye,{formId:Y(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:S.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:D&&!U,meetingUrl:v,analytics:b,productType:"bill_pay"})]})},at=m.div``,lt=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as fe,Q as be,a8 as Ce,cB as Pe,aS as j,F as xe,V as t,y as P,bz as Ae,A as Ie,ab as ve,bu as ke,cC as je,aO as Be,o as s,hE as $e,d3 as Ve,d4 as Ee,u as x,ak as Te,gN as ze,B as De,p as Le}from"./index-
|
|
1
|
+
import{d as fe,Q as be,a8 as Ce,cB as Pe,aS as j,F as xe,V as t,y as P,bz as Ae,A as Ie,ab as ve,bu as ke,cC as je,aO as Be,o as s,hE as $e,d3 as Ve,d4 as Ee,u as x,ak as Te,gN as ze,B as De,p as Le}from"./index-Dp0ze4-l.js";import{a as F}from"./core-3dlyNYRL.js";import{n as r}from"./mui-bYXq4XMS.js";import{M as Oe,r as H,o as Me}from"./PaymentAccountSetupBillingAddressSection-pL7omrJk-CMauXbLg.js";import{F as _e}from"./SetUpAccountSection-DrMCC1IY-ByWeTp_x.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";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Fe={title:new De("standardSemiBold","largeSemiBold")},R="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:N,stripeKey:K,googleAPIKey:G,companyId:q,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:B,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=fe(),i=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:$},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=$.fetchState==="In-Progress"||$.fetchState==="Not-Started",S=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(a),values:U(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(q)}),E=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,k=Ve(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Ee(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const T=b.mode==="light"?new j(b.colors.brandColorJadeLight):new j(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:z}=xe.getLocalizedStrings(),ge=z.section.subTitle,{text:ye,subText:Se}=he,D=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,C=Oe(w.header,w.titleText,w.protectedCardNo,m);let M;D&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:D===!0,icon:{element:t.jsx("img",{src:H(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:H(L).name}),color:new j(T)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,we]=F.useState(!1);return t.jsxs(Re,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:z.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(He,{windowSize:i,children:[t.jsx(Ue,{windowSize:i,children:ge}),ue?t.jsx(We,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:W(R),onSubmit:pe,children:t.jsxs(Ne,{windowSize:i,children:[t.jsx(_e,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:T},analytics:e,productType:"billing",updateCardPaymentModalState:B,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(i,l.headers.billingAddress,ce,G,d)]})})})}),je(S.formState.dirtyFields)?t.jsx(Be,{formId:W(R),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:E?.fetchState==="In-Progress",isDisabled:E?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:B,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:N.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:we})]})},U=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:$e(n,e.subscriptionBillingAddress)[n]}},He=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as O,V as _,cm as M,cn as W,co as Y,j_ as q,aV as z}from"./index-
|
|
1
|
+
import{F as O,V as _,cm as M,cn as W,co as Y,j_ as q,aV as z}from"./index-Dp0ze4-l.js";import{a as b}from"./core-3dlyNYRL.js";import{gb as X}from"./zeni-epic-state-xFtF3OLs.js";import{u as Z}from"./ReviewOverlay-CPU7RPiJ-D223TMrq.js";import"./mui-bYXq4XMS.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";const{common:n,spendManagement:{billPay:C}}=O.getLocalizedStrings(),o=C.bulkActions;let x;const de=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:f}=t,u=i==="review",[B,h]=b.useState(!1),[s,v]=b.useState(T(t,u)),[p,k]=b.useState(u),[I,E]=b.useState(0),[w,j]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,V)=>(clearInterval(x),V===I?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),I===s.length&&p&&(k(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(T(t,!1)),()=>{clearInterval(x)}),[s.length,I,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:S}=H(y);j({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,f),h(!0)},N={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,f,G(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:A,description:$}=J(m,y,R,p),P=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,f),l(i)},D={label:P?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:F,style:i==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[B?_.jsx(M,{titleComponent:_.jsx(Y,{children:w.title}),descriptionComponent:_.jsx(W,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:N,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Z,{title:A,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:L,hideCancel:P}})]})},T=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&X(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},G=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=q([...l,e.isRecurring?"recurring":"one-time"])}),l},H=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},J=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:f,do_:u,does:B}=n.texts,h=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:f)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},K=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,G as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as h,V as s,aK as b,o as r}from"./index-
|
|
1
|
+
import{Q as h,V as s,aK as b,o as r}from"./index-Dp0ze4-l.js";import{n as p}from"./mui-bYXq4XMS.js";import{o as l}from"./commonDimensions-B1u_MhON-DyL3Hxj-.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=h();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(a,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const a=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ct,Q as dt,aN as De,V as a,F as Ve,ad as W,a8 as mt,cP as pt,ax as ut,cB as ft,aV as ve,aM as $e,g5 as yt,n as ht,bz as gt,aK as xt,cC as St,cm as wt,cn as Ct,co as bt,A as Tt,ab as Dt,aO as vt,o,y as P,al as Le,g6 as $t,ft as ke,d3 as kt,E as It,_ as jt,ak as Fe,B as Pt,M as Nt,u as k}from"./index-Bbd5Axbp.js";import{a as N}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import{eK as Ot,bi as G}from"./zeni-epic-state-xFtF3OLs.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-BqY-k8Ic-DYr7jvqd.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"./LabeledAddressValueField-C4ft1l-K-DncA4cPY.js";import"./LabeledCreatableSingleSelectField-BeelRB2Y-fxP4qWXW.js";import"./LabeledDocumentField-CgMzc8wC-BKcbKApj.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,k[3]),subTitlePaddingBottom:new P(k[3],k[3]),verificationDetailsRowGap:new P(12,k[5],k[5]),termsPaddingLeftRight:new P(k[0],k[3])},Ft={stepTitle:new Pt("h6Regular","h5Regular")},Ie="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:je,footer:Pe,strings:{empty:At}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:t,allNationalityCountries:F,verficationDetailsFetchState:O,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:K=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:V,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:Ke,onExecuteTreasuryTransfer:qe})=>{const Qe=ct(),m=dt(),{updateStatus:R,companyView:L,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Xe=De(R.fetchState),M=L?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=M==="unit"?a.jsxs(Kt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Je,q]=N.useState(!1),[U,oe]=N.useState("save"),[Q,Ze]=N.useState(!1),p=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(t,B,E,F)}),{isValid:He}=p.formState,X=L?.company.company.companyBillPayInfo,Y=L?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Y?.companyVerificationStatus:X?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),v=`Officer_${D<0?1:D+1}`,et=()=>{const e=w[v],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,me=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,ue=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Ce=ee?.firstName,be=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&me!=null&&ue!=null&&ye!=null&&pe!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&Ce!=null&&be!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:me,phone:ue,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:be,email:Te},y,n?"Settings":void 0)},tt=()=>{const e=w[v],s=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${T}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[v],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||J!=null&&J?.length>0)return p.trigger(`${T}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(U!=="verification"&&oe("verification"),M==="unit"&&w[v]?.isPhoneVerified!==!0){p.setError(`${T}.${D}.phone`,{type:"custom"});return}const e=pt(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(e.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),K===!0&&qe?.())}),st=async(e,s)=>{e.includes(b)?Me?.(s[b]):e.includes(T)&&We?.(s[T])},nt=N.useCallback(ut((e,s)=>{st(e,s)},300),[]);N.useEffect(()=>{const e=p.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=De(t.companyDetailsLocalData?.addressStatus);N.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,p]);const ce=L?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),J=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{q(!1),V();const e=[],s=L?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${T}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{q(!1)}},lt=ve($e(u),u,je.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Xe==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:K===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:K===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve($e(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{St(p.formState.dirtyFields)?q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Ke,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Je===!0?a.jsx(wt,{titleComponent:a.jsx(bt,{children:i.discardTitle}),descriptionComponent:a.jsx(Ct,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Mt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),O==="In-Progress"||O==="Not-Started"?a.jsx(Ut,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(Dt,{...p,children:a.jsxs("form",{id:Ne(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(qt,{windowSize:m,children:[a.jsx(Qt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Xt,{children:a.jsxs(Yt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Jt,{})]})})]}),a.jsx(_e,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:F,allOfficers:J??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:A,isPopupOpen:Q,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":I,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:M,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Ne(Ie),primaryBtn:{label:S?Pe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?Pe.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[v],s=l?.primaryContactLocalData;U!=="save"&&oe("save");const c=e?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?G(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(v))}}},helperText:Ye,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},Bt=(t,F,O,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=t,B=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:F?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(A).map((u,I)=>{const n=u,h=$t(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:kt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:O?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=t=>`${t}_form`,Et=d.div`
|
|
1
|
+
import{d as ct,Q as dt,aN as De,V as a,F as Ve,ad as W,a8 as mt,cP as pt,ax as ut,cB as ft,aV as ve,aM as $e,g5 as yt,n as ht,bz as gt,aK as xt,cC as St,cm as wt,cn as Ct,co as bt,A as Tt,ab as Dt,aO as vt,o,y as P,al as Le,g6 as $t,ft as ke,d3 as kt,E as It,_ as jt,ak as Fe,B as Pt,M as Nt,u as k}from"./index-Dp0ze4-l.js";import{a as N}from"./core-3dlyNYRL.js";import{n as d}from"./mui-bYXq4XMS.js";import{eK as Ot,bi as G}from"./zeni-epic-state-xFtF3OLs.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-CNxtAkKM-DIFNT_MT.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"./LabeledAddressValueField-DzmwP7hP-K6Pp0Tsb.js";import"./LabeledCreatableSingleSelectField-CfzLlkho-D-9BqrF0.js";import"./LabeledDocumentField-p3pI5qLu-BDt_q3n9.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,k[3]),subTitlePaddingBottom:new P(k[3],k[3]),verificationDetailsRowGap:new P(12,k[5],k[5]),termsPaddingLeftRight:new P(k[0],k[3])},Ft={stepTitle:new Pt("h6Regular","h5Regular")},Ie="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:je,footer:Pe,strings:{empty:At}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:t,allNationalityCountries:F,verficationDetailsFetchState:O,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:K=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:V,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:Ke,onExecuteTreasuryTransfer:qe})=>{const Qe=ct(),m=dt(),{updateStatus:R,companyView:L,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Xe=De(R.fetchState),M=L?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=M==="unit"?a.jsxs(Kt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Je,q]=N.useState(!1),[U,oe]=N.useState("save"),[Q,Ze]=N.useState(!1),p=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(t,B,E,F)}),{isValid:He}=p.formState,X=L?.company.company.companyBillPayInfo,Y=L?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Y?.companyVerificationStatus:X?.companyVerificationStatus,D=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),v=`Officer_${D<0?1:D+1}`,et=()=>{const e=w[v],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,me=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,ue=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Ce=ee?.firstName,be=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&me!=null&&ue!=null&&ye!=null&&pe!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&Ce!=null&&be!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:me,phone:ue,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:be,email:Te},y,n?"Settings":void 0)},tt=()=>{const e=w[v],s=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${T}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[v],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&p.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||J!=null&&J?.length>0)return p.trigger(`${T}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(U!=="verification"&&oe("verification"),M==="unit"&&w[v]?.isPhoneVerified!==!0){p.setError(`${T}.${D}.phone`,{type:"custom"});return}const e=pt(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(e.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),K===!0&&qe?.())}),st=async(e,s)=>{e.includes(b)?Me?.(s[b]):e.includes(T)&&We?.(s[T])},nt=N.useCallback(ut((e,s)=>{st(e,s)},300),[]);N.useEffect(()=>{const e=p.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=De(t.companyDetailsLocalData?.addressStatus);N.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,p]);const ce=L?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),J=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{q(!1),V();const e=[],s=L?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${T}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{q(!1)}},lt=ve($e(u),u,je.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Xe==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:K===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:K===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve($e(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{St(p.formState.dirtyFields)?q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Ke,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Je===!0?a.jsx(wt,{titleComponent:a.jsx(bt,{children:i.discardTitle}),descriptionComponent:a.jsx(Ct,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Mt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),O==="In-Progress"||O==="Not-Started"?a.jsx(Ut,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(Dt,{...p,children:a.jsxs("form",{id:Ne(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(qt,{windowSize:m,children:[a.jsx(Qt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Xt,{children:a.jsxs(Yt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Jt,{})]})})]}),a.jsx(_e,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:F,allOfficers:J??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:A,isPopupOpen:Q,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":I,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:M,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Ne(Ie),primaryBtn:{label:S?Pe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?Pe.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[v],s=l?.primaryContactLocalData;U!=="save"&&oe("save");const c=e?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?G(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(v))}}},helperText:Ye,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},Bt=(t,F,O,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=t,B=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:F?.map(u=>u.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(A).map((u,I)=>{const n=u,h=$t(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:kt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:O?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=t=>`${t}_form`,Et=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as w,F as x,V as t,b as $,B as y,o as s,M as C}from"./index-
|
|
1
|
+
import{Q as w,F as x,V as t,b as $,B as y,o as s,M as C}from"./index-Dp0ze4-l.js";import{n as l}from"./mui-bYXq4XMS.js";import{a as d}from"./core-3dlyNYRL.js";const f=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=x.getLocalizedStrings(),H={subText:new y("extraSmallRegular","standardRegular")},S=({cardDetail:e,forDetailPage:a,styles:h})=>{const m=w(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let o=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,g=e.status.code==="request_on_hold"||!a?o:i,c=e.type.code.includes("physical");return t.jsxs(b,{style:h,windowSize:m,forDetailPage:a,className:"cardName",title:`${g}`,children:[u,t.jsx(v,{}),o,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},b=l(C)`
|
|
2
2
|
${e=>e.forDetailPage?{...$.extraSmallRegular.cssObject}:`${H.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|