@zeniai/web-cockpit-ui 1.14.91-dev-betaRR0 → 1.14.92-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-B6sY0jN6-Dv_4G1XI.js → ACHDetailsPage-B6sY0jN6-BewHWiw_.js} +1 -1
- package/dist/assets/{AIPerformancePage-BWK9fXrz-tS1FxKid.js → AIPerformancePage-BWK9fXrz-XnvE7-6d.js} +1 -1
- package/dist/assets/{AccountInfoPage-DfT5DDiZ-CV2_yTPc.js → AccountInfoPage-DfT5DDiZ-DND7ENQF.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-nUi26Aww-CUuk_20a.js → AccountInfoPageContent-nUi26Aww-Bwa-HIUO.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BROj4bmE-Cfoe0YA9.js → AccountLockedInfoModal-BROj4bmE-DDKXU8OA.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-C-3FFCQZ-CxBX6qm4.js → AccountReconDetailsDrawerPage-C-3FFCQZ-D-TpqzuY.js} +1 -1
- package/dist/assets/{AccountRow-BM2kGWyR-CJCg6x0x.js → AccountRow-BM2kGWyR-CEX7zEFS.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CNCG5uPJ-m2eUaU2L.js → AccountsPromoCardStack-CNCG5uPJ-Y2aCPflf.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-BuAtFO1w-B9URXppK.js → AddAddressForCardDrawer-BuAtFO1w-e0LZrU5l.js} +1 -1
- package/dist/assets/{AddToWalletPage-DyrcWdBZ--nr8n_4Z.js → AddToWalletPage-DyrcWdBZ-CkK2fnuE.js} +1 -1
- package/dist/assets/{AgingReportsPage-CmluxKG3-BApj252U.js → AgingReportsPage-CmluxKG3-B2hpJNM3.js} +1 -1
- package/dist/assets/{AllUserItems-CVZZU-J3-COeMV7u0.js → AllUserItems-CVZZU-J3-Ce2827d_.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CoNxqskm-0EjHKnBi.js → ApAgingDetailPage-CoNxqskm-Bna_-NVA.js} +1 -1
- package/dist/assets/{AppBasePage-CTGNzUtN-BfaGtOzk.js → AppBasePage-CTGNzUtN--WSyuM8w.js} +1 -1
- package/dist/assets/{AppDrawerContent-59dQVUxu-BnKh28FR.js → AppDrawerContent-59dQVUxu-Bv7_BAFF.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-XEW5sdNg-LVlVZSHT.js → ApprovalRulesSettingsPage-XEW5sdNg-DmNI-bwP.js} +1 -1
- package/dist/assets/{ArAgingChart-D3Ym4gVE-DsJpAb8n.js → ArAgingChart-D3Ym4gVE-DmsLk005.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BLEJSLJJ-DBAkqt03.js → ArAgingDetailPage-BLEJSLJJ-C4CejQvS.js} +1 -1
- package/dist/assets/{AttachmentView-DSP80cjm-D7w4ZtT4.js → AttachmentView-DSP80cjm-BrHb-fdX.js} +1 -1
- package/dist/assets/{BankAccountSection-DRrNcA79-D0y5RgB_.js → BankAccountSection-DRrNcA79-DN0L_Nus.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Ub-gsfhE-pvCiKI7-.js → BankAccountWarningSection-Ub-gsfhE-CWRw85Ya.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-BcTtJTbg-ehD3_4Dh.js → BankConnectionsSettingsPage-BcTtJTbg-Cq7UhfIX.js} +1 -1
- package/dist/assets/{BillDetailPage-D7AQyxwr-e7SQTUJW.js → BillDetailPage-D7AQyxwr-C4hQ51aV.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-BQWGENO8-qq4pmey1.js → BillPayApprovalRuleDetailPage-BQWGENO8-UqNryn1Y.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BbA1Nwqe-3MsdZySS.js → BillPayApprovalRulesPage-BbA1Nwqe-8oC6drGE.js} +1 -1
- package/dist/assets/{BillPayPromoPage-DSTS_vBW-Ce9u0nsw.js → BillPayPromoPage-DSTS_vBW-D4bhyD9i.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CvlVPVCA-CCbbdiQc.js → BillPaySetUpPage-CvlVPVCA-CckOfR6h.js} +1 -1
- package/dist/assets/{BillingSettingsPage-nKpHtd4C-DLiPc2FT.js → BillingSettingsPage-nKpHtd4C-BrQxt-Or.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DNHAoceL-CthJ8Dd6.js → BillsBulkReviewDrawerPage-DNHAoceL-CcLmGKWP.js} +1 -1
- package/dist/assets/{BoxItem-Bjv3WNXO-d_9opxkd.js → BoxItem-Bjv3WNXO-CbkK_BvO.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-Bj4D9bX2-DWX5ckwL.js → BusinessVerificationPage-Bj4D9bX2-CSqpS47f.js} +1 -1
- package/dist/assets/{CardNumberSubText-BYY-Inxd-VoZJjuBC.js → CardNumberSubText-BYY-Inxd-B5eDSuWq.js} +1 -1
- package/dist/assets/{CashbackDetailPage-D9UiTqp9-9Lz5t64N.js → CashbackDetailPage-D9UiTqp9-CYWVGaEH.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-C5EdiIyl-C4UWTuR2.js → ChargeCardDetailPage-C5EdiIyl-BRwuM_9a.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DZwz1qoD-B146-EXW.js → ChargeCardListPage-DZwz1qoD-CqjW0D5U.js} +1 -1
- package/dist/assets/{ChargeCardListTable-D5B05Z1F-BBBvhTcZ.js → ChargeCardListTable-D5B05Z1F-D4hpaga1.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CDJMtGJb-3FYfKocS.js → ChargeCardPromoPage-CDJMtGJb-hssoPQjs.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-CVV24gS9-BSJi9V_M.js → ChargeCardSetupPage-CVV24gS9-BAOQ2Xly.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CmjBoi5e-maH5VKYN.js → ChargeCardStatementsPage-CmjBoi5e-DLlPm7j6.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-CYOhT5Qz-KAp7o68o.js → CheckDepositDrawerPage-CYOhT5Qz-NvWlDiXp.js} +1 -1
- package/dist/assets/{CollapsableReportTable-hL_Ycouc-CWDILu02.js → CollapsableReportTable-hL_Ycouc-uf2_k_Pr.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-DR_6TlQa-CaPRdQzP.js → CompanyOfficerDetailsSection-DR_6TlQa-SwPBTgrA.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B4chn7-Q-DdxULjSC.js → CompanyPassportCard-B4chn7-Q-Bv_vr7JG.js} +1 -1
- package/dist/assets/{CompanyPassportPage-oT9HnnPQ-Ca6G5119.js → CompanyPassportPage-oT9HnnPQ-BroxBLc-.js} +1 -1
- package/dist/assets/{CompleteProfile-BgH4v76Z-J-mh56N2.js → CompleteProfile-BgH4v76Z-CN661m7_.js} +1 -1
- package/dist/assets/{ConfettiBurst-Cl6jHJ8H-C9SoFqPe.js → ConfettiBurst-Cl6jHJ8H-gdYynPR6.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CW-u7pJU-Bzg24rp1.js → CreateOrEditVendorPage-CW-u7pJU-D_V5jy6j.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-D30M7ol4-CwaBYQLR.js → CreditCardPaymentDrawerPage-D30M7ol4-Cmy98i97.js} +1 -1
- package/dist/assets/{CurrencySelectField-DOCEstMc-BkHxR5HA.js → CurrencySelectField-DOCEstMc-DLDifnD2.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-DMPNjFL_-TbnD-4OG.js → CustomerOnboardingActivationPage-DMPNjFL_-DXtNUrdA.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-DTN0ucTw.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CBYo4VQn-BujXWuJC.js → CustomerOnboardingDetailPageSkeleton-CBYo4VQn-lNg5MP87.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-EBVRCYfJ-xtPONz37.js → CustomerOnboardingNoStepsPage-EBVRCYfJ-D9C_SyFY.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-TJK6s-LM-CsM-rW7t.js → CustomerOnboardingPage-TJK6s-LM-CoIVtMVm.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-lNIP5gSu-D8leFJAq.js → CustomerOnboardingProductSuitePage-lNIP5gSu-Bg8Yb8JM.js} +1 -1
- package/dist/assets/{Dashboard-WiE9IRrh-D3xuAsNG.js → Dashboard-WiE9IRrh-DvtSkHmk.js} +1 -1
- package/dist/assets/{DashboardReportPage-BKHl_IVD-CMH5dEgW.js → DashboardReportPage-BKHl_IVD-CtxBGv_B.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-B1mJObim-DaBPsyhD.js → DashboardSidebarBackgroundAnimation-B1mJObim-DOqCN-CI.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-C8tChaJS-_jmc_rYW.js → DepositAccTransactionItem-C8tChaJS-BcNs6Wmj.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-B6px7upV-CQ8W1uho.js → DepositAccTransactionListPage-B6px7upV-C_h4mZC3.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BFQJmzYm-DdIUFkni.js → DomesticWireDetailsPage-BFQJmzYm-Cigs9AsB.js} +1 -1
- package/dist/assets/{DownloadOverlay-DB-qx46O-BzRX_iWf.js → DownloadOverlay-DB-qx46O-Di0XX-7b.js} +1 -1
- package/dist/assets/{DrawerPage-Bha9ElcW-B91lWMHe.js → DrawerPage-Bha9ElcW-tQCg2vNB.js} +1 -1
- package/dist/assets/{EditPeoplePage-B6QD5Vld-DKZ4nB8f.js → EditPeoplePage-B6QD5Vld-H7oW4yPE.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-EplOf2mP-u2YMFjY5.js → EditReimbursementDetailPage-EplOf2mP-DR3ob0bq.js} +1 -1
- package/dist/assets/{EntityDetailPage-5Cu1qehd-DEcgoDIq.js → EntityDetailPage-5Cu1qehd-BdCQHbCi.js} +1 -1
- package/dist/assets/{EntitySummarySection-D6z6-dM7-C8vqyJE6.js → EntitySummarySection-D6z6-dM7-iY3GcshB.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-DkoxczRc-BFmIjbbK.js → ExpenseAutomationOverviewPage-DkoxczRc-Dj3WEFmv.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-Na3XKgcg-BOy-W5HC.js → ExpenseAutomationPage-Na3XKgcg-DopOn429.js} +1 -1
- package/dist/assets/{ExpressPayPage-DWGl_gml-BoP5Cs2z.js → ExpressPayPage-DWGl_gml-hFOTsy6y.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BgkpUPMm--0g5n3S4.js → FeaturePreviewPage-BgkpUPMm-BgRBmXUD.js} +1 -1
- package/dist/assets/{FollowStepsSection-64oy2OLD-D3h0tFyq.js → FollowStepsSection-64oy2OLD-BEGrGMi_.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-DHfTyj2C-RnZ7xNb7.js → GlobalReviewListPage-DHfTyj2C-C3EEWPiO.js} +1 -1
- package/dist/assets/{InformationCardStack-Dw3lhl2I-i5Npg5-3.js → InformationCardStack-Dw3lhl2I-Bs6_LbeZ.js} +1 -1
- package/dist/assets/{InsightsCardStack-BiEswY1Z-DYRJcEae.js → InsightsCardStack-BiEswY1Z-Db6FFDpQ.js} +1 -1
- package/dist/assets/{InsightsSection-DvqCilqy-BsxjZx3R.js → InsightsSection-DvqCilqy-BQT_s43S.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-DzVYf5ff-Qz_64-AR.js → IntegrationsSettingsPage-DzVYf5ff-DvdqA5Qq.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-DTHcuQsH-LkhNT71n.js → InternationalWireSwiftDetailsPage-DTHcuQsH-B-a9NSLn.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BzyRqd-m-Bs1sKcFl.js → InternationalWireVerificationPage-BzyRqd-m-slndLY5A.js} +1 -1
- package/dist/assets/{InviteFormPage-CaJB3ss1-DDpF9vZd.js → InviteFormPage-CaJB3ss1-HHZxjRMu.js} +1 -1
- package/dist/assets/{InvitePageListView-8Ltt8tHx-BVYRRTTO.js → InvitePageListView-8Ltt8tHx-BPR7jVHX.js} +1 -1
- package/dist/assets/{InvitePeoplePage-A7oKAD7M-0hQ58v_R.js → InvitePeoplePage-A7oKAD7M-DkNn-Tux.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DomquLut-C6XQxVf3.js → InvoiceUploadSection-DomquLut-CutCF8wG.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DtIQ1Buk-DVoIaqMD.js → IssueChargeCardPage-DtIQ1Buk-QOM0ijcK.js} +1 -1
- package/dist/assets/{LabeledAddressValue-B_9lh-_a-BQeLvRQa.js → LabeledAddressValue-B_9lh-_a-B22yf0PW.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-CC7T3qZQ-CjYkOklE.js → LabeledAddressValueField-CC7T3qZQ-5fkS_FuY.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CeMM7Ci3-DVaYpdZO.js → LabeledControlledCheckBoxField-CeMM7Ci3-RHUW6sf_.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DKD0oEl8-Cyxj1Kus.js → LabeledCreatableSingleSelectField-DKD0oEl8-Bqf3gDxT.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Dy3jwAiL-XoHwubm3.js → LabeledDocumentField-Dy3jwAiL-FmwpCOt6.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DDzM3r6s-Wztx4Tcl.js → LabeledDropDownFormattedTextField-DDzM3r6s-CPxa5iPj.js} +1 -1
- package/dist/assets/{LabeledText-axaAGyUS-BpEJBxD4.js → LabeledText-axaAGyUS-B-Q4astZ.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-CeEZ7NWG.js → LabeledUserSingleSelectWithSubtitlesField-UlGND56Y-DlTnDPsW.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-dpz7g9jK-1OORssNe.js → LabeledZeniRolesDropDownField-dpz7g9jK-BDxh4AaM.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CJniqVcu-BUqqOVZ3.js → LinkJETransactionPage-CJniqVcu-C9nn50Ye.js} +1 -1
- package/dist/assets/{LockCardPage-CjO8cr2a-B7T-NUky.js → LockCardPage-CjO8cr2a-C3aOpkLz.js} +1 -1
- package/dist/assets/{LowBalancePopup-DVS-w3b7-CXJHrLHV.js → LowBalancePopup-DVS-w3b7-DZeFvNAP.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-CUHMKmcj-DbWiJSy4.js → MagicLinkACHDetailsPage-CUHMKmcj-BWS1eLIz.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-S_MOFfkp.js → MagicLinkDomesticWireDetailsPage-Dnc7OzKQ-BkvhGPqZ.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-sBpQkYwP-B_hpFhv2.js → MagicLinkInternationalWireDetailsPage-sBpQkYwP-DYCM1cCk.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DAAoq3iT-C_Yyw67d.js → MagicLinkSuccessPage-DAAoq3iT-s_k-As2A.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-FMRBLlRJ-BJi3iHKO.js → MagicLinkTitleSection-FMRBLlRJ-Dq0HXyeM.js} +1 -1
- package/dist/assets/{MailingDetailsSection-CiJ5JLA6-Dh-rh1lg.js → MailingDetailsSection-CiJ5JLA6-ClA0Rhay.js} +1 -1
- package/dist/assets/{Menu-wpP8R1br-CAapPWSw.js → Menu-wpP8R1br-BkJyq7Tb.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-DIIFgnkE-BP3xfm53.js → MyBankConnectionsSettingsPage-DIIFgnkE-BpGRsOdm.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Di_KYRgS-Ci2uuBdO.js → MyPendingActivationChargeCardListPage-Di_KYRgS-1GEJ-RE_.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-m6vaeGgZ-CzB44LiA.js → MyProfileSettingsPage-m6vaeGgZ-CBRk31EZ.js} +1 -1
- package/dist/assets/{NavBarWithPicker-C_qO8mgD-BWszQoIE.js → NavBarWithPicker-C_qO8mgD-DeDCa5cM.js} +1 -1
- package/dist/assets/{NavigationArrow-BXYIj6Wz-B7qUUnjS.js → NavigationArrow-BXYIj6Wz-CANss6wI.js} +1 -1
- package/dist/assets/{NavigationDots-BvKSgdgh-BXw04_O_.js → NavigationDots-BvKSgdgh-ChF9WLMp.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Dc3xEoiZ-DB34-Ax1.js → NewGlobalMerchantPage-Dc3xEoiZ-BeCQwEx7.js} +1 -1
- package/dist/assets/{NoDataChart-C5ZP32zB-CMBnBikM.js → NoDataChart-C5ZP32zB-BxSJ1j_J.js} +1 -1
- package/dist/assets/{NoDataTable-BnBYE8p_-D99JCqJE.js → NoDataTable-BnBYE8p_-CFZLFfEo.js} +1 -1
- package/dist/assets/{NotFoundPage-CZ25GWwU-Bhr9smJg.js → NotFoundPage-CZ25GWwU-BICqInbF.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DHvgj7Hu-D70wdxPy.js → NotificationSettingsPage-DHvgj7Hu-BDiE5wjx.js} +1 -1
- package/dist/assets/{NotificationsListConfig-BBLSv0sd-D3pDalXG.js → NotificationsListConfig-BBLSv0sd-CBsOo8lP.js} +1 -1
- package/dist/assets/{NotificationsPage-CGVEC-Zc-aEkue81y.js → NotificationsPage-CGVEC-Zc-CICQW2D8.js} +1 -1
- package/dist/assets/{OpExByVendorPage-D55JZne--BA2gN_9D.js → OpExByVendorPage-D55JZne--Cr5n73UL.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-B2pRyPAw.js → OverlayContainerPage-Daz3A7cI-DLdPkPwc.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-fVmttEKP-Cpmbp3qS.js → PandLWithForecastPage-fVmttEKP-aWCR7ttl.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BiU8tQnm-_fnUz-j3.js → PaymentAccountSetupBillingAddressSection-BiU8tQnm-CY8MBOF0.js} +1 -1
- package/dist/assets/{PeoplePage-QuuuX2AS-BJIGfeNN.js → PeoplePage-QuuuX2AS-CDxGSCUE.js} +1 -1
- package/dist/assets/{Preview-m-FcrQ0s.js → Preview-D_TLok3M.js} +1 -1
- package/dist/assets/{ProductsCarousel-zdZkfaiY-9riU76fC.js → ProductsCarousel-zdZkfaiY-D8MGFtGX.js} +1 -1
- package/dist/assets/{PromoBaseCards-flFtcbIg-hQ-cGzbT.js → PromoBaseCards-flFtcbIg-C0jZRRzU.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-DNB2C1vQ-B-m0Orif.js → QBOConnectionDialog-DNB2C1vQ-DPJHlPHX.js} +1 -1
- package/dist/assets/{QBOSetupSection-B59etoGz-BjsJ5dP9.js → QBOSetupSection-B59etoGz-DxrgQvvQ.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-D7do3o0A-ZSNYROgC.js → ReimbursementApprovalRuleDetailPage-D7do3o0A-DiBw1aK-.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BJ6GewQ2-cn7dx9_x.js → ReimbursementApprovalRulesPage-BJ6GewQ2-CMxGgRQ3.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DKAtYSOy-rPi_28qO.js → ReimbursementDetailPage-DKAtYSOy-C1CMn4bM.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-DKcSHlHp-B-x2_K1K.js → ReimbursementPromoPage-DKcSHlHp-gi8b3D2U.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Y1e_hna--CWaIrVmZ.js → ReimbursementSetUpPage-Y1e_hna--L4dNaOo2.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-fgz8s4w9-BgzjXAGE.js → ReimbursementsBulkReviewDrawerPage-fgz8s4w9-TK1XJV4S.js} +1 -1
- package/dist/assets/{ReloadCard-DjtdPHq5-qE-nJEXk.js → ReloadCard-DjtdPHq5-D_RTB189.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-C8e6IEWt--jlW7QpR.js → ReportTableViewSelector-C8e6IEWt-B1X6y91F.js} +1 -1
- package/dist/assets/{ReportsPage-BIe0eDLC-Cn2-db9t.js → ReportsPage-BIe0eDLC-DJAgrzKt.js} +1 -1
- package/dist/assets/{RevenueChart-Cc0XrxLL-RTOUbgfW.js → RevenueChart-Cc0XrxLL-BSXP5Fpe.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CU1AYWgR-BCcFVvxj.js → ReviewDetailsPage-CU1AYWgR-Aa7a5LiH.js} +1 -1
- package/dist/assets/{ReviewOverlay-CruJ9O84-CVyRQtbr.js → ReviewOverlay-CruJ9O84-C1Nn7-W1.js} +1 -1
- package/dist/assets/{RoleWithToolTip-fC3byzzv-Da5EXkAB.js → RoleWithToolTip-fC3byzzv-DvgcIN_v.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-CE3tUYhk-NtG2QTRz.js → ScheduleDetailsFixedAssetsPage-CE3tUYhk-COrIX6jB.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BhAqJ1Of-D1IstsCs.js → ScheduleDetailsPage-BhAqJ1Of-aIc3huKD.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-NSt1juSD-BKLbxQMq.js → ScheduleSequenceTable-NSt1juSD-DIpN7xpp.js} +1 -1
- package/dist/assets/{ScreenRoutes-CWkpMCjL.js → ScreenRoutes-jO5HDDDI.js} +1 -1
- package/dist/assets/{SetUpAccountSection-C1EnJv1V-Cvu34ipQ.js → SetUpAccountSection-C1EnJv1V-BqOATLaf.js} +1 -1
- package/dist/assets/{SignIn-BhIof_Cm-DeDZlCNC.js → SignIn-BhIof_Cm-BVhCYPyL.js} +1 -1
- package/dist/assets/{SignInScreen-Cihieu4J.js → SignInScreen-DYrtrzQo.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BEWNNX_Z-j_tiMoWb.js → SpendManagementListViewPage-BEWNNX_Z-DYJVhy13.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Vs1Eoxgd-DfGQnSHO.js → SpendManagementPerTabPage-Vs1Eoxgd-BJBD6w0V.js} +1 -1
- package/dist/assets/{SpendManagementSection-C38Zpi1z-B-GaQ2j9.js → SpendManagementSection-C38Zpi1z-zTQSB9zV.js} +1 -1
- package/dist/assets/{StatementItem-bHInVThd-CsJa48J1.js → StatementItem-bHInVThd-Bfw9F8uL.js} +1 -1
- package/dist/assets/{StatementsPage-CGQhmaXx-CawRkQvA.js → StatementsPage-CGQhmaXx-BIuU-4wu.js} +1 -1
- package/dist/assets/{StatusSwitcher-7fiKLb5g-B_2JeKNK.js → StatusSwitcher-7fiKLb5g-IubUY6EX.js} +1 -1
- package/dist/assets/{SubTabSwitcher-9AnfZiNy-vCnU7WF-.js → SubTabSwitcher-9AnfZiNy-DBEVnhtX.js} +1 -1
- package/dist/assets/{SummaryCard-DOycYLs1-CaQB1fqx.js → SummaryCard-DOycYLs1-C5OfLiIW.js} +1 -1
- package/dist/assets/{TaskManagementPage-CehyMnY0-Cue4tauF.js → TaskManagementPage-CehyMnY0-LzT8-CCR.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-Dq2FEgFR-D3AQaZI-.js → TimeRangeSwitcher-Dq2FEgFR-CxbtXrjR.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-By3xz_-m-Bv71ZHom.js → TimeframeSwitcher-By3xz_-m-4vvkqeCS.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-a3fmbzNR-DZx2FqjJ.js → TimeframeSwitcherWithToggle-a3fmbzNR-DF955u5N.js} +1 -1
- package/dist/assets/{TopExCard-GEQpp_KY-BIUWKmJn.js → TopExCard-GEQpp_KY-BsC8DQsa.js} +1 -1
- package/dist/assets/{TopExDetailPage-hid1dQYl-vzpcxnkQ.js → TopExDetailPage-hid1dQYl-o5BnuopY.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CX4JW9WM-BshlnJb5.js → TransactionDetailPage-CX4JW9WM-gkT488m-.js} +1 -1
- package/dist/assets/{TransactionList-BixeXh4Y-DpKuzYhu.js → TransactionList-BixeXh4Y-CBLpnxhT.js} +1 -1
- package/dist/assets/{TransactionListBig-CGMMJQBd-CPWLJgiW.js → TransactionListBig-CGMMJQBd-Bi6fPPO-.js} +1 -1
- package/dist/assets/{TransactionListPage-CBVUTX4y-CTzBsfwd.js → TransactionListPage-CBVUTX4y-DvUQlgTG.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CEbHH_0r-B2rNZ7e8.js → TransactionVendorDetailPage-CEbHH_0r-vhA6GFtl.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BFd7uQnF-BDnFaRJN.js → TransferDrawerPage-BFd7uQnF-CdQTDGt-.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-Bd58hOy8-COabKjkh.js → TreasuryOverviewPage-Bd58hOy8-DrtmZ_fp.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BvArufHi-mIhWyHJJ.js → TreasuryPromoPage-BvArufHi-zGiWS1XQ.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-YLCEBbRh-Hb92GX1G.js → TreasuryStatementsPage-YLCEBbRh-rIAdAl8t.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-D_6mgQqi-YEx3tems.js → TreasuryTaxLetterPage-D_6mgQqi-DYRPEoC2.js} +1 -1
- package/dist/assets/{TrendChart-D3dT6hUb-BmrIV_Lt.js → TrendChart-D3dT6hUb-DkxaRhLn.js} +1 -1
- package/dist/assets/{TrendWithTransactions-Gj-u5KXi-_cLHr6Sd.js → TrendWithTransactions-Gj-u5KXi-BXQxjthK.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-B3eRYolj-BupHpvxs.js → UncategorizedAccountsMappingPage-B3eRYolj-CDmprZps.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DpjR9hUu-Bkk7bekK.js → UnitIntegrationPage-DpjR9hUu-B-HccwC1.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-COtszXUY-DeW-OEQ-.js → UploadAdditionalDocumentOverlay-COtszXUY-BbmaGPRn.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-C85mhuSb-Ci-aokF3.js → Vendor2FAPopup-C85mhuSb-CEUsiGHn.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DeexeWpV-PyPL7qy9.js → VendorACHDetailsPage-DeexeWpV-CWx4yTGx.js} +1 -1
- package/dist/assets/{VendorDetailPage-BrbKfsL4-C5yq1wZE.js → VendorDetailPage-BrbKfsL4-Cj99XIhO.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-DBChSKlR-DfQ9uMtB.js → VendorDomesticWireDetailsPage-DBChSKlR-CPIfYbL9.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-DgBLn3fd-yxfQxsgz.js → VendorFiling1099EditablePage-DgBLn3fd-BC-C_gXr.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-jc7-OExI-CXLfVnQg.js → VendorFirstReviewPage-jc7-OExI-B_u4wn_i.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-c6isgwH2-rWvjTHMm.js → VendorInternationalWireDetailsPage-c6isgwH2-G6KTzCh7.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CywCx8-0-toI88yyC.js → VendorInternationalWireSwiftDetailsPage-CywCx8-0-BuJYqFug.js} +1 -1
- package/dist/assets/{VendorsAccountsSection--VfdAF3H-C0MWVdaQ.js → VendorsAccountsSection--VfdAF3H-CNAOxlvC.js} +1 -1
- package/dist/assets/{VerifyDevice-CaifjdR8-oDnQadr1.js → VerifyDevice-CaifjdR8-B6dVM-BL.js} +1 -1
- package/dist/assets/{VideoPlayer-BVR9LPmm-C0OY9hGQ.js → VideoPlayer-BVR9LPmm-B4UxpKEs.js} +2 -2
- package/dist/assets/{VideoPopup-BEXc8o78-BfKdRFKO.js → VideoPopup-BEXc8o78-DJiZW-Cs.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-CboqfxzC-Df6JGLWB.js → WarningsDrawerPage-CboqfxzC-gF7sCXHr.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Dujj0-XC-D3Dn9J7C.js → ZeniAccountDetailPage-Dujj0-XC-V9rgFIsn.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage--SMJDGvC-D8iSNbC5.js → ZeniAccountListViewPage--SMJDGvC-CZS6XXwc.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DqLJVQ5t-CpI_x0eJ.js → ZeniAccountNavBarPieces-DqLJVQ5t-CkX8FMny.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BVjJvWsA-eagcbJWN.js → ZeniAccountPromoPage-BVjJvWsA-B4Bz7FjR.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-Dvxst8RT-RZ48F_0V.js → ZeniAccountSetupPage-Dvxst8RT-Dv9aj6me.js} +1 -1
- package/dist/assets/{ZeniCopyright-B88k3pkr-CwZenhhP.js → ZeniCopyright-B88k3pkr-BvEC_X2s.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-1DS0MsTI-DcvYtFGr.js → ZeniTransferAmountSlider-1DS0MsTI-DXZHqv18.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-B14A9z81.js → add-to-wallet-DgdBD8_G-D178ysGy.js} +1 -1
- package/dist/assets/{analytics-C6L7hlHG.js → analytics-D090O6Wm.js} +1 -1
- package/dist/assets/{analyticsHelper-DKc66BYi.js → analyticsHelper-CW9XC1-j.js} +1 -1
- package/dist/assets/{analyticsHelper-DmujELNG-ClL2XzYx.js → analyticsHelper-DmujELNG-CdoVsqKC.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-4-pP5pik.js → arrow-south-east-round-PEovUgvH-Ccxih1KW.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-D30iL0YR.js → auto-transfer-rule-mbafm5D3-CaIDNTCx.js} +1 -1
- package/dist/assets/{chartTypes-DRiSljvE-CrLsLRjf.js → chartTypes-DRiSljvE-DHGd6p3G.js} +1 -1
- package/dist/assets/{commonDimensions-BDftm0gJ-Bk927TMF.js → commonDimensions-BDftm0gJ-CtNxdt96.js} +1 -1
- package/dist/assets/{constants-B1dh_xIn.js → constants-B1WOPvRN.js} +1 -1
- package/dist/assets/{core-CadaPWsO.js → core-BCGhSsNP.js} +1 -1
- package/dist/assets/{dash.all.min-BwAm2K21.js → dash.all.min-DQU9jzwW.js} +1 -1
- package/dist/assets/{detailCommon-BGgE4mE3-BEh9p6sH.js → detailCommon-BGgE4mE3-BIZKCRTc.js} +1 -1
- package/dist/assets/{downloadPdf-DCQ9vVZs-DnysTBvz.js → downloadPdf-DCQ9vVZs-BAK1KQub.js} +1 -1
- package/dist/assets/{empty-BVIRhP6J.js → empty-BFpyIT14.js} +1 -1
- package/dist/assets/{empty-Co20hejg.js → empty-Db_Oj0CQ.js} +1 -1
- package/dist/assets/epic-BhAddVo8.js +2 -0
- package/dist/assets/{gift-box-Cmt9OgIZ-B8pnTsjV.js → gift-box-Cmt9OgIZ-BVmGGIyo.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-CgpIivOh.js → graphic-no-data-l-DU4J8fDt-BUSuwQOu.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-Bbm3dmZD.js → graphic-no-data-net-burn-l-CzmycA0m-9rVTKZNa.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-BttIiMDC.js → handshake-BPg58FML-DBfm_e1t.js} +1 -1
- package/dist/assets/{index-CiMyMhgu.js → index-BGhFLU7w.js} +6 -6
- package/dist/assets/{index-sRtT3LWH.js → index-BpEXgtW2.js} +1 -1
- package/dist/assets/{index-CnYBBjVQ.js → index-CrL4860P.js} +1 -1
- package/dist/assets/{index-sbaC-tND.js → index-DOvOS8E_.js} +1 -1
- package/dist/assets/{index-DBJcoW1J.js → index-DT-oXxhz.js} +1 -1
- package/dist/assets/{index-6sWe2DhR.js → index-DuKH4leN.js} +1 -1
- package/dist/assets/{index-4dPdvww9.js → index-RjyLdqZN.js} +1 -1
- package/dist/assets/{lexical-DEI4_j9X.js → lexical-CtZYfzDm.js} +1 -1
- package/dist/assets/{liveblocks-D92pTRaw.js → liveblocks-DjrSQGDL.js} +1 -1
- package/dist/assets/{lottie-Dv5hJ5mA.js → lottie-QlMyEFez.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-CXP8ZZTG-vSJ6j19m.js → mapLoadingInProgressToTreeNode-CXP8ZZTG-DEpSFHGZ.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BZSP-VcP-CrMDUoxM.js → mapSectionWithAcOnlyToTreeNode-BZSP-VcP-woXs_v4t.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-Bc1S_1ej-BemzQbL5.js → mapSpacerToTreeNode-Bc1S_1ej-D8Xyxewi.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-ClgcHX26-Bi0tXnM_.js → mapTimeframeBalancesToTreeNode-ClgcHX26-CH6aCNop.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Cwp98PMa-DQxUPxNn.js → mapTimeframeBalancesToTreeNode-Cwp98PMa-D47kQKR9.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-FlWaHbgN.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BmDRXfMV-ExH9IzF0.js} +1 -1
- package/dist/assets/{mui-D2MqZYRi.js → mui-8xKzSljO.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-CycRTeYU.js → page-detail-CWX5S47F-DjAUkIIu.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-C3-g-fgb.js → radio-default-CiSgisfh-DioVIMbJ.js} +1 -1
- package/dist/assets/{react-D2dXMlhh.js → react-1fNkcXJk.js} +1 -1
- package/dist/assets/{react-Bbwv1dSd.js → react-5bc96E7k.js} +2 -2
- package/dist/assets/{react-UOVhoe0Z.js → react-BpMq70Jz.js} +1 -1
- package/dist/assets/{react-CeQlQsdb.js → react-C26MaKuf.js} +1 -1
- package/dist/assets/{react-CSxJXI_i.js → react-CQVfZdRf.js} +1 -1
- package/dist/assets/{react-Bv_vNAf8.js → react-CvSzLYZW.js} +1 -1
- package/dist/assets/{react-B3z6gyiL.js → react-DEufTa0Y.js} +1 -1
- package/dist/assets/{react-BnUDmuTB.js → react-euUD_2CS.js} +1 -1
- package/dist/assets/{recharts-t7V-Kaqf.js → recharts-BnXj3KRI.js} +1 -1
- package/dist/assets/{sentry-DMKAGVXl.js → sentry-C9BQzslk.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DKC5YbXI.js → shield-DOlUxcFf-DfgTXsyM.js} +1 -1
- package/dist/assets/{toCOABalancesWithID--oEGymMJ-DIxvxTaj.js → toCOABalancesWithID--oEGymMJ-DkNt3ShR.js} +1 -1
- package/dist/assets/{toChartData-CavJzP6f-Bu_YRbEM.js → toChartData-CavJzP6f-MNPPYJmI.js} +1 -1
- package/dist/assets/{transaction-placeholder-CpOwZAMG-BdGoUwcv.js → transaction-placeholder-CpOwZAMG-DvtWJS0D.js} +1 -1
- package/dist/assets/{uploadAttachment-BuVCsq0Q-C2wm0oAH.js → uploadAttachment-BuVCsq0Q-S-SyFEfz.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-BgNLcFfw.js → uploadReceipts-CPw64UYa-BH5K-sl5.js} +1 -1
- package/dist/assets/{url-CnqqWgIy.js → url-MazUlenF.js} +1 -1
- package/dist/assets/{url-DsW1BPwo.js → url-WfClTpIP.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-DVYx_Wdi.js → useLongPress-GCK2COYQ-DGIP6WpU.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-D20AQITY.js → usp-line-BBd1wKwW-CVrOUZlu.js} +1 -1
- package/dist/assets/{utils-BWiizB9D.js → utils-zYB6z_it.js} +1 -1
- package/dist/assets/{zeni-epic-state-DjAFCaxy.js → zeni-epic-state-D9zDRHOK.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CustomerOnboardingContainerPage-SmOFmXBW-zEIEcSQa.js +0 -1
- package/dist/assets/epic-IoIkBJiH.js +0 -2
package/dist/assets/{BillDetailPage-D7AQyxwr-e7SQTUJW.js → BillDetailPage-D7AQyxwr-C4hQ51aV.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as Wn,av as Zn,d as Kn,gc as Un,gd as Vn,ge as Gn,gf as Hn,ca as qn,aN as Xn,y,V as t,f3 as dt,f4 as Jn,o as a,f5 as Qn,f6 as Yn,f7 as ea,aK as Ae,f8 as ta,aM as b,bz as ct,bm as pt,dr as mt,cm as ut,cn as yt,co as ht,gg as na,gh as aa,gi as ia,gj as la,fd as $,gk as I,ff as A,fg as k,fc as oa,b as bt,p as ie,fe as Lt,fm as ra,fh as sa,fi as da,gl as ca,gm as pa,aO as ma,an as gt,bQ as we,gn as ua,go as L,F as ya,c as s,ah as ha,b$ as ba,gp as ga,L as fa,gq as xa,fn as ft,a as wa,d0 as Ta,cf as va,gr as xt,b5 as Da,b7 as ja,l as $a,bS as Ot,d1 as Ia,gs as Aa,ag as Ft,aW as ka,b3 as Sa,br as Ca,eJ as Pa,ak as Ba}from"./index-CiMyMhgu.js";import{a as p}from"./sentry-DMKAGVXl.js";import{n as i}from"./mui-D2MqZYRi.js";import{a as Ra}from"./liveblocks-D92pTRaw.js";import{bO as za,bL as Ma,bP as Na,FB as La,bN as Oa,bH as Fa,bh as Ea}from"./zeni-epic-state-DjAFCaxy.js";import{o as _a,t as Wa}from"./LowBalancePopup-DVS-w3b7-CXJHrLHV.js";import"./core-CadaPWsO.js";import"./lottie-Dv5hJ5mA.js";import"./analytics-C6L7hlHG.js";import"./recharts-t7V-Kaqf.js";import"./lexical-DEI4_j9X.js";import"./utils-BWiizB9D.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="69a12cc7-01cb-4aa0-a51c-02dff67b0368",e._sentryDebugIdIdentifier="sentry-dbid-69a12cc7-01cb-4aa0-a51c-02dff67b0368")}catch{}})();const Za=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new wa("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ua,common:{noText:C,strings:{empty:c},currency:wt,via:Va,more:Ga,edit:Ha},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:Tt,vendorCreation:Te,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:qa}}}}=ya.getLocalizedStrings(),ve=Ua.visual.MMMDCommaYYYYformat,Ei=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Ut,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Be,deleteBill:Ht,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:qt,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Wn(),o=Zn(),Le=Kn(),[nn,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[an,ce]=p.useState(!1),[Ee,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?Un:Vn,{requestToOpenThread:pe,setRequestToOpenThread:_e,setOpenThread:Q}=p.useContext(ln),[on,V]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Gn(T,"both",!1),x=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:G.filter(r=>r.resolved===!1&&!r.id.includes(Hn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{Q(u),V(!1)},[Q,V]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Q(pe.threadId),_e(null))},[pe,G,P,Q,_e]);const Ze=p.useRef(!1),[sn,dn]=p.useState(!1),cn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,dn(!0))});qn({componentName:"bill.details",enabled:sn});const[N,Y]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ue]=p.useState("approved"),[pn,Ve]=p.useState(!1),[mn,Ge]=p.useState(!1),[He,qe]=p.useState(!1),Xe=()=>Ve(!1),un=()=>Ve(!0),Je=Xn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),X())},[e,X,Be]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[Je,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,yn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",D=me?w:te?.code=="approved"&&H?.code?H:te,S=Xa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?yn:H?.code!=null&&(te?.code=="approved"||H.code==="mark_as_paid")?H:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},hn=()=>{Y({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},bn=()=>{Y({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},gn=()=>{Y({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},fn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Y({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},xn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ht?.(e.isRecurring):N.title===n.cancelBillTitle?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),se(!1)}},wn={onOkClick:r=>{ce(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ce(!1)}},Tn=()=>{const[r]=ka("ZeniAssist");return r!=null?t.jsx(Sa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??wt.currencyCode},ye=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],vn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),Dn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,In=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Di,{})})]}):void 0,Ye=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),An=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Ia(r.toLowerCase()):r??"";return`${Te.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{q as Wn,av as Zn,d as Kn,gc as Un,gd as Vn,ge as Gn,gf as Hn,ca as qn,aN as Xn,y,V as t,f3 as dt,f4 as Jn,o as a,f5 as Qn,f6 as Yn,f7 as ea,aK as Ae,f8 as ta,aM as b,bz as ct,bm as pt,dr as mt,cm as ut,cn as yt,co as ht,gg as na,gh as aa,gi as ia,gj as la,fd as $,gk as I,ff as A,fg as k,fc as oa,b as bt,p as ie,fe as Lt,fm as ra,fh as sa,fi as da,gl as ca,gm as pa,aO as ma,an as gt,bQ as we,gn as ua,go as L,F as ya,c as s,ah as ha,b$ as ba,gp as ga,L as fa,gq as xa,fn as ft,a as wa,d0 as Ta,cf as va,gr as xt,b5 as Da,b7 as ja,l as $a,bS as Ot,d1 as Ia,gs as Aa,ag as Ft,aW as ka,b3 as Sa,br as Ca,eJ as Pa,ak as Ba}from"./index-BGhFLU7w.js";import{a as p}from"./sentry-C9BQzslk.js";import{n as i}from"./mui-8xKzSljO.js";import{a as Ra}from"./liveblocks-DjrSQGDL.js";import{bO as za,bL as Ma,bP as Na,FB as La,bN as Oa,bH as Fa,bh as Ea}from"./zeni-epic-state-D9zDRHOK.js";import{o as _a,t as Wa}from"./LowBalancePopup-DVS-w3b7-DZeFvNAP.js";import"./core-BCGhSsNP.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./recharts-BnXj3KRI.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="69a12cc7-01cb-4aa0-a51c-02dff67b0368",e._sentryDebugIdIdentifier="sentry-dbid-69a12cc7-01cb-4aa0-a51c-02dff67b0368")}catch{}})();const Za=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new wa("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ua,common:{noText:C,strings:{empty:c},currency:wt,via:Va,more:Ga,edit:Ha},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:Tt,vendorCreation:Te,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:qa}}}}=ya.getLocalizedStrings(),ve=Ua.visual.MMMDCommaYYYYformat,Ei=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Ut,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:Gt,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Be,deleteBill:Ht,cancelAndDeleteBill:Re,approveOrRejectBill:ze,onAddNewRule:qt,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Wn(),o=Zn(),Le=Kn(),[nn,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[an,ce]=p.useState(!1),[Ee,J]=p.useState(!1),h=e.transactionDetails?.id,ln=Ut?Un:Vn,{requestToOpenThread:pe,setRequestToOpenThread:_e,setOpenThread:Q}=p.useContext(ln),[on,V]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Gn(T,"both",!1),x=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:G.filter(r=>r.resolved===!1&&!r.id.includes(Hn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((r,u)=>{Q(u),V(!1)},[Q,V]);p.useEffect(()=>{pe?.threadId!=null&&G.length>0&&!P&&(Q(pe.threadId),_e(null))},[pe,G,P,Q,_e]);const Ze=p.useRef(!1),[sn,dn]=p.useState(!1),cn=p.useRef(r=>{r&&!Ze.current&&(Ze.current=!0,dn(!0))});qn({componentName:"bill.details",enabled:sn});const[N,Y]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ue]=p.useState("approved"),[pn,Ve]=p.useState(!1),[mn,Ge]=p.useState(!1),[He,qe]=p.useState(!1),Xe=()=>Ve(!1),un=()=>Ve(!0),Je=Xn(e.zeniAssist?.refundStatus.fetchState),ee=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),X())},[e,X,Be]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),ee())},[Je,e.zeniAssist?.refundStatus,ee]);const w=e.transactionDetails?.billPayInfo.stage,te=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,yn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=w?.code==="paid",D=me?w:te?.code=="approved"&&H?.code?H:te,S=Xa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?yn:H?.code!=null&&(te?.code=="approved"||H.code==="mark_as_paid")?H:te,ue=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Gt(e.transactionDetails?.id??"")},hn=()=>{Y({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},bn=()=>{Y({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},gn=()=>{Y({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},fn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Y({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},xn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ht?.(e.isRecurring):N.title===n.cancelBillTitle?Re?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Re?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),se(!1)}},wn={onOkClick:r=>{ce(!1),ze({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ce(!1)}},Tn=()=>{const[r]=ka("ZeniAssist");return r!=null?t.jsx(Sa,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ne={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??wt.currencyCode},ye=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],vn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),Dn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,jn=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${jn}`,In=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Di,{})})]}):void 0,Ye=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),An=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Ia(r.toLowerCase()):r??"";return`${Te.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
2
|
${Te.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Te.achDetails.accountTypeLabel} ${u}`},ae=e.transactionDetails?.billPayInfo!=null?za(e.transactionDetails?.billPayInfo):void 0,kn=ae!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ma(Na(ae?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,et=e.transactionDetails?.billPayInfo.expectedDepositDate??kn,tt=dt(d?.paymentType?.method??"").replace("Same Day",""),Sn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Jn,{paymentTypeLabel:tt,onClick:un,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Cn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Aa,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,be=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),at=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),ge=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,fe=e.zeniAssist?.isEligibleForRefund===!0,Pn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Bn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(ge||fe)&&Pn===!1,xe=ge||fe,Rn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,zn=!Rn&&(!Ye||D?.code==="processing"&&!B),it=!Ye,lt=["small","medium-compact","medium-regular"].includes(l),q=La(e.transactionDetails?.bulkProcessingDetail?.type),F=Oa(e.paymentMethodType?.method),Mn=!q&&(E!=="processing"&&at||E==="processing"&&!B||E==="processing"&&it||f&&F&&Se),Nn=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,He,r)},ot=()=>{Ge(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Ln=()=>{qe(!0),ot()},On=()=>{Jt(),Ge(!1),He&&qe(!1)},Fn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,rt=()=>{Ue("approved"),Ee===!0&&J(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ze({billId:e.transactionDetails?.id??"",type:"approved"})},En=()=>{Ue("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",ft(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},st=p.useRef(null);return t.jsxs(ci,{windowSize:l,ref:st,children:[t.jsx(Yn,{anchor:"right",open:pn,onClose:Xe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ea,{companyName:ta(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(ve)??"",paymentType:tt,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Xe})}),t.jsxs(yi,{ref:cn.current,windowSize:l,children:[t.jsx(Ai,{windowSize:l,children:l==="small"?t.jsx(ct,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Le.colors.grey4,rightSideComponent:t.jsxs(St,{windowSize:l,children:[x?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),V(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>mt(u)),void 0,void 0,"page icon")},children:[t.jsx(pt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),source:"BillDetailPage"}):t.jsx(ct,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(St,{windowSize:l,children:[x?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),V(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>mt(u)),void 0,void 0,"page icon")},children:[t.jsx(pt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>ee(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),enableTitleOnScroll:!0,scrollableContent:st,source:"BillDetailPage"})}),t.jsxs(hi,{windowSize:l,children:[Ee?t.jsx(_a,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:rt,onCancelClick:()=>{J(!1),Qe()},onClickAway:()=>{J(!1)}}):null,mn?t.jsx(Wa,{onCancel:On,onProceedForMarkAsPaid:Nn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||re?t.jsx(ut,{titleComponent:t.jsx(ht,{children:N.title}),descriptionComponent:t.jsx(yt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:xn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Ja(l,e):null}):null,an?t.jsx(ut,{titleComponent:t.jsx(ht,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(yt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:wn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(gi,{windowSize:l,children:[l!=="small"?t.jsxs(fi,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(na,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:et,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:et,scheduleDate:ae,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ei(q,e,_),t.jsx(ia,{sectionId:la,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx(I,{label:{label:n.invoiceNumber,width:j},text:ne.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx(I,{label:{label:n.invoiceDate,width:j},text:ne.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx(I,{label:{label:n.billDueDate,width:j},text:ne.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx(I,{label:{label:n.memo,width:j},text:ne.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(bi,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),ye.length>0?ye.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(_n=>_n.id===r.lineId)?.recipientAmount;return t.jsxs(pi,{children:[ye.length>1?t.jsx(mi,{windowSize:l,children:t.jsx(ui,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx(I,{label:{label:n.amount,width:j},text:R!=null?Ae("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx(I,{label:{label:n.description,width:j},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx(I,{label:{label:n.category,width:j},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx(I,{label:{label:n.class,width:j},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx(I,{label:{label:n.billable,width:j},text:r.billable!=null?Dn(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx(I,{label:{label:n.customer,width:j},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(xi,{windowSize:l,children:[t.jsx(wi,{children:n.total}),t.jsx(Ti,{children:he!=null?t.jsx(oa,{amount:he,integerStyles:bt.h6Medium.cssObject,decimalStyles:bt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx(I,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?Et.addMoney:_})}),t.jsx(z,{})]}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx(I,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Fa)&&Zt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ni,{children:ra(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?Ya(e.outsideZeniPaymentInfo):dt(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(I,{label:{label:n.paymentTo,width:j},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:In,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:An(),additionalInfoLabel:t.jsx(ti,{children:Sn})}),Cn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(I,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:da(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:sa(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($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ca,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??wt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(pa,{amount:vn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:qt,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:le?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:Yt},historicActivities:e.billHistory.activities}),t.jsx(vi,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ma,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||f,showCancel:!K&&f,cancelBtn:{label:lt?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:En,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Qa(K,lt),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?ot:()=>{_!=null?J(!0):rt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ai,{children:t.jsxs(di,{windowSize:l,children:[!q&&Oe?t.jsx(gt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&at?t.jsx(W,{onClick:hn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:bn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&&it?t.jsx(W,{onClick:gn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Se?t.jsx(W,{onClick:Ln,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(gt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[ge?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,fe?t.jsx(W,{onClick:fn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(si,{windowSize:l,children:[Bn===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:xe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:xe,"data-testid":b("other-actions-icon-container"),children:xe?t.jsx(Tn,{}):t.jsx(li,{})})}):null,!q&&be===!0?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ha,placement:"top",children:t.jsx(ri,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(oi,{})})}):null,!q&&zn===!0&&Mn?t.jsx(we,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(ii,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(Ra,{id:v,children:t.jsx(ua,{isDrawerOpen:on,allowComposer:!0,drawerTitle:qa,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:Fn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>V(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Le.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Xa=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(Ea(),"date")===!0?{value:ke.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Ja=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ii,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Lt(g.withdrawFrom,e):c})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(Rt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:f!=null?Ae("0,0[.]00",f):C})]})]})},Qa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Ya=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${f} ${Va} ${Z}`},ei=(e,g,f)=>{if(e)return t.jsx(xt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:Tt.duplicateWarning.title,description:Tt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(xt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ti=i.div``,ni=i.div``,ai=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as O,c as D,q as G,F as U,a8 as M,aN as W,aG as X,cB as H,V as o,bz as J,ab as K,aO as Q,o as c,g2 as Y}from"./index-
|
|
1
|
+
import{y as O,c as D,q as G,F as U,a8 as M,aN as W,aG as X,cB as H,V as o,bz as J,ab as K,aO as Q,o as c,g2 as Y}from"./index-BGhFLU7w.js";import{a as T}from"./sentry-C9BQzslk.js";import{n as h}from"./mui-8xKzSljO.js";import{b as Z,f as ee,o as _,l as C}from"./FollowStepsSection-64oy2OLD-BEGrGMi_.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="0f8d4db2-abf3-4bf3-bb10-8307bdd7c9e3",e._sentryDebugIdIdentifier="sentry-dbid-0f8d4db2-abf3-4bf3-bb10-8307bdd7c9e3")}catch{}})();const R="billPayApprovalRuleDetailPage",k="lowerBound",N="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new O(D[2],D[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:y=!0,hideUpperBoundField:A=!1,onSaveRuleClick:E,onSaveRuleSuccess:I}){const P=G(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,g=ae(e,l==="approval_create"&&!n),x=M({mode:"all",reValidateMode:"onChange",defaultValues:g}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=W(u?.fetchState),{upperBound:L}=g,{allApprovalRules:d,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let b=d.length>1?d.length-1:0,v=d.length>0?d[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=d.findIndex(p=>p.approvalRuleId===i),v=b>0?d[b-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{E()}),q=async(i,p)=>{r(p)};return T.useEffect(()=>{const i=x.watch((p,{name:$})=>{if($!=null&&p!=null){const z=X(p);H(()=>q($,z))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&I()},[B,u?.fetchState,I]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j(R),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:L===1/0?Number.MAX_SAFE_INTEGER-1:L-1,min:v,validate:i=>n?!0:i!=null&&i>v},isDisabled:n,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:N,placeholder:"Infinity",isDisabled:y,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(de,{}),o.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j(R),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"?null:o.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:c.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[m]:[m],[w]:te(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),_(e.allAttributes),_(e.filteredAttributes),r??[])??[],[k]:l?void 0:a!=null?a.range.min.amount??0:0,[N]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,r,s)=>s&&s.length>0?s.map((n,y)=>({stepIndex:y,stepType:{selectedOption:n.action,allOptions:C},actors:{allUsers:l,selectedUsers:oe(e,n.actors),allNonUsers:r,selectedNonUsers:re(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:C},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(r=>r.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(r=>r.subType===a.value)>-1),j=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as B,F as v,V as t,bz as _,m as N,aM as S,y as r,ak as j,o,aK as P,cm as E,cn as H,co as V,cY as U,c as l,b7 as G,a as k,b6 as q,p as z,cV as F,br as J,b as X}from"./index-
|
|
1
|
+
import{q as B,F as v,V as t,bz as _,m as N,aM as S,y as r,ak as j,o,aK as P,cm as E,cn as H,co as V,cY as U,c as l,b7 as G,a as k,b6 as q,p as z,cV as F,br as J,b as X}from"./index-BGhFLU7w.js";import{n as i}from"./mui-8xKzSljO.js";import{a as Y}from"./sentry-C9BQzslk.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="0bd44986-fbe9-4a57-aa3f-eb7028c441c1",e._sentryDebugIdIdentifier="sentry-dbid-0bd44986-fbe9-4a57-aa3f-eb7028c441c1")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},A={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},K=({showDeleteBtn:e=!1,isLastSection:h=!1,approvalRule:d,onEditRuleClick:b,onDeleteRuleClick:w})=>{const[x,g]=Y.useState(!1),n=B(),{range:u}=d.criteria[0],{steps:$,approvalRuleId:m}=d,a=v.getLocalizedStrings().commonSetUp.approval,y=()=>{g(!0)},D={onOkClick:()=>{g(!1),w?.(m)},onCancelClick:()=>{g(!1)}};return t.jsxs(O,{windowSize:n,isLastSection:h,children:[t.jsxs(Q,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(Z,{children:[t.jsx(T,{}),t.jsx(ee,{}),t.jsx(T,{})]}),u.max==null?t.jsx(de,{}):t.jsx(L,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e&&t.jsx(ae,{onClick:y,"data-testid":S("delete-approval-rule-bill-pay",d.approvalRuleId)}),t.jsx(pe,{onClick:()=>{b(m)},"data-testid":S("edit-approval-rule-bill-pay",d.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:$.length===1,windowSize:n,children:$.map((c,M)=>t.jsxs(ie,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[c.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),c.nonUserActors!=null&&c.nonUserActors.filter(p=>p.subType!=null).map((p,W)=>t.jsxs(C,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},`${p.subType}_${W}`)),c.actors.map(p=>t.jsxs(C,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},p.userId))]},M))})}),x?t.jsx(E,{titleComponent:t.jsx(V,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(H,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:D}):null]})},O=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-DSTS_vBW-Ce9u0nsw.js → BillPayPromoPage-DSTS_vBW-D4bhyD9i.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{av as W,q as f,aN as Y,V as e,fo as ee,bz as ie,n as B,aM as C,ad as m,F as M,o as s,ap as se,D as le,d as I,aQ as D,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,c as de}from"./index-
|
|
1
|
+
import{av as W,q as f,aN as Y,V as e,fo as ee,bz as ie,n as B,aM as C,ad as m,F as M,o as s,ap as se,D as le,d as I,aQ as D,al as oe,y as re,p as $,cA as te,aR as ae,b8 as ne,c as de}from"./index-BGhFLU7w.js";import{a as g}from"./sentry-C9BQzslk.js";import{n as l}from"./mui-8xKzSljO.js";import{Fq as ce,bS as pe,Fr as me}from"./zeni-epic-state-D9zDRHOK.js";import{f as xe}from"./VideoPopup-BEXc8o78-DJiZW-Cs.js";import{M as b}from"./usp-line-BBd1wKwW-CVrOUZlu.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./VideoPlayer-BVR9LPmm-B4UxpKEs.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="c25cc18d-84f6-40ad-bd2b-165e3a8e2dca",i._sentryDebugIdIdentifier="sentry-dbid-c25cc18d-84f6-40ad-bd2b-165e3a8e2dca")}catch{}})();const U="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-CvlVPVCA-CCbbdiQc.js → BillPaySetUpPage-CvlVPVCA-CckOfR6h.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as $e,q as De,aN as W,a8 as Oe,cB as Re,F as Ue,aS as Q,V as t,f6 as He,p as ze,aM as Le,y as u,bz as qe,m as Me,ab as Ne,fp as H,dM as Ge,fq as Je,bu as Ze,dC as Ke,bQ as Qe,fr as Xe,aO as Ye,o as L,fs as et,c as a,ak as tt,bH as it}from"./index-
|
|
1
|
+
import{d as $e,q as De,aN as W,a8 as Oe,cB as Re,F as Ue,aS as Q,V as t,f6 as He,p as ze,aM as Le,y as u,bz as qe,m as Me,ab as Ne,fp as H,dM as Ge,fq as Je,bu as Ze,dC as Ke,bQ as Qe,fr as Xe,aO as Ye,o as L,fs as et,c as a,ak as tt,bH as it}from"./index-BGhFLU7w.js";import{a as m}from"./sentry-C9BQzslk.js";import{n as b}from"./mui-8xKzSljO.js";import{bJ as nt}from"./zeni-epic-state-D9zDRHOK.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-COtszXUY-BbmaGPRn.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="cc357bf6-1eeb-4ce2-8776-ce041b231d9a",e._sentryDebugIdIdentifier="sentry-dbid-cc357bf6-1eeb-4ce2-8776-ce041b231d9a")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",E="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=$e(),i=De(),[A,S]=m.useState(!1),M=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:Ie}=v,$=_.link_account.updateStatus,D=_.update_account.updateStatus,B=W(f),J=W(P.fetchState),Z=W($.fetchState),K=W(D.fetchState),w=Oe({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&B==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,B]),m.useEffect(()=>{(B==="In-Progress"&&f==="Completed"||Z==="In-Progress"&&$.fetchState==="Completed"||K==="In-Progress"&&D.fetchState==="Completed")&&w.reset(z(e))},[B,f,w,e,Z,$.fetchState,K,D.fetchState]);const je=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Be=async(x,F)=>{const o=F[E];if(x.includes(E)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=N.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Ve,{billPaySetup:l}=Fe.billPay,O=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,We=O?r.setupVerifiedSubTitle:l.setupSubTitle,Ee=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=k.mode==="light"?new Q(k.colors.brandColorJadeLight):new Q(k.colors.brandColorJadeDark),_e=()=>{!A&&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(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:M,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:We}),Ee?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...w,children:t.jsx("form",{id:Y(X),onSubmit:je,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:N,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:E,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Qe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&j.length>0?t.jsx(Ye,{formId:Y(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:O&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as be,q as we,a8 as Ce,cB as Pe,aS as j,F as xe,V as t,y as P,bz as Ie,m as Ae,ab as ve,bu as ke,cC as je,aO as $e,o as s,hF as Ve,eU as Be,eV as Te,c as x,ak as De,gO as Ee,p as Le,a as ze}from"./index-
|
|
1
|
+
import{d as be,q as we,a8 as Ce,cB as Pe,aS as j,F as xe,V as t,y as P,bz as Ie,m as Ae,ab as ve,bu as ke,cC as je,aO as $e,o as s,hF as Ve,eU as Be,eV as Te,c as x,ak as De,gO as Ee,p as Le,a as ze}from"./index-BGhFLU7w.js";import{a as F}from"./sentry-C9BQzslk.js";import{n as r}from"./mui-8xKzSljO.js";import{M as Oe,r as H,o as Me}from"./PaymentAccountSetupBillingAddressSection-BiU8tQnm-CY8MBOF0.js";import{F as _e}from"./SetUpAccountSection-C1EnJv1V-BqOATLaf.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./zeni-epic-state-D9zDRHOK.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="a1119bae-0540-4846-bec0-1e38bac143fd",e._sentryDebugIdIdentifier="sentry-dbid-a1119bae-0540-4846-bec0-1e38bac143fd")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Fe={title:new ze("standardSemiBold","largeSemiBold")},R="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:q,stripeKey:K,googleAPIKey:N,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 w=be(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:V},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=V.fetchState==="In-Progress"||V.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(i),values:U(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(G)}),T=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:b}=a[n].street,k=Be(b?.country);u={street:a[n].street??l.strings.empty,city:b?.locality??l.strings.empty,state:b?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:b?.countryCode??l.strings.empty,postalCode:b?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Te(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const D=w.mode==="light"?new j(w.colors.brandColorJadeLight):new j(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,z=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;L&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:H(z).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:H(z).name}),color:new j(D)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=F.useState(!1);return t.jsxs(Re,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(He,{windowSize:o,children:[t.jsx(Ue,{windowSize:o,children:ge}),ue?t.jsx(We,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:W(R),onSubmit:pe,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:D},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),je(f.formState.dirtyFields)?t.jsx($e,{formId:W(R),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:T?.fetchState==="In-Progress",isDisabled:T?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},U=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Ve(n,e.subscriptionBillingAddress)[n]}},He=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as b,cm as O,cn as M,co as W,j$ as q,aV as z,F as G}from"./index-
|
|
1
|
+
import{V as b,cm as O,cn as M,co as W,j$ as q,aV as z,F as G}from"./index-BGhFLU7w.js";import{a as f}from"./sentry-C9BQzslk.js";import{G4 as K}from"./zeni-epic-state-D9zDRHOK.js";import{u as Q}from"./ReviewOverlay-CruJ9O84-C1Nn7-W1.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./mui-8xKzSljO.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="5aaf1384-00ef-4714-b97f-8a398c6ec78e",e._sentryDebugIdIdentifier="sentry-dbid-5aaf1384-00ef-4714-b97f-8a398c6ec78e")}catch{}})();const{common:s,spendManagement:{billPay:x}}=G.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,v]=f.useState(T(e,u)),[p,E]=f.useState(u),[B,k]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(I),L===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),k(d=>d+1)},1e3)),B===n.length&&p&&(E(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,Y(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},V={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(O,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(M,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:V,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&K(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},Y=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,Y as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as l,V as s,aM as b,o as e}from"./index-
|
|
1
|
+
import{q as l,V as s,aM as b,o as e}from"./index-BGhFLU7w.js";import{n as a}from"./mui-8xKzSljO.js";import{o as p}from"./commonDimensions-BDftm0gJ-CtNxdt96.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="0ec3cfa5-337b-4e77-b2bd-8bd9c3b5906c",o._sentryDebugIdIdentifier="sentry-dbid-0ec3cfa5-337b-4e77-b2bd-8bd9c3b5906c")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ct,q as dt,aN as Te,V as a,ad as W,a8 as mt,cP as ut,ax as pt,cB as ft,aV as ve,aL as Ie,g5 as yt,n as ht,bz as gt,aM as xt,cC as St,cm as wt,cn as bt,co as Ct,m as Dt,ab as Tt,aO as vt,o,y as L,al as Oe,F as Ve,g6 as It,ft as ke,eU as kt,D as $t,L as jt,ak as Fe,a as Nt,B as Pt,c as $}from"./index-CiMyMhgu.js";import{a as O}from"./sentry-DMKAGVXl.js";import{n as d}from"./mui-D2MqZYRi.js";import{EH as Lt,bi as G}from"./zeni-epic-state-DjAFCaxy.js";import{S as Ot,s as Vt}from"./CompanyOfficerDetailsSection-DR_6TlQa-CaPRdQzP.js";import"./liveblocks-D92pTRaw.js";import"./core-CadaPWsO.js";import"./recharts-t7V-Kaqf.js";import"./lottie-Dv5hJ5mA.js";import"./analytics-C6L7hlHG.js";import"./lexical-DEI4_j9X.js";import"./utils-BWiizB9D.js";import"./LabeledAddressValueField-CC7T3qZQ-CjYkOklE.js";import"./LabeledCreatableSingleSelectField-DKD0oEl8-Cyxj1Kus.js";import"./LabeledDocumentField-Dy3jwAiL-XoHwubm3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},T=new e.Error().stack;T&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[T]="ea5a9906-ca4b-49e1-8a73-9370bab16e13",e._sentryDebugIdIdentifier="sentry-dbid-ea5a9906-ca4b-49e1-8a73-9370bab16e13")}catch{}})();const x={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,$[3]),subTitlePaddingBottom:new L($[3],$[3]),verificationDetailsRowGap:new L(12,$[5],$[5]),termsPaddingLeftRight:new L($[0],$[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},$e="businessVerificationPage",C="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:je,footer:Ne,strings:{empty:Bt}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:T,verficationDetailsFetchState:j,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:B,productType:y,allIndustries:A,companyTitles:E,maxInsuredAmount:p,isDisabled:N,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Be,onBackClick:V,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),m=dt(),{updateStatus:R,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Je=Te(R.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=U==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Q]=O.useState(!1),[M,oe]=O.useState("save"),[X,Ze]=O.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:At(e,A,E,T)}),{isValid:He}=u.formState,J=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,k=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;s!=null&&f!=null&&b!=null&&k!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:k,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",k=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${D}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!k?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return u.trigger(`${D}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(M!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${D}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Lt(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(I),q===!0&&Qe?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(D)&&We?.(s[D])},nt=O.useCallback(pt((t,s)=>{st(t,s)},300),[]);O.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{Q(!1),V();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${D}.${f}.fileIds`).forEach(k=>{b.includes(k)||t.push(k)})}),t.length!==0&&Me?.(t)},onCancelClick:()=>{Q(!1)}},lt=ve(Ie(p),p,je.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?Bt:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?Q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),j==="In-Progress"||j==="Not-Started"?a.jsx(Mt,{children:a.jsx(Dt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:Pe($e),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(Qt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Jt,{children:a.jsxs(Kt,{children:[a.jsx(Le,{}),de&&a.jsx(Le,{}),a.jsx(Yt,{})]})})]}),a.jsx(_e,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:T,allOfficers:Y??[],sectionId:D,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:r,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Be,connectedAccountProvider:U,allIndustries:A})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),j==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Pe($e),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const t=w[I],s=l?.primaryContactLocalData;M!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(I))}}},helperText:Ke,style:{padding:`12px ${o.sp3}`,zIndex:X?0:4}}):null]})},At=(e,T,j,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=e,A=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{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:T?.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:A.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[D]:Object.values(B).map((p,N)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${N+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:kt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:j?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Pe=e=>`${e}_form`,Et=d.div`
|
|
1
|
+
import{d as ct,q as dt,aN as Te,V as a,ad as W,a8 as mt,cP as ut,ax as pt,cB as ft,aV as ve,aL as Ie,g5 as yt,n as ht,bz as gt,aM as xt,cC as St,cm as wt,cn as bt,co as Ct,m as Dt,ab as Tt,aO as vt,o,y as L,al as Oe,F as Ve,g6 as It,ft as ke,eU as kt,D as $t,L as jt,ak as Fe,a as Nt,B as Pt,c as $}from"./index-BGhFLU7w.js";import{a as O}from"./sentry-C9BQzslk.js";import{n as d}from"./mui-8xKzSljO.js";import{EH as Lt,bi as G}from"./zeni-epic-state-D9zDRHOK.js";import{S as Ot,s as Vt}from"./CompanyOfficerDetailsSection-DR_6TlQa-SwPBTgrA.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./LabeledAddressValueField-CC7T3qZQ-5fkS_FuY.js";import"./LabeledCreatableSingleSelectField-DKD0oEl8-Bqf3gDxT.js";import"./LabeledDocumentField-Dy3jwAiL-FmwpCOt6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},T=new e.Error().stack;T&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[T]="ea5a9906-ca4b-49e1-8a73-9370bab16e13",e._sentryDebugIdIdentifier="sentry-dbid-ea5a9906-ca4b-49e1-8a73-9370bab16e13")}catch{}})();const x={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,$[3]),subTitlePaddingBottom:new L($[3],$[3]),verificationDetailsRowGap:new L(12,$[5],$[5]),termsPaddingLeftRight:new L($[0],$[3])},Ft={stepTitle:new Nt("h6Regular","h5Regular")},$e="businessVerificationPage",C="companyDetails",D="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:je,footer:Ne,strings:{empty:Bt}}}=Ve.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:T,verficationDetailsFetchState:j,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:B,productType:y,allIndustries:A,companyTitles:E,maxInsuredAmount:p,isDisabled:N,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Be,onBackClick:V,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),m=dt(),{updateStatus:R,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Je=Te(R.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=U==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Q]=O.useState(!1),[M,oe]=O.useState("save"),[X,Ze]=O.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:At(e,A,E,T)}),{isValid:He}=u.formState,J=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,k=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;s!=null&&f!=null&&b!=null&&k!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:k,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",k=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${D}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!k?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return u.trigger(`${D}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(M!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${D}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Lt(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(I),q===!0&&Qe?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(D)&&We?.(s[D])},nt=O.useCallback(pt((t,s)=>{st(t,s)},300),[]);O.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{Q(!1),V();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${D}.${f}.fileIds`).forEach(k=>{b.includes(k)||t.push(k)})}),t.length!==0&&Me?.(t)},onCancelClick:()=>{Q(!1)}},lt=ve(Ie(p),p,je.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?Bt:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?Q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),j==="In-Progress"||j==="Not-Started"?a.jsx(Mt,{children:a.jsx(Dt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:Pe($e),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(Qt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Jt,{children:a.jsxs(Kt,{children:[a.jsx(Le,{}),de&&a.jsx(Le,{}),a.jsx(Yt,{})]})})]}),a.jsx(_e,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:T,allOfficers:Y??[],sectionId:D,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:r,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Ae,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Be,connectedAccountProvider:U,allIndustries:A})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),j==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Pe($e),primaryBtn:{label:S?Ne.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?Ne.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const t=w[I],s=l?.primaryContactLocalData;M!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(I))}}},helperText:Ke,style:{padding:`12px ${o.sp3}`,zIndex:X?0:4}}):null]})},At=(e,T,j,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=e,A=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{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:T?.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:A.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[D]:Object.values(B).map((p,N)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${N+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:kt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:j?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Pe=e=>`${e}_form`,Et=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as m,V as r,F as y,b as w,o as s,a as b,B as x}from"./index-
|
|
1
|
+
import{q as m,V as r,F as y,b as w,o as s,a as b,B as x}from"./index-BGhFLU7w.js";import{n as o}from"./mui-8xKzSljO.js";import{a as c}from"./sentry-C9BQzslk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="7a6da756-eb81-49ce-adf3-ad5df1546f93",e._sentryDebugIdIdentifier="sentry-dbid-7a6da756-eb81-49ce-adf3-ad5df1546f93")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:a,styles:l})=>{const g=m(),f=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,h=e.status.code==="request_on_hold"||!a?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:a,className:"cardName",title:`${h}`,children:[f,r.jsx(H,{}),d,n&&!a?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,n&&a?r.jsx(u,{}):null]})},v=o(x)`
|
|
2
2
|
${e=>e.forDetailPage?{...w.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as j,q as f,V as t,bz as te,fc as L,b as u,b1 as Z,bY as ie,o as i,F as w,p as B,y as h,ak as v,de as oe,c as l,aV as re,aK as T,bO as ae,ag as $,aM as z,jd as N,je as U,iT as se,cv as ne,cy as de,al as O,iU as le,iV as ce}from"./index-
|
|
1
|
+
import{d as j,q as f,V as t,bz as te,fc as L,b as u,b1 as Z,bY as ie,o as i,F as w,p as B,y as h,ak as v,de as oe,c as l,aV as re,aK as T,bO as ae,ag as $,aM as z,jd as N,je as U,iT as se,cv as ne,cy as de,al as O,iU as le,iV as ce}from"./index-BGhFLU7w.js";import{n as o}from"./mui-8xKzSljO.js";import{FY as b,bh as he}from"./zeni-epic-state-D9zDRHOK.js";import{S as R,a as K}from"./sentry-C9BQzslk.js";import{q as pe}from"./InsightsSection-DvqCilqy-BQT_s43S.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as fe}from"./recharts-BnXj3KRI.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./NavigationDots-BvKSgdgh-ChF9WLMp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f0403d45-4663-41ed-bddf-7df9a239a3a8",e._sentryDebugIdIdentifier="sentry-dbid-f0403d45-4663-41ed-bddf-7df9a239a3a8")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=j();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(ke,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(q,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ke=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN as et,V as t,gV as ji,bz as Li,c as l,fQ as br,aK as Ge,aM as J,o as a,bQ as Qt,p as d,F as ke,iZ as Sr,b as U,cm as Ii,i_ as Di,f6 as Ai,gJ as Ti,i$ as Ri,bC as Ei,bL as yr,aQ as ea,j0 as Fi,j1 as $r,j2 as ot,y as T,bH as vr,b8 as ta,h as Pi,aR as kr,aZ as zi,j3 as Mi,j4 as Vi,b5 as aa,ag as ge,ey as Oi,iN as Hi,u as gt,gU as jr,m as mt,b1 as Ni,dj as Bi,cq as Wi,cn as Ui,d2 as _i,ht as Zi,ak as Oe,bS as Gi,aW as Wt,j5 as Fa,j6 as Yi,a as Pa,B as Lr,b7 as qi,j7 as Xi,iH as pt,iS as Ji,iX as Ki,iY as Qi,dr as za,eQ as eo,n as Ir,cv as Dr,iQ as to,bV as ao,l as Ar,j8 as ro,au as vt,bY as Ma,bv as io,db as oo,al as st,hp as no,ap as so,L as co,bD as lo,j9 as Dt,fj as ho,ja as Tr,jb as Rr,gt as Er,jc as jt,i8 as Fr,bO as po,ed as Pr,iT as uo,cy as mo,dM as go,cY as Co,iU as fo,iV as wo,ej as xo,cd as bo,ce as So}from"./index-
|
|
1
|
+
import{d as tt,q as Le,av as Lt,a7 as It,gR as wr,hw as ki,aS as Qe,gS as xr,aN as et,V as t,gV as ji,bz as Li,c as l,fQ as br,aK as Ge,aM as J,o as a,bQ as Qt,p as d,F as ke,iZ as Sr,b as U,cm as Ii,i_ as Di,f6 as Ai,gJ as Ti,i$ as Ri,bC as Ei,bL as yr,aQ as ea,j0 as Fi,j1 as $r,j2 as ot,y as T,bH as vr,b8 as ta,h as Pi,aR as kr,aZ as zi,j3 as Mi,j4 as Vi,b5 as aa,ag as ge,ey as Oi,iN as Hi,u as gt,gU as jr,m as mt,b1 as Ni,dj as Bi,cq as Wi,cn as Ui,d2 as _i,ht as Zi,ak as Oe,bS as Gi,aW as Wt,j5 as Fa,j6 as Yi,a as Pa,B as Lr,b7 as qi,j7 as Xi,iH as pt,iS as Ji,iX as Ki,iY as Qi,dr as za,eQ as eo,n as Ir,cv as Dr,iQ as to,bV as ao,l as Ar,j8 as ro,au as vt,bY as Ma,bv as io,db as oo,al as st,hp as no,ap as so,L as co,bD as lo,j9 as Dt,fj as ho,ja as Tr,jb as Rr,gt as Er,jc as jt,i8 as Fr,bO as po,ed as Pr,iT as uo,cy as mo,dM as go,cY as Co,iU as fo,iV as wo,ej as xo,cd as bo,ce as So}from"./index-BGhFLU7w.js";import{a as o,S as yo}from"./sentry-C9BQzslk.js";import{n as r,c as we,k as zr}from"./mui-8xKzSljO.js";import{EF as At,bh as $o,bf as vo}from"./zeni-epic-state-D9zDRHOK.js";import{k as ko}from"./NavigationDots-BvKSgdgh-ChF9WLMp.js";import{A as jo,i as Lo,a as Io,l as Do,r as Ao,t as To,n as Ro}from"./add-to-wallet-DgdBD8_G-D178ysGy.js";import{L as Ut}from"./lottie-QlMyEFez.js";import{j as Eo}from"./CardNumberSubText-BYY-Inxd-B5eDSuWq.js";import{r as Mr}from"./core-BCGhSsNP.js";import{l as Vr}from"./uploadReceipts-CPw64UYa-BH5K-sl5.js";import{L as Fo,z as Po,k as zo,P as Mo}from"./LockCardPage-CjO8cr2a-C3aOpkLz.js";import"./liveblocks-DjrSQGDL.js";import"./recharts-BnXj3KRI.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./RoleWithToolTip-fC3byzzv-DvgcIN_v.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="3c4fbef5-7d99-4d02-85b8-6f0b1d437274",e._sentryDebugIdIdentifier="sentry-dbid-3c4fbef5-7d99-4d02-85b8-6f0b1d437274")}catch{}})();const Or=ke.getLocalizedStrings().spendManagement.chargeCard,Vo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:I,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=It().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:K}=Vi(),_=Lt(),D=At(_.loggedInUserRoleMap);return t.jsx(Oo,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):K===!0?t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(I,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Jt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Ir,{prefixIcon:t.jsx(Ho,{}),label:Or.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Ir,{prefixIcon:t.jsx(No,{}),label:Or.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-apple-wallet-button")})},Oo=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a7 as Ka,aN as N,av as Za,fP as Qa,iH as V,q as Pe,o as a,d as ea,V as t,bz as Xa,g1 as er,fc as re,b as D,bQ as it,p,aK as he,aV as ot,aM as st,F as Fe,y as W,ag as q,a as tr,B as ar,cT as rr,as as ta,bH as ir,aZ as dt,aQ as or,al as ct,a8 as nr,gM as sr,cW as dr,an as cr,ab as lr,g7 as ur,n as Bt,c as _,d4 as aa,ap as hr,ak as mr,D as pr,cS as Cr,bt as gr,bS as br}from"./index-
|
|
1
|
+
import{a7 as Ka,aN as N,av as Za,fP as Qa,iH as V,q as Pe,o as a,d as ea,V as t,bz as Xa,g1 as er,fc as re,b as D,bQ as it,p,aK as he,aV as ot,aM as st,F as Fe,y as W,ag as q,a as tr,B as ar,cT as rr,as as ta,bH as ir,aZ as dt,aQ as or,al as ct,a8 as nr,gM as sr,cW as dr,an as cr,ab as lr,g7 as ur,n as Bt,c as _,d4 as aa,ap as hr,ak as mr,D as pr,cS as Cr,bt as gr,bS as br}from"./index-BGhFLU7w.js";import{a as l}from"./sentry-C9BQzslk.js";import{n as r,c as lt,k as fr}from"./mui-8xKzSljO.js";import{EF as xr,FX as yr,bh as zt,bL as Sr,bP as wr}from"./zeni-epic-state-D9zDRHOK.js";import{K as kr}from"./SpendManagementSection-C38Zpi1z-zTQSB9zV.js";import{D as ie,l as $r,r as Ir}from"./ChargeCardListTable-D5B05Z1F-D4hpaga1.js";import{ChargeCardPromoUserContent as jr}from"./ChargeCardPromoPage-CDJMtGJb-hssoPQjs.js";import{N as vr,J as Lr}from"./PromoBaseCards-flFtcbIg-C0jZRRzU.js";import{z as Nt,L as Ot,k as Ar,P as Pr}from"./LockCardPage-CjO8cr2a-C3aOpkLz.js";import{r as Fr,i as Er}from"./graphic-no-data-net-burn-l-CzmycA0m-9rVTKZNa.js";import{t as Mr,o as Tr}from"./arrow-south-east-round-PEovUgvH-Ccxih1KW.js";import"./liveblocks-DjrSQGDL.js";import"./core-BCGhSsNP.js";import"./recharts-BnXj3KRI.js";import"./lottie-QlMyEFez.js";import"./analytics-D090O6Wm.js";import"./lexical-CtZYfzDm.js";import"./utils-zYB6z_it.js";import"./Menu-wpP8R1br-BkJyq7Tb.js";import"./RoleWithToolTip-fC3byzzv-DvgcIN_v.js";import"./CardNumberSubText-BYY-Inxd-B5eDSuWq.js";import"./NavigationDots-BvKSgdgh-ChF9WLMp.js";import"./usp-line-BBd1wKwW-CVrOUZlu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="0355953f-a764-46bb-a051-eee342ab3f54",e._sentryDebugIdIdentifier="sentry-dbid-0355953f-a764-46bb-a051-eee342ab3f54")}catch{}})();const ut={infoSubheadingTextMarginTop:new W(_[0],_[0]),cardsMinWidth:new W(343,353)},Ae=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,_t=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:k,statusMessage:U})=>{const B=Pe(),L=k!==void 0,G=k==="rejected"?Ae.status.requestRejected:k==="under_review"?Ae.status.requestUnderReview:"";return t.jsxs(Rr,{windowSize:B,cardPromoType:e,"data-testid":st("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ra,{isStatusMode:L,children:[t.jsxs(oa,{children:[L?t.jsx(Nr,{children:G}):t.jsx(ia,{children:u}),t.jsx(_r,{children:d}),L?null:t.jsx(Wr,{children:n})]}),!L&&t.jsxs(Gr,{children:[t.jsx(Yr,{}),m.length>0&&t.jsx(nt,{slideUpCount:m.length,children:m.map((oe,ne)=>t.jsx(na,{children:oe},`card-promo-${ne.toString()}`))}),t.jsx(qr,{})]}),U!=null&&L?t.jsx(Or,{status:k,children:U}):null]}),t.jsx(Hr,{isStatusMode:L,children:t.jsx(vr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Jr,{isStatusMode:L,children:t.jsx(Lr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Ut=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Pe();return t.jsx(Br,{windowSize:m,cardType:e,children:t.jsxs(zr,{children:[t.jsxs(oa,{children:[t.jsx(ia,{children:c}),t.jsx(Vr,{children:t.jsx(Ur,{children:u})}),t.jsx(Kr,{windowSize:m,children:t.jsxs(Zr,{windowSize:m,onClick:()=>n(e),"data-testid":st("total-cashback-info"),children:[t.jsx(na,{children:Ae.createNow}),t.jsx(Qr,{})]})})]}),e==="creditCard"?t.jsxs(Xr,{children:[t.jsx(ei,{children:Ae.creditLimit}),t.jsx(ti,{children:d})]}):null]})})},Dr=e=>{const c=e-1;let u=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ca as ni,V as t,a8 as li,ab as di,F as le,q as ie,av as Se,a7 as ci,d as Fe,gR as hi,iI as pi,iJ as ui,iK as mi,aO as gi,o as i,aM as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iL as fi,iM as yi,bQ as ye,bL as Si,aQ as ki,y as C,ey as vi,b8 as $i,iN as ji,aR as bi,u as Ii,ag as ee,gU as Li,al as J,ak as Q,c as p,cO as Fi,cX as zi,iO as Ai,iP as Ri,a as ft,bV as yt,iQ as St,iR as Pi,bO as Bi,cv as Je,iS as kt,dr as Di,ds as q,aK as ce,cs as vt,m as $t,iT as _i,cy as Ei,iA as Qe,bH as jt,bJ as bt,iU as Oi,iV as Ti,aS as $e,br as Vi,bW as Ni,bX as Ui,iW as Mi}from"./index-CiMyMhgu.js";import{S as pe,a as f}from"./sentry-DMKAGVXl.js";import{n as o,c as Ye}from"./mui-D2MqZYRi.js";import{P as Te}from"./Menu-wpP8R1br-CAapPWSw.js";import{T as It}from"./RoleWithToolTip-fC3byzzv-Da5EXkAB.js";import{j as Ve}from"./CardNumberSubText-BYY-Inxd-VoZJjuBC.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="0d53e227-df5e-4df5-be6a-f58b9d135922",e._sentryDebugIdIdentifier="sentry-dbid-0d53e227-df5e-4df5-be6a-f58b9d135922")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,P]=f.useState(!1);f.useEffect(()=>{h||P(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),P(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),F=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",U=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=F||U,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),T=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,z=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:z[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:z[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:z[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&P(!0)},onMouseLeave:()=>{A&&P(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Ft=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Fe(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
|
|
1
|
+
import{ca as ni,V as t,a8 as li,ab as di,F as le,q as ie,av as Se,a7 as ci,d as Fe,gR as hi,iI as pi,iJ as ui,iK as mi,aO as gi,o as i,aM as G,cj as xi,b as Be,p as I,b1 as wi,cq as Ci,iL as fi,iM as yi,bQ as ye,bL as Si,aQ as ki,y as C,ey as vi,b8 as $i,iN as ji,aR as bi,u as Ii,ag as ee,gU as Li,al as J,ak as Q,c as p,cO as Fi,cX as zi,iO as Ai,iP as Ri,a as ft,bV as yt,iQ as St,iR as Pi,bO as Bi,cv as Je,iS as kt,dr as Di,ds as q,aK as ce,cs as vt,m as $t,iT as _i,cy as Ei,iA as Qe,bH as jt,bJ as bt,iU as Oi,iV as Ti,aS as $e,br as Vi,bW as Ni,bX as Ui,iW as Mi}from"./index-BGhFLU7w.js";import{S as pe,a as f}from"./sentry-C9BQzslk.js";import{n as o,c as Ye}from"./mui-8xKzSljO.js";import{P as Te}from"./Menu-wpP8R1br-BkJyq7Tb.js";import{T as It}from"./RoleWithToolTip-fC3byzzv-DvgcIN_v.js";import{j as Ve}from"./CardNumberSubText-BYY-Inxd-B5eDSuWq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="0d53e227-df5e-4df5-be6a-f58b9d135922",e._sentryDebugIdIdentifier="sentry-dbid-0d53e227-df5e-4df5-be6a-f58b9d135922")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,P]=f.useState(!1);f.useEffect(()=>{h||P(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),P(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),F=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",U=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=F||U,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),T=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,z=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Y=a.type.code,_=$.cardList.tooltip[Y],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Qi,{windowSize:v,children:t.jsx(Yi,{onClick:M,"data-testid":G("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:z[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:z[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:z[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&P(!0)},onMouseLeave:()=>{A&&P(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Ft=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Xi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(O,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(O,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(O,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(O,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Pe,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Fe(),d=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Qe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},O=o(Q)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(Q)`
|
|
4
4
|
color: ${I.important};
|