@zeniai/web-cockpit-ui 1.14.90-dev → 1.14.90-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-BUP-_2-W-BxsdzxJg.js → ACHDetailsPage-BUP-_2-W-gKUKs0Pb.js} +1 -1
- package/dist/assets/{AIPerformancePage-DHF_70JI-BB0m0Wmb.js → AIPerformancePage-DHF_70JI-Byb0JaRY.js} +1 -1
- package/dist/assets/{AccountInfoPage-pmUIckJ9-ClFTcWKH.js → AccountInfoPage-pmUIckJ9-CAlO-FHB.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DLSL1NNm-ysW8pq2z.js → AccountInfoPageContent-DLSL1NNm-CTMQNQY3.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-Bq3y0K0F-DT_bUQ3U.js → AccountLockedInfoModal-Bq3y0K0F-Caep-eEi.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CGcZO_qz-Cy1Ijv5f.js → AccountReconDetailsDrawerPage-CGcZO_qz-DphTR8AG.js} +1 -1
- package/dist/assets/{AccountRow-D2Ypckgj-DU9kFXuE.js → AccountRow-D2Ypckgj-BVuVsxAI.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BVVDCW1H-DJjdfLGW.js → AccountsPromoCardStack-BVVDCW1H-CHjSEilj.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-C8aENofu-DA1NQK9C.js → AddAddressForCardDrawer-C8aENofu-_B3noxtJ.js} +1 -1
- package/dist/assets/{AddToWalletPage-CmT5jSb5-D2YVbVt5.js → AddToWalletPage-CmT5jSb5-BtE7INh2.js} +1 -1
- package/dist/assets/{AgingReportsPage-BeUGvj3b-CHP-b-K4.js → AgingReportsPage-BeUGvj3b-BnHb3lWK.js} +1 -1
- package/dist/assets/{AllUserItems-CmlMyz-f-C0puagwR.js → AllUserItems-CmlMyz-f-BE3QXVOa.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-Dz1_N0Yw-iyEKxxlG.js → ApAgingDetailPage-Dz1_N0Yw-TUc4-BfW.js} +1 -1
- package/dist/assets/{AppBasePage-DX4EGGcT-DxyBlsaI.js → AppBasePage-DX4EGGcT-CA5JIcq8.js} +1 -1
- package/dist/assets/{AppDrawerContent-Brg3Rw4K-DWiehP3E.js → AppDrawerContent-Brg3Rw4K-Du3ev71U.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-Bn7KrUl2-CvKRvgo_.js → ApprovalRulesSettingsPage-Bn7KrUl2-C_CZXQYN.js} +1 -1
- package/dist/assets/{ArAgingChart-DQZtCsHS-CSTDLkfC.js → ArAgingChart-DQZtCsHS-zcjxKJqm.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BtF6K5dA-VZeY_ZUJ.js → ArAgingDetailPage-BtF6K5dA-CM34YcdM.js} +1 -1
- package/dist/assets/{AttachmentView-DgPySmB8-B0CUUwUu.js → AttachmentView-DgPySmB8-B41pIkR9.js} +1 -1
- package/dist/assets/{BankAccountSection-BVZK5jmO-oboSifeA.js → BankAccountSection-BVZK5jmO-CjTZMznk.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-DHdeDi15-DsdgRhNS.js → BankAccountWarningSection-DHdeDi15-M9LQMU5u.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BN3lAARB-UlnRR8CQ.js → BankConnectionsSettingsPage-BN3lAARB-B0yEFHuK.js} +1 -1
- package/dist/assets/{BillDetailPage-BuUm6vdf-DEUKUhee.js → BillDetailPage-BuUm6vdf-BEfZuL72.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BXSdsF2E-CYUFVErE.js → BillPayApprovalRuleDetailPage-BXSdsF2E-BZdDia51.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-B8HbVvc9-DpzHPmZp.js → BillPayApprovalRulesPage-B8HbVvc9-CNKY0-NR.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DkoqXDNt-FNHctwfQ.js → BillPayPromoPage-DkoqXDNt-Jx7NR9vs.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-BommXkLS-DOKgmPVm.js → BillPaySetUpPage-BommXkLS-CxAPQ6nt.js} +1 -1
- package/dist/assets/{BillingSettingsPage-gHbc5Kq3-CFDIJf8G.js → BillingSettingsPage-gHbc5Kq3-6eOgIWo-.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-C541rBnx-DPMvwxh2.js → BillsBulkReviewDrawerPage-C541rBnx-CpMaFNun.js} +1 -1
- package/dist/assets/{BoxItem-usHxaONy-BSYmkNdH.js → BoxItem-usHxaONy-yqmV2_EE.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-CLsxXy9d-ClcyVS-f.js → BusinessVerificationPage-CLsxXy9d-ThEm2-hv.js} +1 -1
- package/dist/assets/{CardNumberSubText-D_fWhc_K-BxJ3GoBc.js → CardNumberSubText-D_fWhc_K-C63mXt5C.js} +1 -1
- package/dist/assets/{CashbackDetailPage-D3WylWVP-CydwwFdH.js → CashbackDetailPage-D3WylWVP-D9Vs2ft8.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BUsGBwBf-DhD5ouX9.js → ChargeCardDetailPage-BUsGBwBf-B-LmCTsN.js} +1 -1
- package/dist/assets/{ChargeCardListPage-Jhx05dVV-DjDdThgH.js → ChargeCardListPage-Jhx05dVV-CgbSqG5e.js} +1 -1
- package/dist/assets/{ChargeCardListTable-D-eYWaxh-CZeSVtIX.js → ChargeCardListTable-D-eYWaxh-OyS_l2le.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CzR82VtA-DoVVgv51.js → ChargeCardPromoPage-CzR82VtA-C4AU7pmq.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-Ctz8PCuu-Dmh0C1fi.js → ChargeCardSetupPage-Ctz8PCuu-CQ_qZ7MK.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-EUtRTAX2-CIQRTxBN.js → ChargeCardStatementsPage-EUtRTAX2-C_GDwTRC.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-B7DC0HAi-DPwOJJS7.js → CheckDepositDrawerPage-B7DC0HAi-p07KcTOW.js} +1 -1
- package/dist/assets/{CollapsableReportTable-I40BZv7o-RBVPkQ58.js → CollapsableReportTable-I40BZv7o-d2_h6r8O.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-ChsNKXbx-Dk7vpi01.js → CompanyOfficerDetailsSection-ChsNKXbx-BF5MOIbR.js} +1 -1
- package/dist/assets/{CompanyPassportCard-82bbFwk--C3mnYk4t.js → CompanyPassportCard-82bbFwk--CB88G7Qo.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DG1Fa_Uw-B4wsnqA2.js → CompanyPassportPage-DG1Fa_Uw-Dkbt-nxV.js} +1 -1
- package/dist/assets/{CompleteProfile-B7bQqLQH-DwtJrHr4.js → CompleteProfile-B7bQqLQH-3BvSCHX1.js} +1 -1
- package/dist/assets/{ConfettiBurst-DUyIBnw4-BZY51mbD.js → ConfettiBurst-DUyIBnw4-Bzth-g3m.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DVzMO96w-CjeOn0Zu.js → CreateOrEditVendorPage-DVzMO96w-D2_PioHE.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-C03hfKGc-BI7dTqV7.js → CreditCardPaymentDrawerPage-C03hfKGc-CNfSxnSZ.js} +1 -1
- package/dist/assets/{CurrencySelectField-2hU3oIp_-CnccIVlk.js → CurrencySelectField-2hU3oIp_-C4bLV2kj.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-Dt-Nml2t-CQyv3wO4.js → CustomerOnboardingActivationPage-Dt-Nml2t-B6WqU8lr.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-UhKf7bOm.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-CS261SSd.js → CustomerOnboardingDetailPageSkeleton-C4Z1pDVe-BqoeEQuE.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CwI8nL61-Xg6qQ6Ku.js → CustomerOnboardingNoStepsPage-CwI8nL61-fFJJ4fRN.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-C3FgZjAN-C75cnlLW.js → CustomerOnboardingPage-C3FgZjAN-BMoiiOVQ.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BOYu-82S-uR17VQjV.js → CustomerOnboardingProductSuitePage-BOYu-82S-CVVsk6ik.js} +1 -1
- package/dist/assets/{Dashboard-D_oTtu1--CP9XS1zf.js → Dashboard-D_oTtu1--DmU_Kxzw.js} +1 -1
- package/dist/assets/{DashboardReportPage-Dprj3eUQ-BK5e1r9g.js → DashboardReportPage-Dprj3eUQ-BvCOtKTf.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-C6SQaB7q-C2qHBViE.js → DashboardSidebarBackgroundAnimation-C6SQaB7q-Dxl5QlMk.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-C2oP415b-B5ygx6vl.js → DepositAccTransactionItem-C2oP415b-fO_vukRP.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DCvdqAz1-Df_FOAOf.js → DepositAccTransactionListPage-DCvdqAz1-B_wb_nSG.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-Da_3EveP-Bjb9K-P-.js → DomesticWireDetailsPage-Da_3EveP-BRE1nKx5.js} +1 -1
- package/dist/assets/{DownloadOverlay-BwddFmV2-BqOR54wm.js → DownloadOverlay-BwddFmV2-TXwTh2dm.js} +1 -1
- package/dist/assets/{DrawerPage-CGrnrvf2-BvrxfWnf.js → DrawerPage-CGrnrvf2-C0F2USa4.js} +1 -1
- package/dist/assets/{EditPeoplePage-DMgxG2Gd-C3BsPnxU.js → EditPeoplePage-DMgxG2Gd-CCtVDE58.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DwCiVkeu-B4w5FVLx.js → EditReimbursementDetailPage-DwCiVkeu-CHb4Vx_R.js} +1 -1
- package/dist/assets/{EntityDetailPage-BcRVEfi5-Cnj_gM9q.js → EntityDetailPage-BcRVEfi5-CepotlTP.js} +1 -1
- package/dist/assets/{EntitySummarySection-BaHHLLkE-D3Ip19-Y.js → EntitySummarySection-BaHHLLkE-Drrfo_tg.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-hl_3Pc0g-gY12ACUr.js → ExpenseAutomationOverviewPage-hl_3Pc0g-DYxAAMa6.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-D70ghitX-EafeQT3m.js → ExpenseAutomationPage-D70ghitX-sSwqGXv6.js} +1 -1
- package/dist/assets/{ExpressPayPage-BpfkmJ_I-B4izq8YR.js → ExpressPayPage-BpfkmJ_I-Cr6J8360.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-Bzi8Bpk3-DtSpKYbK.js → FeaturePreviewPage-Bzi8Bpk3-Drk_uxAx.js} +1 -1
- package/dist/assets/{FollowStepsSection-Bu3RG_GH-DmaIgxgE.js → FollowStepsSection-Bu3RG_GH-1o9BWCUV.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-D4BD7q-I-BHZQG-gN.js → GlobalReviewListPage-D4BD7q-I-IVn_04O3.js} +1 -1
- package/dist/assets/{InformationCardStack-B9wnkR3p-CjpaX6cg.js → InformationCardStack-B9wnkR3p-InW9f_7k.js} +1 -1
- package/dist/assets/{InsightsCardStack-C1_rd2Sb-uYkz47Dy.js → InsightsCardStack-C1_rd2Sb-Dhs19DDG.js} +1 -1
- package/dist/assets/{InsightsSection-7-T67WeF-BlMRO9Ba.js → InsightsSection-7-T67WeF-R1I0UTTj.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-C9YpvDgg-DjW-A2Ra.js → IntegrationsSettingsPage-C9YpvDgg-q-aOCVtI.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-C5mI8dEh-MFTemI3R.js → InternationalWireSwiftDetailsPage-C5mI8dEh-B0sOCS9F.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-B8AOwcSX-HJr1qwVZ.js → InternationalWireVerificationPage-B8AOwcSX-O5d4_jx5.js} +1 -1
- package/dist/assets/{InviteFormPage-DuBhhnre-DKK8UkI0.js → InviteFormPage-DuBhhnre-BDO1iW13.js} +1 -1
- package/dist/assets/{InvitePageListView-Dw8kwEFd-zXFzVUiq.js → InvitePageListView-Dw8kwEFd-BOBOJq-T.js} +1 -1
- package/dist/assets/{InvitePeoplePage-BI_vd7xw-BSlMVd1C.js → InvitePeoplePage-BI_vd7xw-BK1DYXv5.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-9DaovMq8-DOf6F-xG.js → InvoiceUploadSection-9DaovMq8-nY-DuZwJ.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-fumweN4Y-Ie_niRER.js → IssueChargeCardPage-fumweN4Y-CbGa-1Sy.js} +1 -1
- package/dist/assets/{LabeledAddressValue-cNf6hI1l-C1IgZGiS.js → LabeledAddressValue-cNf6hI1l-BswrPJcJ.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-CoTtV0RQ-CTJHm8Dm.js → LabeledAddressValueField-CoTtV0RQ-oEM2MjQO.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DQwUvKR2-BFeYWYOG.js → LabeledControlledCheckBoxField-DQwUvKR2-CCQx34pM.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CnQsTYWe-BxSldgLD.js → LabeledCreatableSingleSelectField-CnQsTYWe-BNKI3sBW.js} +1 -1
- package/dist/assets/{LabeledDocumentField-MkryOLQ8-ZmKcbrkd.js → LabeledDocumentField-MkryOLQ8-DH1KAWxk.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-B-yUtgxR-CkZPhULB.js → LabeledDropDownFormattedTextField-B-yUtgxR-Svg2dZ6s.js} +1 -1
- package/dist/assets/{LabeledText-BJ3Zvb5p-yc50ilCa.js → LabeledText-BJ3Zvb5p-ndTmW7U8.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-B7kyEAM_.js → LabeledUserSingleSelectWithSubtitlesField-CSEiKb8M-DUVObrd4.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CS_oKjBG-CatyVbOL.js → LabeledZeniRolesDropDownField-CS_oKjBG-BYrCH7sg.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-BsszwFNq-BtKpHm2U.js → LinkJETransactionPage-BsszwFNq-CVlh2hC9.js} +1 -1
- package/dist/assets/{LockCardPage-DqQGGac2-Bntrtxvn.js → LockCardPage-DqQGGac2-DNRrTsHA.js} +1 -1
- package/dist/assets/{LowBalancePopup-BFo5zRk3-BLFy36gu.js → LowBalancePopup-BFo5zRk3-mdHe1dcy.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-wYa3cyyZ-Cn9Ml7SS.js → MagicLinkACHDetailsPage-wYa3cyyZ-tz2BvffR.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CW4RNKOV-Bj3CP8hj.js → MagicLinkDomesticWireDetailsPage-CW4RNKOV-CtiYd2c1.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CX9SeCLl-Bato55Wl.js → MagicLinkInternationalWireDetailsPage-CX9SeCLl-HVNLuX22.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-Dipq1-St-C4ZMZxw5.js → MagicLinkSuccessPage-Dipq1-St-CbeB13LZ.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-DnN52Uwb-aNaCMrDN.js → MagicLinkTitleSection-DnN52Uwb-Cs_fy5V9.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DwNF-L2Y-DJJZ9RqI.js → MailingDetailsSection-DwNF-L2Y-DrhhdeyV.js} +1 -1
- package/dist/assets/{Menu-D0jF6uaE-AMW53cTN.js → Menu-D0jF6uaE-063ttLpF.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DpM6MKBq-CmnrHUZV.js → MyBankConnectionsSettingsPage-DpM6MKBq-E1-nhC0K.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BaT55Pwg-BdKjhqSf.js → MyPendingActivationChargeCardListPage-BaT55Pwg-Ag6G6vZu.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-kD1dY6P6-BAgE1Tqp.js → MyProfileSettingsPage-kD1dY6P6-BfZFNoxD.js} +1 -1
- package/dist/assets/{NavBarWithPicker-D-WQJ-tG-C6mGlKIr.js → NavBarWithPicker-D-WQJ-tG-Cy7zBv5q.js} +1 -1
- package/dist/assets/{NavigationArrow-Z9PgxZ-c-DrPA9Vgt.js → NavigationArrow-Z9PgxZ-c-2tqZ4Fw-.js} +1 -1
- package/dist/assets/{NavigationDots-BT-m0FmS-CJdtX5bS.js → NavigationDots-BT-m0FmS-COkqBkfX.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-YsnX4uQU-7PwHdB8y.js → NewGlobalMerchantPage-YsnX4uQU-D0h-bx1p.js} +1 -1
- package/dist/assets/{NoDataChart-DMivligx-DVgr9SAl.js → NoDataChart-DMivligx-CY99ibCB.js} +1 -1
- package/dist/assets/{NoDataTable-DwOJY23X-BMIpXvJR.js → NoDataTable-DwOJY23X-0CWxLk-0.js} +1 -1
- package/dist/assets/{NotFoundPage-DuKXpHos-BIXgl60z.js → NotFoundPage-DuKXpHos-CG3u4rQy.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DlU2NxiC-DDx7Rraa.js → NotificationSettingsPage-DlU2NxiC-Dm2QaTZo.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BQCb9x9X-C3jJIn48.js → NotificationsListConfig-BQCb9x9X-CKZiM7oL.js} +1 -1
- package/dist/assets/{NotificationsPage-q0bK_5gs-C_zZBYkJ.js → NotificationsPage-q0bK_5gs-jK6e_Uyw.js} +1 -1
- package/dist/assets/{OpExByVendorPage-Boc7U8eu-BxBRsCtx.js → OpExByVendorPage-Boc7U8eu-CVJq9vF2.js} +1 -1
- package/dist/assets/{OverlayContainerPage-CrZuT2Jj-DDO8EgYZ.js → OverlayContainerPage-CrZuT2Jj-CY2cJwH_.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-B2eGvFPp-CEl0eyCC.js → PandLWithForecastPage-B2eGvFPp-BaY0fBnf.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BP-_59EO-KoltH9y1.js → PaymentAccountSetupBillingAddressSection-BP-_59EO-hGRsM6bI.js} +1 -1
- package/dist/assets/{PeoplePage-YMfZIga6-BPMCy-eb.js → PeoplePage-YMfZIga6-BEib8XAV.js} +1 -1
- package/dist/assets/{ProductsCarousel-CUaU5-V7-CFq7I05R.js → ProductsCarousel-CUaU5-V7-DTCkPx2F.js} +1 -1
- package/dist/assets/{PromoBaseCards-CmOYEhSO-D3yPErwW.js → PromoBaseCards-CmOYEhSO-bExxN6kp.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BNiXUEAk-B55AIWRo.js → QBOConnectionDialog-BNiXUEAk-O1EeGUUa.js} +1 -1
- package/dist/assets/{QBOSetupSection-CjjNFfgF-CIhiV9Dd.js → QBOSetupSection-CjjNFfgF-hqHet92Q.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-tP7WcKvd-CCMfftol.js → ReimbursementApprovalRuleDetailPage-tP7WcKvd-47DORnA2.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BkuYJ6qb-BIx385RC.js → ReimbursementApprovalRulesPage-BkuYJ6qb-7dFuSzMb.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-D5IzqJS5-BklJr7jT.js → ReimbursementDetailPage-D5IzqJS5-B19mA4vu.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-D7n6lZNo-BpT8Ss67.js → ReimbursementPromoPage-D7n6lZNo-CgdMqXow.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-E1elWU5Z-VC2DwUtC.js → ReimbursementSetUpPage-E1elWU5Z-D7O-pf9b.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-HzYNji-G-DGG79plx.js → ReimbursementsBulkReviewDrawerPage-HzYNji-G-BjLwNAB4.js} +1 -1
- package/dist/assets/{ReloadCard-DMWwNZ1z-CIbg2f6Q.js → ReloadCard-DMWwNZ1z-D31XYoZn.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-EU36E1lv-XPDH-qLc.js → ReportTableViewSelector-EU36E1lv-CLM26q4e.js} +1 -1
- package/dist/assets/{ReportsPage-iJDifG6q-BnnQKn2l.js → ReportsPage-iJDifG6q-CYAyIPrv.js} +1 -1
- package/dist/assets/{RevenueChart-BbOK-HCB-UtcLA02J.js → RevenueChart-BbOK-HCB-C8qpvMvb.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-Bk2vvBn3-C2KvPaPZ.js → ReviewDetailsPage-Bk2vvBn3-CMASDCWv.js} +1 -1
- package/dist/assets/{ReviewOverlay-CJlk2MNH-s-FncxF6.js → ReviewOverlay-CJlk2MNH-DksHT3Bn.js} +1 -1
- package/dist/assets/{RoleWithToolTip-B7woUKhj-CCCbdbHN.js → RoleWithToolTip-B7woUKhj-tuSqaaK3.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-B-WjqQN_-BZxRVl4y.js → ScheduleDetailsFixedAssetsPage-B-WjqQN_-lrt0yIGR.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-ocFBINM3-BwGXsqpK.js → ScheduleDetailsPage-ocFBINM3-BDslid8Y.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-Bb7MJ-zJ-GmSlZz8a.js → ScheduleSequenceTable-Bb7MJ-zJ-BYUE2OMk.js} +1 -1
- package/dist/assets/{ScreenRoutes-Bs2X1R3V.js → ScreenRoutes-DoE2zy1N.js} +1 -1
- package/dist/assets/{SetUpAccountSection-9zELif-q-xWCkQEz2.js → SetUpAccountSection-9zELif-q-jAntwqfL.js} +1 -1
- package/dist/assets/{SignIn-BHHUcLal-BDutKsDY.js → SignIn-BHHUcLal-B9B7yu5c.js} +1 -1
- package/dist/assets/{SignInScreen-DqJeiieA.js → SignInScreen-Czg-Wlkz.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BAdSW-49-C0b0e4ib.js → SpendManagementListViewPage-BAdSW-49-Cy3aFFuZ.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-HzCmGr0--BrKmnwTS.js → SpendManagementPerTabPage-HzCmGr0--xZeoOzCY.js} +1 -1
- package/dist/assets/{SpendManagementSection-LzT-Bnhy-DcyEJGSm.js → SpendManagementSection-LzT-Bnhy-7KIDrHzn.js} +1 -1
- package/dist/assets/{StatementItem-BnxTFgdM-ncI51LoG.js → StatementItem-BnxTFgdM-BUy1CSEA.js} +1 -1
- package/dist/assets/{StatementsPage-B8X2un5p-CiIvEzAF.js → StatementsPage-B8X2un5p-Ao0DiWwm.js} +1 -1
- package/dist/assets/{StatusSwitcher-BPKr5BUW-lb0m6Cbr.js → StatusSwitcher-BPKr5BUW-iZy1SY4R.js} +1 -1
- package/dist/assets/{SubTabSwitcher-4dvyyQSv-BdqA6ZlC.js → SubTabSwitcher-4dvyyQSv-B0aTRMDP.js} +1 -1
- package/dist/assets/{SummaryCard-CiNkV7uy-BHimAYKo.js → SummaryCard-CiNkV7uy-CyUPIfT8.js} +1 -1
- package/dist/assets/{TaskManagementPage-BiyyDIWi-DCcTniX2.js → TaskManagementPage-BiyyDIWi-DOn8-w1u.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-DEEhq2Us-D64DWBCZ.js → TimeRangeSwitcher-DEEhq2Us-DC70llJC.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-u606tI8Z-DKc_Ov1z.js → TimeframeSwitcher-u606tI8Z-CLiEbUCN.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-D2sBGHXQ-Dp4KGiW_.js → TimeframeSwitcherWithToggle-D2sBGHXQ-ChLeBSSB.js} +1 -1
- package/dist/assets/{TopExCard-DbPlohSJ-YKd6FEuQ.js → TopExCard-DbPlohSJ-Dhp9OZxf.js} +1 -1
- package/dist/assets/{TopExDetailPage-Cla8Hd-1-1fpYe-lT.js → TopExDetailPage-Cla8Hd-1-DK-xuoZs.js} +1 -1
- package/dist/assets/{TransactionDetailPage-BbjtQvBr-DNyUqobk.js → TransactionDetailPage-BbjtQvBr-FXHAHiFr.js} +1 -1
- package/dist/assets/{TransactionList-BRiHadkm-BVpjF8up.js → TransactionList-BRiHadkm-DPpaSQ1Y.js} +1 -1
- package/dist/assets/{TransactionListBig-BOeu4-R4-Cua70V6_.js → TransactionListBig-BOeu4-R4-o6UH9k2V.js} +1 -1
- package/dist/assets/{TransactionListPage-ByVvx6ON-C32shKZQ.js → TransactionListPage-ByVvx6ON-CwQjGljA.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-DMweGn3b-CelejD-M.js → TransactionVendorDetailPage-DMweGn3b-Dq7toltd.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BTqCR3Hb-CYdeK3jF.js → TransferDrawerPage-BTqCR3Hb-BWfDRvEr.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CDJtsQsC-ns0b2xlD.js → TreasuryOverviewPage-CDJtsQsC-BAM2Gg0T.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-Bqt6DcqL-DbWZMgaj.js → TreasuryPromoPage-Bqt6DcqL-CXIyIitA.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-2PsC-PWa-MMDwIX2Z.js → TreasuryStatementsPage-2PsC-PWa-D70yhjS2.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-D6MoHMAo-MFFnXqVo.js → TreasuryTaxLetterPage-D6MoHMAo-DmesESI8.js} +1 -1
- package/dist/assets/{TrendChart-DiutckSt-CgHLzJj6.js → TrendChart-DiutckSt-D94T5IZh.js} +1 -1
- package/dist/assets/{TrendWithTransactions-rPwZKHfV-DNKy45Dj.js → TrendWithTransactions-rPwZKHfV-Dtp5jwDW.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-CFx4P194-CH9WyFGN.js → UncategorizedAccountsMappingPage-CFx4P194-BZZ4iMs4.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DO8dMzVg-DvbEuGmN.js → UnitIntegrationPage-DO8dMzVg-Cd3rb01x.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-Ug3kL02_-B3G6i9sn.js → UploadAdditionalDocumentOverlay-Ug3kL02_-DKI6OhwV.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BdG-Ywma-QkJvZ609.js → Vendor2FAPopup-BdG-Ywma-CO_da9UG.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BUNmE_s6-5dZ0tO5y.js → VendorACHDetailsPage-BUNmE_s6-DPSp4E23.js} +1 -1
- package/dist/assets/{VendorDetailPage-Dy9McuGu-BueeE3oi.js → VendorDetailPage-Dy9McuGu-d-ZpZ6aU.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-DvACrh7C-fv6qIbh-.js → VendorDomesticWireDetailsPage-DvACrh7C-BLzpieuI.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Y0hGO4RH-Bkykk5NB.js → VendorFiling1099EditablePage-Y0hGO4RH-BToJSlm-.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-C-pT1M36-D21-SWZN.js → VendorFirstReviewPage-C-pT1M36-D4-Nv1Fg.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CCMramET-CvrUOrMX.js → VendorInternationalWireDetailsPage-CCMramET-BwYsNdGo.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-lxD_Z5W--BAaZ1iJw.js → VendorInternationalWireSwiftDetailsPage-lxD_Z5W--961yvZRp.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D-3fhQvy-ODF-nF1J.js → VendorsAccountsSection-D-3fhQvy-CbP2SER5.js} +1 -1
- package/dist/assets/{VerifyDevice-DDZdWfa8-C2_zooti.js → VerifyDevice-DDZdWfa8-H5PbdKsY.js} +1 -1
- package/dist/assets/{VideoPlayer-D0GZ_Yml-CzUqkm8K.js → VideoPlayer-D0GZ_Yml-gee9OAo-.js} +1 -1
- package/dist/assets/{VideoPopup-CEdhfU31-CRc_PqEa.js → VideoPopup-CEdhfU31-8qrMVIxi.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CIK9lkT2-4Dbh3gee.js → WarningsDrawerPage-CIK9lkT2-D5cDBgQm.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-BF8cg2oa-D23upslb.js → ZeniAccountDetailPage-BF8cg2oa-Df5W17bc.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BkdkYY8j-BsJgCgRQ.js → ZeniAccountListViewPage-BkdkYY8j-Bvi6PCOk.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-FAxN1QDY-BljetA4S.js → ZeniAccountNavBarPieces-FAxN1QDY-C5pMry9_.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-COAOIU03-Bkst1764.js → ZeniAccountPromoPage-COAOIU03-B_FVyXMi.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-QMBiVius-DdJzbNoZ.js → ZeniAccountSetupPage-QMBiVius-DueIhJzT.js} +1 -1
- package/dist/assets/{ZeniCopyright-CgfP-kcy-BQ8g3w-z.js → ZeniCopyright-CgfP-kcy-DUMhOisg.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-B1fmc3f9-BXoBksgM.js → ZeniTransferAmountSlider-B1fmc3f9-DSYZgQje.js} +1 -1
- package/dist/assets/{analyticsHelper-BKtlFOJm-DFeq4K6y.js → analyticsHelper-BKtlFOJm-CcPLbTK6.js} +1 -1
- package/dist/assets/{analyticsHelper-BY515BEN.js → analyticsHelper-BV9ovV44.js} +1 -1
- package/dist/assets/{chartTypes-BZYC5y5J-fsutalT0.js → chartTypes-BZYC5y5J-CVmMioA0.js} +1 -1
- package/dist/assets/{commonDimensions-B-aZt-hB-CyMsSMR_.js → commonDimensions-B-aZt-hB-CP54iB8v.js} +1 -1
- package/dist/assets/{detailCommon-DCtkwfR8-BBwf5Sk5.js → detailCommon-DCtkwfR8-Dr2vx6ZY.js} +1 -1
- package/dist/assets/{downloadPdf-BhQlJMh0-BaxCiwAc.js → downloadPdf-BhQlJMh0-DeqZGQ39.js} +1 -1
- package/dist/assets/{index-BhteR_e0.js → index-Dm9r1f6s.js} +4 -4
- package/dist/assets/{mapLoadingInProgressToTreeNode-B8iO-fIh-RTAx_JGt.js → mapLoadingInProgressToTreeNode-B8iO-fIh-DwG7e-RM.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-PLUfKBDd-B2JV3NdC.js → mapSectionWithAcOnlyToTreeNode-PLUfKBDd-BfmC19Y6.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BPbkmHFY-Ce33KPvG.js → mapSpacerToTreeNode-BPbkmHFY-BZPeecIF.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B-kK0AfR-BuUApKLg.js → mapTimeframeBalancesToTreeNode-B-kK0AfR-0kzYcFSC.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BvN4m9TA-kT_avyio.js → mapTimeframeBalancesToTreeNode-BvN4m9TA-DSQ0LTze.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-CoGG1EsI.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BiRfdc4g-C5Cp6P0a.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-ChMShONK-DKVddnaL.js → toCOABalancesWithID-ChMShONK-Cq-mLDe3.js} +1 -1
- package/dist/assets/{toChartData-BUweupH8-9P9fGujj.js → toChartData-BUweupH8-sZruIW4t.js} +1 -1
- package/dist/assets/{uploadAttachment-CeUHLpzO-CvskAe_e.js → uploadAttachment-CeUHLpzO-C_J8w5W4.js} +1 -1
- package/dist/assets/{uploadReceipts-Bkf_PaOH-B-Qf32vH.js → uploadReceipts-Bkf_PaOH-qo0cBRii.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-Dt-_tVOQ-B7ffmmrc.js +0 -1
package/dist/assets/{BillDetailPage-BuUm6vdf-DEUKUhee.js → BillDetailPage-BuUm6vdf-BEfZuL72.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as On,av as Fn,e as En,gc as Wn,gd as _n,ge as Zn,gf as Kn,ca as Vn,aN as Gn,F as Un,y,V as t,f3 as st,f4 as Hn,o as a,f5 as Xn,f6 as qn,aK as b,f7 as Jn,aL as Ae,f8 as Qn,bz as dt,bm as ct,dr as pt,cm as mt,cn as ut,co as yt,gg as Yn,gh as ea,gi as ta,gj as na,fd as $,fe as I,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,d as r,ah as pa,b$ as ma,gp as ua,L as ya,gq as ha,gr as gt,fn as xt,a as ba,d0 as ga,cf as xa,b5 as fa,b7 as wa,l as Ta,bS as Lt,gs as va,d1 as ja,ag as Ot,aW as Da,b3 as $a,br as Ia,eJ as Aa,ak as ka}from"./index-BhteR_e0.js";import{a as p}from"./core-B-FNbYlu.js";import{n as i}from"./mui-DLNyBjYF.js";import{a as Sa}from"./liveblocks-BBTLClA6.js";import{bR as Ca,bO as Pa,bS as Ba,Fn as Ra,bQ as za,bK as Ma,bj as Na}from"./zeni-epic-state-HWtMOH-U.js";import{o as La,t as Oa}from"./LowBalancePopup-BFo5zRk3-BLFy36gu.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./utils-D1zwltK3.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:Wa,common:{noText:C,strings:{empty:c},currency:ft,via:_a,more:Za,edit:Ka},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Te,insufficientFunds:Ft}},collaboration:{threads:{placeholder:Tt,tooltip:vt,title:{comments:Va}}}}=Un.getLocalizedStrings(),ve=Wa.visual.MMMDCommaYYYYformat,Ni=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Et,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:_t,hasZeniAssistAccess:Zt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Kt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:Be,deleteBill:Ut,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:Ht,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:qt,onBackClick:Ne,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:Yt,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,J]=p.useState(!1),h=e.transactionDetails?.id,an=Kt?Wn:_n,{requestToOpenThread:pe,setRequestToOpenThread:We,setOpenThread:Q}=p.useContext(an),[ln,G]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:U,isLoading:P}=Zn(T,"both",!1),f=Ce&&h!=null,_e=p.useMemo(()=>h==null?[]:U.filter(s=>s.resolved===!1&&!s.id.includes(Kn)),[U,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,on=p.useCallback((s,u)=>{Q(u),G(!1)},[Q,G]);p.useEffect(()=>{pe?.threadId!=null&&U.length>0&&!P&&(Q(pe.threadId),We(null))},[pe,U,P,Q,We]),Vn({componentName:"bill.details"});const[N,Y]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[rn,Ve]=p.useState(!1),[sn,Ge]=p.useState(!1),[Ue,He]=p.useState(!1),Xe=()=>Ve(!1),dn=()=>Ve(!0),qe=Gn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),q())},[e,q,Be]),p.useEffect(()=>{qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[qe,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,cn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",j=me?w:te?.code=="approved"&&H?.code?H:te,S=Ga(j,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?cn:H?.code!=null&&(te?.code=="approved"||H.code==="mark_as_paid")?H:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},pn=()=>{Y({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},mn=()=>{Y({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},un=()=>{Y({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},yn=()=>{M.trackRefundClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Y({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?Ut?.(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(j?.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]=Da("ZeniAssist");return s!=null?t.jsx($a,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),M.trackZeniAssistClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData: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},D=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,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>{const s=d?.paymentToBankAccount?.bankAccountType,u=s!=null&&s!==""?ja(s.toLowerCase()):s??"";return`${Te.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{q as On,av as Fn,e as En,gc as Wn,gd as _n,ge as Zn,gf as Kn,ca as Vn,aN as Gn,F as Un,y,V as t,f3 as st,f4 as Hn,o as a,f5 as Xn,f6 as qn,aK as b,f7 as Jn,aL as Ae,f8 as Qn,bz as dt,bm as ct,dr as pt,cm as mt,cn as ut,co as yt,gg as Yn,gh as ea,gi as ta,gj as na,fd as $,fe as I,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,d as r,ah as pa,b$ as ma,gp as ua,L as ya,gq as ha,gr as gt,fn as xt,a as ba,d0 as ga,cf as xa,b5 as fa,b7 as wa,l as Ta,bS as Lt,gs as va,d1 as ja,ag as Ot,aW as Da,b3 as $a,br as Ia,eJ as Aa,ak as ka}from"./index-Dm9r1f6s.js";import{a as p}from"./core-B-FNbYlu.js";import{n as i}from"./mui-DLNyBjYF.js";import{a as Sa}from"./liveblocks-BBTLClA6.js";import{bR as Ca,bO as Pa,bS as Ba,Fn as Ra,bQ as za,bK as Ma,bj as Na}from"./zeni-epic-state-HWtMOH-U.js";import{o as La,t as Oa}from"./LowBalancePopup-BFo5zRk3-mdHe1dcy.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./utils-D1zwltK3.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:Wa,common:{noText:C,strings:{empty:c},currency:ft,via:_a,more:Za,edit:Ka},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Te,insufficientFunds:Ft}},collaboration:{threads:{placeholder:Tt,tooltip:vt,title:{comments:Va}}}}=Un.getLocalizedStrings(),ve=Wa.visual.MMMDCommaYYYYformat,Ni=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Et,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:_t,hasZeniAssistAccess:Zt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Kt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:q,discardBillDetailsFromLocalStore:Be,deleteBill:Ut,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:Ht,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:qt,onBackClick:Ne,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:Yt,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,J]=p.useState(!1),h=e.transactionDetails?.id,an=Kt?Wn:_n,{requestToOpenThread:pe,setRequestToOpenThread:We,setOpenThread:Q}=p.useContext(an),[ln,G]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:U,isLoading:P}=Zn(T,"both",!1),f=Ce&&h!=null,_e=p.useMemo(()=>h==null?[]:U.filter(s=>s.resolved===!1&&!s.id.includes(Kn)),[U,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,on=p.useCallback((s,u)=>{Q(u),G(!1)},[Q,G]);p.useEffect(()=>{pe?.threadId!=null&&U.length>0&&!P&&(Q(pe.threadId),We(null))},[pe,U,P,Q,We]),Vn({componentName:"bill.details"});const[N,Y]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[rn,Ve]=p.useState(!1),[sn,Ge]=p.useState(!1),[Ue,He]=p.useState(!1),Xe=()=>Ve(!1),dn=()=>Ve(!0),qe=Gn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{q()},[q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),q())},[e,q,Be]),p.useEffect(()=>{qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[qe,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,cn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",j=me?w:te?.code=="approved"&&H?.code?H:te,S=Ga(j,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?cn:H?.code!=null&&(te?.code=="approved"||H.code==="mark_as_paid")?H:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},pn=()=>{Y({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},mn=()=>{Y({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},un=()=>{Y({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},yn=()=>{M.trackRefundClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Y({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?Ut?.(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(j?.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]=Da("ZeniAssist");return s!=null?t.jsx($a,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),M.trackZeniAssistClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData: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},D=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,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>{const s=d?.paymentToBankAccount?.bankAccountType,u=s!=null&&s!==""?ja(s.toLowerCase()):s??"";return`${Te.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
2
|
${Te.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Te.achDetails.accountTypeLabel} ${u}`},ae=e.transactionDetails?.billPayInfo!=null?Ca(e.transactionDetails?.billPayInfo):void 0,Dn=ae!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Pa(Ba(ae?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Ye=e.transactionDetails?.billPayInfo.expectedDepositDate??Dn,et=st(d?.paymentType?.method??"").replace("Same Day",""),$n=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Hn,{paymentTypeLabel:et,onClick:dn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,In=()=>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=!(j?.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=Zt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(ge||xe)&&An===!1,fe=ge||xe,Sn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=j?.code,Cn=!Sn&&(!Qe||j?.code==="processing"&&!B),at=!Qe,it=["small","medium-compact","medium-regular"].includes(l),X=Ra(e.transactionDetails?.bulkProcessingDetail?.type),F=za(e.paymentMethodType?.method),Pn=!X&&(E!=="processing"&&nt||E==="processing"&&!B||E==="processing"&&at||g&&F&&Se),Bn=s=>{M.trackBillPayMarkAsPaidSubmit(s.paymentMode??"other",w?.code??"",j?.code??""),Xt(!0,Ue,s)},lt=()=>{Ge(!0),M.trackBillPayMarkAsPaid(w?.code??"",j?.code??"")},Rn=()=>{He(!0),lt()},zn=()=>{qt(),Ge(!1),Ue&&He(!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]),W=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&j?.code!=="failed"&&j?.code!=="processing"&&j?.code!=="cancelled"&&j?.code!=="returned"&&j?.code!=="rejected"?Xn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,ot=()=>{Ke("approved"),Ee===!0&&J(!1),W!=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"),W!=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(qn,{anchor:"right",open:rn,onClose:Xe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Jn,{companyName:Qn(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:Xe})}),t.jsxs(ci,{windowSize:l,children:[t.jsx(ji,{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(Ie,{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(),G(!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:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Mt,{})]}):null,t.jsx(St,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(At,{})})]}),leftSideComponent:t.jsx(It,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx($t,{})}),source:"BillDetailPage"}):t.jsx(dt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(kt,{windowSize:l,children:[f?t.jsxs(zt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:s=>{s.preventDefault(),s.stopPropagation(),G(!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:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Mt,{})]}):null,t.jsx(St,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(At,{})})]}),leftSideComponent:t.jsx(It,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx($t,{})}),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:()=>{J(!1),Je()},onClickAway:()=>{J(!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?Ua(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(Ie,{height:a.sp5,width:a.sp5}):null]}):null,Z&&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(Yn,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Ye,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ea,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Ye,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,qa(X,e,W),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(De,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx($,{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.${I("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:D},text:ne.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{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.${I("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:D},text:ne.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{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.${I("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:D},text:ne.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{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.${I("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:D},text:ne.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(De,{children:[t.jsx(mi,{windowSize:l,children:t.jsx($e,{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(je,{children:[t.jsx($,{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.${I("recipientAmount",u)}`},children:t.jsx(k,{label:{label:n.amount,width:D},text:R!=null?Ae("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{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.${I("lineDescription",u)}`},children:t.jsx(k,{label:{label:n.description,width:D},text:s.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{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.${I("account",u)}`},children:t.jsx(k,{label:{label:n.category,width:D},text:s.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{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.${I("class",u)}`},children:t.jsx(k,{label:{label:n.class,width:D},text:s.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{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.${I("billable",u)}`},children:t.jsx(k,{label:{label:n.billable,width:D},text:s.billable!=null?fn(s.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{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.${I("customer",u)}`},children:t.jsx(k,{label:{label:n.customer,width:D},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(De,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx($,{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.${I("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:D},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:W!=null&&w?.code==="pending_approval"?Ft.addMoney:W})}),t.jsx(z,{})]}),t.jsx($,{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.${I("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ma)&&_t&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Qa,{children:ia(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:F&&e.outsideZeniPaymentInfo!=null?Xa(e.outsideZeniPaymentInfo):st(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{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.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:D},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:jn(),additionalInfoLabel:t.jsx(Ja,{children:$n})}),In()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{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.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:oa(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:la(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(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:Ht,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Et,signedInUserId:le?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:Qt},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:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Nn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ha(K,it),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?lt:()=>{W!=null?J(!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(Ya,{children:t.jsxs(li,{windowSize:l,children:[!X&&Oe?t.jsx(bt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Dt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&nt?t.jsx(_,{onClick:pn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(_,{onClick:mn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&&at?t.jsx(_,{onClick:un,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&Se?t.jsx(_,{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(Dt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[ge?t.jsx(_,{onClick:()=>{M.trackRetryClick(j?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Yt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,xe?t.jsx(_,{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(jt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(gn,{}):t.jsx(ti,{})})}):null,!X&&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:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ni,{})})}):null,!X&&Cn===!0&&Pn?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Za,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(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:U,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:()=>G(!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]})},Ga=(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}},Ua=(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})]})]})},Ha=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,Xa=e=>{const x=e.paymentMode,g=n.paymentOutsideZeni.offline;if(x==null||x==="other")return g;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===x)?.label;return`${g} ${_a} ${Z}`},qa=(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 Z=`${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__",Z)}`,description:g.replace("Low balance! ","")})}else return null},Ja=i.div``,Qa=i.div``,Ya=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as O,d as U,q as M,F as C,a8 as W,aN as G,V as r,aH as H,cB as X,bz as J,ab as K,aO as Q,o as c,g2 as Y}from"./index-
|
|
1
|
+
import{y as O,d as U,q as M,F as C,a8 as W,aN as G,V as r,aH as H,cB as X,bz as J,ab as K,aO as Q,o as c,g2 as Y}from"./index-Dm9r1f6s.js";import{a as R}from"./core-B-FNbYlu.js";import{n as b}from"./mui-DLNyBjYF.js";import{b as Z,f as ee,l as T,o as j}from"./FollowStepsSection-Bu3RG_GH-1o9BWCUV.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";const D="billPayApprovalRuleDetailPage",N="lowerBound",_="upperBound",A="steps",h="applyToExistingBills",le={footerPadding:new O(U[2],U[2])};function Pe({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:o,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:x=!0,hideUpperBoundField:P=!1,onSaveRuleClick:E,onSaveRuleSuccess:S}){const w=M(),a=C.getLocalizedStrings().commonSetUp.approval,I=C.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,t==="approval_create"&&!n),g=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:L}=y,{allApprovalRules:p,allAccountingClasses:F,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 V=g.handleSubmit(()=>{E()}),q=async(i,d)=>{o(d)};return R.useEffect(()=>{const i=g.watch((d,{name:$})=>{if($!=null&&d!=null){const z=H(d);X(()=>q($,z))}});return()=>{i.unsubscribe()}}),R.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&S()},[B,u?.fetchState,S]),r.jsxs(se,{children:[r.jsx(J,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(K,{...g,children:[r.jsx(ne,{children:r.jsx("form",{id:k(D),onSubmit:V,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:P?I.amountPerBillGreaterLabel:I.amountPerBillLabel},firstText:{type:"number",name:N,placeholder:"$0",options:{required:!0,max:L===1/0?Number.MAX_SAFE_INTEGER-1:L-1,min:v,validate:i=>n?!0:i!=null&&i>v},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:_,placeholder:"Infinity",isDisabled:x,hideField:P,additionalInfoLabel:a.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:A,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:y[A],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(Q,{formId:k(D),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?null:r.jsx(Y,{name:h,mode:"always_on",checkBoxes:[{value:h,label:a.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(w)},separatorStyle:{marginRight:c.sp4}})]})]})}const ae=(e,t)=>{const{criteria:l,steps:o}=e.billPaySetupApproverViewUpdateData?.data??{};return{[h]:[h],[A]:te(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),o??[])??[],[N]:t?void 0:l!=null?l.range.min.amount??0:0,[_]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},te=(e,t,l,o,s)=>s&&s.length>0?s.map((n,x)=>({stepIndex:x,stepType:{selectedOption:n.action,allOptions:T},actors:{allUsers:t,selectedUsers:re(e,n.actors),allNonUsers:o,selectedNonUsers:oe(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],re=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(o=>o.userId===l.userId)>-1),oe=(e,t)=>e.filter(l=>t.findIndex(o=>o.subType===l.value)>-1),k=e=>`${e}_form`,Se=e=>`${e}`,se=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as B,F as b,V as t,bz as D,m as E,aK as S,y as r,ak as j,o,aL as P,cm as H,cn as V,co as _,cY as U,d as l,b7 as G,a as k,b6 as q,p as z,cV as F,br as J,b as X}from"./index-
|
|
1
|
+
import{q as B,F as b,V as t,bz as D,m as E,aK as S,y as r,ak as j,o,aL as P,cm as H,cn as V,co as _,cY as U,d as l,b7 as G,a as k,b6 as q,p as z,cV as F,br as J,b as X}from"./index-Dm9r1f6s.js";import{n as i}from"./mui-DLNyBjYF.js";import{a as Y}from"./core-B-FNbYlu.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.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)},A={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},K=({showDeleteBtn:e=!1,isLastSection:y=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:u})=>{const[x,w]=Y.useState(!1),a=B(),{range:h}=c.criteria[0],{steps:g,approvalRuleId:m}=c,n=b.getLocalizedStrings().commonSetUp.approval,f=()=>{w(!0)},W={onOkClick:()=>{w(!1),u?.(m)},onCancelClick:()=>{w(!1)}};return t.jsxs(O,{windowSize:a,isLastSection:y,children:[t.jsxs(Q,{windowSize:a,children:[t.jsxs(se,{children:[t.jsxs(L,{windowSize:a,children:[n.from," ",P("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(T,{}),t.jsx(ee,{}),t.jsx(T,{})]}),h.max==null?t.jsx(de,{}):t.jsx(L,{windowSize:a,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:f,"data-testid":S("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:a,children:t.jsx(oe,{isSingleStep:g.length===1,windowSize:a,children:g.map((d,M)=>t.jsxs(ie,{isSingleStep:g.length===1,className:"stepperItem",windowSize:a,children:[d.action==="require_approval"?t.jsx(re,{children:n.requireText}):t.jsx(le,{children:n.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(I,{children:[t.jsx(R,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(C,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(I,{children:[t.jsxs(R,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(C,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),x?t.jsx(H,{titleComponent:t.jsx(_,{children:n.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:W}):null]})},O=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-DkoqXDNt-FNHctwfQ.js → BillPayPromoPage-DkoqXDNt-Jx7NR9vs.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as W,q as f,aN as Y,F as C,V as e,fo as ee,bz as ie,n as T,aK as B,ad as m,o as l,ap as le,D as se,e as M,aQ as U,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,d as de}from"./index-
|
|
1
|
+
import{av as W,q as f,aN as Y,F as C,V as e,fo as ee,bz as ie,n as T,aK as B,ad as m,o as l,ap as le,D as se,e as M,aQ as U,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,d as de}from"./index-Dm9r1f6s.js";import{a as g}from"./core-B-FNbYlu.js";import{n as s}from"./mui-DLNyBjYF.js";import{Fc as ce,bV as pe,Fd as me}from"./zeni-epic-state-HWtMOH-U.js";import{f as xe}from"./VideoPopup-CEdhfU31-8qrMVIxi.js";import{M as S}from"./usp-line-BBd1wKwW-_aHpaGit.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./VideoPlayer-D0GZ_Yml-gee9OAo-.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-BommXkLS-DOKgmPVm.js → BillPaySetUpPage-BommXkLS-CxAPQ6nt.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as Oe,q as _e,aN as F,a8 as Re,cB as Ue,F as De,aS as Q,V as t,f6 as He,aK as ze,p as Le,y as u,bz as qe,m as Me,ab as Ne,fp as H,dM as Ge,fq as Je,bu as Ke,dC as Ze,bQ as Qe,fr as Xe,aO as Ye,o as L,fs as et,d as a,ak as tt,bI as it}from"./index-
|
|
1
|
+
import{e as Oe,q as _e,aN as F,a8 as Re,cB as Ue,F as De,aS as Q,V as t,f6 as He,aK as ze,p as Le,y as u,bz as qe,m as Me,ab as Ne,fp as H,dM as Ge,fq as Je,bu as Ke,dC as Ze,bQ as Qe,fr as Xe,aO as Ye,o as L,fs as et,d as a,ak as tt,bI as it}from"./index-Dm9r1f6s.js";import{a as g}from"./core-B-FNbYlu.js";import{n as m}from"./mui-DLNyBjYF.js";import{bM as nt}from"./zeni-epic-state-HWtMOH-U.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-Ug3kL02_-DKI6OhwV.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.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:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=_e(),[k,y]=g.useState(!1),M=g.useRef(null),{fetchState:p,updateStatus:S,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=E,O=$.link_account.updateStatus,_=$.update_account.updateStatus,B=F(p),J=F(S.fetchState),K=F(O.fetchState),Z=F(_.fetchState),P=Re({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&&B==="In-Progress"&&p==="Completed"&&y(!1)},[c,p,B]),g.useEffect(()=>{(B==="In-Progress"&&p==="Completed"||K==="In-Progress"&&O.fetchState==="Completed"||Z==="In-Progress"&&_.fetchState==="Completed")&&P.reset(z(e))},[B,p,P,e,K,O.fetchState,Z,_.fetchState]);const Be=P.handleSubmit(x=>{b.trackEnableBillPay(),me()}),Ie=async(x,V)=>{const o=V[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=N.find(D=>D.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(D=>D.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((V,{name:o})=>{o!=null&&V!=null&&Ue(()=>Ie(o,V))});return()=>{x.unsubscribe()}}),g.useEffect(()=>{J==="In-Progress"&&S.fetchState==="Completed"&&q()},[q,J,S.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=De.getLocalizedStrings(),{setUp:d}=Ve,{billPaySetup:l}=Fe.billPay,R=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||nt(r?.providerVerificationStatus?.code??"")),U=A?.isBillPayEnabled===!0,We=R?d.setupVerifiedSubTitle:l.setupSubTitle,Ee=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new Q(C.colors.brandColorJadeLight):new Q(C.colors.brandColorJadeDark),$e=()=>{!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:M,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(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!U&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:M,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(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...P,children:t.jsx("form",{id:Y(X),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:$e,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:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:$,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:I},analytics:b,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&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(Qe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),R&&!U&&j.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:R&&!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{e as fe,q as be,a8 as Ce,cB as Pe,aS as k,F as xe,V as t,y as P,bz as Ae,m as Ie,ab as ve,bu as je,cC as ke,aO as $e,o as s,hE as Ve,eU as Be,eV as Ee,d as x,ak as Te,gN as ze,a as Le,p as Oe}from"./index-
|
|
1
|
+
import{e as fe,q as be,a8 as Ce,cB as Pe,aS as k,F as xe,V as t,y as P,bz as Ae,m as Ie,ab as ve,bu as je,cC as ke,aO as $e,o as s,hE as Ve,eU as Be,eV as Ee,d as x,ak as Te,gN as ze,a as Le,p as Oe}from"./index-Dm9r1f6s.js";import{a as H}from"./core-B-FNbYlu.js";import{n as r}from"./mui-DLNyBjYF.js";import{M as De,r as R,o as Me}from"./PaymentAccountSetupBillingAddressSection-BP-_59EO-hGRsM6bI.js";import{F as Fe}from"./SetUpAccountSection-9zELif-q-jAntwqfL.js";import"./sentry-EYLV4XmG.js";import"./zeni-epic-state-HWtMOH-U.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.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])},He={title:new Le("standardSemiBold","largeSemiBold")},U="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:q,stripeKey:N,googleAPIKey:K,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=fe(),i=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:V},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=V.fetchState==="In-Progress"||V.fetchState==="Not-Started",S=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:W(a),values:W(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),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,j=Be(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode: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)};H.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 k(b.colors.brandColorJadeLight):new k(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,L=m.cardsList.length>0,O=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,C=De(w.header,w.titleText,w.protectedCardNo,m);let M;L&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:R(O).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:R(O).name}),color:new k(T)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[F,we]=H.useState(!1);return t.jsxs(Ue,{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(Re,{windowSize:i,children:[t.jsx(We,{windowSize:i,children:ge}),ue?t.jsx(_e,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:_(U),onSubmit:pe,children:t.jsxs(qe,{windowSize:i,children:[t.jsx(Fe,{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:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:T},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:F}),Ne(i,l.headers.billingAddress,ce,K,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:_(U),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:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:F,setCardSetupInProgress:we})]})},W=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]:Ve(n,e.subscriptionBillingAddress)[n]}},Re=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 q,j_ as z,aV as Q}from"./index-
|
|
1
|
+
import{F as O,V as _,cm as M,cn as W,co as q,j_ as z,aV as Q}from"./index-Dm9r1f6s.js";import{a as b}from"./core-B-FNbYlu.js";import{FS as X}from"./zeni-epic-state-HWtMOH-U.js";import{u as Y}from"./ReviewOverlay-CJlk2MNH-DksHT3Bn.js";import"./mui-DLNyBjYF.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.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(E(t,u)),[p,T]=b.useState(u),[I,k]=b.useState(0),[w,j]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===I?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),k(d=>d+1)},1e3)),I===s.length&&p&&(T(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(E(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}=G(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,Z(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:A,description:$}=H(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"}:{}},V={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(q,{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(Y,{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:V,hideCancel:P}})]})},E=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:Q("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&X(e.reviewErrors[0].reviewErrorCode),subTitle:J(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Z=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=z([...l,e.isRecurring?"recurring":"one-time"])}),l},G=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},H=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is: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}},J=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,Z 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-Dm9r1f6s.js";import{n as p}from"./mui-DLNyBjYF.js";import{o as l}from"./commonDimensions-B-aZt-hB-CP54iB8v.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{e as ct,q as dt,aN as ve,V as a,F as Oe,ad as W,a8 as mt,cP as pt,ax as ut,cB as ft,aV as De,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,m as Tt,ab as vt,aO as Dt,o,y as N,al as Ve,g6 as $t,ft as ke,eU as kt,D as It,L as jt,ak as Fe,a as Nt,B as Pt,d as k}from"./index-BhteR_e0.js";import{a as P}from"./core-B-FNbYlu.js";import{n as d}from"./mui-DLNyBjYF.js";import{Et as Lt,bi as G}from"./zeni-epic-state-HWtMOH-U.js";import{S as Ot,s as Vt}from"./CompanyOfficerDetailsSection-ChsNKXbx-Dk7vpi01.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./LabeledAddressValueField-CoTtV0RQ-CTJHm8Dm.js";import"./LabeledCreatableSingleSelectField-CnQsTYWe-BxSldgLD.js";import"./LabeledDocumentField-MkryOLQ8-ZmKcbrkd.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},Ie="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Bt,currency:je,footer:Ne,strings:{empty:At}}}=Oe.getLocalizedStrings(),xa=({businessVerificationDetails:t,allNationalityCountries:F,verficationDetailsFetchState:L,isRefreshingViewInBackground:B,filesEndPoint:r,authParams:A,productType:y,allIndustries:_,companyTitles:E,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:O,onGetOtp:_e,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Ke})=>{const Qe=ct(),m=dt(),{updateStatus:R,companyView:V,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Xe=ve(R.fetchState),U=V?.company.company.featuresActivationInfo.connectedAccountProvider,Je=U==="unit"?a.jsxs(qt,{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,[Ye,K]=P.useState(!1),[M,oe]=P.useState("save"),[Q,Ze]=P.useState(!1),p=mt({mode:"all",reValidateMode:"onChange",defaultValues:_t(t,_,E,F)}),{isValid:He}=p.formState,X=V?.company.company.companyBillPayInfo,J=V?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?J?.companyVerificationStatus:X?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,et=()=>{const e=w[D],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[D],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}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[D],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||Y!=null&&Y?.length>0)return p.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(M!=="verification"&&oe("verification"),U==="unit"&&w[D]?.isPhoneVerified!==!0){p.setError(`${T}.${v}.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);Lt(e.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(D),q===!0&&Ke?.())}),st=async(e,s)=>{e.includes(b)?Ue?.(s[b]):e.includes(T)&&We?.(s[T])},nt=P.useCallback(ut((e,s)=>{st(e,s)},300),[]);P.useEffect(()=>{const e=p.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);P.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=V?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{K(!1),O();const e=[],s=V?.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&&Me?.(e)},onCancelClick:()=>{K(!1)}},lt=De($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:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",De($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:()=>{O(),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)?K(!0):O()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{O(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!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(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?Bt.infoText.businessVerification:i.title}),L==="In-Progress"||L==="Not-Started"?a.jsx(Mt,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(vt,{...p,children:a.jsxs("form",{id:Pe(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(Kt,{windowSize:m,children:[a.jsx(Qt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Xt,{children:a.jsxs(Jt,{children:[a.jsx(Le,{}),de&&a.jsx(Le,{}),a.jsx(Yt,{})]})})]}),a.jsx(Be,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:F,allOfficers:Y??[],sectionId:T,isRefreshingViewInBackground:B,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:A,isPopupOpen:Q,openPopup:Ze,onGetOtp:_e,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:B},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:U,allIndustries:_})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),L==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?a.jsx(Dt,{formId:Pe(Ie),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="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?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)O();else{const e=w[D],s=l?.primaryContactLocalData;M!=="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?.(D))}}},helperText:Je,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},_t=(t,F,L,B)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=t,_=Oe.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:_.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,B.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:L?.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}})}},Pe=t=>`${t}_form`,Et=d.div`
|
|
1
|
+
import{e as ct,q as dt,aN as ve,V as a,F as Oe,ad as W,a8 as mt,cP as pt,ax as ut,cB as ft,aV as De,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,m as Tt,ab as vt,aO as Dt,o,y as N,al as Ve,g6 as $t,ft as ke,eU as kt,D as It,L as jt,ak as Fe,a as Nt,B as Pt,d as k}from"./index-Dm9r1f6s.js";import{a as P}from"./core-B-FNbYlu.js";import{n as d}from"./mui-DLNyBjYF.js";import{Et as Lt,bi as G}from"./zeni-epic-state-HWtMOH-U.js";import{S as Ot,s as Vt}from"./CompanyOfficerDetailsSection-ChsNKXbx-BF5MOIbR.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./LabeledAddressValueField-CoTtV0RQ-oEM2MjQO.js";import"./LabeledCreatableSingleSelectField-CnQsTYWe-BNKI3sBW.js";import"./LabeledDocumentField-MkryOLQ8-DH1KAWxk.js";const x={width:new N(343,580,726),titleWidth:new N(343,580,726,826),subTitlePaddingTop:new N(12,k[3]),subTitlePaddingBottom:new N(k[3],k[3]),verificationDetailsRowGap:new N(12,k[5],k[5]),termsPaddingLeftRight:new N(k[0],k[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},Ie="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Bt,currency:je,footer:Ne,strings:{empty:At}}}=Oe.getLocalizedStrings(),xa=({businessVerificationDetails:t,allNationalityCountries:F,verficationDetailsFetchState:L,isRefreshingViewInBackground:B,filesEndPoint:r,authParams:A,productType:y,allIndustries:_,companyTitles:E,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:O,onGetOtp:_e,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Ke})=>{const Qe=ct(),m=dt(),{updateStatus:R,companyView:V,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Xe=ve(R.fetchState),U=V?.company.company.featuresActivationInfo.connectedAccountProvider,Je=U==="unit"?a.jsxs(qt,{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,[Ye,K]=P.useState(!1),[M,oe]=P.useState("save"),[Q,Ze]=P.useState(!1),p=mt({mode:"all",reValidateMode:"onChange",defaultValues:_t(t,_,E,F)}),{isValid:He}=p.formState,X=V?.company.company.companyBillPayInfo,J=V?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?J?.companyVerificationStatus:X?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,et=()=>{const e=w[D],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[D],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}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[D],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||Y!=null&&Y?.length>0)return p.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(M!=="verification"&&oe("verification"),U==="unit"&&w[D]?.isPhoneVerified!==!0){p.setError(`${T}.${v}.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);Lt(e.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(D),q===!0&&Ke?.())}),st=async(e,s)=>{e.includes(b)?Ue?.(s[b]):e.includes(T)&&We?.(s[T])},nt=P.useCallback(ut((e,s)=>{st(e,s)},300),[]);P.useEffect(()=>{const e=p.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);P.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=V?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{K(!1),O();const e=[],s=V?.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&&Me?.(e)},onCancelClick:()=>{K(!1)}},lt=De($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:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",De($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:()=>{O(),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)?K(!0):O()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{O(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!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(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?Bt.infoText.businessVerification:i.title}),L==="In-Progress"||L==="Not-Started"?a.jsx(Mt,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(vt,{...p,children:a.jsxs("form",{id:Pe(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(Kt,{windowSize:m,children:[a.jsx(Qt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Xt,{children:a.jsxs(Jt,{children:[a.jsx(Le,{}),de&&a.jsx(Le,{}),a.jsx(Yt,{})]})})]}),a.jsx(Be,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:F,allOfficers:Y??[],sectionId:T,isRefreshingViewInBackground:B,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:A,isPopupOpen:Q,openPopup:Ze,onGetOtp:_e,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:B},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:U,allIndustries:_})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),L==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?a.jsx(Dt,{formId:Pe(Ie),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="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?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)O();else{const e=w[D],s=l?.primaryContactLocalData;M!=="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?.(D))}}},helperText:Je,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},_t=(t,F,L,B)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=t,_=Oe.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:_.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,B.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:L?.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}})}},Pe=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 $,a as y,o as s,B as C}from"./index-
|
|
1
|
+
import{q as w,F as x,V as t,b as $,a as y,o as s,B as C}from"./index-Dm9r1f6s.js";import{n as l}from"./mui-DLNyBjYF.js";import{a as d}from"./core-B-FNbYlu.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")},D=({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%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as k,q as f,V as t,bz as te,F as w,fc as L,b as u,b1 as J,bY as ie,o as i,p as B,y as h,ak as v,de as oe,d as l,aV as re,aL as T,bO as ae,aK as z,ag as $,jc as U,jd as X,iS as se,cv as ne,cy as de,al as O,iT as le,iU as ce}from"./index-
|
|
1
|
+
import{e as k,q as f,V as t,bz as te,F as w,fc as L,b as u,b1 as J,bY as ie,o as i,p as B,y as h,ak as v,de as oe,d as l,aV as re,aL as T,bO as ae,aK as z,ag as $,jc as U,jd as X,iS as se,cv as ne,cy as de,al as O,iT as le,iU as ce}from"./index-Dm9r1f6s.js";import{n as o}from"./mui-DLNyBjYF.js";import{FK as b,bj as he}from"./zeni-epic-state-HWtMOH-U.js";import{S as R,a as V}from"./core-B-FNbYlu.js";import{q as pe}from"./InsightsSection-7-T67WeF-R1I0UTTj.js";import{B as me,C as ge,X as xe,Y as we,T as ue,b as ye,j as fe}from"./recharts-Cnl2EvUV.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./lexical-DPEnH3HH.js";import"./NavigationDots-BT-m0FmS-COkqBkfX.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(q,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,je=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as tt,q as Ie,av as It,a7 as Lt,gR as wr,hv as ki,aS as Qe,F as ke,gS as xr,aN as et,V as t,gU as ji,bz as Ii,d as l,fQ as Sr,aL as Ge,aK as J,o as a,bQ as Qt,p as d,iY as br,b as U,cm as Li,iZ as Di,f6 as Ai,gI as Ti,i_ as Ri,bC as Ei,bL as yr,aQ as ea,i$ as Fi,j0 as $r,j1 as ot,y as T,bI as vr,b8 as ta,u as Pi,aR as kr,aZ as zi,j2 as Mi,j3 as Vi,b5 as aa,ag as ge,ey as Oi,iM as Hi,c as gt,gT as jr,m as mt,b1 as Ni,dj as Bi,cq as Wi,cn as Ui,d2 as _i,hs as Zi,ak as Oe,bS as Gi,aW as Wt,j4 as Fa,j5 as Yi,a as Pa,B as Ir,b7 as qi,j6 as Xi,iG as pt,iW as Ji,iX as Ki,iR as Qi,dr as za,eQ as eo,n as Lr,cv as Dr,iP as to,bV as ao,l as Ar,j7 as ro,au as vt,bY as Ma,bv as io,db as oo,al as st,ho as no,ap as so,L as co,bE as lo,j8 as Dt,fk as ho,bO as po,j9 as Tr,ja as Rr,gt as Er,jb as jt,i8 as Fr,iS as uo,cy as mo,ed as Pr,iT as go,iU as Co,dM as fo,cY as wo,ej as xo,cd as So,ce as bo}from"./index-
|
|
1
|
+
import{e as tt,q as Ie,av as It,a7 as Lt,gR as wr,hv as ki,aS as Qe,F as ke,gS as xr,aN as et,V as t,gU as ji,bz as Ii,d as l,fQ as Sr,aL as Ge,aK as J,o as a,bQ as Qt,p as d,iY as br,b as U,cm as Li,iZ as Di,f6 as Ai,gI as Ti,i_ as Ri,bC as Ei,bL as yr,aQ as ea,i$ as Fi,j0 as $r,j1 as ot,y as T,bI as vr,b8 as ta,u as Pi,aR as kr,aZ as zi,j2 as Mi,j3 as Vi,b5 as aa,ag as ge,ey as Oi,iM as Hi,c as gt,gT as jr,m as mt,b1 as Ni,dj as Bi,cq as Wi,cn as Ui,d2 as _i,hs as Zi,ak as Oe,bS as Gi,aW as Wt,j4 as Fa,j5 as Yi,a as Pa,B as Ir,b7 as qi,j6 as Xi,iG as pt,iW as Ji,iX as Ki,iR as Qi,dr as za,eQ as eo,n as Lr,cv as Dr,iP as to,bV as ao,l as Ar,j7 as ro,au as vt,bY as Ma,bv as io,db as oo,al as st,ho as no,ap as so,L as co,bE as lo,j8 as Dt,fk as ho,bO as po,j9 as Tr,ja as Rr,gt as Er,jb as jt,i8 as Fr,iS as uo,cy as mo,ed as Pr,iT as go,iU as Co,dM as fo,cY as wo,ej as xo,cd as So,ce as bo}from"./index-Dm9r1f6s.js";import{a as o,S as yo,c as zr}from"./core-B-FNbYlu.js";import{n as r,b as we,k as Mr}from"./mui-DLNyBjYF.js";import{Er as At,bj as $o,bg as vo}from"./zeni-epic-state-HWtMOH-U.js";import{k as ko}from"./NavigationDots-BT-m0FmS-COkqBkfX.js";import{A as jo,i as Io,a as Lo,l as Do,r as Ao,t as To,n as Ro}from"./add-to-wallet-DgdBD8_G-BctcirlU.js";import{L as Ut}from"./lottie-gmZDfwf4.js";import{j as Eo}from"./CardNumberSubText-D_fWhc_K-C63mXt5C.js";import{l as Vr}from"./uploadReceipts-Bkf_PaOH-qo0cBRii.js";import{L as Fo,z as Po,k as zo,P as Mo}from"./LockCardPage-DqQGGac2-DNRrTsHA.js";import"./sentry-EYLV4XmG.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./RoleWithToolTip-B7woUKhj-tuSqaaK3.js";const Or=ke.getLocalizedStrings().spendManagement.chargeCard,Vo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:b,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:K}=Vi(),_=It(),D=At(_.loggedInUserRoleMap);return t.jsx(Oo,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(k,"_blank")}}):K===!0?t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{b("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),O(!0)}}),t.jsx(Jt,{onClick:()=>{b("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),O(!0)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Ho,{}),label:Or.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(No,{}),label:Or.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-apple-wallet-button")})},Oo=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a7 as Za,aN as N,av as Ha,fP as Qa,iG as V,q as Pe,F as Fe,o as a,e as ea,V as t,bz as Xa,g1 as er,fc as re,b as D,bQ as it,p,aL as he,aV as ot,aK as st,y as W,ag as q,a as tr,B as ar,cT as rr,as as ta,bI as ir,aZ as dt,aQ as or,al as ct,a8 as nr,gL as sr,cW as dr,an as cr,ab as lr,g7 as ur,n as Bt,d as _,d4 as aa,ap as hr,ak as mr,D as pr,cS as Cr,bt as gr,bS as br}from"./index-
|
|
1
|
+
import{a7 as Za,aN as N,av as Ha,fP as Qa,iG as V,q as Pe,F as Fe,o as a,e as ea,V as t,bz as Xa,g1 as er,fc as re,b as D,bQ as it,p,aL as he,aV as ot,aK as st,y as W,ag as q,a as tr,B as ar,cT as rr,as as ta,bI as ir,aZ as dt,aQ as or,al as ct,a8 as nr,gL as sr,cW as dr,an as cr,ab as lr,g7 as ur,n as Bt,d as _,d4 as aa,ap as hr,ak as mr,D as pr,cS as Cr,bt as gr,bS as br}from"./index-Dm9r1f6s.js";import{a as c}from"./core-B-FNbYlu.js";import{n as r,b as lt,k as fr}from"./mui-DLNyBjYF.js";import{Er as xr,FJ as Sr,bj as zt,bO as yr,bS as wr}from"./zeni-epic-state-HWtMOH-U.js";import{K as kr}from"./SpendManagementSection-LzT-Bnhy-7KIDrHzn.js";import{D as ie,l as $r,r as Ir}from"./ChargeCardListTable-D-eYWaxh-OyS_l2le.js";import{ChargeCardPromoUserContent as jr}from"./ChargeCardPromoPage-CzR82VtA-C4AU7pmq.js";import{N as vr,J as Lr}from"./PromoBaseCards-CmOYEhSO-bExxN6kp.js";import{z as Nt,L as Ot,k as Ar,P as Pr}from"./LockCardPage-DqQGGac2-DNRrTsHA.js";import{r as Fr,i as Er}from"./graphic-no-data-net-burn-l-CzmycA0m-Bw4ambPw.js";import{t as Mr,o as Tr}from"./arrow-south-east-round-PEovUgvH-DFZl4BUT.js";import"./sentry-EYLV4XmG.js";import"./lottie-gmZDfwf4.js";import"./liveblocks-BBTLClA6.js";import"./utils-D1zwltK3.js";import"./analytics-DGBWhVbe.js";import"./recharts-Cnl2EvUV.js";import"./lexical-DPEnH3HH.js";import"./Menu-D0jF6uaE-063ttLpF.js";import"./RoleWithToolTip-B7woUKhj-tuSqaaK3.js";import"./CardNumberSubText-D_fWhc_K-C63mXt5C.js";import"./NavigationDots-BT-m0FmS-COkqBkfX.js";import"./usp-line-BBd1wKwW-_aHpaGit.js";const ut={infoSubheadingTextMarginTop:new W(_[0],_[0]),cardsMinWidth:new W(343,353)},Ae=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,_t=({cardPromoType:e,cardText:l,header:h,title:d,subTitle:n,slidingTextList:m,onClick:F,status:k,statusMessage:U})=>{const B=Pe(),L=k!==void 0,G=k==="rejected"?Ae.status.requestRejected:k==="under_review"?Ae.status.requestUnderReview:"";return t.jsxs(Rr,{windowSize:B,cardPromoType:e,"data-testid":st("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ra,{isStatusMode:L,children:[t.jsxs(oa,{children:[L?t.jsx(Nr,{children:G}):t.jsx(ia,{children:h}),t.jsx(_r,{children:d}),L?null:t.jsx(Wr,{children:n})]}),!L&&t.jsxs(Gr,{children:[t.jsx(Yr,{}),m.length>0&&t.jsx(nt,{slideUpCount:m.length,children:m.map((oe,ne)=>t.jsx(na,{children:oe},`card-promo-${ne.toString()}`))}),t.jsx(qr,{})]}),U!=null&&L?t.jsx(Or,{status:k,children:U}):null]}),t.jsx(Jr,{isStatusMode:L,children:t.jsx(vr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Kr,{isStatusMode:L,children:t.jsx(Lr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Ut=({cardType:e,header:l,title:h,creditLimit:d,onCreateNowClick:n})=>{const m=Pe();return t.jsx(Br,{windowSize:m,cardType:e,children:t.jsxs(zr,{children:[t.jsxs(oa,{children:[t.jsx(ia,{children:l}),t.jsx(Vr,{children:t.jsx(Ur,{children:h})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(Hr,{windowSize:m,onClick:()=>n(e),"data-testid":st("total-cashback-info"),children:[t.jsx(na,{children:Ae.createNow}),t.jsx(Qr,{})]})})]}),e==="creditCard"?t.jsxs(Xr,{children:[t.jsx(ei,{children:Ae.creditLimit}),t.jsx(ti,{children:d})]}):null]})})},Dr=e=>{const l=e-1;let h=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{V as t,ca as ni,a8 as li,F as le,ab as di,q as ie,av as ke,a7 as ci,e as ze,gR as hi,iH as pi,iI as ui,iJ as mi,aO as gi,o as i,aK as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iK as fi,iL as Si,bQ as Se,bL as ki,aQ as yi,y as C,ey as vi,b8 as $i,iM as ji,aR as bi,c as Ii,ag as ee,gT as Li,al as J,ak as Q,d as p,cO as zi,cX as Fi,iN as Ai,iO as Pi,a as ft,bV as St,iP as kt,iQ as Ri,bO as Bi,cv as Je,iR as yt,dr as Di,ds as q,aL as ce,cs as vt,m as $t,iS as _i,cy as Ei,iz as Qe,bI as jt,bJ as bt,iT as Oi,iU as Ti,aS as $e,br as Vi,bW as Ni,bX as Ui,iV as Mi}from"./index-BhteR_e0.js";import{S as pe,a as f}from"./core-B-FNbYlu.js";import{n as o,b as Ye}from"./mui-DLNyBjYF.js";import{P as Te}from"./Menu-D0jF6uaE-AMW53cTN.js";import{T as It}from"./RoleWithToolTip-B7woUKhj-CCCbdbHN.js";import{j as Ve}from"./CardNumberSubText-D_fWhc_K-BxJ3GoBc.js";const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardRowClick:j,onChargeCardResendInviteClick:y})=>{const[h,m]=f.useState(!1),[S,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",U=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||U,v=ie(),E=!!ke().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,k)},[a.id]),T=yt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,F=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:F[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(So,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:F[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(Se,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),y(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&R(!0)},onMouseLeave:()=>{A&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(Se,{open:S&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{b||m(Fe)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
|
|
1
|
+
import{V as t,ca as ni,a8 as li,F as le,ab as di,q as ie,av as ke,a7 as ci,e as ze,gR as hi,iH as pi,iI as ui,iJ as mi,aO as gi,o as i,aK as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iK as fi,iL as Si,bQ as Se,bL as ki,aQ as yi,y as C,ey as vi,b8 as $i,iM as ji,aR as bi,c as Ii,ag as ee,gT as Li,al as J,ak as Q,d as p,cO as zi,cX as Fi,iN as Ai,iO as Pi,a as ft,bV as St,iP as kt,iQ as Ri,bO as Bi,cv as Je,iR as yt,dr as Di,ds as q,aL as ce,cs as vt,m as $t,iS as _i,cy as Ei,iz as Qe,bI as jt,bJ as bt,iT as Oi,iU as Ti,aS as $e,br as Vi,bW as Ni,bX as Ui,iV as Mi}from"./index-Dm9r1f6s.js";import{S as pe,a as f}from"./core-B-FNbYlu.js";import{n as o,b as Ye}from"./mui-DLNyBjYF.js";import{P as Te}from"./Menu-D0jF6uaE-063ttLpF.js";import{T as It}from"./RoleWithToolTip-B7woUKhj-tuSqaaK3.js";import{j as Ve}from"./CardNumberSubText-D_fWhc_K-C63mXt5C.js";const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardRowClick:j,onChargeCardResendInviteClick:y})=>{const[h,m]=f.useState(!1),[S,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",U=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||U,v=ie(),E=!!ke().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,k)},[a.id]),T=yt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,F=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:F[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(So,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:F[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(Se,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),y(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&R(!0)},onMouseLeave:()=>{A&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(Se,{open:S&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{b||m(Fe)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(Q)`
|
|
4
4
|
color: ${I.important};
|