@zeniai/web-cockpit-ui 1.14.71-qa → 1.14.72-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-B40ur5bp-OJtx8DT6.js → ACHDetailsPage-BZFkcCOG-Bm0yzLzS.js} +1 -1
- package/dist/assets/{AIPerformancePage-3KzgwQEg-Cp11Tixi.js → AIPerformancePage-DtNLjoUW-C8WssBlV.js} +1 -1
- package/dist/assets/{AccountInfoPage-vLCfulj4-D7w0AEVb.js → AccountInfoPage-D-E_-WpE-D3xkesKo.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-C0kb83_4-m4YXdHL2.js → AccountInfoPageContent-B8GKrtCm-Bl_GPEk1.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-DqWq-DtD-thx3GkHT.js → AccountLockedInfoModal-BD7Nb81U-CexK1k9m.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-C1-aZ2IL-DONmrA5N.js → AccountReconDetailsDrawerPage-D-_ME0pV-s74oVSdU.js} +1 -1
- package/dist/assets/{AccountRow-C9q6i3az-uqz3oGJB.js → AccountRow-Be3LIHO--AtWCxnkE.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CcKxTC_P-D6qQ3DxH.js → AccountsPromoCardStack-CdBwPVgI-0eZTGbZE.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CgFUm8yP-CtV0qBX3.js → AddAddressForCardDrawer-Lm7cn4kq-BwSuj-eK.js} +1 -1
- package/dist/assets/{AddToWalletPage-CcGENV5h-vKW0fqwA.js → AddToWalletPage-nSq-9dQy-DNXeo8yV.js} +1 -1
- package/dist/assets/{AgingReportsPage-B24eKpNK-UanQvgSv.js → AgingReportsPage-L0zQxwCf-BGxthXxn.js} +1 -1
- package/dist/assets/{AllUserItems-D_8QwwoX-BslEB_aj.js → AllUserItems-CvwaOEhu-4FgiUHmj.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CkjF2eck-Cjia9b4P.js → ApAgingDetailPage-B_78aSEv-BIkW3as9.js} +1 -1
- package/dist/assets/{AppBasePage-BKLe2VqM-jaxKvGaf.js → AppBasePage-Br0WbQRY-C5P2SI_a.js} +1 -1
- package/dist/assets/{AppDrawerContent-amGpNlZr-mjjA07Qy.js → AppDrawerContent-BZODvVvi-DO9-i0u3.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-D42YDnFU-CxgVtyF0.js → ApprovalRulesSettingsPage-Dxd7A3hZ-B57JU70m.js} +1 -1
- package/dist/assets/{ArAgingChart-qZaIsWtq-BgxDkSAy.js → ArAgingChart-BezVy1Sm-UplSlTlX.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-CHCdWveg--cpOx4o0.js → ArAgingDetailPage-BlV3iJeW-DvSoM4Rd.js} +1 -1
- package/dist/assets/{AttachmentView-DZCtCZK_-DUoYfXhu.js → AttachmentView-DhluaeAV-DnrJUkr5.js} +1 -1
- package/dist/assets/{BankAccountSection-BroWfNc_-BZsa7G4H.js → BankAccountSection-GDEQdiGL-CuwfGvXF.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-lNbSkw5--DWU9HuLt.js → BankAccountWarningSection-Di_BsiJC-Cp36wJhl.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BG5FAR53-DUZDZ0TZ.js → BankConnectionsSettingsPage-D5hI4xtm-CIHmOttI.js} +1 -1
- package/dist/assets/{BillDetailPage-BNlsd0AF-TTFyOGGT.js → BillDetailPage-CDAh8Jtl-0qBbZ__0.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-Br6UCYrF-DTgVJd9l.js → BillPayApprovalRuleDetailPage-BzyTn4mC-DYCBn6RW.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-DL0aveSN-C6oD62EC.js → BillPayApprovalRulesPage-DDJ-LxQz-D20J03DB.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DLMTqP9B-967xJFlF.js → BillPayPromoPage-B2YcxWc9-CwLnyiow.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-7Z5WhvCj-CIgzKegf.js → BillPaySetUpPage-oJvoWpFu-CYkgRBSH.js} +1 -1
- package/dist/assets/{BillingSettingsPage-HsRQLM6k-8FVnslnG.js → BillingSettingsPage-BRsKYzT5-gKM6YCmc.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-CZEdLC67-wkDNcY54.js → BillsBulkReviewDrawerPage-B7tORIok-Cjhni78W.js} +1 -1
- package/dist/assets/{BoxItem-CvQS_sLm-BkWNdqzg.js → BoxItem-COIjjFrn-DqU4ZyNU.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-BQ3ZYVyp-CSp1c4zw.js → BusinessVerificationPage-Nw_fedst-D0V3bhmc.js} +1 -1
- package/dist/assets/{CardNumberSubText-DVfY641B-D02mvfUY.js → CardNumberSubText-CmhH95Ff-CLBGKyAX.js} +1 -1
- package/dist/assets/{CashbackDetailPage-Bq-wjfJM-BY7X_IKu.js → CashbackDetailPage-BPLjvuA3-362WFi2j.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BBksBgc_-BnVViHgt.js → ChargeCardDetailPage-qOu4cPGd-BUoeKuHJ.js} +1 -1
- package/dist/assets/{ChargeCardListPage-D8LM_cZf-CuxoZaNt.js → ChargeCardListPage-v5hH98Wi-D_Ffaz0x.js} +1 -1
- package/dist/assets/{ChargeCardListTable-Cstar82M-C4nVRMaW.js → ChargeCardListTable-BGWV4zJl-fPTlw7hA.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DMAUyVe7-ayNZ5YOR.js → ChargeCardPromoPage-CPEaGOL3-BJBmWN7Q.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-xuPp_o4--DddSRpRr.js → ChargeCardSetupPage-G5Rn0o6y-DXJQIwPQ.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BtEC80N4-Clxol32B.js → ChargeCardStatementsPage-CJgUrcLz-BpTcE_Fq.js} +1 -1
- package/dist/assets/{ChargeCardUtils-CHhHodZN-Dxh33JDX.js → ChargeCardUtils-BRgkrCTs-DoVoCmwL.js} +1 -1
- package/dist/assets/{ChaseOverlay-laPjyJU7-kkgNaiJi.js → ChaseOverlay-BC_4vwtb-ZJ37WP7g.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-Cg3R57ad-DLf31CUD.js → CheckDepositDrawerPage-CDo5E13X-BcLnzbHC.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BTquJgcd-Bnhii_71.js → CollapsableReportTable-7iAngywY-CxWB4sRz.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BpiZ5rDk-C5NsYHrL.js → CompanyOfficerDetailsSection-CJKyxEnf-BshC7d2B.js} +1 -1
- package/dist/assets/{CompanyPassportCard-BV9mPVRb-B7CtEnYQ.js → CompanyPassportCard-D3F01eJL-CYg3XwZh.js} +1 -1
- package/dist/assets/{CompanyPassportPage-D5tRbHXG-CchPpVqK.js → CompanyPassportPage-BQoEcPJr-DzLqV-NZ.js} +1 -1
- package/dist/assets/{CompleteProfile-CARUXqXR-deITw6Bv.js → CompleteProfile-D5e9TQgy-ppOK1lFi.js} +1 -1
- package/dist/assets/{ConfettiBurst-CPnRASxV-BdtpNDa2.js → ConfettiBurst--HIHB7Os-CFkZhGnX.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BnMzZWIJ-CJ7MJ526.js → CreateOrEditVendorPage-D9jmSrKr-BqbzMjKm.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-ZGFxbf6p-CV2Pogbc.js → CreditCardPaymentDrawerPage-DXeq4z9l-Dr585X5v.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-CfIXTZi1-hVEJtGD4.js → CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js} +1 -1
- package/dist/assets/{CurrencySelectField-D5qstOV_-BVz9UXR8.js → CurrencySelectField-nhg_dhDw-Ct_sJsLw.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-EoS5UWcr-wdnAtpAS.js → CustomerOnboardingActivationPage-CoGvz7Kd-2HboMU2B.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-4OaWohod.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CATcejsu-CTY6Netf.js → CustomerOnboardingDetailPageSkeleton-DUGRKWtN-Bm0dGA9J.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-DhXSZZDt-C3Pg5R_d.js → CustomerOnboardingNoStepsPage-Cc5frP29-BNFSu_0c.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-Dw4jho3E-BiHkXOEC.js → CustomerOnboardingPage-zBqp9QN6-D_UHEoUt.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BrcfWdR_-lFFAj0bv.js → CustomerOnboardingProductSuitePage-BbJ4oiCI-C_0KKlnp.js} +1 -1
- package/dist/assets/{Dashboard-Dncu8Llu-6KNekDl2.js → Dashboard-D6Ba5oj0-DGZ5Ekyf.js} +1 -1
- package/dist/assets/{DashboardReportPage-Cd2aI286-COtCqVSR.js → DashboardReportPage-DTMbYOWH-CSMllwg6.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Bsd2tllR-DNtS7CFs.js → DashboardSidebarBackgroundAnimation-Locz2zHR-BPk9MxB4.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BCvM718U-g0jMhVOF.js → DepositAccTransactionItem-B0BGwVqF-CxL2uxQm.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BV0C4uw5-BQi1PdJC.js → DepositAccTransactionListPage-CcO673ZL-CiLAoQqZ.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-C7YCWnpX-CSJt02Ss.js → DomesticWireDetailsPage-D5hbPNCt-Bj16Fg_f.js} +1 -1
- package/dist/assets/{DownloadOverlay-XFeHlPT1-CaYTjV3q.js → DownloadOverlay-DRcasKoB-BDQCkt6Q.js} +1 -1
- package/dist/assets/{DrawerPage-B5swtpnW-B_H7rRHX.js → DrawerPage-BRD6cE6J-CdG9rNJx.js} +1 -1
- package/dist/assets/{EditPeoplePage-gSBB6VWT-HDNKOGs-.js → EditPeoplePage-Zzo62if7-CQfgpQsa.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-wgieh-cS-DfGbigja.js → EditReimbursementDetailPage-D59OJdZ1-7T5j9Uz8.js} +1 -1
- package/dist/assets/{EntityDetailPage-wDSbBdas-YGMfXKor.js → EntityDetailPage-CzlzOW8n-DjZ6eItY.js} +1 -1
- package/dist/assets/{EntitySummarySection-DUkLpeab-BKxfNIjD.js → EntitySummarySection-BRt1kPDf-BrvMzC_z.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-8Kor6jbw-BYjnzqPR.js → ExpenseAutomationOverviewPage-vUkGameq-D28DcERt.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-BrMLIa8l-3tmUuzHu.js → ExpenseAutomationPage-Cm_IiRlb-Ch0agMlw.js} +14 -14
- package/dist/assets/{ExpressPayPage-mNQZwQjW-D68Zo2mi.js → ExpressPayPage-DdQiFzDu-ykW984zo.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-DBHT9uKl-Ck5gSnnA.js → FeaturePreviewPage-CQN2xThT-D8GcVVCI.js} +1 -1
- package/dist/assets/{FollowStepsSection-CSUuXn2f-CoTI7DnO.js → FollowStepsSection-DdwEVWhG-XjqeMDlz.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-p0vz_C5a-DLeprzDj.js → GlobalReviewListPage-DHn2Uk8R-Cd3V8M7p.js} +1 -1
- package/dist/assets/{HelpButton-B2amus4B-DGNqE5dq.js → HelpButton-BNMy-6ce-WFq-iELy.js} +1 -1
- package/dist/assets/{InformationCardStack-BJ727KaL-9YB1lO6A.js → InformationCardStack-Cw7c9Pnd-JKEjusS_.js} +1 -1
- package/dist/assets/{InsightsCardStack-DY6RY7Qe-CP2ab3ak.js → InsightsCardStack-CaMZiCnn-D5ut2TNQ.js} +1 -1
- package/dist/assets/{InsightsSection-D-8tYkse-F18tKGgA.js → InsightsSection-JIKb9lz3-CSUvMdaP.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-1rJOamsZ-CjZYkZ53.js → IntegrationsSettingsPage-h4pel2yK-CfkisAjm.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-Ri6TSG6P-DH-nVwwy.js → InternationalWireSwiftDetailsPage-C2SnHEV1-D4h6wt17.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CjriI8l--CwJSjoLC.js → InternationalWireVerificationPage-Dk11ztF7-CGQwkBKG.js} +1 -1
- package/dist/assets/{InviteFormPage-BY76duGE-PvOtmGWs.js → InviteFormPage-CrtH0cSG-lBcBfRNC.js} +1 -1
- package/dist/assets/{InvitePageListView-AAJf0dR1-SlBE6ooQ.js → InvitePageListView-DUoopPip-D3WES4Ay.js} +1 -1
- package/dist/assets/{InvitePeoplePage-CyMnjfEI-DkVyQy0k.js → InvitePeoplePage-C3ecL8XJ-D06hBumB.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DNao9DwT-B7AkNap1.js → InvoiceUploadSection-DoR834b4-BezkawDL.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-Bjy6NLc8-DXGdYRGr.js → IssueChargeCardPage-D6DCohbK-CY0NLJ-D.js} +1 -1
- package/dist/assets/{LabeledAddressValue-B2k1GZHx-CCwyWcwv.js → LabeledAddressValue-C3R0DSjj-DSFQoK0_.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C6oH2tzZ-Cq8P-6Au.js → LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-D3legl2B-BTYv9UI4.js → LabeledControlledCheckBoxField-zwoLFM1n-WAKwiqVu.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-BVxws_IH-DHa5ei0J.js → LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js} +1 -1
- package/dist/assets/{LabeledDocumentField-DwPfHt2N-C-08ZUG5.js → LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BFT3G777-CEr0OMdI.js → LabeledDropDownFormattedTextField-brzU_fnp-DR9C1PhE.js} +1 -1
- package/dist/assets/{LabeledText-nWCZBDTc-BoD2dqym.js → LabeledText-BESSkt5Z-DvRhicFs.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B5USvGOt-C7Yiua_H.js → LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-BRFp4N3Z.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CFKa2QEv-DHSbOHFD.js → LabeledZeniRolesDropDownField-BXTCN4j2-C9dcF_vL.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-C1nuQ_6i-RZyjC9j5.js → LinkJETransactionPage-_ROjxBMO-DP6JabBY.js} +1 -1
- package/dist/assets/{LockCardPage-s_PD9AzH-zXuRiUvJ.js → LockCardPage-DYfgK11k-CA2sqFlt.js} +1 -1
- package/dist/assets/{LowBalancePopup-C3XwZy2N-BYYQnFrI.js → LowBalancePopup-CZDcHxyW-BHOAXZjC.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CAcRKnmW-DZEZ62--.js → MagicLinkACHDetailsPage-CLXcRbZ--CVcTUs2d.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-BYmO4Xr9-Dxgiovc8.js → MagicLinkDomesticWireDetailsPage-CZlZr96w-BPglJFOV.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-BfVzS_Di-61u0T-U5.js → MagicLinkInternationalWireDetailsPage-DhPjvv0o-DFwZaRYm.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CAnSgQhj-ld6DjVL6.js → MagicLinkSuccessPage-Bh2nlLPN-Ddx1hbRe.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-cO3EG-gp-D9WLvwpe.js → MagicLinkTitleSection-Cn1v72Rs-BaSRKY-c.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DgN7ACVL-Cfbx9vEr.js → MailingDetailsSection-9RwlQxVG-C09sdGhg.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-C1bMV1I3-X2HqkS3W.js → MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js} +1 -1
- package/dist/assets/{Menu-C-o9HER2-BsRmDqsM.js → Menu-B6iTf2H7-Cqx4dVPp.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DiJHbt8A-BGs9g2h2.js → MyBankConnectionsSettingsPage-IPPiH6jv-CVF8iXYJ.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CAH07oE4-CtNHDhO6.js → MyPendingActivationChargeCardListPage-BTGb1yIE-BD419NGA.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CWWb3u86-B6iqDz92.js → MyProfileSettingsPage-BRK5nWg2--GwgfIws.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BswkyMmW-C4-XUsw_.js → NavBarWithPicker-CKh_HMfV-U1f60LTo.js} +1 -1
- package/dist/assets/{NavigationArrow-cWkaAVwE-DsXFMUJL.js → NavigationArrow-XZmJpDrE-BSGdgz-m.js} +1 -1
- package/dist/assets/{NavigationDots-DDGYTuFE-CGXjKbul.js → NavigationDots-BxPgEW_p-CnLRJgGA.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-VAYeGHLy-Oe1RM0J8.js → NewGlobalMerchantPage-CQzrDe0S-CFbklyjG.js} +1 -1
- package/dist/assets/{NoDataChart-DOvXvjb9-C62DpKEP.js → NoDataChart-5E72SElf-Bfyft1Tp.js} +1 -1
- package/dist/assets/{NoDataTable-DRlkLFHY-BFCOnw1N.js → NoDataTable-BwHbkm3l-C4AJlFQY.js} +1 -1
- package/dist/assets/{NotFoundPage-BUQyPFn7-DbMvqqu8.js → NotFoundPage-6udaksBZ-Bdrzyyzv.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-B1KXf_X_-DP8U3DW2.js → NotificationSettingsPage-DkYmxMgg-B7fNoy2R.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BoGND2x4-Bic88RIw.js → NotificationsListConfig-FGxLgO1o-Bjqs17aQ.js} +1 -1
- package/dist/assets/{NotificationsPage-CsXXgLel-CPQTRo1J.js → NotificationsPage-C7lSAnUb-wDRHsOkp.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BnJYy01U-CrlrpyBJ.js → OpExByVendorPage-CM0RluUk-BgpW2giu.js} +1 -1
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-Be3ZT6VA.js → OverlayContainerPage-BKHs_4eI-mLdiagVZ.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-o-jbKy2e-D3xznRoV.js → PandLWithForecastPage-W4jlNjml-Bcn3UKYp.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-De5SXBpI-B2yyIOr7.js → PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js} +1 -1
- package/dist/assets/{PeoplePage-DQ6Hff1k-uLwrUM_J.js → PeoplePage-CB3T3u_F-DC1PdCPq.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-V0wgI9Ce-BGdFST67.js → PortfolioAllocationFormPage-CZkJD6tu-CmTdPnvM.js} +1 -1
- package/dist/assets/{PortfolioDetails-CD5ZpbUI-DIaOXXZM.js → PortfolioDetails-D4yT8r35-DSk0Sc23.js} +1 -1
- package/dist/assets/{ProductsCarousel-V_jWJEER-BZ1XL5vE.js → ProductsCarousel-CR7_rk0K-DQWJaP-C.js} +1 -1
- package/dist/assets/{PromoBaseCards-BAFdMFqw-BdNHeAp2.js → PromoBaseCards-BAPolzxE-DLtmx-3v.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DKpO649n-WDQVkEde.js → QBOConnectionDialog-D3eazhj7-fJDNmSLU.js} +1 -1
- package/dist/assets/{QBOSetupSection-D0ZCB5UD-CL8yss1h.js → QBOSetupSection-Cjjhm_Ee-CrlXRkit.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DNt15Ut8-DQYu-dha.js → ReimbursementApprovalRuleDetailPage-eidNY097-DmIjK42h.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-Brx7wunO-CIPDsRf5.js → ReimbursementApprovalRulesPage-GSzJGSuy-H2GhhV11.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DX_Fn31o-DfJecW2t.js → ReimbursementDetailPage-AvqEBxbz-fUbgpa2M.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-CkEv6rCJ-BIEPvL46.js → ReimbursementPromoPage-PshodHUZ-B_XNUegE.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-CFO-blEl-B7chmxwD.js → ReimbursementSetUpPage-6P4FT-UC-Bw__edeG.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B-IcycaW-DEjHsX3z.js → ReimbursementsBulkReviewDrawerPage-Cas6GzVp-BQcspCuT.js} +1 -1
- package/dist/assets/{ReloadCard-DrU5ZC4a-Lhp5dUqC.js → ReloadCard-Dpoxd9nE-B9DlyhD4.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-oB74PECo-DQxfOB1p.js → ReportTableViewSelector-Ci-WKrCO-DAZRgQwg.js} +1 -1
- package/dist/assets/{ReportsPage-D0Psj2SZ-zgFbG4pn.js → ReportsPage-C7zirS74-CyyHiNy4.js} +1 -1
- package/dist/assets/{RevenueChart-Bnc2RxbY-j4EsX0dh.js → RevenueChart-CXMBT3cr-DnDEiqPG.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-E4-dpZ3_-ClKM__Az.js → ReviewDetailsPage-ClsyL5-w-_y4o463o.js} +1 -1
- package/dist/assets/{ReviewOverlay-C9hLAPaS-PM6EEh0a.js → ReviewOverlay-C6Kx7Hfm-IahzUsv3.js} +1 -1
- package/dist/assets/{RoleWithToolTip-BdIHsErU-B-2r4mdL.js → RoleWithToolTip-BqI6M0x_-CwUqJeb5.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DCrTdK6_-BxEq00H4.js → ScheduleDetailsFixedAssetsPage-zFyJPVpN-BSd6OZtz.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BNVBIY34-EYxLWipQ.js → ScheduleDetailsPage-BftjSvA7-Jy_FtZQR.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DeLVkslS-B8uJgnZB.js → ScheduleSequenceTable-lTN7r0p4-BFWt_8N-.js} +1 -1
- package/dist/assets/{ScreenRoutes-BakVgeV7.js → ScreenRoutes-en4svsq9.js} +1 -1
- package/dist/assets/{SetUpAccountSection-XaB8Huky-tcqseHew.js → SetUpAccountSection-Bnbi8X23-DL-18RCf.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-Dko6eOr--DXmPvju7.js → SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js} +1 -1
- package/dist/assets/{SignIn-BKZ0UqXu-C2vG3CNA.js → SignIn-BlISBvt5-C9HXqHPg.js} +1 -1
- package/dist/assets/{SignInScreen-DuoQ-AG7.js → SignInScreen-Ba17TSWH.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Crlns-YT-Z8oUGYAa.js → SpendManagementListViewPage-ChNp8dgm-BhMjXPdH.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-YjfDDwP4-s9BLynQx.js → SpendManagementPerTabPage-D-bOr2-6-GaRieOUe.js} +1 -1
- package/dist/assets/{SpendManagementSection-D8lfWWWV-8A3HI4sU.js → SpendManagementSection-kucZgC-H-DLgSRXEX.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-C7WofOL3-BnD8nK4r.js → SpendMgmtSetupAccountSection-de7hEmtE-CX-1PNOC.js} +1 -1
- package/dist/assets/{StatementItem-CpZ-MDHo-Bsa1fG7j.js → StatementItem-BVIVLdDn-BLcyHqWZ.js} +1 -1
- package/dist/assets/{StatementsPage-BbO8PdHq-RaSk0lam.js → StatementsPage-KnLUSJbm-DvU_Y3UP.js} +1 -1
- package/dist/assets/{StatusSwitcher-DW-Q6MLD-CQ6yqmkl.js → StatusSwitcher-aAizq1mr-D4E7X1zy.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BgmKYyVl-ONNQ80jH.js → SubTabSwitcher-COrYJ6CW-B2hsvJe_.js} +1 -1
- package/dist/assets/{SummaryCard-V7fE0ql0-CCZ-ztn7.js → SummaryCard-Dv0dWKBw-BnK7xgrF.js} +1 -1
- package/dist/assets/{TaskManagementPage-D8UAfCaw-oRWXv4Mv.js → TaskManagementPage-CPLyyK1Y-ena6uodh.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BRY0oixp-BRZx02Tv.js → TimeRangeSwitcher-ifkHfqEg-CGFdCObN.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-DIg8e-x0-BOMbByl-.js → TimeframeSwitcher-BP-PxO5g-DG6ysLlp.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-utawMrzT-GD5K8OvN.js → TimeframeSwitcherWithToggle-DH-PfsTQ-Dd12kokF.js} +1 -1
- package/dist/assets/{TopExCard-C2AE49xP-BTroc4z6.js → TopExCard-Bam-Q4MV-GCmLzO6i.js} +1 -1
- package/dist/assets/{TopExDetailPage-rA6jQ_FN-ibsri-4Z.js → TopExDetailPage-P0Twt5zZ-BElfoauE.js} +1 -1
- package/dist/assets/{TransactionDetailPage-r-DU5f0M-BlN9CQ9d.js → TransactionDetailPage-D1Z1f-DD-DTPxqy3v.js} +1 -1
- package/dist/assets/{TransactionList-N7P-LryH-5L5rzvfH.js → TransactionList-BzJEbOV9-BQZ8x4Oq.js} +1 -1
- package/dist/assets/{TransactionListBig-cTDebILS-CHWntWvd.js → TransactionListBig-u4SJBZTE-BZvqZwTB.js} +1 -1
- package/dist/assets/{TransactionListPage-DWfOgmyP-wt1pJwN9.js → TransactionListPage-D4GJ6i3l-BXLL3BhX.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-X0hlTlLK-Dlo0cua3.js → TransactionVendorDetailPage-CuFHbm8c-Cl9iluIt.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BGdlNOXt-DGfVtZ6f.js → TransferDrawerPage-GD2I8ptj-B7cXbGdy.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DLqZCVMi-3eqtE7gi.js → TreasuryOverviewPage-DySunaqy-CWB-hp0S.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DbzfXlgw-BhF_LHoC.js → TreasuryPromoPage-DW1f8_q1-CZjoBD0v.js} +1 -1
- package/dist/assets/{TreasurySetupPage-D9GxfZ9F-Ch8vLeAD.js → TreasurySetupPage-53k6ARHC-8YVNt5Wt.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DLi_sZPF-BDf2C9zm.js → TreasuryStatementsPage-pIshKNaR-Dtfk2lx_.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DT9qtjBD-BHNybC4k.js → TreasuryTaxLetterPage-B3PkB1al-CKVKJh1V.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-Bwmdvxcf-rzFRLhHd.js → TreasuryTransferOrReviewPage-Dzq-FxSM-CX84O_mN.js} +1 -1
- package/dist/assets/{TrendChart-PEPDz5Rb-ulw833My.js → TrendChart-B_5D-Zud-BUU2-6nI.js} +1 -1
- package/dist/assets/{TrendWithTransactions-D0kwx2QH-CqK3LEg5.js → TrendWithTransactions-mI_El5D1-SbfSjDf-.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-B_m-aQN1-CFGQjIFO.js → UncategorizedAccountsMappingPage-LQeq8Gdv-BxpsIXJf.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-D_I3woOf-Cfk-ZPH4.js → UnitIntegrationPage-XOWqGHla-DR8O2yO4.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BzWXbm7_-BVIHjFIf.js → UploadAdditionalDocumentOverlay-DhXRLBEg-DvVrgitE.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-ZhMUe2XG-CKF1-Bcj.js → Vendor2FAPopup-BfqIHZBb-CksyyTez.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-BxSB3e3f-B95MB4r8.js → VendorACHDetailsPage-CswCvAFH-CdUK-HJH.js} +1 -1
- package/dist/assets/{VendorDetailPage-Cil4QKpo-BtWOEVPV.js → VendorDetailPage-CEX7xMIN-Djo4PloX.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-t9rrf_8I-D3pp2J90.js → VendorDomesticWireDetailsPage-DxrSjlTR-B4ZHtbXA.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CVvvZInI-BQ3nggsu.js → VendorFiling1099EditablePage-q1gQ8keD-BmDatzoV.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CEhcXzDq-CW4TPCld.js → VendorFirstReviewPage-D9ogNmAK-PlB10gEr.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-BuII-Mam-VYA24CX0.js → VendorInternationalWireDetailsPage-Ct689KuY-DAoPjpj5.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CcVcyWBe-cyzqDn4o.js → VendorInternationalWireSwiftDetailsPage-W0s1zQNC-ZgE8KOcO.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-DH0mosVk-BanKIGA3.js → VendorsAccountsSection-C13Z2HN9-C2XOcHy1.js} +1 -1
- package/dist/assets/{VerifyDevice-BWzESmW--Bo9U9beo.js → VerifyDevice-C27gEWkZ-C7pLL5Wm.js} +1 -1
- package/dist/assets/{VideoPlayer-DPXISthv-Djj2Xi7E.js → VideoPlayer-ByyqUuhG-DTMNeCaX.js} +1 -1
- package/dist/assets/{VideoPopup-B2pu7j6O-BELaR8lO.js → VideoPopup-DJrQQTPq-DoXO-Vwb.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-DQjc5yVp-vrWXb5U2.js → WarningsDrawerPage-B3Ht3VnM-DBDTIhyB.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CI2TQILk-BtmMqz-k.js → ZeniAccountDetailPage-egmysAfI-DFbZv9KZ.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-DjhscUyw-BOF9J4-k.js → ZeniAccountListViewPage-q_v2FogF-B-baYGeD.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-BMOxM3Ul-ClZ54EhW.js → ZeniAccountNavBarPieces-HNIht0FM-aSJ3m6rj.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CoegRWXG-DVC1Dg4U.js → ZeniAccountPromoPage-CzncR6vK-DAONZr9A.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-l8SdQK7w-Cwql6ueE.js → ZeniAccountSetupPage-TcdzEL_V-CApQPT0B.js} +1 -1
- package/dist/assets/{ZeniCopyright-CrpLjMla-wElaHxTg.js → ZeniCopyright-B7Q6IUGC-Ca3UXoxG.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-oZNLHFd5-C8PE-tiN.js → ZeniTransferAmountSlider-Dmf5xxv4-D_ugGHJW.js} +1 -1
- package/dist/assets/{analyticsHelper-CXWIyGuU.js → analyticsHelper-CVWZE356.js} +1 -1
- package/dist/assets/{analyticsHelper-ColsUhUK-VYgmVzF7.js → analyticsHelper-or1KkBWk-Plh_6I_p.js} +1 -1
- package/dist/assets/{chartTypes-BFE_S1PL-QRevrAB7.js → chartTypes-DCvOVjlS-BdPIN5WI.js} +1 -1
- package/dist/assets/{commonDimensions-Dq7P0AE6-CHYUckfM.js → commonDimensions-C32v1F7H-CiAEfJl2.js} +1 -1
- package/dist/assets/{detailCommon-DSe7Tzn3-B2YXLrXu.js → detailCommon-CRAGrqoO-Cq9phP1q.js} +1 -1
- package/dist/assets/{downloadPdf-D3hiuG-R-CbvQzAop.js → downloadPdf-D7p3yKmg-CYmmjPHt.js} +1 -1
- package/dist/assets/{index-Dndx7J5m.js → index-sAOH0Fje.js} +5 -5
- package/dist/assets/{mapLoadingInProgressToTreeNode-COnUyXAf-Dpu409lV.js → mapLoadingInProgressToTreeNode-CRwG2DSD-B4LnWZMC.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CDE8V8lh-EuEOGVim.js → mapSectionWithAcOnlyToTreeNode-C9O-C2dp-BYZLhSZo.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Ljk42Rtu-B3q7PP57.js → mapSpacerToTreeNode-5aJk-sLn-DpF_Q8pH.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv95aY-B-DOF2vDOL.js → mapTimeframeBalancesToTreeNode-CnviLujI-Do2_oG27.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-B64chWyJ-BkRVTSHA.js → mapTimeframeBalancesToTreeNode-Cv4d4PqE-C559SZVp.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DFgAA2si-PHb2zPe7.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-yJCRTG35.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BK1XA0gz-Baw5bQLa.js → toCOABalancesWithID-B3yVGPrV-B_BzNOYP.js} +1 -1
- package/dist/assets/{toChartData-D7n7RyVD-B6XNJKRh.js → toChartData-DEW0iT7T-DrkbvIyQ.js} +1 -1
- package/dist/assets/{treasuryColorHelper-tTPJnd8d-BWS_7fHf.js → treasuryColorHelper-13LJ_xhk-LqN_6Xl4.js} +1 -1
- package/dist/assets/{uploadAttachment-By_eR78P-BvqnQwlm.js → uploadAttachment-DVy2pZeJ-X-xSyfvF.js} +1 -1
- package/dist/assets/{uploadReceipts-Dp1dvCjf-DKWW2q1X.js → uploadReceipts-Dp1dvCjf-Bw0_dVvQ.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/CustomerOnboardingContainerPage-Bzjew7MV-Jhbohtye.js +0 -1
package/dist/assets/{BillDetailPage-BNlsd0AF-TTFyOGGT.js → BillDetailPage-CDAh8Jtl-0qBbZ__0.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as Fn,ax as En,d as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP as Gn,O as Yn,y as u,j as t,l as E,fk as st,fl as Hn,o as a,fm as Xn,fn as Jn,aM as b,fo as Qn,aN as $e,fp as qn,bF as dt,bs as ct,dN as pt,cD as mt,cE as ut,cF as yt,gv as ea,gw as ta,gx as na,gy as aa,fu as I,fv as A,fw as $,gz as k,ft as ia,C as ht,h as le,fx as Ot,fy as la,fz as oa,fA as ra,gA as sa,gB as da,aQ as ca,ap as bt,c5 as Te,gC as pa,gD as O,u as r,aj as ma,cg as ua,gE as ya,A as ha,gF as ba,gG as gt,fE as xt,c as ga,dh as xa,cw as fa,b6 as wa,b8 as Ta,s as va,c7 as Lt,gH as Da,ai as Ft,aY as ja,b4 as Ia,bx as Aa,f2 as $a,am as ka}from"./index-Dndx7J5m.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as Ca}from"./liveblocks-8ht9CoL5.js";import{o as Sa,t as Pa}from"./LowBalancePopup-C3XwZy2N-BYYQnFrI.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";const Ba=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"})))),za={formTitle:new ga("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ra,common:{noText:S,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:Oa},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:La}}}}=Yn.getLocalizedStrings(),ve=Ra.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:K,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Ce,isBillPayCommentingEnabled:Se,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Ut,redirectToEditableBillScreen:Gt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Be,deleteBill:Yt,cancelAndDeleteBill:ze,approveOrRejectBill:Re,onAddNewRule:Ht,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Oe=_n(),[nn,U]=p.useState(!1),[Le,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,Q]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:q}=p.useContext(ln),[on,G]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:Y,isLoading:P}=Kn(T,"both",!1),f=Se&&h!=null,We=p.useMemo(()=>h==null?[]:Y.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[Y,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{q(y),G(!1)},[q,G]);p.useEffect(()=>{me?.threadId!=null&&Y.length>0&&!P&&(q(me.threadId),_e(null))},[me,Y,P,q,_e]),Un({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Ue]=p.useState(!1),[Ge,Ye]=p.useState(!1),He=()=>Ve(!1),cn=()=>Ve(!0),Xe=Gn(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),J())},[e,J,Be]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Xe,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&H?.code?H:ne,C=Fa(D,e.transactionDetails),L=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:H?.code!=null&&(ne?.code=="approved"||H.code==="mark_as_paid")?H:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Yt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),de(!1)}},gn={onOkClick:c=>{pe(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},xn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx(Ia,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{q as Fn,ax as En,d as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP as Gn,O as Yn,y as u,j as t,l as E,fk as st,fl as Hn,o as a,fm as Xn,fn as Jn,aM as b,fo as Qn,aN as $e,fp as qn,bF as dt,bs as ct,dN as pt,cD as mt,cE as ut,cF as yt,gv as ea,gw as ta,gx as na,gy as aa,fu as I,fv as A,fw as $,gz as k,ft as ia,C as ht,h as le,fx as Ot,fy as la,fz as oa,fA as ra,gA as sa,gB as da,aQ as ca,ap as bt,c5 as Te,gC as pa,gD as O,u as r,aj as ma,cg as ua,gE as ya,A as ha,gF as ba,gG as gt,fE as xt,c as ga,dh as xa,cw as fa,b6 as wa,b8 as Ta,s as va,c7 as Lt,gH as Da,ai as Ft,aY as ja,b4 as Ia,bx as Aa,f2 as $a,am as ka}from"./index-sAOH0Fje.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as Ca}from"./liveblocks-8ht9CoL5.js";import{o as Sa,t as Pa}from"./LowBalancePopup-CZDcHxyW-BHOAXZjC.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";const Ba=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"})))),za={formTitle:new ga("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ra,common:{noText:S,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:Oa},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:La}}}}=Yn.getLocalizedStrings(),ve=Ra.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:K,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Ce,isBillPayCommentingEnabled:Se,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Ut,redirectToEditableBillScreen:Gt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Be,deleteBill:Yt,cancelAndDeleteBill:ze,approveOrRejectBill:Re,onAddNewRule:Ht,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Oe=_n(),[nn,U]=p.useState(!1),[Le,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,Q]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:q}=p.useContext(ln),[on,G]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:Y,isLoading:P}=Kn(T,"both",!1),f=Se&&h!=null,We=p.useMemo(()=>h==null?[]:Y.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[Y,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{q(y),G(!1)},[q,G]);p.useEffect(()=>{me?.threadId!=null&&Y.length>0&&!P&&(q(me.threadId),_e(null))},[me,Y,P,q,_e]),Un({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Ue]=p.useState(!1),[Ge,Ye]=p.useState(!1),He=()=>Ve(!1),cn=()=>Ve(!0),Xe=Gn(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),J())},[e,J,Be]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Xe,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&H?.code?H:ne,C=Fa(D,e.transactionDetails),L=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:H?.code!=null&&(ne?.code=="approved"||H.code==="mark_as_paid")?H:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Yt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),de(!1)}},gn={onOkClick:c=>{pe(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},xn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx(Ia,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
2
|
${Tt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ie=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,In=ie!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ie?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,qe=e.transactionDetails?.billPayInfo.expectedDepositDate??In,et=st(s?.paymentType?.method??"").replace("Same Day",""),An=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Hn,{paymentTypeLabel:et,onClick:cn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,$n=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Da,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,tt=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,ge=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&tt),nt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&tt),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,fe=e.zeniAssist?.isEligibleForRefund===!0,kn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Cn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||fe)&&kn===!1,we=xe||fe,Sn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,_=D?.code,Pn=!Sn&&(!Qe||D?.code==="processing"&&!B),at=!Qe,it=["small","medium-compact","medium-regular"].includes(l),X=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),F=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Bn=!X&&(_!=="processing"&&nt||_==="processing"&&!B||_==="processing"&&at||g&&F&&Ce),zn=c=>{M.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,Ge,c)},lt=()=>{Ue(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Rn=()=>{Ye(!0),lt()},Mn=()=>{Jt(),Ue(!1),Ge&&Ye(!1)},Nn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),W=Ut&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Xn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,ot=()=>{Ke("approved"),Ee===!0&&Q(!1),W!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},On=()=>{Ke("rejected"),W!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),pe(!0)},rt=p.useRef(null);return t.jsxs(qa,{windowSize:l,ref:rt,children:[t.jsx(Jn,{anchor:"right",open:sn,onClose:He,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Qn,{companyName:qn(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:et,amount:$e("0,0.[00]",be),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:He})}),t.jsxs(ai,{windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(dt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx(Ae,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Oe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),G(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(St,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx($t,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(dt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx(Ae,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),G(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(St,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx($t,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:rt,source:"BillDetailPage"})}),t.jsxs(ii,{windowSize:l,children:[Ee?t.jsx(Sa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:ot,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,dn?t.jsx(Pa,{onCancel:Mn,onProceedForMarkAsPaid:zn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||se?t.jsx(mt,{titleComponent:t.jsx(yt,{children:N.title}),descriptionComponent:t.jsx(ut,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:se?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:bn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:se?Ea(l,e):null}):null,an?t.jsx(mt,{titleComponent:t.jsx(yt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ut,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:gn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||C?t.jsxs(oi,{windowSize:l,children:[l!=="small"?t.jsxs(ri,{windowSize:l,children:[ye,e.isRecurring?t.jsx(Ae,{height:a.sp5,width:a.sp5}):null]}):null,K&&C!=null&&C.code==="deleted"?t.jsx(Pt,{color:C.color,bgColor:C.bgColor,borderColor:C.borderColor,children:C.value}):C?.value===ke.tabsById.overdue?t.jsx(Pt,{color:C.color,bgColor:C.bgColor,borderColor:C.borderColor,children:C.value}):null]}):null,L!=null&&L.code?l==="small"?t.jsx(ea,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ta,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Za(X,e,W),t.jsx(na,{sectionId:aa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Se,isBillPaid:ue,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:j},text:ae.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:j},text:ae.invoiceDate?.format(ve)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:j},text:ae.billDueDate?.format(ve)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:j},text:ae.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(li,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),he.length>0?he.map((c,y)=>{const z=e?.transactionDetails?.lines?.find(Ln=>Ln.id===c.lineId)?.recipientAmount;return t.jsxs(ei,{children:[he.length>1?t.jsx(ti,{windowSize:l,children:t.jsx(ni,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:j},text:z!=null?$e("0,0[.]00",z):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:j},text:c.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",y)}`},children:t.jsx(k,{label:{label:n.category,width:j},text:c.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",y)}`},children:t.jsx(k,{label:{label:n.class,width:j},text:c.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",y)}`},children:t.jsx(k,{label:{label:n.billable,width:j},text:c.billable!=null?wn(c.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:`${y}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",y)}`},children:t.jsx(k,{label:{label:n.customer,width:j},text:c.customer?.name??S,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(si,{windowSize:l,children:[t.jsx(di,{children:n.total}),t.jsx(ci,{children:be!=null?t.jsx(ia,{amount:be,integerStyles:ht.h6Medium.cssObject,decimalStyles:ht.standardMedium.cssObject}):S})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:le.brandColorGoldDark},additionalInfoLabel:W!=null&&w?.code==="pending_approval"?Et.addMoney:W})}),t.jsx(R,{})]}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Zt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Va,{children:la(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?Wa(e.outsideZeniPaymentInfo):st(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:j},text:s.paymentToBankAccount!=null?vn:s.paymentToPI!=null?s.paymentToPI.displayText:Dn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:jn(),additionalInfoLabel:t.jsx(Ka,{children:An})}),$n()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:$({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ra(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:oa(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(yi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(sa,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ft.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(da,{amount:fn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ht,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:_t,signedInUserId:oe?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:qt},historicActivities:e.billHistory.activities}),t.jsx(pi,{})]}),e.transactionDetails?.vendor!=null&&!ue&&!e.transactionDetails.isDeleted?t.jsx(ca,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:V||g,showCancel:!V&&g,cancelBtn:{label:it?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:On,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:_a(V,it),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:V?lt:()=>{W!=null?Q(!0):ot()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:V?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ua,{children:t.jsxs(Qa,{windowSize:l,children:[!X&&Le?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-container"),children:[_!=="processing"&&nt?t.jsx(Z,{onClick:mn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,_==="processing"&&!B?t.jsx(Z,{onClick:un,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,_==="processing"&&at?t.jsx(Z,{onClick:yn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&Ce?t.jsx(Z,{onClick:Rn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(Z,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,fe?t.jsx(Z,{onClick:hn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ja,{windowSize:l,children:[Cn===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:we?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:we,"data-testid":b("other-actions-icon-container"),children:we?t.jsx(xn,{}):t.jsx(Ya,{})})}):null,!X&&ge===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Oa,placement:"top",children:t.jsx(Xa,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ha,{})})}):null,!X&&Pn===!0&&Bn?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Na,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ga,{onClick:()=>re(!Le)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Ca,{id:v,children:t.jsx(pa,{isDrawerOpen:on,allowComposer:!0,drawerTitle:La,threads:Y,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:Nn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>G(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Oe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Fa=(e,x)=>{const g=e?.code;if(e!=null&&g!=null)return x?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&x?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[g].color,bgColor:O[g].bgColor,borderColor:O[g].borderColor}},Ea=(e,x)=>{const g=x.transactionDetails?.recipientTotalAmount;return t.jsxs(hi,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Rt,{children:x.withdrawFrom!=null?Ot(x.withdrawFrom,e):d})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Rt,{children:g!=null?$e("0,0[.]00",g):S})]})]})},_a=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,Wa=e=>{const x=e.paymentMode,g=n.paymentOutsideZeni.offline;if(x==null||x==="other")return g;const K=n.paymentOutsideZeni.paymentModeOptions.find(oe=>oe.value===x)?.label;return`${g} ${Ma} ${K}`},Za=(e,x,g)=>{if(e)return t.jsx(gt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:wt.duplicateWarning.title,description:wt.duplicateWarning.description});if(g!=null){const K=`${x.withdrawFrom?.label??""} ${x.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(gt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",K)}`,description:g.replace("Low balance! ","")})}else return null},Ka=i.div``,Va=i.div``,Ua=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as z,u as $,q as O,O as L,aa as M,aP as W,j as o,aJ as G,cS as J,bF as Q,ad as X,aQ as Z,o as c}from"./index-
|
|
1
|
+
import{y as z,u as $,q as O,O as L,aa as M,aP as W,j as o,aJ as G,cS as J,bF as Q,ad as X,aQ as Z,o as c}from"./index-sAOH0Fje.js";import{b as R,n as h}from"./vendor-Bs1fkIUX.js";import{b as H,f as K,l as j,o as D}from"./FollowStepsSection-DdwEVWhG-XjqeMDlz.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new z($[2],$[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const P=O(),a=L.getLocalizedStrings().commonSetUp.approval,I=L.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:B}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),q=async(i,d)=>{r(d)};return R.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const V=G(d);J(()=>q(U,V))}});return()=>{i.unsubscribe()}}),R.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Q,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(X,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(H,{label:{label:S?I.amountPerBillGreaterLabel:I.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(K,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(Z,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(P)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),D(e.allAttributes),D(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:j},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as I,O as v,j as t,bF as M,P as E,aM as b,y as r,am as B,aN as j,cD as H,cE as G,cF as U,o as i,dd as q,u as l,b8 as F,c as z,b7 as O,h as S,da as V,bx as _,C as K}from"./index-
|
|
1
|
+
import{q as I,O as v,j as t,bF as M,P as E,aM as b,y as r,am as B,aN as j,cD as H,cE as G,cF as U,o as i,dd as q,u as l,b8 as F,c as z,b7 as O,h as S,da as V,bx as _,C as K}from"./index-sAOH0Fje.js";import{n as o,b as X}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},Y=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:$})=>{const[m,x]=X.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=v.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(Z,{windowSize:n,isLastSection:f,children:[t.jsxs(J,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Q,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{y(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,N)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${D}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},N))})}),m?t.jsx(H,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Z=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-DLMTqP9B-967xJFlF.js → BillPayPromoPage-B2YcxWc9-CwLnyiow.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ax as Y,q as f,aP as ee,l as g,O as M,j as e,bF as ie,n as B,aM as C,af as p,o as l,ar as le,_ as se,d as U,aS as L,an as oe,y as re,h as S,cR as te,aT as ae,b9 as ne,u as de}from"./index-
|
|
1
|
+
import{ax as Y,q as f,aP as ee,l as g,O as M,j as e,bF as ie,n as B,aM as C,af as p,o as l,ar as le,_ as se,d as U,aS as L,an as oe,y as re,h as S,cR as te,aT as ae,b9 as ne,u as de}from"./index-sAOH0Fje.js";import{b as u,n as s}from"./vendor-Bs1fkIUX.js";import{x as ce}from"./MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js";import{f as xe}from"./VideoPopup-DJrQQTPq-DoXO-Vwb.js";import{M as z}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./VideoPlayer-ByyqUuhG-DTMNeCaX.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",I="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",pe={midContainerMarginBottom:new re(de[5],44)},me=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-7Z5WhvCj-CIgzKegf.js → BillPaySetUpPage-oJvoWpFu-CYkgRBSH.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as De,q as Oe,aP as V,aa as Re,cS as Ue,O as _e,l as He,aU as Q,j as t,fn as ze,aM as Le,h as qe,y as u,bF as Me,P as Ne,ad as Ge,e6 as Je,bA as Ke,dY as Ye,c5 as Qe,fF as Xe,aQ as Ze,o as L,u as a,am as et,bP as tt}from"./index-
|
|
1
|
+
import{d as De,q as Oe,aP as V,aa as Re,cS as Ue,O as _e,l as He,aU as Q,j as t,fn as ze,aM as Le,h as qe,y as u,bF as Me,P as Ne,ad as Ge,e6 as Je,bA as Ke,dY as Ye,c5 as Qe,fF as Xe,aQ as Ze,o as L,u as a,am as et,bP as tt}from"./index-sAOH0Fje.js";import{b as m,n as g}from"./vendor-Bs1fkIUX.js";import{D as it}from"./HelpButton-BNMy-6ce-WFq-iELy.js";import"./SetUpAccountSection-Bnbi8X23-DL-18RCf.js";import{K as H}from"./SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js";import{f as nt}from"./SpendMgmtSetupAccountSection-de7hEmtE-CX-1PNOC.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DhXRLBEg-DvVrgitE.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js";import"./ChaseOverlay-BC_4vwtb-ZJ37WP7g.js";import"./ChargeCardUtils-BRgkrCTs-DoVoCmwL.js";import"./CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",E="billPayAccount",Bt=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:q,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=De(),i=Oe(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,D=$.link_account.updateStatus,O=$.update_account.updateStatus,F=V(p),J=V(b.fetchState),K=V(D.fetchState),Y=V(O.fetchState),P=Re({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&F==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,F]),m.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||K==="In-Progress"&&D.fetchState==="Completed"||Y==="In-Progress"&&O.fetchState==="Completed")&&P.reset(z(e))},[F,p,P,e,K,D.fetchState,Y,O.fetchState]);const Fe=P.handleSubmit(x=>{y.trackEnableBillPay(),ge()}),Be=async(x,I)=>{const o=I[E];if(x.includes(E)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=N.find(_=>_.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(_=>_.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};m.useEffect(()=>{const x=P.watch((I,{name:o})=>{o!=null&&I!=null&&Ue(()=>Be(o,I))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&q()},[q,J,b.fetchState]);const{commonSetUp:Ie,spendManagement:Ve}=_e.getLocalizedStrings(),{setUp:d}=Ie,{billPaySetup:l}=Ve.billPay,R=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),U=A?.isBillPayEnabled===!0,Ee=R?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=C.mode==="light"?new Q(C.colors.brandColorJadeLight):new Q(C.colors.brandColorJadeDark),$e=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:qe.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!U&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:M,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...P,children:t.jsx("form",{id:Z(X),onSubmit:Fe,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Qe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),R&&!U&&j.length>0?t.jsx(Ze,{formId:Z(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:R&&!U,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as fe,q as Pe,aa as Ce,cS as xe,aU as k,O as be,j as t,y as x,bF as Ae,P as Ie,ad as ve,bA as je,cT as ke,aQ as $e,o as s,hL as Oe,dj as Te,dk as Be,u as b,am as Ee,g$ as Ve,c as Le,h as ze}from"./index-
|
|
1
|
+
import{d as fe,q as Pe,aa as Ce,cS as xe,aU as k,O as be,j as t,y as x,bF as Ae,P as Ie,ad as ve,bA as je,cT as ke,aQ as $e,o as s,hL as Oe,dj as Te,dk as Be,u as b,am as Ee,g$ as Ve,c as Le,h as ze}from"./index-sAOH0Fje.js";import{b as R,n as r}from"./vendor-Bs1fkIUX.js";import{F as De,r as W,o as Me}from"./PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js";import{O as Fe}from"./SetUpAccountSection-Bnbi8X23-DL-18RCf.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js";import"./ChaseOverlay-BC_4vwtb-ZJ37WP7g.js";const p={titleWidth:new x(343,580,726,826),setupDetailsRowGap:new x(12,b[5],b[5]),iconWidthHeight:new x(20,b[4]),subTitlePaddingTop:new x(12,b[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},H="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const P=fe(),i=Pe(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,T=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(a),values:U(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),B=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Te(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Be(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&xe(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=P.mode==="light"?new k(P.colors.brandColorJadeLight):new k(P.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:V}=be.getLocalizedStrings(),ge=V.section.subTitle,{text:ye,subText:Se}=he,L=m.cardsList.length>0,z=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,C=De(w.header,w.titleText,w.protectedCardNo,m);let M;L&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:W(z).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(z).name}),color:new k(E)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[F,we]=R.useState(!1);return t.jsxs(He,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:V.section.title,backgroundColor:P.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:i,children:[t.jsx(Ue,{windowSize:i,children:ge}),ue?t.jsx(_e,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:_(H),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Fe,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:T?.code==="require_info"||T?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:F}),Ne(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:_(H),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:B?.fetchState==="In-Progress",isDisabled:B?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:F,setCardSetupInProgress:we})]})},U=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(n,e.subscriptionBillingAddress)[n]}},We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as V,j as b,cD as X,cE as q,cF as M,j$ as W,l as z,aX as Y}from"./index-
|
|
1
|
+
import{O as V,j as b,cD as X,cE as q,cF as M,j$ as W,l as z,aX as Y}from"./index-sAOH0Fje.js";import{b as _}from"./vendor-Bs1fkIUX.js";import{u as Z}from"./ReviewOverlay-C6Kx7Hfm-IahzUsv3.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:h}=t,u=i==="review",[B,w]=_.useState(!1),[s,v]=_.useState(E(t,u)),[p,j]=_.useState(u),[I,T]=_.useState(0),[f,k]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===I?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),I===s.length&&p&&(j(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(E(t,!1)),()=>{clearInterval(x)}),[s.length,I,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:S}=H(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,h),w(!0)},N={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,h,G(t)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:A,description:$}=J(m,y,R,p),P=t.fetchState==="Completed"&&y===0,D=()=>{r.trackBillPayBulkSubmit(i,g,h),l(i)},U={label:P?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:D,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:F,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(X,{titleComponent:b.jsx(M,{children:f.title}),descriptionComponent:b.jsx(q,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:N,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Z,{title:A,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:O,hideCancel:P}})]})},E=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:Y("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&z.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},G=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=W([...l,e.isRecurring?"recurring":"one-time"])}),l},H=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},J=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:h,do_:u,does:B}=n.texts,w=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:h)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},K=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,G as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as h,j as s,aM as b,o as r}from"./index-
|
|
1
|
+
import{q as h,j as s,aM as b,o as r}from"./index-sAOH0Fje.js";import{n as p}from"./vendor-Bs1fkIUX.js";import{o as l}from"./commonDimensions-C32v1F7H-CiAEfJl2.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=h();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(a,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const a=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ct,q as dt,aP as ve,j as a,O as Ve,af as G,aa as mt,d4 as ut,l as L,az as pt,cS as ft,aX as De,aO as $e,n as yt,bF as ht,aM as gt,cT as xt,cD as St,cE as wt,cF as Ct,P as Tt,ad as bt,aQ as vt,o,y as j,an as Fe,gl as Dt,fV as ke,dj as $t,_ as kt,A as It,am as Le,c as Pt,H as jt,u as k}from"./index-Dndx7J5m.js";import{b as O,n as d}from"./vendor-Bs1fkIUX.js";import{b as Ot,s as Nt}from"./CompanyOfficerDetailsSection-BpiZ5rDk-C5NsYHrL.js";import{r as Vt}from"./verification-CW6uEyev-CQXAdM_w.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./LabeledAddressValueField-C6oH2tzZ-Cq8P-6Au.js";import"./LabeledCreatableSingleSelectField-BVxws_IH-DHa5ei0J.js";import"./LabeledDocumentField-DwPfHt2N-C-08ZUG5.js";const x={width:new j(343,580,726),titleWidth:new j(343,580,726,826),subTitlePaddingTop:new j(12,k[3]),subTitlePaddingBottom:new j(k[3],k[3]),verificationDetailsRowGap:new j(12,k[5],k[5]),termsPaddingLeftRight:new j(k[0],k[3])},Ft={stepTitle:new Pt("h6Regular","h5Regular")},Ie="businessVerificationPage",T="companyDetails",b="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Lt,currency:Pe,footer:je,strings:{empty:At}}}=Ve.getLocalizedStrings(),ha=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:N,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:B,productType:y,allIndustries:E,companyTitles:z,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:X=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:V,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:Xe,onExecuteTreasuryTransfer:qe})=>{const Qe=ct(),m=dt(),{updateStatus:U,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,He=ve(U.fetchState),M=F?.company.company.featuresActivationInfo.connectedAccountProvider,Je=M==="unit"?a.jsxs(Gt,{children:[i.terms.term1,a.jsx(G,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(G,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(G,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(G,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ke,q]=O.useState(!1),[W,oe]=O.useState("save"),[Q,Ye]=O.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:_t(t,E,z,A)}),{isValid:Ze}=u.formState,H=F?.company.company.companyBillPayInfo,J=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?J?.companyVerificationStatus:H?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,et=()=>{const e=w[D],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,me=e?.titleAtCompany,ue=e?.documentTypeSelectedForVerification,pe=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?L.getFormattedAddress(fe):void 0,he=l?.companyDescription,Z=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Ce=ee?.firstName,Te=ee?.lastName,be=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&Z!=null&&xe!=null&&Se!=null&&ge!=null&&Z!=null&&we!=null&&Ce!=null&&Te!=null&&be!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:Z,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:Te,email:be},y,n?"Settings":void 0)},tt=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${b}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${T}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${T}.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||K!=null&&K?.length>0)return u.trigger(`${b}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(W!=="verification"&&oe("verification"),M==="unit"&&w[D]?.isPhoneVerified!==!0){u.setError(`${b}.${v}.phone`,{type:"custom"});return}const e=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(s)).fetchState!=="In-Progress"&&Ze&&(et(),Re?.(D),X===!0&&qe?.())}),st=async(e,s)=>{e.includes(T)?Ue?.(s[T]):e.includes(b)&&We?.(s[b])},nt=O.useCallback(pt((e,s)=>{st(e,s)},300),[]);O.useEffect(()=>{const e=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${T}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),K=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{q(!1),V();const e=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${T}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${b}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Me?.(e)},onCancelClick:()=>{q(!1)}},lt=De($e(p),p,Pe.currencySymbol).toUpperCase(),Y=P?.code==="pending_review"||P?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&He==="In-Progress"&&U.fetchState==="Completed"?a.jsxs(Yt,{children:[a.jsxs(Zt,{children:[a.jsx(Vt,{}),a.jsx(ea,{windowSize:m,children:X===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Kt,{isReadonly:!1,children:X===!0?i.submittedDescriptionWithTransfer.replace("__amount__",De($e(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(yt,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Bt,{isSettings:n,children:[a.jsx(ht,{title:h&&S===!0?At:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{xt(u.formState.dirtyFields)?q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Xe,rightSideComponent:h?a.jsx(ta,{"data-testid":gt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(St,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(wt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Rt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?Lt.infoText.businessVerification:i.title}),N==="In-Progress"||N==="Not-Started"?a.jsx(Ut,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(bt,{...u,children:a.jsxs("form",{id:Oe(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(Et,{children:[a.jsxs(Xt,{windowSize:m,children:[a.jsx(qt,{windowSize:m,children:Y?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Y&&a.jsx(Qt,{children:a.jsxs(Ht,{children:[a.jsx(Ne,{}),de&&a.jsx(Ne,{}),a.jsx(Jt,{})]})})]}),a.jsx(Ae,{isReadonly:Y,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Mt,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:A,allOfficers:K??[],sectionId:b,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:B,isPopupOpen:Q,openPopup:Ye,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Nt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:T,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":I,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:E})]}),y==="zeni_accounts"?a.jsx(Wt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),N==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":H?.businessVerificationStatus?.code!=="pending_review"&&H?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Oe(Ie),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="verification"&&U.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="save"&&U.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[D],s=l?.primaryContactLocalData;W!=="save"&&oe("save");const c=e?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(D))}}},helperText:Je,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},_t=(t,A,N,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=t,E=Ve.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[T]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[b]:Object.values(B).map((p,I)=>{const n=p,h=Dt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:N?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Oe=t=>`${t}_form`,Bt=d.div`
|
|
1
|
+
import{d as ct,q as dt,aP as ve,j as a,O as Ve,af as G,aa as mt,d4 as ut,l as L,az as pt,cS as ft,aX as De,aO as $e,n as yt,bF as ht,aM as gt,cT as xt,cD as St,cE as wt,cF as Ct,P as Tt,ad as bt,aQ as vt,o,y as j,an as Fe,gl as Dt,fV as ke,dj as $t,_ as kt,A as It,am as Le,c as Pt,H as jt,u as k}from"./index-sAOH0Fje.js";import{b as O,n as d}from"./vendor-Bs1fkIUX.js";import{b as Ot,s as Nt}from"./CompanyOfficerDetailsSection-CJKyxEnf-BshC7d2B.js";import{r as Vt}from"./verification-CW6uEyev-CQXAdM_w.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js";import"./LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js";import"./LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js";const x={width:new j(343,580,726),titleWidth:new j(343,580,726,826),subTitlePaddingTop:new j(12,k[3]),subTitlePaddingBottom:new j(k[3],k[3]),verificationDetailsRowGap:new j(12,k[5],k[5]),termsPaddingLeftRight:new j(k[0],k[3])},Ft={stepTitle:new Pt("h6Regular","h5Regular")},Ie="businessVerificationPage",T="companyDetails",b="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Lt,currency:Pe,footer:je,strings:{empty:At}}}=Ve.getLocalizedStrings(),ha=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:N,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:B,productType:y,allIndustries:E,companyTitles:z,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:X=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:V,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:Xe,onExecuteTreasuryTransfer:qe})=>{const Qe=ct(),m=dt(),{updateStatus:U,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,He=ve(U.fetchState),M=F?.company.company.featuresActivationInfo.connectedAccountProvider,Je=M==="unit"?a.jsxs(Gt,{children:[i.terms.term1,a.jsx(G,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(G,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(G,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(G,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ke,q]=O.useState(!1),[W,oe]=O.useState("save"),[Q,Ye]=O.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:_t(t,E,z,A)}),{isValid:Ze}=u.formState,H=F?.company.company.companyBillPayInfo,J=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?J?.companyVerificationStatus:H?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,et=()=>{const e=w[D],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,me=e?.titleAtCompany,ue=e?.documentTypeSelectedForVerification,pe=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?L.getFormattedAddress(fe):void 0,he=l?.companyDescription,Z=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Ce=ee?.firstName,Te=ee?.lastName,be=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&Z!=null&&xe!=null&&Se!=null&&ge!=null&&Z!=null&&we!=null&&Ce!=null&&Te!=null&&be!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:Z,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:Te,email:be},y,n?"Settings":void 0)},tt=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${b}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${T}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${T}.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||K!=null&&K?.length>0)return u.trigger(`${b}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(W!=="verification"&&oe("verification"),M==="unit"&&w[D]?.isPhoneVerified!==!0){u.setError(`${b}.${v}.phone`,{type:"custom"});return}const e=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(s)).fetchState!=="In-Progress"&&Ze&&(et(),Re?.(D),X===!0&&qe?.())}),st=async(e,s)=>{e.includes(T)?Ue?.(s[T]):e.includes(b)&&We?.(s[b])},nt=O.useCallback(pt((e,s)=>{st(e,s)},300),[]);O.useEffect(()=>{const e=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${T}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),K=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{q(!1),V();const e=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${T}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${b}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Me?.(e)},onCancelClick:()=>{q(!1)}},lt=De($e(p),p,Pe.currencySymbol).toUpperCase(),Y=P?.code==="pending_review"||P?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&He==="In-Progress"&&U.fetchState==="Completed"?a.jsxs(Yt,{children:[a.jsxs(Zt,{children:[a.jsx(Vt,{}),a.jsx(ea,{windowSize:m,children:X===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Kt,{isReadonly:!1,children:X===!0?i.submittedDescriptionWithTransfer.replace("__amount__",De($e(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(yt,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Bt,{isSettings:n,children:[a.jsx(ht,{title:h&&S===!0?At:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{xt(u.formState.dirtyFields)?q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Xe,rightSideComponent:h?a.jsx(ta,{"data-testid":gt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(St,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(wt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Rt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?Lt.infoText.businessVerification:i.title}),N==="In-Progress"||N==="Not-Started"?a.jsx(Ut,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(bt,{...u,children:a.jsxs("form",{id:Oe(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(Et,{children:[a.jsxs(Xt,{windowSize:m,children:[a.jsx(qt,{windowSize:m,children:Y?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Y&&a.jsx(Qt,{children:a.jsxs(Ht,{children:[a.jsx(Ne,{}),de&&a.jsx(Ne,{}),a.jsx(Jt,{})]})})]}),a.jsx(Ae,{isReadonly:Y,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Mt,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:A,allOfficers:K??[],sectionId:b,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:B,isPopupOpen:Q,openPopup:Ye,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Nt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:T,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":I,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:E})]}),y==="zeni_accounts"?a.jsx(Wt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),N==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":H?.businessVerificationStatus?.code!=="pending_review"&&H?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Oe(Ie),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="verification"&&U.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="save"&&U.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[D],s=l?.primaryContactLocalData;W!=="save"&&oe("save");const c=e?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(D))}}},helperText:Je,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},_t=(t,A,N,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=t,E=Ve.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[T]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[b]:Object.values(B).map((p,I)=>{const n=p,h=Dt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:N?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Oe=t=>`${t}_form`,Bt=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as x,O as w,j as r,C,c as $,o as s,H as y}from"./index-
|
|
1
|
+
import{q as x,O as w,j as r,C,c as $,o as s,H as y}from"./index-sAOH0Fje.js";import{n as l,b as d}from"./vendor-Bs1fkIUX.js";const H=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:t}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},S=({cardDetail:e,forDetailPage:a,styles:h})=>{const u=x(),m=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let o=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const c=n.strings.space+t.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,g=e.status.code==="request_on_hold"||!a?o:c,i=e.type.code.includes("physical");return r.jsxs(v,{style:h,windowSize:u,forDetailPage:a,className:"cardName",title:`${g}`,children:[m,r.jsx(b,{}),o,i&&!a?r.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:c,i&&a?r.jsx(p,{}):null]})},v=l(y)`
|
|
2
2
|
${e=>e.forDetailPage?{...C.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as k,q as f,j as t,bF as te,O as w,ft as P,C as u,b3 as H,cd as ie,o as i,h as B,y as h,am as v,dB as oe,l as y,u as l,bQ as re,bR as ae,bh as se,bg as ne,aX as de,bS as le,bU as ce,jc as he,aN as O,c3 as pe,aM as z,ai as $,jd as J,je as Q,iW as me,cM as ge,cP as xe,an as T,iX as we,iY as ue}from"./index-
|
|
1
|
+
import{d as k,q as f,j as t,bF as te,O as w,ft as P,C as u,b3 as H,cd as ie,o as i,h as B,y as h,am as v,dB as oe,l as y,u as l,bQ as re,bR as ae,bh as se,bg as ne,aX as de,bS as le,bU as ce,jc as he,aN as O,c3 as pe,aM as z,ai as $,jd as J,je as Q,iW as me,cM as ge,cP as xe,an as T,iX as we,iY as ue}from"./index-sAOH0Fje.js";import{n as o,w as R,b as V}from"./vendor-Bs1fkIUX.js";import{q as ye}from"./InsightsSection-JIKb9lz3-CSUvMdaP.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./NavigationDots-BxPgEW_p-CnLRJgGA.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ve=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as tt,q as Le,ax as It,a9 as Dt,fX as wr,l as nt,hF as ki,aU as Qe,O as ke,fY as xr,aP as et,j as t,h3 as ji,bF as Li,u as l,g4 as Sr,aN as Ge,aM as K,o as a,c5 as Qt,h as d,i_ as yr,C as U,cD as Ii,i$ as Di,fn as Ai,gW as Ti,bJ as Ri,bZ as br,aS as ea,j0 as Ei,j1 as $r,y as T,bP as vr,b9 as ta,b as Fi,aT as kr,a$ as Pi,j2 as zi,j3 as Mi,b6 as aa,ai as ge,eT as Vi,iR as Oi,M as Ct,fZ as jr,P as gt,b3 as Hi,dG as Ni,cH as Bi,cE as Wi,di as Ui,hC as _i,am as Oe,c7 as Zi,aY as Wt,j4 as Ut,j5 as Gi,c as Fa,H as Lr,b8 as Yi,j6 as qi,f_ as ut,dN as Pa,f9 as Xi,n as Ir,cM as Dr,iU as Ki,ca as Ji,s as Ar,j7 as Qi,aw as kt,cd as za,bB as eo,dx as to,an as dt,fU as ao,ar as ro,A as io,bL as oo,j8 as At,fB as no,c3 as so,j9 as Tr,ja as Rr,gI as Er,jb as Lt,ig as Fr,iW as co,cP as lo,ez as Pr,iX as ho,iY as po,e6 as uo,dd as mo,eF as go,cu as Co,cv as fo}from"./index-
|
|
1
|
+
import{d as tt,q as Le,ax as It,a9 as Dt,fX as wr,l as nt,hF as ki,aU as Qe,O as ke,fY as xr,aP as et,j as t,h3 as ji,bF as Li,u as l,g4 as Sr,aN as Ge,aM as K,o as a,c5 as Qt,h as d,i_ as yr,C as U,cD as Ii,i$ as Di,fn as Ai,gW as Ti,bJ as Ri,bZ as br,aS as ea,j0 as Ei,j1 as $r,y as T,bP as vr,b9 as ta,b as Fi,aT as kr,a$ as Pi,j2 as zi,j3 as Mi,b6 as aa,ai as ge,eT as Vi,iR as Oi,M as Ct,fZ as jr,P as gt,b3 as Hi,dG as Ni,cH as Bi,cE as Wi,di as Ui,hC as _i,am as Oe,c7 as Zi,aY as Wt,j4 as Ut,j5 as Gi,c as Fa,H as Lr,b8 as Yi,j6 as qi,f_ as ut,dN as Pa,f9 as Xi,n as Ir,cM as Dr,iU as Ki,ca as Ji,s as Ar,j7 as Qi,aw as kt,cd as za,bB as eo,dx as to,an as dt,fU as ao,ar as ro,A as io,bL as oo,j8 as At,fB as no,c3 as so,j9 as Tr,ja as Rr,gI as Er,jb as Lt,ig as Fr,iW as co,cP as lo,ez as Pr,iX as ho,iY as po,e6 as uo,dd as mo,eF as go,cu as Co,cv as fo}from"./index-sAOH0Fje.js";import{b as o,n as r,i as we,w as wo,k as zr}from"./vendor-Bs1fkIUX.js";import{j as xo}from"./NavigationDots-BxPgEW_p-CnLRJgGA.js";import{L as So,H as ot,U as Ma,M as yo,F as bo,_ as $o}from"./ChargeCardUtils-BRgkrCTs-DoVoCmwL.js";import{A as vo,i as ko,a as jo,l as Lo,r as Io,t as Do,n as Ao}from"./add-to-wallet-DgdBD8_G-XP_wmSR7.js";import{j as To}from"./CardNumberSubText-CmhH95Ff-CLBGKyAX.js";import{r as Mr}from"./mui-Ty75qFQF.js";import{f as Vr}from"./uploadReceipts-Dp1dvCjf-Bw0_dVvQ.js";import{N as Ro,L as Eo,k as Fo,z as Po}from"./LockCardPage-DYfgK11k-CA2sqFlt.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./RoleWithToolTip-BqI6M0x_-CwUqJeb5.js";const Or=ke.getLocalizedStrings().spendManagement.chargeCard,zo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,appleWalletLink:k,googleWalletLink:I,style:p,showDrawerAnimation:E,setWalletType:y,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Dt().analytics,{isIPadScreen:Y}=zi(),{isAndroidScreen:J}=Mi(),_=It(),D=nt.hasChargeCardAdminLevelAccess(_.loggedInUserRoleMap);return t.jsx(Mo,{style:p,children:Y===!0?t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(k,"_blank")}}):J===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(I,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Jt,{onClick:()=>{y("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),O(!0)}}),t.jsx(Kt,{onClick:()=>{y("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),O(!0)}})]})})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Ir,{prefixIcon:t.jsx(Vo,{}),label:Or.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":K("add-to-google-wallet-button")})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Ir,{prefixIcon:t.jsx(Oo,{}),label:Or.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":K("add-to-apple-wallet-button")})},Mo=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 Ga,aP as N,ax as Ya,g3 as qa,l as te,f_ as U,q as Le,O as Pe,o as a,d as Xt,j as t,bF as Ha,gh as Ja,ft as ae,C as D,c5 as rt,h as m,aN as he,aX as it,aM as nt,y as V,ai as ie,c as Xa,H as Ka,d8 as Za,au as Kt,bP as Qa,a$ as st,aS as er,an as dt,aa as tr,gZ as ar,db as rr,ap as ir,ad as or,gm as nr,n as Tt,u as O,dq as sr,ar as dr,am as cr,_ as lr,d7 as hr,bz as ur,c7 as mr}from"./index-
|
|
1
|
+
import{a9 as Ga,aP as N,ax as Ya,g3 as qa,l as te,f_ as U,q as Le,O as Pe,o as a,d as Xt,j as t,bF as Ha,gh as Ja,ft as ae,C as D,c5 as rt,h as m,aN as he,aX as it,aM as nt,y as V,ai as ie,c as Xa,H as Ka,d8 as Za,au as Kt,bP as Qa,a$ as st,aS as er,an as dt,aa as tr,gZ as ar,db as rr,ap as ir,ad as or,gm as nr,n as Tt,u as O,dq as sr,ar as dr,am as cr,_ as lr,d7 as hr,bz as ur,c7 as mr}from"./index-sAOH0Fje.js";import{b as c,n as r,i as ct,k as pr}from"./vendor-Bs1fkIUX.js";import{X as Cr}from"./SpendManagementSection-kucZgC-H-DLgSRXEX.js";import{D as re,a as gr,l as br}from"./ChargeCardListTable-BGWV4zJl-fPTlw7hA.js";import{ChargeCardPromoUserContent as fr}from"./ChargeCardPromoPage-CPEaGOL3-BJBmWN7Q.js";import{N as xr,J as Sr}from"./PromoBaseCards-BAPolzxE-DLtmx-3v.js";import{L as Dt,N as Rt,k as yr,z as wr}from"./LockCardPage-DYfgK11k-CA2sqFlt.js";import{r as kr,i as $r}from"./graphic-no-data-net-burn-l-CzmycA0m-W-GGrHSF.js";import{t as vr,o as Ir}from"./arrow-south-east-round-PEovUgvH-DnzbA_s-.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./Menu-B6iTf2H7-Cqx4dVPp.js";import"./RoleWithToolTip-BqI6M0x_-CwUqJeb5.js";import"./CardNumberSubText-CmhH95Ff-CLBGKyAX.js";import"./ChargeCardUtils-BRgkrCTs-DoVoCmwL.js";import"./MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js";import"./NavigationDots-BxPgEW_p-CnLRJgGA.js";import"./usp-line-BBd1wKwW-ZlUrfnG1.js";const lt={infoSubheadingTextMarginTop:new V(O[0],O[0]),cardsMinWidth:new V(343,353)},Mt=Pe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Bt=({cardPromoType:e,cardText:l,header:u,title:d,subTitle:n,slidingTextList:p,onClick:E})=>{const M=Le();return t.jsxs(Ar,{windowSize:M,cardPromoType:e,"data-testid":nt("list-page-promo-card",e),onClick:()=>E(e),children:[t.jsxs(Zt,{children:[t.jsxs(ea,{children:[t.jsx(Qt,{children:u}),t.jsx(Er,{children:d}),t.jsx(Dr,{children:n})]}),t.jsxs(Rr,{children:[t.jsx(Mr,{}),p.length>0&&t.jsx(ot,{slideUpCount:p.length,children:p.map((_,B)=>t.jsx(ta,{children:_},`card-promo-${B.toString()}`))}),t.jsx(Br,{})]})]}),t.jsx(Nr,{children:t.jsx(xr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(zr,{children:t.jsx(Sr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Nt=({cardType:e,header:l,title:u,creditLimit:d,onCreateNowClick:n})=>{const p=Le();return t.jsx(Lr,{windowSize:p,cardType:e,children:t.jsxs(Pr,{children:[t.jsxs(ea,{children:[t.jsx(Qt,{children:l}),t.jsx(Tr,{children:t.jsx(Fr,{children:u})}),t.jsx(Or,{windowSize:p,children:t.jsxs(_r,{windowSize:p,onClick:()=>n(e),"data-testid":nt("total-cashback-info"),children:[t.jsx(ta,{children:Mt.createNow}),t.jsx(Ur,{})]})})]}),e==="creditCard"?t.jsxs(Vr,{children:[t.jsx(Wr,{children:Mt.creditLimit}),t.jsx(Gr,{children:d})]}):null]})})},jr=e=>{const l=e-1;let u=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,cr as ni,aa as li,O as ne,ad as di,q as ie,ax as ye,a9 as ci,d as Ae,fX as hi,iM as pi,iN as ui,iO as mi,aQ as gi,o as i,aM as G,cA as xi,C as Be,h as I,b3 as wi,cH as Ci,iP as fi,iQ as Si,c5 as Se,bZ as yi,aS as ki,y as C,eT as vi,b9 as $i,iR as ji,aT as bi,M as Ii,ai as ee,fZ as Li,an as Y,am as Z,u as p,d3 as Ai,dc as Fi,iS as zi,iT as Pi,c as ft,ca as St,iU as yt,iV as Ri,c3 as Bi,cM as Ye,dN as Di,dO as q,aN as de,cJ as kt,P as vt,iW as _i,cP as Ei,iG as Ze,bP as $t,bX as jt,iX as Ti,iY as Oi,aU as $e,bx as Vi,cb as Ni,cc as Mi,iZ as Ui}from"./index-Dndx7J5m.js";import{w as he,b as f,n as o,i as Je}from"./vendor-Bs1fkIUX.js";import{P as Oe}from"./Menu-C-o9HER2-BsRmDqsM.js";import{T as bt}from"./RoleWithToolTip-BdIHsErU-B-2r4mdL.js";import{j as Ve}from"./CardNumberSubText-DVfY641B-D02mvfUY.js";import{_ as It}from"./ChargeCardUtils-CHhHodZN-Dxh33JDX.js";const ge=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=ne.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Xe={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?[{...Qe,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Qe,Xe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:b}}=ne.getLocalizedStrings(),se={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:y,onChargeCardRowClick:$,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[S,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),L=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=L||N,v=ie(),E=!!ye().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{$(a.id,y)},[a.id]),T=It(a)/a.limit.amount*100,U=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=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:de("0,0.[00]",H),className:"amountToUtilize",children:de("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),J=a.type.code,_=b.cardList.tooltip[J],le=_!=null?U?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Xi,{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(kt,{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:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),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(bt,{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(So,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:b.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(vt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(Se,{display:"flex",title:le,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"&&!U?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":G("send-reminder",a.id),children:b.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:de("0,0.[00]",a.limit),children:de("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",j=l.length>0;return xe&&t.jsx(Se,{open:S&&!h&&!j,variant:"standard",title:b.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(At,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{j||m(Fe)},isMenuOpen:h&&!j,menuIconStyles:{height:"auto",cursor:j?"not-allowed":"pointer",opacity:j?.5:1,pointerEvents:j?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},At=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:b.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(z,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:b.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Ae(),d=Yi(e,r),c=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Yi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},W=o(Z)`
|
|
1
|
+
import{j as t,cr as ni,aa as li,O as ne,ad as di,q as ie,ax as ye,a9 as ci,d as Ae,fX as hi,iM as pi,iN as ui,iO as mi,aQ as gi,o as i,aM as G,cA as xi,C as Be,h as I,b3 as wi,cH as Ci,iP as fi,iQ as Si,c5 as Se,bZ as yi,aS as ki,y as C,eT as vi,b9 as $i,iR as ji,aT as bi,M as Ii,ai as ee,fZ as Li,an as Y,am as Z,u as p,d3 as Ai,dc as Fi,iS as zi,iT as Pi,c as ft,ca as St,iU as yt,iV as Ri,c3 as Bi,cM as Ye,dN as Di,dO as q,aN as de,cJ as kt,P as vt,iW as _i,cP as Ei,iG as Ze,bP as $t,bX as jt,iX as Ti,iY as Oi,aU as $e,bx as Vi,cb as Ni,cc as Mi,iZ as Ui}from"./index-sAOH0Fje.js";import{w as he,b as f,n as o,i as Je}from"./vendor-Bs1fkIUX.js";import{P as Oe}from"./Menu-B6iTf2H7-Cqx4dVPp.js";import{T as bt}from"./RoleWithToolTip-BqI6M0x_-CwUqJeb5.js";import{j as Ve}from"./CardNumberSubText-CmhH95Ff-CLBGKyAX.js";import{_ as It}from"./ChargeCardUtils-BRgkrCTs-DoVoCmwL.js";const ge=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=ne.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Xe={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?[{...Qe,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Qe,Xe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:b}}=ne.getLocalizedStrings(),se={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:y,onChargeCardRowClick:$,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[S,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),L=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=L||N,v=ie(),E=!!ye().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{$(a.id,y)},[a.id]),T=It(a)/a.limit.amount*100,U=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=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:de("0,0.[00]",H),className:"amountToUtilize",children:de("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),J=a.type.code,_=b.cardList.tooltip[J],le=_!=null?U?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Xi,{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(kt,{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:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),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(bt,{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(So,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:b.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(vt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(Se,{display:"flex",title:le,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"&&!U?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":G("send-reminder",a.id),children:b.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:de("0,0.[00]",a.limit),children:de("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",j=l.length>0;return xe&&t.jsx(Se,{open:S&&!h&&!j,variant:"standard",title:b.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(At,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{j||m(Fe)},isMenuOpen:h&&!j,menuIconStyles:{height:"auto",cursor:j?"not-allowed":"pointer",opacity:j?.5:1,pointerEvents:j?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},At=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:b.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(z,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:b.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Ae(),d=Yi(e,r),c=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Yi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},W=o(Z)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(Z)`
|
|
4
4
|
color: ${I.important};
|