@zeniai/web-cockpit-ui 1.15.52-dev → 1.15.52-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-B_Q7H7vZ-BArjZITD.js → ACHDetailsPage-B_Q7H7vZ-CAJbLxpf.js} +1 -1
- package/dist/assets/{AIPerformancePage-I03C8PSW-CA1s90X_.js → AIPerformancePage-I03C8PSW-B7Efxn7H.js} +1 -1
- package/dist/assets/{AccountInfoPage-DzO1hdnr-qS-XRYJz.js → AccountInfoPage-DzO1hdnr-CuG-Edtu.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-sA3Gcnqp-CL_vzrPR.js → AccountInfoPageContent-sA3Gcnqp-CqzMwvje.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BZYAopgt-BqB0lffx.js → AccountLockedInfoModal-BZYAopgt-BKG0KqSC.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-ViRClh97-BJ7clwL9.js → AccountReconDetailsDrawerPage-ViRClh97-BJ3d9TWf.js} +1 -1
- package/dist/assets/{AccountRow-CjgOf4O_-Ct2P2Loi.js → AccountRow-CjgOf4O_-DsrFoIaP.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DBAX4q__-Bh8ZoDe1.js → AccountsPromoCardStack-DBAX4q__-BU1of02S.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DY8hJwaV-DctQgajm.js → AddAddressForCardDrawer-DY8hJwaV-Dy2CQCeN.js} +1 -1
- package/dist/assets/{AddToWalletPage-CyhCQttf-QhVHXwqj.js → AddToWalletPage-CyhCQttf-DBKSbNsK.js} +1 -1
- package/dist/assets/{AgingReportsPage-R0h2M4Pa-BPDo1WWy.js → AgingReportsPage-R0h2M4Pa-DfUiWy6U.js} +1 -1
- package/dist/assets/{AllUserItems-DwCmOyqn-BB9lm9aN.js → AllUserItems-DwCmOyqn-Ca_U6xAP.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BI6tCRap-BxldxrIf.js → ApAgingDetailPage-BI6tCRap-VGHckKj6.js} +1 -1
- package/dist/assets/{AppBasePage-5AD8mjXH-d-vQz4Ip.js → AppBasePage-5AD8mjXH-DXNy3X2t.js} +1 -1
- package/dist/assets/{AppDrawerContent-ClNaiJrv-81YLeDsl.js → AppDrawerContent-ClNaiJrv-DOhjlrfG.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-DLomT572-B5aUz-1X.js → ApprovalRulesSettingsPage-DLomT572-BqROAIDZ.js} +1 -1
- package/dist/assets/{ArAgingChart-B_Moc1is-BFtidcAa.js → ArAgingChart-B_Moc1is-twXbr3gP.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-ToyZzpCy-Czu_myTL.js → ArAgingDetailPage-ToyZzpCy-DSFJ7J15.js} +1 -1
- package/dist/assets/{AttachmentView-MrO6p_bS-C09_HPJU.js → AttachmentView-MrO6p_bS-DdIIWCPs.js} +1 -1
- package/dist/assets/{BankAccountSection-DodjM0QY-JKnRSQjs.js → BankAccountSection-DodjM0QY-FOYtvxtd.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-CEqWR1Zw-CrO5LlLC.js → BankAccountWarningSection-CEqWR1Zw-DcG6VJNo.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-Ctmnk9S5-CBdNOgni.js → BankConnectionsSettingsPage-Ctmnk9S5-D1sttFaQ.js} +1 -1
- package/dist/assets/{BillDetailPage-Cq-0ezLC-D59A1hVS.js → BillDetailPage-Cq-0ezLC-CQ2JwPYj.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-Cm-kRPtE-D0mYWAGA.js → BillPayApprovalRuleDetailPage-Cm-kRPtE-CizJkgjX.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DYYmdAGI-BXif4TSd.js → BillPayApprovalRulesPage-DYYmdAGI-CaqJ7fPH.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CRKiPcgQ-Db7mTibL.js → BillPayPromoPage-CRKiPcgQ-Qwlu9WFK.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CRk1JPlQ-DfwvUS-u.js → BillPaySetUpPage-CRk1JPlQ-CyDsTlw7.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CT9shZjq-Dml3b8SY.js → BillingSettingsPage-CT9shZjq-foYfZpNo.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-CnBjsecR-KAi_DzA4.js → BillsBulkReviewDrawerPage-CnBjsecR-C0viHvKi.js} +1 -1
- package/dist/assets/{BoxItem-B7JwjEHS-GLe4e95X.js → BoxItem-B7JwjEHS-CL7o7jWo.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-AgvJgvCM-VS3BHlkX.js → BusinessVerificationPage-AgvJgvCM-D-vvZoSU.js} +1 -1
- package/dist/assets/{CardNumberSubText-C-RZAUkR-Be1AIDeL.js → CardNumberSubText-C-RZAUkR-9J-OX21m.js} +1 -1
- package/dist/assets/{CashbackDetailPage-yBXvMZer-3Hcjmbs4.js → CashbackDetailPage-yBXvMZer-DTHRZQc6.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-8bFbBt9K-Dk9PfZM8.js → ChargeCardDetailPage-8bFbBt9K-CcmlSaOr.js} +1 -1
- package/dist/assets/{ChargeCardListPage-B9O5pzNX-D8EvLErv.js → ChargeCardListPage-B9O5pzNX-B0ay9GHm.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BzxR1456-I7z_YYot.js → ChargeCardListTable-BzxR1456-C0IPFjmm.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-HfkJGYyo-CVlVN9y1.js → ChargeCardPaymentHistoryPage-HfkJGYyo-DYxLjugK.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CB2uJfB7-CBexbuVE.js → ChargeCardPromoPage-CB2uJfB7-vjuDdoAd.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-D7kUlVmU-BYJYzLpH.js → ChargeCardSetupPage-D7kUlVmU-Cj0ngHug.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DLea2BFg-Bzq1bWTF.js → ChargeCardStatementsPage-DLea2BFg-CbFR-9jS.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-UFggEfV1-DeaowvSn.js → CheckDepositDrawerPage-UFggEfV1-2M_nralI.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BwRNFt9D-D3w6E4nX.js → CollapsableReportTable-BwRNFt9D-DkQB6FR6.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Czd9OA0I-PpNc4QNR.js → CompanyOfficerDetailsSection-Czd9OA0I-fdFspTVp.js} +1 -1
- package/dist/assets/{CompanyPassportCard-nT7OaLPI-u1s9N1Jh.js → CompanyPassportCard-nT7OaLPI-DOp_Fa6S.js} +1 -1
- package/dist/assets/{CompanyPassportPage-CwgpT7Ns-1ZhURb_8.js → CompanyPassportPage-CwgpT7Ns-DYye0Mbt.js} +1 -1
- package/dist/assets/{CompleteProfile-C8v6Tp9b-B_GnJ4t1.js → CompleteProfile-C8v6Tp9b-BgHNwWmF.js} +1 -1
- package/dist/assets/{ConfettiBurst-BHW_-EIc-D-04DoWU.js → ConfettiBurst-BHW_-EIc-B7rjmV9q.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-Cf9Qlgny.js → ConstrainedInnerElement-BeIpAPjB-CRLuvlCU.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CESiqFO_-VLQw4dZj.js → CreateOrEditVendorPage-CESiqFO_-D9OIq5cu.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BjETaVSt-DsfV5dnO.js → CreditCardPaymentDrawerPage-BjETaVSt-DD87KhOm.js} +1 -1
- package/dist/assets/{CurrencySelectField-BGGEXCd2-CqXdOTD3.js → CurrencySelectField-BGGEXCd2-CqnZuDCu.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BGsyeSIX-DnrwiTHK.js → CustomerOnboardingActivationPage-BGsyeSIX-BxvMnRd-.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-9chhNs4E-B311UXRi.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DyX4Fa7j-D4Zm7ptp.js → CustomerOnboardingDetailPageSkeleton-DyX4Fa7j-DIWIRHiN.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-ColynPuZ-DWaQRfo3.js → CustomerOnboardingNoStepsPage-ColynPuZ-CO3zsctG.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-D8_HJZHo-m6dhWrve.js → CustomerOnboardingPage-D8_HJZHo-C_ZTnaoJ.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-CNhvXIab-2akibz5Z.js → CustomerOnboardingProductSuitePage-CNhvXIab-mrtLUmCr.js} +1 -1
- package/dist/assets/{Dashboard-DzmaFlfB-D7bnMHAs.js → Dashboard-DzmaFlfB-jX1XIYRl.js} +1 -1
- package/dist/assets/{DashboardReportPage-D0ovdT-D-CXiKEBw-.js → DashboardReportPage-D0ovdT-D-BZnoWdRU.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BIfSgNTQ-CEApsFHe.js → DashboardSidebarBackgroundAnimation-BIfSgNTQ-BRTwO6W5.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-Rfwk9Wzj-BXfqyh-p.js → DepositAccTransactionItem-Rfwk9Wzj-DRd5TSF4.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BYLJexH0-Dnn16jUZ.js → DepositAccTransactionListPage-BYLJexH0-CU_uU5V3.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-QIt_abg6-BNV70TDF.js → DomesticWireDetailsPage-QIt_abg6-BYeI33FK.js} +1 -1
- package/dist/assets/{DownloadOverlay-FFq5FG7J-BLLib_kt.js → DownloadOverlay-FFq5FG7J-BxffjMiP.js} +1 -1
- package/dist/assets/{DrawerPage-J3bl7ehG-s3OJdWrr.js → DrawerPage-J3bl7ehG-DKbPB_Ra.js} +1 -1
- package/dist/assets/{EditPeoplePage-DiNmwQ-b-8j5oiktm.js → EditPeoplePage-DiNmwQ-b-BdXwboXb.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-CEKrHDfb-1z4jpKGf.js → EditReimbursementDetailPage-CEKrHDfb-DQtSGLjr.js} +1 -1
- package/dist/assets/{EntityDetailPage-Iu7CxuAk-C6MAecNn.js → EntityDetailPage-Iu7CxuAk-BFnuCmFE.js} +1 -1
- package/dist/assets/{EntitySummarySection-CYzQp7PK-i354Lc1S.js → EntitySummarySection-CYzQp7PK-BHijUDd-.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Cc0dU-zf-Zw16F7j6.js → ExpenseAutomationOverviewPage-Cc0dU-zf-IqLC3Vcz.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CmkSNeYT-DCM38YVH.js → ExpenseAutomationPage-CmkSNeYT-pp8OVGLR.js} +1 -1
- package/dist/assets/{ExpressPayPage-BFL-q602-DvZaGtIb.js → ExpressPayPage-BFL-q602-hdUB9dZB.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CRDanEsJ-Bg8uJihv.js → FeaturePreviewPage-CRDanEsJ-jalfqSk7.js} +1 -1
- package/dist/assets/{FollowStepsSection-lbStDJrW-xgtm7xaE.js → FollowStepsSection-lbStDJrW-Cj9fAgat.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CkF4IYGm-BvTLjQUn.js → GlobalReviewListPage-CkF4IYGm-xiLQAlyk.js} +1 -1
- package/dist/assets/{InformationCardStack-D2FybDBG-DK4mKE9F.js → InformationCardStack-D2FybDBG-DA5OKFLP.js} +1 -1
- package/dist/assets/{InsightsCardStack-BIaW6smi-DdCDTa8t.js → InsightsCardStack-BIaW6smi-DePjBzQ8.js} +1 -1
- package/dist/assets/{InsightsSection-BGx81rZp-C-CAmhUU.js → InsightsSection-BGx81rZp-C6S_wS0Z.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-DPyXd24p-hHMYoNkO.js → IntegrationsSettingsPage-DPyXd24p-DtD8EwOR.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-BaHqqJqA-DqqqsAXq.js → InternationalWireSwiftDetailsPage-BaHqqJqA-BtrRmBHY.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-X3YGxUsL-CGf1mCm5.js → InternationalWireVerificationPage-X3YGxUsL-V7RTjyCo.js} +1 -1
- package/dist/assets/{InviteFormPage-CuqQsolW-CdPGGN0E.js → InviteFormPage-CuqQsolW-BdBmhkLz.js} +1 -1
- package/dist/assets/{InvitePageListView-Cm5bZIk7-CHfi-pbC.js → InvitePageListView-Cm5bZIk7-DlzG5Wo-.js} +1 -1
- package/dist/assets/{InvitePeoplePage-TC4ogHvA-UvjbDy0v.js → InvitePeoplePage-TC4ogHvA-CVXEHCF3.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-Ch-_e-be-CsDyuXie.js → InvoiceUploadSection-Ch-_e-be-CUu8gu3T.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CvXBQgkF-Pp1RMyhu.js → IssueChargeCardPage-CvXBQgkF-DKATdt1s.js} +1 -1
- package/dist/assets/{LabeledAddressValue-BzZgMorl-B2WmXaZs.js → LabeledAddressValue-BzZgMorl-D4JbW9BB.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DS32l0xi-ffR5_IMa.js → LabeledAddressValueField-DS32l0xi-C3mF5HOv.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-1F7zUTc1-w--4KVN8.js → LabeledControlledCheckBoxField-1F7zUTc1-CyKvuq1M.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-uVIlAv9_-Cr-pLwSj.js → LabeledCountryMultiSelectField-uVIlAv9_-XG8oijhW.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CKBw0XOi-B5ltv_kq.js → LabeledCreatableSingleSelectField-CKBw0XOi-BwKzi1Sg.js} +1 -1
- package/dist/assets/{LabeledDocumentField-D8KhtX0K-Cm1Aq1-V.js → LabeledDocumentField-D8KhtX0K-DHDNNvc8.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-B8sjZQO1-DCDhvZp_.js → LabeledDropDownFormattedTextField-B8sjZQO1-BqCmJV-k.js} +1 -1
- package/dist/assets/{LabeledText-C8euMqJ4-Bp0HFgot.js → LabeledText-C8euMqJ4-Bnfanzgj.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DIzGOREd-Bc8PoiiU.js → LabeledUserSingleSelectWithSubtitlesField-DIzGOREd-tJ0wSROv.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-DM9r7_1v-DcV8WbWY.js → LabeledZeniRolesDropDownField-DM9r7_1v-BGDO1SSv.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-C198tset-DnJPfd0_.js → LinkJETransactionPage-C198tset-Bkcl7h2F.js} +1 -1
- package/dist/assets/{LockCardPage-C9qzP7dO-D1jjqQ7s.js → LockCardPage-C9qzP7dO-YCDVKdLH.js} +1 -1
- package/dist/assets/{LowBalancePopup-BUPGnvH6-Fyq6gZkv.js → LowBalancePopup-BUPGnvH6-CEHScimA.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CHe6VKLu-BMPkOrFd.js → MagicLinkACHDetailsPage-CHe6VKLu-BD6UWN5G.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-v-awQlBJ-BH2pOvpz.js → MagicLinkDomesticWireDetailsPage-v-awQlBJ-yL7VNpNc.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-i7QBjsV2-D2g_4xZk.js → MagicLinkInternationalWireDetailsPage-i7QBjsV2--h-YRkKh.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-RrSqrccZ-BaK1c286.js → MagicLinkSuccessPage-RrSqrccZ-L80ZtfRw.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-jOwfp5xN-_Wo4I2rc.js → MagicLinkTitleSection-jOwfp5xN-q32J52mG.js} +1 -1
- package/dist/assets/{MailingDetailsSection-ChDYluge-BR5jsra0.js → MailingDetailsSection-ChDYluge-Cp-JGZ20.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CLSFozv6-BbHYYCjp.js → MyBankConnectionsSettingsPage-CLSFozv6-CPGbqnZy.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CMh7keGL-sXZJss6g.js → MyPendingActivationChargeCardListPage-CMh7keGL-Cy8rznOa.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BOoyzeho-CzfkubXL.js → MyProfileSettingsPage-BOoyzeho-CKDbDftC.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DDXQ7Sku-vOTr_Eko.js → NavBarWithPicker-DDXQ7Sku-DCpmH80s.js} +1 -1
- package/dist/assets/{NavigationArrow-CocIRiS9-D_aGlTJv.js → NavigationArrow-CocIRiS9-CC-1y7TO.js} +1 -1
- package/dist/assets/{NavigationDots-BrrmV8fC-C-pOglim.js → NavigationDots-BrrmV8fC-DSzDsxhc.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-D9NZKb2--bmJmDKdY.js → NewGlobalMerchantPage-D9NZKb2--D5azo664.js} +1 -1
- package/dist/assets/{NoDataChart-CeZTA9_3-DPu9FogX.js → NoDataChart-CeZTA9_3-DpvGxlEF.js} +1 -1
- package/dist/assets/{NoDataTable-C6ryanfQ-BGrQrBkr.js → NoDataTable-C6ryanfQ-CIwrttrx.js} +1 -1
- package/dist/assets/{NotFoundPage-nSaJJjUJ-CGdqaTEf.js → NotFoundPage-nSaJJjUJ-DpC0a2rY.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DmkglhXS-DKDAc0L1.js → NotificationSettingsPage-DmkglhXS-oVlhAERO.js} +1 -1
- package/dist/assets/{NotificationsListConfig-k8axPWyo-CLFHQwy0.js → NotificationsListConfig-k8axPWyo-CdpB6oB5.js} +1 -1
- package/dist/assets/{NotificationsPage-DAxEmGFd-Dm4A-ui3.js → NotificationsPage-DAxEmGFd-C8_INUy0.js} +1 -1
- package/dist/assets/{OpExByVendorPage-Doliski--xXvwkmsq.js → OpExByVendorPage-Doliski--DOjTQ8Qv.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-CZWZkEqC.js → OverlayContainerPage-D4QU0p4o-YCgiw6Em.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CzegKoaH-B0moQiWV.js → PandLWithForecastPage-CzegKoaH-BdwSWIyh.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BwtVSnia-C7hSU-EC.js → PaymentAccountSetupBillingAddressSection-BwtVSnia-BQFedw-c.js} +1 -1
- package/dist/assets/{PeoplePage-DRSSRNHe-ClqNeLjT.js → PeoplePage-DRSSRNHe-BrlReQGF.js} +1 -1
- package/dist/assets/{ProductsCarousel-DecdL2J--CA_efZNI.js → ProductsCarousel-DecdL2J--C-Ktacpl.js} +1 -1
- package/dist/assets/{PromoBaseCards-CN21NM41-DhBLPQmY.js → PromoBaseCards-CN21NM41-C-6MmVSO.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BZsRQAbh-D2VVdab9.js → QBOConnectionDialog-BZsRQAbh-pk51hHHk.js} +1 -1
- package/dist/assets/{QBOSetupSection-Cxm1PJVl-Cg3a5k3R.js → QBOSetupSection-Cxm1PJVl-Dmu08tt6.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-B4fcDJjA-I7W9UCB5.js → ReimbursementApprovalRuleDetailPage-B4fcDJjA-BMOtasfn.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-ZBgAwbiy-aZ1DJzW_.js → ReimbursementApprovalRulesPage-ZBgAwbiy-C4qi0KUp.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DlBiOxIu-CVqJmNIl.js → ReimbursementDetailPage-DlBiOxIu-qysnx9NM.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BykDW05i-QdFq0_ja.js → ReimbursementPromoPage-BykDW05i-4NQsSvx-.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-D-c1G4Yp-D8qpk2At.js → ReimbursementSetUpPage-D-c1G4Yp-gh8Qh-Rv.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-fcozBEdQ-Dwe_Lhpv.js → ReimbursementsBulkReviewDrawerPage-fcozBEdQ-BcXBkKcN.js} +1 -1
- package/dist/assets/{ReloadCard-B1utQoNe-BgcT-L3D.js → ReloadCard-B1utQoNe-Cbj5aZK_.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-Dv5KMclT-vopRz_0Z.js → ReportTableViewSelector-Dv5KMclT-sD56HQVN.js} +1 -1
- package/dist/assets/{ReportsPage-BYl25tCa-DJAhkt3B.js → ReportsPage-BYl25tCa-CwwuVA8V.js} +1 -1
- package/dist/assets/{RevenueChart-CsH-ABMc-DFPXH0sB.js → RevenueChart-CsH-ABMc-C4NseRkX.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-NtC0bXjE-CiX3qT7_.js → ReviewDetailsPage-NtC0bXjE-BsxH0yjP.js} +1 -1
- package/dist/assets/{ReviewOverlay-toDIU4kV-D7cJ-CaI.js → ReviewOverlay-toDIU4kV-DLV4kpAQ.js} +1 -1
- package/dist/assets/{RoleWithToolTip-5cp6EPl_-BFxPWWfA.js → RoleWithToolTip-5cp6EPl_-Bsoc7cC1.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CGhwVGkS-BkYGdAWq.js → ScheduleDetailsFixedAssetsPage-CGhwVGkS-DaMrprWq.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-Dpm8LTi5-ceBvcbCK.js → ScheduleDetailsPage-Dpm8LTi5-BEfBMBPr.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-imPIfH2y-BnVlZREz.js → ScheduleSequenceTable-imPIfH2y-BYLTXJsM.js} +1 -1
- package/dist/assets/{ScreenRoutes-BsccKPz_.js → ScreenRoutes-CtdBWwq2.js} +1 -1
- package/dist/assets/{SetUpAccountSection-D1u5qaQy-BfLHCJ7_.js → SetUpAccountSection-D1u5qaQy-xqADEENa.js} +1 -1
- package/dist/assets/{SignIn-DI57GJYJ-BrvCN9BT.js → SignIn-DI57GJYJ-CIFrNvtw.js} +1 -1
- package/dist/assets/{SignInScreen-Db8_UPVb.js → SignInScreen-Cntd4znj.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-DxZ5ZwoM-Dngtiu4y.js → SpendManagementListViewPage-DxZ5ZwoM-D1FSI0Wu.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-DASIEooE-BlZ1Uenl.js → SpendManagementPerTabPage-DASIEooE-C54XYqSw.js} +1 -1
- package/dist/assets/{SpendManagementSection-fQq7rBRb-B6t2uSf8.js → SpendManagementSection-fQq7rBRb-Drowkbt2.js} +1 -1
- package/dist/assets/{StatementItem-CoVXNSDb-BShn5DUw.js → StatementItem-CoVXNSDb-BnVVldBd.js} +1 -1
- package/dist/assets/{StatementsPage-BvGLyYRh-DoAREV67.js → StatementsPage-BvGLyYRh-BwWslTQe.js} +1 -1
- package/dist/assets/{StatusSwitcher-fb1FvNod-CKz_fWO7.js → StatusSwitcher-fb1FvNod-BmMqFztB.js} +1 -1
- package/dist/assets/{SubTabSwitcher-DiseUTbE-Bc7dZsGz.js → SubTabSwitcher-DiseUTbE-RF0UCScW.js} +1 -1
- package/dist/assets/{SummaryCard-C95uhnrw-Cz4Ul3rj.js → SummaryCard-C95uhnrw-CFrAeWpB.js} +1 -1
- package/dist/assets/{TaskManagementPage-CmEmxJHm-I1qb7uu5.js → TaskManagementPage-CmEmxJHm-BrDGkHto.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-C3criwDK-MjZzatMd.js → TimeRangeSwitcher-C3criwDK-WPXqTLAP.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-B-NCBgZo-Bzw6DaTx.js → TimeframeSwitcher-B-NCBgZo-DjvnKKpK.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DFjeQWwK-DmJGkI9O.js → TimeframeSwitcherWithToggle-DFjeQWwK-BxPvYB5f.js} +1 -1
- package/dist/assets/{TopExCard-D7QZLM8i-BjdgFU_s.js → TopExCard-D7QZLM8i-D0b3KsuS.js} +1 -1
- package/dist/assets/{TopExDetailPage-CzoQPsjz-CzDcKIu9.js → TopExDetailPage-CzoQPsjz-BEy1j5Yh.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-Dh4TKmlz-CMXoSaEf.js → TransactionActivityLogPage-Dh4TKmlz-Dl3buFGh.js} +1 -1
- package/dist/assets/{TransactionDetailPage-8CwgUGKw-DD8WTcLz.js → TransactionDetailPage-8CwgUGKw-Dtp27K3e.js} +1 -1
- package/dist/assets/{TransactionList-ClznvtnK-B-6z-9wK.js → TransactionList-ClznvtnK-BdyU7yQ3.js} +1 -1
- package/dist/assets/{TransactionListBig-CLc3iY_0-BH8MZJQ3.js → TransactionListBig-CLc3iY_0-CFQOsSIo.js} +1 -1
- package/dist/assets/{TransactionListPage-DDsLCL1i-CqFnzZ3q.js → TransactionListPage-DDsLCL1i-DF1pBjPC.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-Be0u4Eqx-Bsk0zx1y.js → TransactionVendorDetailPage-Be0u4Eqx-PAqJj23I.js} +1 -1
- package/dist/assets/{TransferDrawerPage-Bzs9K_99-DBIJAwyN.js → TransferDrawerPage-Bzs9K_99-D2PPRqAd.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CUbZn5Ys-DIa06mwp.js → TreasuryOverviewPage-CUbZn5Ys-C36HkGRS.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BNVeuqGo-DMkqkWBp.js → TreasuryPromoPage-BNVeuqGo-Cwkvs8C9.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-B5QuiNBh-DSjV2_O7.js → TreasuryStatementsPage-B5QuiNBh-C-57EAI2.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DrX0Tsbc-D9ADPjC9.js → TreasuryTaxLetterPage-DrX0Tsbc-Dqm2z_jK.js} +1 -1
- package/dist/assets/{TrendChart-CH1XG3_9-D9c8V-0T.js → TrendChart-CH1XG3_9-lvJf5nfu.js} +1 -1
- package/dist/assets/{TrendWithTransactions-B_QntlQg-Dz5h1Emg.js → TrendWithTransactions-B_QntlQg-C83d-V0Z.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-D1vMrtZi-DJgzrM0G.js → UncategorizedAccountsMappingPage-D1vMrtZi-h-H9O2QH.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-CVG0dKQJ-Bv-lPBzY.js → UnitIntegrationPage-CVG0dKQJ-ubXG_LZV.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BzbMHbg1-JP-yDb8X.js → UploadAdditionalDocumentOverlay-BzbMHbg1-ZePyWsNp.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DUxtkJUS-DOxbbG7j.js → Vendor2FAPopup-DUxtkJUS-CnxHG-v0.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-hlpQV7jq-D-V9LE3V.js → VendorACHDetailsPage-hlpQV7jq-4ve_aIDd.js} +1 -1
- package/dist/assets/{VendorDetailPage-BdEwRV2m-BuocGx2U.js → VendorDetailPage-BdEwRV2m-BL9ObeyB.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-C2IflKW2-F74-Y4ZV.js → VendorDomesticWireDetailsPage-C2IflKW2-CqNFwCk0.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CrSOkq5V-Be8Sq3Qg.js → VendorFiling1099EditablePage-CrSOkq5V-ClmRcxFU.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-DoJKNdG9-kEHrc5RF.js → VendorFirstReviewPage-DoJKNdG9-DkFlKR6g.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DEYSLqar-C48z8lC2.js → VendorInternationalWireDetailsPage-DEYSLqar-DM19IJs2.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DgyDtAJk-C4yDMI1s.js → VendorInternationalWireSwiftDetailsPage-DgyDtAJk-BCBHTe-3.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-k1NLZ5FW-Bzs1aGaQ.js → VendorsAccountsSection-k1NLZ5FW-C_fhnoYe.js} +1 -1
- package/dist/assets/{VerifyDevice-IP50KOC9-D_-Qo9mu.js → VerifyDevice-IP50KOC9-CeXXQ9Gk.js} +1 -1
- package/dist/assets/{VideoPlayer-DTv2btpq-BL2iPrVd.js → VideoPlayer-DTv2btpq-Cwr8B-bm.js} +1 -1
- package/dist/assets/{VideoPopup-Cfko0G7e-D5lj185C.js → VideoPopup-Cfko0G7e-CoUY2g5F.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-D9HiCb7D-BcR8odVm.js → WarningsDrawerPage-D9HiCb7D-BL3Rdw9p.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Dp0Vq-3v-CZkbiffo.js → ZeniAccountDetailPage-Dp0Vq-3v-B8LhDkgo.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BAsaZTdW-iSN2fNgn.js → ZeniAccountListViewPage-BAsaZTdW-CDakgKh-.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-ChSFLPtf-YUYBoYMy.js → ZeniAccountNavBarPieces-ChSFLPtf-ChwrZkSM.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BSL3C3i2-8AHAiFx8.js → ZeniAccountPromoPage-BSL3C3i2-BSzt7Oul.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CnaM-8qN-CMYBKyhj.js → ZeniAccountSetupPage-CnaM-8qN-BBzvLLIc.js} +1 -1
- package/dist/assets/{ZeniCopyright-lBSuqA9X-zKVr6SPe.js → ZeniCopyright-lBSuqA9X-BHRDTviH.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-oYwV27SH-CZr7NskK.js → ZeniTransferAmountSlider-oYwV27SH-B3-ZBOVt.js} +1 -1
- package/dist/assets/{analyticsHelper-BaxudydG-DT2Lyeh-.js → analyticsHelper-BaxudydG-B3DCaf7w.js} +1 -1
- package/dist/assets/{analyticsHelper-fVkT15J2.js → analyticsHelper-l2Me-ZZx.js} +1 -1
- package/dist/assets/{chartTypes-DyOVuWqI-BARYdpSf.js → chartTypes-DyOVuWqI-jSuDc2IM.js} +1 -1
- package/dist/assets/{commonDimensions-0tYCNmAf-yzUUGq5J.js → commonDimensions-0tYCNmAf-CUqtVqS0.js} +1 -1
- package/dist/assets/{commonTypes-dj64oD5Z-Bwky3r-I.js → commonTypes-dj64oD5Z-C-7AuAiE.js} +1 -1
- package/dist/assets/{detailCommon-BnHMV3Xh-ChdSHt8G.js → detailCommon-BnHMV3Xh-CNmGmUGb.js} +1 -1
- package/dist/assets/{downloadPdf-CdObX2oB-DpdxICbX.js → downloadPdf-CdObX2oB-CJ4xRuyg.js} +1 -1
- package/dist/assets/{helper-Dh2z35ok-DVFikn_X.js → helper-Dh2z35ok-R0TRkRqA.js} +1 -1
- package/dist/assets/{index-D0RCZvbR.js → index-BwMwEGov.js} +5 -5
- package/dist/assets/{mapLoadingInProgressToTreeNode-BT2nAyCO-BOa6vUQ9.js → mapLoadingInProgressToTreeNode-BT2nAyCO-CRwfGSZI.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DKn1K1pr--4wnUEOR.js → mapSectionWithAcOnlyToTreeNode-DKn1K1pr-Che2xWrk.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-C_jfkzeN-Ch0OV83d.js → mapSpacerToTreeNode-C_jfkzeN-CO3qex5q.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DOVnv_Y6-PQ-Rs5PV.js → mapTimeframeBalancesToTreeNode-DOVnv_Y6-Del_AyX4.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-HEnxthuN-MtID2XPF.js → mapTimeframeBalancesToTreeNode-HEnxthuN-CdJJBJLl.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DHwya3AR-BunX61SQ.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DHwya3AR-64V_cuoE.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-r6SROS7c-DIO7gzfN.js → toCOABalancesWithID-r6SROS7c-DQQa1DfS.js} +1 -1
- package/dist/assets/{toChartData-BLR_ax7l-DRu3ACUZ.js → toChartData-BLR_ax7l-db9aDQmY.js} +1 -1
- package/dist/assets/{uploadAttachment-DbWJ8gRE-sZ5TPM-C.js → uploadAttachment-DbWJ8gRE-CNwojo5y.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-NDnD_ECQ.js → uploadReceipts-Dge0cNF1-50TovDpj.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-9chhNs4E-4nf9VU4U.js +0 -1
package/dist/assets/{BillDetailPage-Cq-0ezLC-D59A1hVS.js → BillDetailPage-Cq-0ezLC-CQ2JwPYj.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ay as Ft,V as t,gm as Un,K as Kn,y as Xn,gn as Hn,go as Yn,gp as qn,gq as Gn,cf as Jn,aS as Qn,x as y,fd as pt,fe as ea,o as a,ff as ta,fg as na,fh as aa,aQ as Ce,fi as ia,ac as f,bE as mt,bq as ut,dx as yt,cs as ht,ct as bt,cu as gt,gr as la,gs as oa,gt as ra,gu as sa,fn as j,gv as $,fp as A,fq as k,fm as da,w as ft,p as re,fo as _t,fw as ca,fr as pa,fs as ma,gw as ua,gx as ya,aT as ha,aq as xt,bV as De,gy as ba,gz as L,b as ga,u as s,ai as fa,c4 as xa,gA as wa,d as Ta,gB as va,fx as wt,c as Da,d6 as Ia,ck as ja,gC as Tt,b9 as $a,bb as Aa,h as ka,bX as Wt,d7 as Sa,gD as Ca,ak as Zt,ax as Pa,b7 as Ba,bv as Ra,gE as za,an as Ma}from"./index-D0RCZvbR.js";import{a as p}from"./sentry-D6_R-0PO.js";import{n as i}from"./mui-CWpKo4a_.js";import{bY as Na,bL as La,bZ as Oa,GA as Ea,bX as Fa,bH as _a,bh as Wa}from"./zeni-epic-state-CQm7BABf.js";import{o as Za,t as Va}from"./LowBalancePopup-BUPGnvH6-Fyq6gZkv.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="a4213f46-e3d5-4de0-943e-c805e4f6640d",e._sentryDebugIdIdentifier="sentry-dbid-a4213f46-e3d5-4de0-943e-c805e4f6640d")}catch{}})();const Ua=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"})))),Ka={formTitle:new Da("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Xa,common:{noText:C,strings:{empty:c},currency:vt,via:Ha,more:Ya,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Vt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Ga}}}}=ga.getLocalizedStrings(),je=Xa.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:F,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Ut,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Xt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Ht,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Yt,redirectToEditableBillScreen:qt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Jt,onAttachmentClick:Oe,saveBillDetails:Qt,discardOutsideZeniPaymentData:en,onBackClick:Ee,updateEditRealTimeApproverClicked:tn,onSaveRealTimeApprovals:nn,onRetryPaymentClick:an,onRefundPaymentClick:ln,initialOpenThreadRequest:K})=>{const l=Kn(),o=Ft(),Fe=Xn(),[on,X]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[We,me]=p.useState(!1),[rn,ue]=p.useState(!1),[Ze,Q]=p.useState(!1),g=e.transactionDetails?.id,sn=Ht?Hn:Yn,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(sn);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&ee(K)},[K,ee]);const[dn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:g,isGlobalComment:!1},x=Re&&g!=null,{threads:Y,isLoading:P}=qn(),Ve=p.useMemo(()=>g==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[Y,g]).length,D=`dashboard_${o.currentTenant?.companyId}`,cn=p.useCallback((r,u)=>{te(u),H(!1)},[te,H]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!P&&(te(ye.threadId),ee(null))},[ye,Y,P,te,ee]);const Ue=p.useRef(!1),[pn,mn]=p.useState(!1),un=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,mn(!0))});Jn({componentName:"bill.details",enabled:pn});const[N,ne]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Xe]=p.useState("approved"),[yn,He]=p.useState(!1),[hn,Ye]=p.useState(!1),[qe,Ge]=p.useState(!1),Je=()=>He(!1),bn=()=>He(!0),Qe=Qn(e.zeniAssist?.refundStatus.fetchState),ae=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ae())},[Qe,e.zeniAssist?.refundStatus,ae]);const w=e.transactionDetails?.billPayInfo.stage,ie=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,gn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ie?.code=="approved"&&q?.code?q:ie,S=Ja(v,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?gn:q?.code!=null&&(ie?.code=="approved"||q.code==="mark_as_paid")?q:ie,be=e.transactionDetails?.vendor?.name,B=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&qt(e.transactionDetails?.id??"")},fn=()=>{ne({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),X(!0)},xn=()=>{ne({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},wn=()=>{ne({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},Tn=()=>{M.trackRefundClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ne({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),pe(!0)},vn={onOkClick:()=>{X(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Ne?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ln())},onCancelClick:()=>{X(!1),pe(!1)}},Dn={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},In=()=>{const[r]=Pa("ZeniAssist");return r!=null?t.jsx(Ba,{"data-testid":f("bill-details-zeni-assist-icon",g),onClick:()=>{me(!We),M.trackZeniAssistClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},ge=e.transactionDetails?.lines?.map((r,u)=>{const R=r;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}})??[],jn=e.transactionDetails?.recipientTotalAmount.amount??0,fe=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),$n=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,An=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):"",kn=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${An}`,Sn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx($i,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Cn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Sa(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{ay as Ft,V as t,gm as Un,K as Kn,y as Xn,gn as Hn,go as Yn,gp as qn,gq as Gn,cf as Jn,aS as Qn,x as y,fd as pt,fe as ea,o as a,ff as ta,fg as na,fh as aa,aQ as Ce,fi as ia,ac as f,bE as mt,bq as ut,dx as yt,cs as ht,ct as bt,cu as gt,gr as la,gs as oa,gt as ra,gu as sa,fn as j,gv as $,fp as A,fq as k,fm as da,w as ft,p as re,fo as _t,fw as ca,fr as pa,fs as ma,gw as ua,gx as ya,aT as ha,aq as xt,bV as De,gy as ba,gz as L,b as ga,u as s,ai as fa,c4 as xa,gA as wa,d as Ta,gB as va,fx as wt,c as Da,d6 as Ia,ck as ja,gC as Tt,b9 as $a,bb as Aa,h as ka,bX as Wt,d7 as Sa,gD as Ca,ak as Zt,ax as Pa,b7 as Ba,bv as Ra,gE as za,an as Ma}from"./index-BwMwEGov.js";import{a as p}from"./sentry-D6_R-0PO.js";import{n as i}from"./mui-CWpKo4a_.js";import{bY as Na,bL as La,bZ as Oa,GA as Ea,bX as Fa,bH as _a,bh as Wa}from"./zeni-epic-state-CQm7BABf.js";import{o as Za,t as Va}from"./LowBalancePopup-BUPGnvH6-CEHScimA.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="a4213f46-e3d5-4de0-943e-c805e4f6640d",e._sentryDebugIdIdentifier="sentry-dbid-a4213f46-e3d5-4de0-943e-c805e4f6640d")}catch{}})();const Ua=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"})))),Ka={formTitle:new Da("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Xa,common:{noText:C,strings:{empty:c},currency:vt,via:Ha,more:Ya,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Vt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Ga}}}}=ga.getLocalizedStrings(),je=Xa.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:F,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Ut,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Xt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Ht,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Yt,redirectToEditableBillScreen:qt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Jt,onAttachmentClick:Oe,saveBillDetails:Qt,discardOutsideZeniPaymentData:en,onBackClick:Ee,updateEditRealTimeApproverClicked:tn,onSaveRealTimeApprovals:nn,onRetryPaymentClick:an,onRefundPaymentClick:ln,initialOpenThreadRequest:K})=>{const l=Kn(),o=Ft(),Fe=Xn(),[on,X]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[We,me]=p.useState(!1),[rn,ue]=p.useState(!1),[Ze,Q]=p.useState(!1),g=e.transactionDetails?.id,sn=Ht?Hn:Yn,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(sn);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&ee(K)},[K,ee]);const[dn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:g,isGlobalComment:!1},x=Re&&g!=null,{threads:Y,isLoading:P}=qn(),Ve=p.useMemo(()=>g==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[Y,g]).length,D=`dashboard_${o.currentTenant?.companyId}`,cn=p.useCallback((r,u)=>{te(u),H(!1)},[te,H]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!P&&(te(ye.threadId),ee(null))},[ye,Y,P,te,ee]);const Ue=p.useRef(!1),[pn,mn]=p.useState(!1),un=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,mn(!0))});Jn({componentName:"bill.details",enabled:pn});const[N,ne]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Xe]=p.useState("approved"),[yn,He]=p.useState(!1),[hn,Ye]=p.useState(!1),[qe,Ge]=p.useState(!1),Je=()=>He(!1),bn=()=>He(!0),Qe=Qn(e.zeniAssist?.refundStatus.fetchState),ae=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ae())},[Qe,e.zeniAssist?.refundStatus,ae]);const w=e.transactionDetails?.billPayInfo.stage,ie=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,gn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ie?.code=="approved"&&q?.code?q:ie,S=Ja(v,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?gn:q?.code!=null&&(ie?.code=="approved"||q.code==="mark_as_paid")?q:ie,be=e.transactionDetails?.vendor?.name,B=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&qt(e.transactionDetails?.id??"")},fn=()=>{ne({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),X(!0)},xn=()=>{ne({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},wn=()=>{ne({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},Tn=()=>{M.trackRefundClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ne({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),pe(!0)},vn={onOkClick:()=>{X(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Ne?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ln())},onCancelClick:()=>{X(!1),pe(!1)}},Dn={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},In=()=>{const[r]=Pa("ZeniAssist");return r!=null?t.jsx(Ba,{"data-testid":f("bill-details-zeni-assist-icon",g),onClick:()=>{me(!We),M.trackZeniAssistClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},ge=e.transactionDetails?.lines?.map((r,u)=>{const R=r;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}})??[],jn=e.transactionDetails?.recipientTotalAmount.amount??0,fe=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),$n=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,An=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):"",kn=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${An}`,Sn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx($i,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Cn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Sa(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
2
|
${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`},oe=e.transactionDetails?.billPayInfo!=null?Na(e.transactionDetails?.billPayInfo):void 0,Pn=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?La(Oa(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,nt=e.transactionDetails?.billPayInfo.expectedDepositDate??Pn,at=pt(d?.paymentType?.method??"").replace("Same Day",""),Bn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(ea,{paymentTypeLabel:at,onClick:bn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Rn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Ca,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,it=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,xe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&it),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&it),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,zn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Mn=Xt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&zn===!1,ve=we||Te,Nn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,W=v?.code,Ln=!Nn&&(!tt||v?.code==="processing"&&!B),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),G=Ea(e.transactionDetails?.bulkProcessingDetail?.type),E=Fa(e.paymentMethodType?.method),On=!G&&(W!=="processing"&<||W==="processing"&&!B||W==="processing"&&ot||h&&E&&Be),En=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Qt(!0,qe,r)},st=()=>{Ye(!0),M.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Fn=()=>{Ge(!0),st()},_n=()=>{en(),Ye(!1),qe&&Ge(!1)},Wn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:g??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,g]),Z=Yt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?ta(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Xe("approved"),Ze===!0&&Q(!1),Z!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},Zn=()=>{Xe("rejected"),Z!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},ct=p.useRef(null);return t.jsxs(mi,{windowSize:l,ref:ct,children:[t.jsx(na,{anchor:"right",open:yn,onClose:Je,transitionDuration:250,"data-testid":f("vendor-email-preview-drawer"),children:t.jsx(aa,{companyName:ia(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:at,amount:Ce("0,0.[00]",fe),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(bi,{ref:un.current,windowSize:l,children:[t.jsx(Si,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":f("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[x?t.jsxs(Ot,{isDisabled:P,"data-testid":f("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Et,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":f("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Ee,"data-testid":f("bill-detail-nav-bar-small-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":f("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[x?t.jsxs(Ot,{isDisabled:P,"data-testid":f("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Et,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":f("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Ee,"data-testid":f("bill-detail-nav-bar-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(gi,{windowSize:l,children:[Ze?t.jsx(Za,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,hn?t.jsx(Va,{onCancel:_n,onProceedForMarkAsPaid:En,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,on||ce?t.jsx(ht,{titleComponent:t.jsx(gt,{children:N.title}),descriptionComponent:t.jsx(bt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:vn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Qa(l,e):null}):null,rn?t.jsx(ht,{titleComponent:t.jsx(gt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Dn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(xi,{windowSize:l,children:[l!=="small"?t.jsxs(wi,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:a.sp5,width:a.sp5}):null]}):null,F&&S!=null&&S.code==="deleted"?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Pe.tabsById.overdue?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(la,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(oa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ni(G,e,Z),t.jsx(ra,{sectionId:sa,currentVendorOption:{defaultOptions:[]},billId:g,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Oe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:I},text:le.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:I},text:le.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:I},text:le.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:I},text:le.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(fi,{windowSize:l,children:t.jsx(ke,{children:n.lineItemsTitle})}),ge.length>0?ge.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Vn=>Vn.id===r.lineId)?.recipientAmount;return t.jsxs(ui,{children:[ge.length>1?t.jsx(yi,{windowSize:l,children:t.jsx(hi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:I},text:R!=null?Ce("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:I},text:r.billable!=null?$n(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(Ti,{windowSize:l,children:[t.jsx(vi,{children:n.total}),t.jsx(Di,{children:fe!=null?t.jsx(da,{amount:fe,integerStyles:ft.h6Medium.cssObject,decimalStyles:ft.standardMedium.cssObject}):C})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.paymentDetailsTitle}),t.jsxs($e,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?_t(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:Z!=null&&w?.code==="pending_approval"?Vt.addMoney:Z})}),t.jsx(z,{})]}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(_a)&&Kt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ii,{children:ca(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:E&&e.outsideZeniPaymentInfo!=null?ti(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?kn:d.paymentToPI!=null?d.paymentToPI.displayText:Sn,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:Cn(),additionalInfoLabel:t.jsx(ai,{children:Bn})}),Rn()]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{isThreadAllowed:x,entityId:g,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ma(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:pa(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(Ai,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ua,{onAttachmentClick:Oe,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ya,{amount:jn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Jt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:se,signedInUserId:_?.userId,showRealTimeApproval:Ut,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:tn,onSaveRealTimeApprovals:nn},historicActivities:e.billHistory.activities}),t.jsx(Ii,{})]}),e.transactionDetails?.vendor!=null&&!he&&!e.transactionDetails.isDeleted?t.jsx(ha,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:ei(U,rt),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{Z!=null?Q(!0):dt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(li,{children:t.jsxs(pi,{windowSize:l,children:[!G&&_e?t.jsx(xt,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":f("bill-actions-container"),children:[W!=="processing"&<?t.jsx(V,{onClick:fn,"data-testid":f("delete-bill-action-item"),children:n.buttons.deleteBill}):null,W==="processing"&&!B?t.jsx(V,{onClick:xn,"data-testid":f("cancel-bill-action-item"),children:n.buttons.cancel}):null,W==="processing"&&ot?t.jsx(V,{onClick:wn,"data-testid":f("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,h&&E&&Be?t.jsx(V,{onClick:Fn,"data-testid":f("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,We?t.jsx(xt,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":f("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(V,{onClick:()=>{M.trackRetryClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),an()},"data-testid":f("retry-bill-action-item"),children:n.buttons.retry}):null,Te?t.jsx(V,{onClick:Tn,"data-testid":f("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(ci,{windowSize:l,children:[Mn===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:ve?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:xe,isIconClickable:ve,"data-testid":f("other-actions-icon-container"),children:ve?t.jsx(In,{}):t.jsx(ri,{})})}):null,!G&&xe===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(di,{onClick:et,"data-testid":f("edit-bill-icon-container"),children:t.jsx(si,{})})}):null,!G&&Ln===!0&&On?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ya,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:xe,isIconClickable:!0,"data-testid":f("more-details-icon-container"),children:t.jsx(oi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(ba,{isDrawerOpen:dn,allowComposer:!0,drawerTitle:Ga,threads:Y,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Wn,onThreadClick:cn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}}):null]})},Wi=e=>{const b=Ft(),h=e.billDetails.transactionDetails?.id,F=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!(F&&_!=null&&h!=null))return t.jsx($t,{...e});const se=`dashboard_${_}`;return t.jsx(Un,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Ja=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Wa(),"date")===!0?{value:Pe.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[h].color,bgColor:L[h].bgColor,borderColor:L[h].borderColor}},Qa=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(ki,{windowSize:e,children:[t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.accountNumber}),t.jsx(Lt,{children:b.withdrawFrom!=null?_t(b.withdrawFrom,e):c})]}),t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.amount}),t.jsx(Lt,{children:h!=null?Ce("0,0[.]00",h):C})]})]})},ei=(e,b)=>e?n.paymentOutsideZeni.markAsPaid:b?n.buttons.approve:n.buttons.approveBill,ti=e=>{const b=e.paymentMode,h=n.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const F=n.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${Ha} ${F}`},ni=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const F=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Vt.lowBalanceIn.replace("__account__",F)}`,description:h.replace("Low balance! ","")})}else return null},ai=i.div``,ii=i.div``,li=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as F,u as L,K as M,b as T,aa as W,aS as G,aM as K,cI as X,V as r,bE as H,ae as J,aT as Q,o as u,gc as Y}from"./index-
|
|
1
|
+
import{x as F,u as L,K as M,b as T,aa as W,aS as G,aM as K,cI as X,V as r,bE as H,ae as J,aT as Q,o as u,gc as Y}from"./index-BwMwEGov.js";import{a as U}from"./sentry-D6_R-0PO.js";import{n as h}from"./mui-CWpKo4a_.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-lbStDJrW-Cj9fAgat.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./zeni-epic-state-CQm7BABf.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="82f1726e-0faa-4e99-92d8-78125ce19f6b",e._sentryDebugIdIdentifier="sentry-dbid-82f1726e-0faa-4e99-92d8-78125ce19f6b")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new F(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=M(),t=T.getLocalizedStrings().commonSetUp.approval,P=T.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:V,billPaySetupApproverViewUpdateData:f}=e;let m=p.length>1?p.length-1:0,v=p.length>0?p[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=p.findIndex(d=>d.approvalRuleId===i),v=m>0?p[m-1].criteria[0].range.min.amount:0}const O=x.handleSubmit(()=>{N()}),q=async(i,d)=>{s(d)};return U.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const z=K(d);X(()=>q($,z))}});return()=>{i.unsubscribe()}}),U.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(H,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(J,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:O,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(Q,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{K as W,b as S,V as t,bE as V,L as G,ac as b,x as r,an as M,o as i,aQ as P,bV as z,cs as O,ct as q,cu as F,d2 as K,u as l,bb as J,c as k,ba as Q,p as j,d1 as X,bv as Y,w as Z}from"./index-
|
|
1
|
+
import{K as W,b as S,V as t,bE as V,L as G,ac as b,x as r,an as M,o as i,aQ as P,bV as z,cs as O,ct as q,cu as F,d2 as K,u as l,bb as J,c as k,ba as Q,p as j,d1 as X,bv as Y,w as Z}from"./index-BwMwEGov.js";import{n as o}from"./mui-CWpKo4a_.js";import{a as ee}from"./sentry-D6_R-0PO.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./zeni-epic-state-CQm7BABf.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="cd1c8a33-763e-4116-9b16-3378e49b6fd1",e._sentryDebugIdIdentifier="sentry-dbid-cd1c8a33-763e-4116-9b16-3378e49b6fd1")}catch{}})();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)},U={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,N=()=>{h(!0)},E={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(A,{windowSize:n,children:[a.from," ",P("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(T,{}),t.jsx(le,{}),t.jsx(T,{})]}),m.max==null?t.jsx(he,{}):t.jsx(A,{windowSize:n,children:P("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(z,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(I,{onClick:N,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(z,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{f(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(L,{children:[t.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(L,{children:[t.jsxs(R,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},H))})}),v?t.jsx(O,{titleComponent:t.jsx(F,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:E}):null]})},oe=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-CRKiPcgQ-Db7mTibL.js → BillPayPromoPage-CRKiPcgQ-Qwlu9WFK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ay as F,K as j,aS as Y,V as e,fy as ee,bE as ie,a as C,ac as B,ag as x,b as I,o as s,as as se,e as le,y as M,aV as U,ao as oe,x as te,p as $,cH as re,aW as ae,bc as ne,u as de}from"./index-
|
|
1
|
+
import{ay as F,K as j,aS as Y,V as e,fy as ee,bE as ie,a as C,ac as B,ag as x,b as I,o as s,as as se,e as le,y as M,aV as U,ao as oe,x as te,p as $,cH as re,aW as ae,bc as ne,u as de}from"./index-BwMwEGov.js";import{a as g}from"./sentry-D6_R-0PO.js";import{n as l}from"./mui-CWpKo4a_.js";import{Gp as ce,bP as pe,Gq as xe}from"./zeni-epic-state-CQm7BABf.js";import{C as me}from"./VideoPopup-Cfko0G7e-CoUY2g5F.js";import{M as S}from"./usp-line-BBd1wKwW-C1nI6oW7.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";import"./VideoPlayer-DTv2btpq-Cwr8B-bm.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="ed65216a-77ce-4ff3-a62a-3ff329e645a8",i._sentryDebugIdIdentifier="sentry-dbid-ed65216a-77ce-4ff3-a62a-3ff329e645a8")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new te(de[5],44)},ge=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-CRk1JPlQ-DfwvUS-u.js → BillPaySetUpPage-CRk1JPlQ-CyDsTlw7.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as De,K as Oe,aS as F,aa as Re,cI as $e,b as Ue,aX as Y,V as t,fg as Le,p as ze,ac as He,x as u,bE as Me,L as qe,ae as Ne,fz as L,dS as Ge,fA as Je,by as Ke,dI as Qe,bV as Ye,fB as Ze,aT as Xe,o as H,fC as et,u as a,an as tt,bM as it}from"./index-
|
|
1
|
+
import{y as De,K as Oe,aS as F,aa as Re,cI as $e,b as Ue,aX as Y,V as t,fg as Le,p as ze,ac as He,x as u,bE as Me,L as qe,ae as Ne,fz as L,dS as Ge,fA as Je,by as Ke,dI as Qe,bV as Ye,fB as Ze,aT as Xe,o as H,fC as et,u as a,an as tt,bM as it}from"./index-BwMwEGov.js";import{a as m}from"./sentry-D6_R-0PO.js";import{n as b}from"./mui-CWpKo4a_.js";import{bJ as nt}from"./zeni-epic-state-CQm7BABf.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-BzbMHbg1-ZePyWsNp.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="b44a3d98-da62-4166-a7de-abff36b869d8",e._sentryDebugIdIdentifier="sentry-dbid-b44a3d98-da62-4166-a7de-abff36b869d8")}catch{}})();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)},Z="billPaySetUpPage",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:c,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:se,onSetupApprovalRulesSectionClick:ce,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:M,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=De(),i=Oe(),[A,S]=m.useState(!1),q=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:s,primaryFundingAccount:d,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,B=F(f),J=F(P.fetchState),K=F(D.fetchState),Q=F(O.fetchState),w=Re({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!A&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&S(!0),A&&B==="In-Progress"&&f==="Completed"&&S(!1)},[s,f,B]),m.useEffect(()=>{(B==="In-Progress"&&f==="Completed"||K==="In-Progress"&&D.fetchState==="Completed"||Q==="In-Progress"&&O.fetchState==="Completed")&&w.reset(z(e))},[B,f,w,e,K,D.fetchState,Q,O.fetchState]);const Ve=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Be=async(x,E)=>{const o=E[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=N.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((E,{name:o})=>{o!=null&&E!=null&&$e(()=>Be(o,E))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&M()},[M,J,P.fetchState]);const{commonSetUp:je,spendManagement:Ee}=Ue.getLocalizedStrings(),{setUp:r}=je,{billPaySetup:l}=Ee.billPay,R=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),$=T?.isBillPayEnabled===!0,Fe=R?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",j=k.mode==="light"?new Y(k.colors.brandColorJadeLight):new Y(k.colors.brandColorJadeDark),_e=()=>{!A&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?S(!0):se?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(Le,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":He("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:s,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!$&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:q,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(ct,{windowSize:i,children:Fe}),We?t.jsx(rt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...w,children:t.jsx("form",{id:X(Z),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(L,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:N,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(L,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:ce,status:V.length>0?Ie:void 0})]})})}),c===!0?t.jsx(L,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ye,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(st,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),R&&!$&&V.length>0?t.jsx(Xe,{formId:X(Z),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${H.sp3}`}}):null,t.jsx(et,{isFooterRendered:R&&!$,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as be,K as we,aa as Ce,cI as Pe,aX as k,b as xe,V as t,x as P,bE as Ie,L as Ae,ae as ve,by as je,cJ as ke,aT as $e,o as s,hV as Te,f2 as Ve,f3 as De,u as x,an as Ee,h1 as Be,p as Le,c as Oe}from"./index-
|
|
1
|
+
import{y as be,K as we,aa as Ce,cI as Pe,aX as k,b as xe,V as t,x as P,bE as Ie,L as Ae,ae as ve,by as je,cJ as ke,aT as $e,o as s,hV as Te,f2 as Ve,f3 as De,u as x,an as Ee,h1 as Be,p as Le,c as Oe}from"./index-BwMwEGov.js";import{a as H}from"./sentry-D6_R-0PO.js";import{n as d}from"./mui-CWpKo4a_.js";import{M as ze,o as R,t as Me}from"./PaymentAccountSetupBillingAddressSection-BwtVSnia-BQFedw-c.js";import{F as _e}from"./SetUpAccountSection-D1u5qaQy-xqADEENa.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./zeni-epic-state-CQm7BABf.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";import"./commonTypes-dj64oD5Z-C-7AuAiE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="b08ed8d2-8372-461f-9000-236b3ca4dffb",e._sentryDebugIdIdentifier="sentry-dbid-b08ed8d2-8372-461f-9000-236b3ca4dffb")}catch{}})();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 Oe("standardSemiBold","largeSemiBold")},W="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:r,onClickMenuIcon:A,uiState:K,stripeKey:N,googleAPIKey:J,companyId:q,onUpdateAccountClick:G,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:de})=>{const w=be(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:re,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(i),values:F(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(q)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:b}=a[n].street,j=Ve(b?.country);u={street:a[n].street??l.strings.empty,city:b?.locality??l.strings.empty,state:b?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:b?.countryCode??l.strings.empty,postalCode:b?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:De(v.selectedOption)});u!=null&&de(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&G(g.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const E=w.mode==="light"?new k(w.colors.brandColorJadeLight):new k(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:B}=xe.getLocalizedStrings(),ge=B.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,O=h?.cardsList[0]?.brand??"other",z=h?.addCardPaymentSourceStatus.fetchState,C=ze(S.header,S.titleText,S.protectedCardNo,h);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(o),height:p.iconWidthHeight.valuePx(o),alt:R(O).name}),color:new k(E)},showCompletedIcon:!1,isError:z==="Error",isLoading:z==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=H.useState(!1);return t.jsxs(We,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:B.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(Re,{windowSize:o,children:[t.jsx(Fe,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Ge,{children:t.jsx("form",{id:U(W),onSubmit:pe,children:t.jsxs(Ke,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:re,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:r,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ne(o,l.headers.billingAddress,ce,J,r)]})})})}),ke(f.formState.dirtyFields)?t.jsx($e,{formId:U(W),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.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:h,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},F=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(r=>({label:r.accountName,value:r.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},Re=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as v,cs as V,ct as M,cu as W,kh as q,a_ as z,b as H}from"./index-
|
|
1
|
+
import{V as v,cs as V,ct as M,cu as W,kh as q,a_ as z,b as H}from"./index-BwMwEGov.js";import{a as f}from"./sentry-D6_R-0PO.js";import{H6 as J}from"./zeni-epic-state-CQm7BABf.js";import{u as X}from"./ReviewOverlay-toDIU4kV-DLV4kpAQ.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./mui-CWpKo4a_.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e031b8bb-82de-4621-a0bf-79cd98d0c808",e._sentryDebugIdIdentifier="sentry-dbid-e031b8bb-82de-4621-a0bf-79cd98d0c808")}catch{}})();const{common:n,spendManagement:{billPay:x}}=H.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[s,b]=f.useState(T(e,u)),[p,k]=f.useState(u),[P,E]=f.useState(0),[h,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{b(d=>d.map((S,L)=>(clearInterval(I),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),P===s.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&b(T(e,!1)),()=>{clearInterval(I)}),[s.length,P,p,e.fetchState,u,e]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(y);j({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},N={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,Y(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:A,description:F}=G(m,y,R,p),B=e.fetchState==="Completed"&&y===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:B?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:B?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={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:D,style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(V,{titleComponent:v.jsx(W,{children:h.title}),descriptionComponent:v.jsx(M,{children:h.description}),primaryButtonText:h.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:h.secondaryButtonText,action:N,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(X,{title:A,description:{content:F,isError:e.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:O,hideCancel:B}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&J(t.reviewErrors[0].reviewErrorCode),subTitle:K(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},Y=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=n.texts;return e>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_>",t)}},G=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=n.texts,w=r>1,s=l>1;let b="",p="";return e==="Completed"&&!t?(b=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?x.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:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(b=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:b,description:p}},K=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,Y as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{K as l,V as s,ac as b,o as e}from"./index-
|
|
1
|
+
import{K as l,V as s,ac as b,o as e}from"./index-BwMwEGov.js";import{n as a}from"./mui-CWpKo4a_.js";import{o as p}from"./commonDimensions-0tYCNmAf-CUqtVqS0.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="a5da62fd-6764-4689-8ac3-c774e8375dfb",o._sentryDebugIdIdentifier="sentry-dbid-a5da62fd-6764-4689-8ac3-c774e8375dfb")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as dt,K as ut,aS as ve,V as a,ag as W,aa as pt,cY as mt,aA as ft,cI as yt,a_ as Te,aR as Oe,gf as ht,a as gt,bE as xt,ac as St,cJ as wt,cs as bt,ct as Ct,cu as Dt,L as vt,ae as Tt,aT as Ot,o as l,x as V,ao as je,b as Ae,gg as It,fD as Ie,f2 as Nt,e as $t,d as kt,an as Fe,c as Pt,M as Vt,u as N}from"./index-D0RCZvbR.js";import{a as j}from"./sentry-D6_R-0PO.js";import{n as d}from"./mui-CWpKo4a_.js";import{FA as jt,bi as Y,G5 as At,G4 as Ft,G6 as _t}from"./zeni-epic-state-CQm7BABf.js";import{r as Lt,z as Bt}from"./CompanyOfficerDetailsSection-Czd9OA0I-PpNc4QNR.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";import"./helper-Dh2z35ok-DVFikn_X.js";import"./LabeledAddressValueField-DS32l0xi-ffR5_IMa.js";import"./LabeledCountryMultiSelectField-uVIlAv9_-Cr-pLwSj.js";import"./LabeledCreatableSingleSelectField-CKBw0XOi-B5ltv_kq.js";import"./LabeledDocumentField-D8KhtX0K-Cm1Aq1-V.js";import"./commonTypes-dj64oD5Z-Bwky3r-I.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new t.Error().stack;S&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="ae619999-2db8-41b4-b14c-0d304305ebcb",t._sentryDebugIdIdentifier="sentry-dbid-ae619999-2db8-41b4-b14c-0d304305ebcb")}catch{}})();const x={width:new V(343,580,726),titleWidth:new V(343,580,726,826),subTitlePaddingTop:new V(12,N[3]),subTitlePaddingBottom:new V(N[3],N[3]),verificationDetailsRowGap:new V(12,N[5],N[5]),termsPaddingLeftRight:new V(N[0],N[3])},zt={stepTitle:new Pt("h6Regular","h5Regular")},Ne="businessVerificationPage",D="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Et,currency:$e,footer:ke,strings:{empty:Rt}}}=Ae.getLocalizedStrings(),Ta=({businessVerificationDetails:t,allNationalityCountries:S,verficationDetailsFetchState:$,isRefreshingViewInBackground:L,filesEndPoint:s,authParams:B,productType:y,allIndustries:A,companyTitles:z,maxInsuredAmount:m,isDisabled:k,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:J=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Le,onBackClick:F,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:se,onCompanyDetailsChanged:Me,updateFilesEntity:ie,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:Ge,saveNewAddressInLocalStore:oe,onSaveDetailsClick:We,onClickMenuIcon:Ye,onExecuteTreasuryTransfer:Je})=>{const Ze=dt(),u=ut(),{updateStatus:R,companyView:_,companyDetailsLocalData:r,companyOfficerLocalData:b}=t,qe=ve(R.fetchState),M=_?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="unit"?a.jsxs(Kt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Qe,Z]=j.useState(!1),[U,re]=j.useState("save"),[q,Xe]=j.useState(!1),p=pt({mode:"all",reValidateMode:"onChange",defaultValues:Mt(t,A,z,S)}),{isValid:He}=p.formState,G=_?.company.company.companyBillPayInfo,K=_?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:G?.companyVerificationStatus,T=Object.values(b).findIndex(e=>e?.isSelectedForVerification===!0),O=`Officer_${T<0?1:T+1}`,et=()=>{const e=b[O],n=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,ue=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,me=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?Y(fe):void 0,he=r?.companyDescription,H=r?.companyLegalName,ge=r?.companyIndustry,xe=r?.phone,Se=r?.website,we=r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0,ee=r?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;n!=null&&f!=null&&C!=null&&I!=null&&c!=null&&ue!=null&&me!=null&&ye!=null&&pe!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:ue,phone:me,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,o?"Settings":void 0)},tt=()=>{const e=b[O],n=r?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):C&&!I?((!n?.firstName||!n?.lastName)&&p.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=b[O],n=r?.primaryContactLocalData,c=e?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&p.trigger(`${D}.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||Q!=null&&Q?.length>0)return p.trigger(`${v}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0},st=p.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&b[O]?.isPhoneVerified!==!0){p.setError(`${v}.${T}.phone`,{type:"custom"});return}const e=mt(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(r?.deleteFileStatusById??{}).filter(c=>c!=null);jt(e.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(O),J===!0&&Je?.())}),it=async(e,n)=>{e.includes(D)?Me?.(n[D]):e.includes(v)&&Ge?.(n[v])},nt=j.useCallback(ft((e,n)=>{it(e,n)},300),[]);j.useEffect(()=>{const e=p.watch((n,{name:c})=>{c!=null&&n!=null&&yt(()=>nt(c,n))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${D}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,oe,p]);const ce=_?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Q=ce?.map(e=>e.user),ot=ce?.map(e=>e.role),rt={onOkClick:()=>{Z(!1),F();const e=[],n=_?.company.company.incInfo.fileIds??[];p.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||e.push(c)}),ot?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{Z(!1)}},lt=Te(Oe(m),m,$e.currencySymbol).toUpperCase(),X=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;if(y==="zeni_treasury"&&P?.code==="pending_review"&&qe==="In-Progress"&&R.fetchState==="Completed")return a.jsxs(sa,{children:[a.jsxs(ia,{children:[a.jsx(ht,{}),a.jsx(na,{windowSize:u,children:J===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(aa,{isReadonly:!1,children:J===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Te(Oe(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(gt,{label:i.submittedButton,onClick:()=>{F(),te?.()},variant:"primary"})]});const ct=()=>{const e=G?.companyVerificationStatus?.code==="verified",n=(r?.countriesOfOperations?.length??0)>0||r?.companySourceOfFunds!=null||r?.transactionVolume!=null||r?.purposeOfAccount!=null||r?.registeredAddressStatus!=null||r?.usNexus!=null;return e===!0&&n===!1};return a.jsxs(Ut,{isSettings:o,children:[a.jsx(xt,{title:h&&w===!0?Rt:i.header,backgroundColor:Ze.colors.grey5,style:{zIndex:q?1:4},onBackClick:()=>{wt(p.formState.dirtyFields)?Z(!0):F()},showBackButton:!o&&!h,showMenuIcon:o?u==="medium-compact"||u==="small":!1,onClickMenuIcon:Ye,rightSideComponent:h?a.jsx(oa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{F(),te?.()}}):null,source:"BusinessVerificationPage"}),Qe===!0?a.jsx(bt,{titleComponent:a.jsx(Dt,{children:i.discardTitle}),descriptionComponent:a.jsx(Ct,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:rt}):null,a.jsxs(Yt,{windowSize:u,children:[(!h||w===!1)&&a.jsx(Wt,{windowSize:u,children:o?Et.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?a.jsx(Jt,{children:a.jsx(vt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...p,children:a.jsxs("form",{id:Pe(Ne),onSubmit:st,children:[h&&w===!0&&a.jsxs(Gt,{children:[a.jsxs(Qt,{windowSize:u,children:[a.jsx(Xt,{windowSize:u,children:X?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!X&&a.jsx(Ht,{children:a.jsxs(ea,{children:[a.jsx(Ve,{}),de&&a.jsx(Ve,{}),a.jsx(ta,{})]})})]}),a.jsx(_e,{isReadonly:X,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Zt,{children:[a.jsx(Lt,{companyOfficerData:b,allNationalityCountries:S,allOfficers:Q??[],sectionId:v,isRefreshingViewInBackground:L,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:ie,onEditFileName:se,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:k,filesEndPoint:s,authParams:B,isPopupOpen:q,openPopup:Xe,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Bt,{companyDetails:r,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:L},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",hideNewOnboardingFields:ct(),sectionId:D,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":k,fileProps:{authParams:B,filesEndPoint:s,onEditFileName:se,onDeleteFile:ne,updateFilesEntity:ie},onCompanyAddressClick:ae,onRegisteredAddressClick:Le,connectedAccountProvider:M,allIndustries:A,allNationalityCountries:S})]}),y==="zeni_accounts"?a.jsx(qt,{windowSize:u,children:i.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":G?.businessVerificationStatus?.code!=="pending_review"&&G?.businessVerificationStatus?.code!=="verified")?a.jsx(Ot,{formId:Pe(Ne),primaryBtn:{label:w?ke.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:k!=null},containerStyle:{width:u==="small"?x.width.valuePx(u):"auto",justifyContent:u==="small"?"space-between":"center"},helperStyle:{width:u==="small"?x.width.valuePx(u):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(u),paddingRight:x.termsPaddingLeftRight.valuePx(u),textAlign:u==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ke.back:i.saveDetailsButton,style:{width:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)F();else{const e=b[O],n=r?.primaryContactLocalData;U!=="save"&&re("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?Y(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:r?.companyDescription,legalName:r?.companyLegalName,phone:r?.phone,website:r?.website?.toString(),industry:r?.companyIndustry??"",formattedAddress:r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),We?.(O))}}},helperText:Ke,style:{padding:`12px ${l.sp3}`,zIndex:q?0:4}}):null]})},Mt=(t,S,$,L)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=t,A=Ae.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:S?.map(m=>m.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:[..._t]},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:[...Ft]},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:s?.usNexusTypes??[],allOptions:[...At]},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[v]:Object.values(B).map((m,k)=>{const o=m,h=It(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${k+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:Nt(o?.nationalityCountryCode,L.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:$?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&k===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},Pe=t=>`${t}_form`,Ut=d.div`
|
|
1
|
+
import{y as dt,K as ut,aS as ve,V as a,ag as W,aa as pt,cY as mt,aA as ft,cI as yt,a_ as Te,aR as Oe,gf as ht,a as gt,bE as xt,ac as St,cJ as wt,cs as bt,ct as Ct,cu as Dt,L as vt,ae as Tt,aT as Ot,o as l,x as V,ao as je,b as Ae,gg as It,fD as Ie,f2 as Nt,e as $t,d as kt,an as Fe,c as Pt,M as Vt,u as N}from"./index-BwMwEGov.js";import{a as j}from"./sentry-D6_R-0PO.js";import{n as d}from"./mui-CWpKo4a_.js";import{FA as jt,bi as Y,G5 as At,G4 as Ft,G6 as _t}from"./zeni-epic-state-CQm7BABf.js";import{r as Lt,z as Bt}from"./CompanyOfficerDetailsSection-Czd9OA0I-fdFspTVp.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";import"./helper-Dh2z35ok-R0TRkRqA.js";import"./LabeledAddressValueField-DS32l0xi-C3mF5HOv.js";import"./LabeledCountryMultiSelectField-uVIlAv9_-XG8oijhW.js";import"./LabeledCreatableSingleSelectField-CKBw0XOi-BwKzi1Sg.js";import"./LabeledDocumentField-D8KhtX0K-DHDNNvc8.js";import"./commonTypes-dj64oD5Z-C-7AuAiE.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new t.Error().stack;S&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="ae619999-2db8-41b4-b14c-0d304305ebcb",t._sentryDebugIdIdentifier="sentry-dbid-ae619999-2db8-41b4-b14c-0d304305ebcb")}catch{}})();const x={width:new V(343,580,726),titleWidth:new V(343,580,726,826),subTitlePaddingTop:new V(12,N[3]),subTitlePaddingBottom:new V(N[3],N[3]),verificationDetailsRowGap:new V(12,N[5],N[5]),termsPaddingLeftRight:new V(N[0],N[3])},zt={stepTitle:new Pt("h6Regular","h5Regular")},Ne="businessVerificationPage",D="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Et,currency:$e,footer:ke,strings:{empty:Rt}}}=Ae.getLocalizedStrings(),Ta=({businessVerificationDetails:t,allNationalityCountries:S,verficationDetailsFetchState:$,isRefreshingViewInBackground:L,filesEndPoint:s,authParams:B,productType:y,allIndustries:A,companyTitles:z,maxInsuredAmount:m,isDisabled:k,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:J=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Le,onBackClick:F,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:se,onCompanyDetailsChanged:Me,updateFilesEntity:ie,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:Ge,saveNewAddressInLocalStore:oe,onSaveDetailsClick:We,onClickMenuIcon:Ye,onExecuteTreasuryTransfer:Je})=>{const Ze=dt(),u=ut(),{updateStatus:R,companyView:_,companyDetailsLocalData:r,companyOfficerLocalData:b}=t,qe=ve(R.fetchState),M=_?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="unit"?a.jsxs(Kt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Qe,Z]=j.useState(!1),[U,re]=j.useState("save"),[q,Xe]=j.useState(!1),p=pt({mode:"all",reValidateMode:"onChange",defaultValues:Mt(t,A,z,S)}),{isValid:He}=p.formState,G=_?.company.company.companyBillPayInfo,K=_?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:G?.companyVerificationStatus,T=Object.values(b).findIndex(e=>e?.isSelectedForVerification===!0),O=`Officer_${T<0?1:T+1}`,et=()=>{const e=b[O],n=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,I=e?.lastName,ue=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,me=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?Y(fe):void 0,he=r?.companyDescription,H=r?.companyLegalName,ge=r?.companyIndustry,xe=r?.phone,Se=r?.website,we=r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0,ee=r?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;n!=null&&f!=null&&C!=null&&I!=null&&c!=null&&ue!=null&&me!=null&&ye!=null&&pe!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:ue,phone:me,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,o?"Settings":void 0)},tt=()=>{const e=b[O],n=r?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):C&&!I?((!n?.firstName||!n?.lastName)&&p.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=b[O],n=r?.primaryContactLocalData,c=e?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&p.trigger(`${D}.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||Q!=null&&Q?.length>0)return p.trigger(`${v}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0},st=p.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&b[O]?.isPhoneVerified!==!0){p.setError(`${v}.${T}.phone`,{type:"custom"});return}const e=mt(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(r?.deleteFileStatusById??{}).filter(c=>c!=null);jt(e.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(O),J===!0&&Je?.())}),it=async(e,n)=>{e.includes(D)?Me?.(n[D]):e.includes(v)&&Ge?.(n[v])},nt=j.useCallback(ft((e,n)=>{it(e,n)},300),[]);j.useEffect(()=>{const e=p.watch((n,{name:c})=>{c!=null&&n!=null&&yt(()=>nt(c,n))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${D}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,oe,p]);const ce=_?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Q=ce?.map(e=>e.user),ot=ce?.map(e=>e.role),rt={onOkClick:()=>{Z(!1),F();const e=[],n=_?.company.company.incInfo.fileIds??[];p.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||e.push(c)}),ot?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{C.includes(I)||e.push(I)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{Z(!1)}},lt=Te(Oe(m),m,$e.currencySymbol).toUpperCase(),X=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;if(y==="zeni_treasury"&&P?.code==="pending_review"&&qe==="In-Progress"&&R.fetchState==="Completed")return a.jsxs(sa,{children:[a.jsxs(ia,{children:[a.jsx(ht,{}),a.jsx(na,{windowSize:u,children:J===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(aa,{isReadonly:!1,children:J===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Te(Oe(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(gt,{label:i.submittedButton,onClick:()=>{F(),te?.()},variant:"primary"})]});const ct=()=>{const e=G?.companyVerificationStatus?.code==="verified",n=(r?.countriesOfOperations?.length??0)>0||r?.companySourceOfFunds!=null||r?.transactionVolume!=null||r?.purposeOfAccount!=null||r?.registeredAddressStatus!=null||r?.usNexus!=null;return e===!0&&n===!1};return a.jsxs(Ut,{isSettings:o,children:[a.jsx(xt,{title:h&&w===!0?Rt:i.header,backgroundColor:Ze.colors.grey5,style:{zIndex:q?1:4},onBackClick:()=>{wt(p.formState.dirtyFields)?Z(!0):F()},showBackButton:!o&&!h,showMenuIcon:o?u==="medium-compact"||u==="small":!1,onClickMenuIcon:Ye,rightSideComponent:h?a.jsx(oa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{F(),te?.()}}):null,source:"BusinessVerificationPage"}),Qe===!0?a.jsx(bt,{titleComponent:a.jsx(Dt,{children:i.discardTitle}),descriptionComponent:a.jsx(Ct,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:rt}):null,a.jsxs(Yt,{windowSize:u,children:[(!h||w===!1)&&a.jsx(Wt,{windowSize:u,children:o?Et.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?a.jsx(Jt,{children:a.jsx(vt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...p,children:a.jsxs("form",{id:Pe(Ne),onSubmit:st,children:[h&&w===!0&&a.jsxs(Gt,{children:[a.jsxs(Qt,{windowSize:u,children:[a.jsx(Xt,{windowSize:u,children:X?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!X&&a.jsx(Ht,{children:a.jsxs(ea,{children:[a.jsx(Ve,{}),de&&a.jsx(Ve,{}),a.jsx(ta,{})]})})]}),a.jsx(_e,{isReadonly:X,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Zt,{children:[a.jsx(Lt,{companyOfficerData:b,allNationalityCountries:S,allOfficers:Q??[],sectionId:v,isRefreshingViewInBackground:L,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:ie,onEditFileName:se,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:k,filesEndPoint:s,authParams:B,isPopupOpen:q,openPopup:Xe,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Bt,{companyDetails:r,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:L},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",hideNewOnboardingFields:ct(),sectionId:D,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":k,fileProps:{authParams:B,filesEndPoint:s,onEditFileName:se,onDeleteFile:ne,updateFilesEntity:ie},onCompanyAddressClick:ae,onRegisteredAddressClick:Le,connectedAccountProvider:M,allIndustries:A,allNationalityCountries:S})]}),y==="zeni_accounts"?a.jsx(qt,{windowSize:u,children:i.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":G?.businessVerificationStatus?.code!=="pending_review"&&G?.businessVerificationStatus?.code!=="verified")?a.jsx(Ot,{formId:Pe(Ne),primaryBtn:{label:w?ke.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:k!=null},containerStyle:{width:u==="small"?x.width.valuePx(u):"auto",justifyContent:u==="small"?"space-between":"center"},helperStyle:{width:u==="small"?x.width.valuePx(u):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(u),paddingRight:x.termsPaddingLeftRight.valuePx(u),textAlign:u==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ke.back:i.saveDetailsButton,style:{width:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)F();else{const e=b[O],n=r?.primaryContactLocalData;U!=="save"&&re("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?Y(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:r?.companyDescription,legalName:r?.companyLegalName,phone:r?.phone,website:r?.website?.toString(),industry:r?.companyIndustry??"",formattedAddress:r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),We?.(O))}}},helperText:Ke,style:{padding:`12px ${l.sp3}`,zIndex:q?0:4}}):null]})},Mt=(t,S,$,L)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=t,A=Ae.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:S?.map(m=>m.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:[..._t]},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:[...Ft]},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:s?.usNexusTypes??[],allOptions:[...At]},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[v]:Object.values(B).map((m,k)=>{const o=m,h=It(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${k+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:Nt(o?.nationalityCountryCode,L.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:$?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&k===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},Pe=t=>`${t}_form`,Ut=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{K as m,V as r,b as w,w as y,o as t,c as b,M as x}from"./index-
|
|
1
|
+
import{K as m,V as r,b as w,w as y,o as t,c as b,M as x}from"./index-BwMwEGov.js";import{n as o}from"./mui-CWpKo4a_.js";import{a as c}from"./sentry-D6_R-0PO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="1bdf11bd-1757-4384-a1dc-b9583d41298d",e._sentryDebugIdIdentifier="sentry-dbid-1bdf11bd-1757-4384-a1dc-b9583d41298d")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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:p,spendManagement:{chargeCard:a}}=w.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:d})=>{const g=m(),h=e.type.code.includes("credit")?a.chargeCardsPromo.credit:a.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?a.cardList.physicalCard:a.cardList.virtualCard;const i=p.strings.space+a.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code==="request_on_hold"||!s?l:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:d,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,r.jsx(H,{}),l,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},v=o(x)`
|
|
2
2
|
${e=>e.forDetailPage?{...y.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as k,K as f,V as t,bE as te,fm as L,w as u,b5 as X,c1 as ie,o as i,b as w,p as T,x as h,an as v,dk as oe,u as l,a_ as re,aQ as B,bT as ae,ak as $,ac as P,jr as Q,js as Z,j7 as se,cC as ne,cF as de,ao as O,j8 as le,j9 as ce}from"./index-
|
|
1
|
+
import{y as k,K as f,V as t,bE as te,fm as L,w as u,b5 as X,c1 as ie,o as i,b as w,p as T,x as h,an as v,dk as oe,u as l,a_ as re,aQ as B,bT as ae,ak as $,ac as P,jr as Q,js as Z,j7 as se,cC as ne,cF as de,ao as O,j8 as le,j9 as ce}from"./index-BwMwEGov.js";import{n as o}from"./mui-CWpKo4a_.js";import{GZ as b,bh as he}from"./zeni-epic-state-CQm7BABf.js";import{P as K,a as Y}from"./sentry-D6_R-0PO.js";import{F as pe}from"./InsightsSection-BGx81rZp-C6S_wS0Z.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as fe}from"./recharts-DgmMLsfg.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";import"./NavigationDots-BrrmV8fC-DSzDsxhc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="19007957-3e7a-4007-a6ea-cec2bfd7ea89",e._sentryDebugIdIdentifier="sentry-dbid-19007957-3e7a-4007-a6ea-cec2bfd7ea89")}catch{}})();const be=({x:e,y:a,width:n,height:s,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:a,width:n,height:s})},E=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(W,{children:[t.jsx(_,{children:E.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(W,{children:[t.jsx(_,{children:E.cashback}),t.jsx(G,{children:B("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,W=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,je=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as at,K as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS as tt,V as t,hb as Ai,bE as Ei,u as h,f_ as vr,aQ as qe,ac as Q,bD as Ri,bV as ta,p as c,o as a,b as ke,jd as kr,w as _,cs as Fi,je as Pi,fg as zi,gY as Mi,jf as Vi,bH as Oi,bQ as jr,aV as aa,x as T,b9 as ra,bM as Ir,ak as Ce,eJ as Hi,bc as ia,j1 as Ni,aW as Lr,g as ft,ha as Dr,cf as Bi,L as Ct,b5 as Wi,dr as _i,cw as Ui,jg as Gi,jh as Tr,ji as dt,n as Zi,b1 as qi,jj as Yi,jk as Xi,ct as Ki,d8 as Ji,hJ as Qi,an as ze,bX as eo,ax as Ut,jl as Ma,jm as to,dl as ao,c as Va,M as Ar,bb as ro,aE as io,iX as mt,j6 as oo,jb as no,jc as so,dx as Oa,e_ as co,a as Er,cC as Rr,j4 as lo,b_ as ho,h as Fr,jn as po,aw as kt,c1 as Ha,bz as uo,dh as mo,as as go,ao as lt,h5 as Co,d as fo,bI as wo,jo as Tt,ft as xo,jp as Pr,gF as zr,jq as It,iq as Mr,dT as Vr,bT as yo,em as Or,j7 as bo,cF as So,dS as $o,d2 as vo,j8 as ko,j9 as jo,es as Io,ci as Lo,cj as Do}from"./index-
|
|
1
|
+
import{y as at,K as Ie,ay as Lt,a9 as Dt,h6 as Sr,hM as Ti,aX as et,h7 as $r,aS as tt,V as t,hb as Ai,bE as Ei,u as h,f_ as vr,aQ as qe,ac as Q,bD as Ri,bV as ta,p as c,o as a,b as ke,jd as kr,w as _,cs as Fi,je as Pi,fg as zi,gY as Mi,jf as Vi,bH as Oi,bQ as jr,aV as aa,x as T,b9 as ra,bM as Ir,ak as Ce,eJ as Hi,bc as ia,j1 as Ni,aW as Lr,g as ft,ha as Dr,cf as Bi,L as Ct,b5 as Wi,dr as _i,cw as Ui,jg as Gi,jh as Tr,ji as dt,n as Zi,b1 as qi,jj as Yi,jk as Xi,ct as Ki,d8 as Ji,hJ as Qi,an as ze,bX as eo,ax as Ut,jl as Ma,jm as to,dl as ao,c as Va,M as Ar,bb as ro,aE as io,iX as mt,j6 as oo,jb as no,jc as so,dx as Oa,e_ as co,a as Er,cC as Rr,j4 as lo,b_ as ho,h as Fr,jn as po,aw as kt,c1 as Ha,bz as uo,dh as mo,as as go,ao as lt,h5 as Co,d as fo,bI as wo,jo as Tt,ft as xo,jp as Pr,gF as zr,jq as It,iq as Mr,dT as Vr,bT as yo,em as Or,j7 as bo,cF as So,dS as $o,d2 as vo,j8 as ko,j9 as jo,es as Io,ci as Lo,cj as Do}from"./index-BwMwEGov.js";import{a as o,P as To}from"./sentry-D6_R-0PO.js";import{n as r,c as we,k as Hr}from"./mui-CWpKo4a_.js";import{Fy as At,bh as Ao,bf as Eo,GY as Ro}from"./zeni-epic-state-CQm7BABf.js";import{k as Fo}from"./NavigationDots-BrrmV8fC-DSzDsxhc.js";import{A as Po,i as zo,a as Mo,l as Vo,r as Oo,t as Ho,n as No}from"./add-to-wallet-DgdBD8_G-DbXm7RD1.js";import{L as Gt}from"./lottie-DGC6TFh6.js";import{j as Bo}from"./CardNumberSubText-C-RZAUkR-9J-OX21m.js";import{t as Wo}from"./panelSelectedMixin-Cddsb26L-Cjeo9h__.js";import{r as Nr}from"./core-BzTCCyMo.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-50TovDpj.js";import{N as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-C9qzP7dO-YCDVKdLH.js";import"./liveblocks-CKHUw5rb.js";import"./recharts-DgmMLsfg.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";import"./RoleWithToolTip-5cp6EPl_-Bsoc7cC1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="4368f29d-e345-405a-879d-79be503373ac",e._sentryDebugIdIdentifier="sentry-dbid-4368f29d-e345-405a-879d-79be503373ac")}catch{}})();const Wr=ke.getLocalizedStrings().spendManagement.chargeCard,qo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:w,chargeCardDetailView:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:A,setWalletType:S,setIsAddToWalletDrawerOpen:z,isDebitCard:M})=>{const y=Dt().analytics,{isIPadScreen:G}=Yi(),{isAndroidScreen:Y}=Xi(),X=Lt(),E=At(X.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(j,"_blank")}}):Y===!0?t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{S("apple"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}}),t.jsx(Qt,{onClick:()=>{S("google"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}})]})})},Qt=({onClick:e})=>{const i=at();return t.jsx(Er,{prefixIcon:t.jsx(Xo,{}),label:Wr.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":Q("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=at();return t.jsx(Er,{prefixIcon:t.jsx(Ko,{}),label:Wr.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":Q("add-to-apple-wallet-button")})},Yo=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a9 as Za,aS as z,ay as er,fZ as tr,iX as W,K as Ee,o as a,y as ta,V as t,bE as ar,gb as rr,fm as ie,w as D,bV as nt,p,aQ as me,ac as V,a_ as st,b as Fe,x as G,ak as q,c as ir,M as or,d0 as nr,au as aa,bM as sr,b1 as ct,aV as dr,ao as lt,aa as cr,g$ as lr,ey as ur,aq as hr,ae as mr,gh as pr,a as Nt,u as _,da as ra,as as Cr,an as gr,e as br,c$ as fr,bx as xr,bX as yr}from"./index-
|
|
1
|
+
import{a9 as Za,aS as z,ay as er,fZ as tr,iX as W,K as Ee,o as a,y as ta,V as t,bE as ar,gb as rr,fm as ie,w as D,bV as nt,p,aQ as me,ac as V,a_ as st,b as Fe,x as G,ak as q,c as ir,M as or,d0 as nr,au as aa,bM as sr,b1 as ct,aV as dr,ao as lt,aa as cr,g$ as lr,ey as ur,aq as hr,ae as mr,gh as pr,a as Nt,u as _,da as ra,as as Cr,an as gr,e as br,c$ as fr,bx as xr,bX as yr}from"./index-BwMwEGov.js";import{a as l}from"./sentry-D6_R-0PO.js";import{n as r,c as ut,k as Sr}from"./mui-CWpKo4a_.js";import{Fy as wr,GX as kr,bh as zt,bL as $r,bZ as Ir}from"./zeni-epic-state-CQm7BABf.js";import{t as vr}from"./SpendManagementSection-fQq7rBRb-Drowkbt2.js";import{A as oe,r as jr,i as Ar}from"./ChargeCardListTable-BzxR1456-C0IPFjmm.js";import{ChargeCardPromoUserContent as Lr}from"./ChargeCardPromoPage-CB2uJfB7-vjuDdoAd.js";import{N as Pr,J as Er}from"./PromoBaseCards-CN21NM41-C-6MmVSO.js";import{z as Ot,N as _t,k as Fr,P as Tr}from"./LockCardPage-C9qzP7dO-YCDVKdLH.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-Rpwe6ATQ.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-aoBvaeWN.js";import"./liveblocks-CKHUw5rb.js";import"./core-BzTCCyMo.js";import"./recharts-DgmMLsfg.js";import"./lottie-DGC6TFh6.js";import"./analytics-CFLF9sCc.js";import"./lexical-BFSfLoHw.js";import"./utils-B8cH97sz.js";import"./RoleWithToolTip-5cp6EPl_-Bsoc7cC1.js";import"./CardNumberSubText-C-RZAUkR-9J-OX21m.js";import"./NavigationDots-BrrmV8fC-DSzDsxhc.js";import"./usp-line-BBd1wKwW-C1nI6oW7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="c01c6537-e402-46e1-a47c-166beb1a9bd7",e._sentryDebugIdIdentifier="sentry-dbid-c01c6537-e402-46e1-a47c-166beb1a9bd7")}catch{}})();const ht={infoSubheadingTextMarginTop:new G(_[0],_[0]),cardsMinWidth:new G(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),L=$!==void 0,H=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:L,children:[t.jsxs(na,{children:[L?t.jsx(Ur,{children:H}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),L?null:t.jsx(Kr,{children:n})]}),!L&&t.jsxs(qr,{children:[t.jsx(Jr,{}),m.length>0&&t.jsx(dt,{slideUpCount:m.length,children:m.map((ne,se)=>t.jsx(sa,{children:ne},`card-promo-${se.toString()}`))}),t.jsx(Yr,{})]}),U!=null&&L?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Xr,{isStatusMode:L,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Qr,{isStatusMode:L,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Hr,{children:t.jsx(Gr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cf as ni,V as t,aa as li,ae as di,b as le,K as ie,ay as ke,a9 as ci,y as ze,h6 as hi,iY as pi,iZ as ui,i_ as mi,aT as gi,o as i,ac as G,co as xi,w as Be,p as I,b5 as wi,cw as Ci,i$ as fi,j0 as yi,bV as ye,cz as Oe,bQ as ki,aV as Si,x as C,eJ as vi,bc as ji,j1 as $i,aW as bi,g as Ii,ak as ee,ha as Li,ao as X,an as J,u as p,cM as zi,eH as Ai,j2 as Fi,j3 as Pi,c as ft,b_ as yt,j4 as kt,j5 as Ri,bT as Bi,cC as Xe,j6 as St,dx as Di,dy as q,aQ as ce,cy as vt,L as jt,j7 as _i,cF as Ei,iQ as Je,bM as $t,bO as bt,j8 as Ti,j9 as Oi,aX as je,bv as Vi,b$ as Ni,c0 as Ui,ja as Mi}from"./index-D0RCZvbR.js";import{P as pe,a as f}from"./sentry-D6_R-0PO.js";import{n as o,c as Qe}from"./mui-CWpKo4a_.js";import{T as It}from"./RoleWithToolTip-5cp6EPl_-BFxPWWfA.js";import{j as Ve}from"./CardNumberSubText-C-RZAUkR-Be1AIDeL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="57427d7a-3f47-4ed3-98e5-129bcf65fe0a",e._sentryDebugIdIdentifier="sentry-dbid-57427d7a-3f47-4ed3-98e5-129bcf65fe0a")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Ze={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ye={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?[{...Ze,width:new C(0,0),value:Wi},Ye,et,tt,it,ot]:[Ze,Ye,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:j}}=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:$,onChargeCardResendInviteClick:S})=>{const[h,m]=f.useState(!1),[y,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(()=>{$(a.id,k)},[a.id]),O=St(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=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)})}),O!==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(O)}${Hi}`})}):null]}),Q=a.type.code,_=j.cardList.tooltip[Q],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Qi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Yi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[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:A[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(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:j.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[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:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx(jt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{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(),S(a.id)},"data-testid":G("send-reminder",a.id),children:j.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[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&&F&&R(!0)},onMouseLeave:()=>{F&&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&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:j.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},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(T,{children:j.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(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Zi,{}),t.jsx(fe,{children:j.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(T,{children:j.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(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),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:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx($e,{}),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:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.cardDetails.moreOptions.lock})]}),t.jsx($e,{}),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:j.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:j.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Xi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Xi=(e,s)=>{switch(e){case"active":return new je(I.success);case"request_on_hold":return new je(I.graphColor36);case"inactive":return new je(I.alert);default:return new je(s.colors.grey1)}},T=o(J)`
|
|
1
|
+
import{cf as ni,V as t,aa as li,ae as di,b as le,K as ie,ay as ke,a9 as ci,y as ze,h6 as hi,iY as pi,iZ as ui,i_ as mi,aT as gi,o as i,ac as G,co as xi,w as Be,p as I,b5 as wi,cw as Ci,i$ as fi,j0 as yi,bV as ye,cz as Oe,bQ as ki,aV as Si,x as C,eJ as vi,bc as ji,j1 as $i,aW as bi,g as Ii,ak as ee,ha as Li,ao as X,an as J,u as p,cM as zi,eH as Ai,j2 as Fi,j3 as Pi,c as ft,b_ as yt,j4 as kt,j5 as Ri,bT as Bi,cC as Xe,j6 as St,dx as Di,dy as q,aQ as ce,cy as vt,L as jt,j7 as _i,cF as Ei,iQ as Je,bM as $t,bO as bt,j8 as Ti,j9 as Oi,aX as je,bv as Vi,b$ as Ni,c0 as Ui,ja as Mi}from"./index-BwMwEGov.js";import{P as pe,a as f}from"./sentry-D6_R-0PO.js";import{n as o,c as Qe}from"./mui-CWpKo4a_.js";import{T as It}from"./RoleWithToolTip-5cp6EPl_-Bsoc7cC1.js";import{j as Ve}from"./CardNumberSubText-C-RZAUkR-9J-OX21m.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="57427d7a-3f47-4ed3-98e5-129bcf65fe0a",e._sentryDebugIdIdentifier="sentry-dbid-57427d7a-3f47-4ed3-98e5-129bcf65fe0a")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Ze={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ye={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?[{...Ze,width:new C(0,0),value:Wi},Ye,et,tt,it,ot]:[Ze,Ye,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:j}}=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:$,onChargeCardResendInviteClick:S})=>{const[h,m]=f.useState(!1),[y,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(()=>{$(a.id,k)},[a.id]),O=St(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=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)})}),O!==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(O)}${Hi}`})}):null]}),Q=a.type.code,_=j.cardList.tooltip[Q],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Qi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Yi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[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:A[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(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:j.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[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:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx(jt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{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(),S(a.id)},"data-testid":G("send-reminder",a.id),children:j.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[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&&F&&R(!0)},onMouseLeave:()=>{F&&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&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:j.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},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(T,{children:j.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(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Zi,{}),t.jsx(fe,{children:j.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(T,{children:j.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(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),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:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx($e,{}),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:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.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(T,{children:j.cardDetails.moreOptions.lock})]}),t.jsx($e,{}),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:j.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:j.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Xi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Xi=(e,s)=>{switch(e){case"active":return new je(I.success);case"request_on_hold":return new je(I.graphColor36);case"inactive":return new je(I.alert);default:return new je(s.colors.grey1)}},T=o(J)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(J)`
|
|
4
4
|
color: ${I.important};
|