@zeniai/web-cockpit-ui 1.15.64-dev → 1.15.64-next
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-fOu5grd7-BdSVzP6f.js → ACHDetailsPage-fOu5grd7-BQab31-r.js} +1 -1
- package/dist/assets/{AIPerformancePage-Da3gFo8A-CckgxOO_.js → AIPerformancePage-Da3gFo8A-AGsO9Ers.js} +1 -1
- package/dist/assets/{AccountInfoPage-o7hTXtgZ-zH78FLFW.js → AccountInfoPage-o7hTXtgZ-BSIFU5Fg.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DqErO8FH-Dmzn6pIA.js → AccountInfoPageContent-DqErO8FH-BFY7yIc6.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BJjCuLHa-DrT3dsPq.js → AccountLockedInfoModal-BJjCuLHa-ff0C6rDz.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-CVjH1p0d-BxBrHwo0.js → AccountReconDetailsDrawerPage-CVjH1p0d-CfggfK0B.js} +1 -1
- package/dist/assets/{AccountRow-CpftykFx-oOdBXU8G.js → AccountRow-CpftykFx-Cp2fNiFY.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-D7xvgmOH-D3-ZzkOb.js → AccountsPromoCardStack-D7xvgmOH-DkN_s0TJ.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-vecchYEf-CGSqzhVX.js → AddAddressForCardDrawer-vecchYEf-BJS49st-.js} +1 -1
- package/dist/assets/{AddToWalletPage-zJy9QCjx-C_qfE17G.js → AddToWalletPage-zJy9QCjx-DvT1ndmW.js} +1 -1
- package/dist/assets/{AgingReportsPage-wAvQb1d8-C15jlpMU.js → AgingReportsPage-wAvQb1d8-LwL5jfUq.js} +1 -1
- package/dist/assets/{AllUserItems-DEv_CXOA-B5fCEIiV.js → AllUserItems-DEv_CXOA-C8j7eaFo.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BOV1WFVF-Dp8s2FuX.js → ApAgingDetailPage-BOV1WFVF-Cnw1CTR7.js} +1 -1
- package/dist/assets/{AppBasePage-DMlomvFS-CGojLnOO.js → AppBasePage-DMlomvFS-wPlg6lOd.js} +1 -1
- package/dist/assets/{AppDrawerContent-Dc2sHnR3--YF7Xqpp.js → AppDrawerContent-Dc2sHnR3-Gwm120QU.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-BnbPSy4U-qsIqsWa1.js → ApprovalRulesSettingsPage-BnbPSy4U-SABeAeOS.js} +1 -1
- package/dist/assets/{ArAgingChart-m-Xp3HAW-NCxV7iBs.js → ArAgingChart-m-Xp3HAW-BuTyfmOy.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-b_NpDpWj-z4UOMnMu.js → ArAgingDetailPage-b_NpDpWj-Dx8gxQBv.js} +1 -1
- package/dist/assets/{AttachmentView-DB_V1qT1-BBS5lFy5.js → AttachmentView-DB_V1qT1-DmTJ6caW.js} +1 -1
- package/dist/assets/{BankAccountSection-BabhrBM7-AYC21fpT.js → BankAccountSection-BabhrBM7-DTSnwq_E.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-yT2UAd12-C1lPi6To.js → BankAccountWarningSection-yT2UAd12-CjcTHtd0.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-CbxXykMM-C4x6xhVH.js → BankConnectionsSettingsPage-CbxXykMM-BlJAlfmg.js} +1 -1
- package/dist/assets/{BillDetailPage-7TMkWo3V-CAz7q8si.js → BillDetailPage-7TMkWo3V-0TjWgo-F.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-COyDRpaF-DAcMEAnT.js → BillPayApprovalRuleDetailPage-COyDRpaF-BpX5R4Io.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-9pxkgFAT-DPJx3hcv.js → BillPayApprovalRulesPage-9pxkgFAT-DFcRaLCp.js} +1 -1
- package/dist/assets/{BillPayPromoPage-AGffhbY3-C_QscQuJ.js → BillPayPromoPage-AGffhbY3-DZsatXbJ.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-Cs5rkWBu-GrPc_Ghq.js → BillPaySetUpPage-Cs5rkWBu-CDMzpJwT.js} +1 -1
- package/dist/assets/{BillingSettingsPage-CQ117tT9-czyNT2CA.js → BillingSettingsPage-CQ117tT9-EcBteyo6.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-DRkGQQAe-B4jJeKlF.js → BillsBulkReviewDrawerPage-DRkGQQAe-DzSowwfK.js} +1 -1
- package/dist/assets/{BoxItem-DRwx0M5a-DCS0EEq5.js → BoxItem-DRwx0M5a-BOzUW4AC.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-1h0z3N9u-Bz-00d77.js → BusinessVerificationPage-1h0z3N9u-C_i-ZzsM.js} +1 -1
- package/dist/assets/{CardNumberSubText-DqtLT1w5-DO6jyw3h.js → CardNumberSubText-DqtLT1w5-DXiQdLzK.js} +1 -1
- package/dist/assets/{CashbackDetailPage-ChdQcvkC-C57bRmfy.js → CashbackDetailPage-ChdQcvkC-sphqjShk.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DFOKlPNG-xcGq1wRM.js → ChargeCardDetailPage-DFOKlPNG-J3dpN26k.js} +1 -1
- package/dist/assets/{ChargeCardListPage-DhLUsUhd-DuclyBke.js → ChargeCardListPage-DhLUsUhd-BzeGjwLv.js} +1 -1
- package/dist/assets/{ChargeCardListTable-DE72YU_i-DcBJaKK3.js → ChargeCardListTable-DE72YU_i-Dx1EFTdQ.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-CbGR18s--BFbYhOSS.js → ChargeCardPaymentHistoryPage-CbGR18s--BqsZ0OiY.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-CPpNh89o-CBfHtaX_.js → ChargeCardPromoPage-CPpNh89o-Bqb3Zf4F.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-ITi25kUD-DfzvZRO7.js → ChargeCardSetupPage-ITi25kUD-DbGoc5xW.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-CTJc1BCc-DxoD4bYi.js → ChargeCardStatementsPage-CTJc1BCc-BJ8dr7Ba.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BrzeSj-3-DtRI-uAH.js → CheckDepositDrawerPage-BrzeSj-3-gtc5gaOJ.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CDEe9s_E-CMF0RoW1.js → CollapsableReportTable-CDEe9s_E-DOTF-z0w.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-BaPhFsLx-B9Snu63L.js → CompanyOfficerDetailsSection-BaPhFsLx-DACmvtur.js} +1 -1
- package/dist/assets/{CompanyPassportCard-B9ymV6Az-38EEl60M.js → CompanyPassportCard-B9ymV6Az--KXXOq-a.js} +1 -1
- package/dist/assets/{CompanyPassportPage-BQ68t7oK-Co1NqIiB.js → CompanyPassportPage-BQ68t7oK--AZrIypI.js} +1 -1
- package/dist/assets/{CompleteProfile-C5n9b8gQ-DwcNt9_I.js → CompleteProfile-C5n9b8gQ-BWmO39ov.js} +1 -1
- package/dist/assets/{ConfettiBurst-BizTW0hz-CvR9oZ5e.js → ConfettiBurst-BizTW0hz-rPhXMLuR.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-XtnsGBeT.js → ConstrainedInnerElement-BeIpAPjB-BRsKF_vB.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BIfOA5Nr-Dlpym0z2.js → CreateOrEditVendorPage-BIfOA5Nr-66b-35V8.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CCpS-31h-C4-ObiYa.js → CreditCardPaymentDrawerPage-CCpS-31h-DOtvW_B8.js} +1 -1
- package/dist/assets/{CurrencySelectField-KvKyemY6-CmY2_QR6.js → CurrencySelectField-KvKyemY6-DZW5Vt4H.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-6VlMI4oY-DDFamjuz.js → CustomerOnboardingActivationPage-6VlMI4oY-DkrHUI-t.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-v0SSOg30.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BzbZb27J-sEi6CC-2.js → CustomerOnboardingDetailPageSkeleton-BzbZb27J-BT61tRti.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CWF_00EM-BRYus2iF.js → CustomerOnboardingNoStepsPage-CWF_00EM-C_pTT5nd.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DkW66A-p-GBHzS2sL.js → CustomerOnboardingPage-DkW66A-p-Bc2VAZJX.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-Ba0yotpP-kvF0C_U3.js → CustomerOnboardingProductSuitePage-Ba0yotpP-B5KgGs_h.js} +1 -1
- package/dist/assets/{Dashboard-bX3cWkmP-CshB3AQ6.js → Dashboard-bX3cWkmP-B5foEyDy.js} +1 -1
- package/dist/assets/{DashboardReportPage-DuZ4d4CE-WPRTD4S1.js → DashboardReportPage-DuZ4d4CE-D4SKwhCI.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-UV2CZToG-4yePe-Xl.js → DashboardSidebarBackgroundAnimation-UV2CZToG-Cm-dk7mX.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BY_OvuKg-1GMqn4-W.js → DepositAccTransactionItem-BY_OvuKg-GhjooDh7.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-a__bpCOB-CMJCJXrJ.js → DepositAccTransactionListPage-a__bpCOB-BTl2X2NF.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BumMT4QM-9o5TrTj8.js → DomesticWireDetailsPage-BumMT4QM-Dhr8FdDC.js} +1 -1
- package/dist/assets/{DownloadOverlay-DqiL3-FB-D2yDQ3WD.js → DownloadOverlay-DqiL3-FB-DY3M1Nto.js} +1 -1
- package/dist/assets/{DrawerPage-CaG-xx5d-D9_lXenJ.js → DrawerPage-CaG-xx5d-DwUvyUAE.js} +1 -1
- package/dist/assets/{EditPeoplePage-BcsdEp_d-IwV_edCq.js → EditPeoplePage-BcsdEp_d-yP6vi9Hq.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DNUmwdsH-B0QXso1w.js → EditReimbursementDetailPage-DNUmwdsH-DNViLobE.js} +1 -1
- package/dist/assets/{EntityDetailPage-DtX5TjBc-YkJZ_Dja.js → EntityDetailPage-DtX5TjBc-BPIrnsMs.js} +1 -1
- package/dist/assets/{EntitySummarySection-LEA5m6mN-CLLkbTp6.js → EntitySummarySection-LEA5m6mN-C7LdKIU1.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Dmhn7gfp-BnYLctJS.js → ExpenseAutomationOverviewPage-Dmhn7gfp-kaoOgHKC.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-B8C4BxoV-DWGhFpVk.js → ExpenseAutomationPage-B8C4BxoV-D4w-pFzd.js} +1 -1
- package/dist/assets/{ExpressPayPage-C-nqret2-CxxwTtu9.js → ExpressPayPage-C-nqret2-CHwg5U2p.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BHjUZ7s6-_5C6_vtm.js → FeaturePreviewPage-BHjUZ7s6-CbvC-1qc.js} +1 -1
- package/dist/assets/{FollowStepsSection-0eFMS0c5-DiNXhybo.js → FollowStepsSection-0eFMS0c5-Crvq3nzf.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-4eiopkzw-DKMz-KY4.js → GlobalReviewListPage-4eiopkzw-DCnZhWv9.js} +1 -1
- package/dist/assets/{InformationCardStack-C7XJCUlh-CHYlGlZV.js → InformationCardStack-C7XJCUlh-Bf1LM9M7.js} +1 -1
- package/dist/assets/{InsightsCardStack-fBAbQwhK-GOQwmuqO.js → InsightsCardStack-fBAbQwhK-BFspUDtp.js} +1 -1
- package/dist/assets/{InsightsSection-De9zu_me-VPfN5Xo7.js → InsightsSection-De9zu_me-fO_n1ybi.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BD5jqAv8-BskPS73Y.js → IntegrationsSettingsPage-BD5jqAv8-Blr9q62G.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-BftrE612-CKiFI9UY.js → InternationalWireSwiftDetailsPage-BftrE612-yMFm1uB9.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CDf7equc-1WYEjkVV.js → InternationalWireVerificationPage-CDf7equc-C3LL-yPm.js} +1 -1
- package/dist/assets/{InviteFormPage-E2igwKEh-BzkLo-m1.js → InviteFormPage-E2igwKEh-BcmmvUgr.js} +1 -1
- package/dist/assets/{InvitePageListView-Cuq9dlgu-BNjoQI0P.js → InvitePageListView-Cuq9dlgu-Dx4gs81g.js} +1 -1
- package/dist/assets/{InvitePeoplePage-Db4P4ZEq-B9OMfSrr.js → InvitePeoplePage-Db4P4ZEq--FjJZSjn.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DYCjz9CI-DkR29XTT.js → InvoiceUploadSection-DYCjz9CI-BSjPAfa8.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CK6fnO24-bch7HeIs.js → IssueChargeCardPage-CK6fnO24-DUq4AU8i.js} +1 -1
- package/dist/assets/{LabeledAddressValue-Ma1WURjK-BjRcNAyc.js → LabeledAddressValue-Ma1WURjK-A51Osu_c.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-C6-hVsPb-Bfrq1uTa.js → LabeledAddressValueField-C6-hVsPb-SvnkQYGO.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CgZg0uOW-CjFLwRIN.js → LabeledControlledCheckBoxField-CgZg0uOW-oAjjici4.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-sj8p7Rne-DmVlXwHY.js → LabeledCountryMultiSelectField-sj8p7Rne-BNt9Egt1.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DUTQh416-DtIYGO-z.js → LabeledCreatableSingleSelectField-DUTQh416-D_eDy0tz.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Bp9m-OrP-Di2DVQR8.js → LabeledDocumentField-Bp9m-OrP-Cv3EwCa5.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-3-KekP79-CBuG_XHQ.js → LabeledDropDownFormattedTextField-3-KekP79-CouvwkJK.js} +1 -1
- package/dist/assets/{LabeledText-DvzVOku6-CI8IYs0J.js → LabeledText-DvzVOku6-vd2SPUTM.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-BoHfD7aR.js → LabeledUserSingleSelectWithSubtitlesField-DCv1Q5qb-DN2oxMXA.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-kWC0ShEy-rvx0SYJG.js → LabeledZeniRolesDropDownField-kWC0ShEy-DMRhcOHr.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-WufhDGDQ-B3rjsU0T.js → LinkJETransactionPage-WufhDGDQ-C3tow9fn.js} +1 -1
- package/dist/assets/{LockCardPage-BBIVLYVD-B0YOZXXr.js → LockCardPage-BBIVLYVD-Bc1P2GXi.js} +1 -1
- package/dist/assets/{LowBalancePopup-ScEqPY9J-CQJroj6z.js → LowBalancePopup-ScEqPY9J-HnxUWV1P.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-C494txw0-BXL5Oo5F.js → MagicLinkACHDetailsPage-C494txw0-DPDy6NMP.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CONBCbOQ-CLIxJIug.js → MagicLinkDomesticWireDetailsPage-CONBCbOQ-DHhQe6wD.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-fSY3JGpz-f3s55HDr.js → MagicLinkInternationalWireDetailsPage-fSY3JGpz-BBMr0CKi.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-BDRXSAO4-BVQIDzU9.js → MagicLinkSuccessPage-BDRXSAO4-G8dM7SaL.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-ZnbKPIvJ-BSqgRJcf.js → MagicLinkTitleSection-ZnbKPIvJ-cupADejE.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DZT7JPlI-C6Z2pagF.js → MailingDetailsSection-DZT7JPlI-O0oExSnL.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-aQDVaEG1-DhCXDcNN.js → MyBankConnectionsSettingsPage-aQDVaEG1-Ddq_N56W.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BJrk56oA-8UK9qZGK.js → MyPendingActivationChargeCardListPage-BJrk56oA-IaygRYZd.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-L9WuP6HZ-4YifN_2G.js → MyProfileSettingsPage-L9WuP6HZ-BLt401c3.js} +1 -1
- package/dist/assets/{NavBarWithPicker-zmvBmWS1-A5yL3hW1.js → NavBarWithPicker-zmvBmWS1-DSbxLUgY.js} +1 -1
- package/dist/assets/{NavigationArrow-D26UG3p--DAuEEyBJ.js → NavigationArrow-D26UG3p--vCmsij62.js} +1 -1
- package/dist/assets/{NavigationDots-Bv4tBDN3-Dko875eO.js → NavigationDots-Bv4tBDN3-oYD3IjEb.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-vOn2O6B9-DskrKIYE.js → NewGlobalMerchantPage-vOn2O6B9-lsphEfwv.js} +1 -1
- package/dist/assets/{NoDataChart-CgT19fV7-Dq-PS5iw.js → NoDataChart-CgT19fV7-CT6v85pw.js} +1 -1
- package/dist/assets/{NoDataTable-CPjJmo4s-B0gXcJxM.js → NoDataTable-CPjJmo4s-BNfLJH7M.js} +1 -1
- package/dist/assets/{NotFoundPage-CP2i3FTm-B2Tx_Zo3.js → NotFoundPage-CP2i3FTm-MukSPW3w.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-CT9Dnb03-CqwjgM73.js → NotificationSettingsPage-CT9Dnb03-ByWCh6xZ.js} +1 -1
- package/dist/assets/{NotificationsListConfig-Bn1zmx6b-xLvRbIc5.js → NotificationsListConfig-Bn1zmx6b-TJ9FCC7G.js} +1 -1
- package/dist/assets/{NotificationsPage-DDwdR_Jq-CdZxB2zM.js → NotificationsPage-DDwdR_Jq-Bpv74c3q.js} +1 -1
- package/dist/assets/{OpExByVendorPage-DukFYlqO-CuXBR-rW.js → OpExByVendorPage-DukFYlqO-CSLbsErY.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-CVPkUlN6.js → OverlayContainerPage-D4QU0p4o-5ned2q-a.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Bgflh9Om-Dmxi28fl.js → PandLWithForecastPage-Bgflh9Om-RLnpQEEK.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-JPO-rPAd-CHgpZYyo.js → PaymentAccountSetupBillingAddressSection-JPO-rPAd-DFTRFu_Q.js} +1 -1
- package/dist/assets/{PeoplePage-CDvKreQl-CRlr1EmV.js → PeoplePage-CDvKreQl-DOPpfMq2.js} +1 -1
- package/dist/assets/{Preview-spWMBI70.js → Preview-Bh08QQ8y.js} +1 -1
- package/dist/assets/{ProductsCarousel-7R3cvGiS-DlBhSe7D.js → ProductsCarousel-7R3cvGiS-DsY73mkv.js} +1 -1
- package/dist/assets/{PromoBaseCards-DdCMZIc7-B6Z1nEXM.js → PromoBaseCards-DdCMZIc7-DdtdHqeM.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Ca36jKz2-CfdvU0-0.js → QBOConnectionDialog-Ca36jKz2-l23L4X-G.js} +1 -1
- package/dist/assets/{QBOSetupSection-CzBfIVqR-B4kKrGkW.js → QBOSetupSection-CzBfIVqR-ABeN4Ojo.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DUVSGQJ6-C7yuUziG.js → ReimbursementApprovalRuleDetailPage-DUVSGQJ6-ChQV3W0o.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-B48x1gPM-Bmxf9Hlc.js → ReimbursementApprovalRulesPage-B48x1gPM-BWeiV7Xt.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-oIC9QEyF-CRxw2XKK.js → ReimbursementDetailPage-oIC9QEyF-BOkR0rbh.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BKgsJieE-D41M31h1.js → ReimbursementPromoPage-BKgsJieE-KiKGlGxT.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-B_c-ZgFT-nyStFOEL.js → ReimbursementSetUpPage-B_c-ZgFT-CPGog1JW.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CeyGWbKR-CPHh3h5l.js → ReimbursementsBulkReviewDrawerPage-CeyGWbKR-DCDDfYMK.js} +1 -1
- package/dist/assets/{ReloadCard-DKGn1uxF-CHnWO982.js → ReloadCard-DKGn1uxF-DbH-tW4Z.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CXDvZEbR-DVKFHMpg.js → ReportTableViewSelector-CXDvZEbR-CRuUG9gx.js} +1 -1
- package/dist/assets/{ReportsPage-BoUyXSBC-DqEgIltZ.js → ReportsPage-BoUyXSBC-BiB0Kt2s.js} +1 -1
- package/dist/assets/{RevenueChart-SvdhwBcE-CclStxKG.js → RevenueChart-SvdhwBcE-BQ6Hnznt.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-tT1l4R2r-D31xag1Q.js → ReviewDetailsPage-tT1l4R2r-CyC_3RSM.js} +1 -1
- package/dist/assets/{ReviewOverlay-BoM41t8W-B3q95pxr.js → ReviewOverlay-BoM41t8W-BKsrsvnb.js} +1 -1
- package/dist/assets/{RoleWithToolTip-C8x5yXaK-Dbq6YNZJ.js → RoleWithToolTip-C8x5yXaK-Dm9Z_ANT.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bkp0mCOn-CXNO-V0F.js → ScheduleDetailsFixedAssetsPage-Bkp0mCOn-ClEuRXwo.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-Dg9rYJbn-DX2cGcR8.js → ScheduleDetailsPage-Dg9rYJbn-JZfz5BmP.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-J6Eja8XA-C4pj46PF.js → ScheduleSequenceTable-J6Eja8XA-DK2nJCvd.js} +1 -1
- package/dist/assets/{ScreenRoutes-Djen5Qso.js → ScreenRoutes-Dh9_9GMd.js} +1 -1
- package/dist/assets/{SetUpAccountSection-sfIB1h4i-ChZ6V5QM.js → SetUpAccountSection-sfIB1h4i-Bo3cXG50.js} +1 -1
- package/dist/assets/{SignIn-Cu2nzuEC-CMzKn_tC.js → SignIn-Cu2nzuEC-udO1onRl.js} +1 -1
- package/dist/assets/{SignInScreen-OAq50V8E.js → SignInScreen-C_a3tcP8.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-9V9u1jPF-CmDrIGYQ.js → SpendManagementListViewPage-9V9u1jPF-5A_NOo7G.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-COvEPq7V-Do4O10gl.js → SpendManagementPerTabPage-COvEPq7V-CWqwTqKd.js} +1 -1
- package/dist/assets/{SpendManagementSection-dT-N4bSQ-BiovZfwW.js → SpendManagementSection-dT-N4bSQ-DyiRwDlk.js} +1 -1
- package/dist/assets/{StatementItem-g5tfNBjV-C9Hg8CS4.js → StatementItem-g5tfNBjV-Uz8eUgvJ.js} +1 -1
- package/dist/assets/{StatementsPage-DaFrVUeK-DSTw3UAU.js → StatementsPage-DaFrVUeK-C3pjTwJV.js} +1 -1
- package/dist/assets/{StatusSwitcher-CaoFw0cf-C3lxp9pU.js → StatusSwitcher-CaoFw0cf-CFPUWOAP.js} +1 -1
- package/dist/assets/{SubTabSwitcher-zrkVj1aP-_xN0-uG5.js → SubTabSwitcher-zrkVj1aP-_Y-lGR4O.js} +1 -1
- package/dist/assets/{SummaryCard-B9wqNSwM-n1ImzaFb.js → SummaryCard-B9wqNSwM-BEKfBuq9.js} +1 -1
- package/dist/assets/{TaskManagementPage-dAK9tl2b-CTG2_KMv.js → TaskManagementPage-dAK9tl2b-DgNthxRd.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-r1TNqVRb-DCJluex4.js → TimeRangeSwitcher-r1TNqVRb-DkOKBWjv.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-DHfHCTa4-B2FI2qD3.js → TimeframeSwitcher-DHfHCTa4-Bxq8Hftv.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-DvBvguRl-DxV9Vm6A.js → TimeframeSwitcherWithToggle-DvBvguRl-DV_tJyVz.js} +1 -1
- package/dist/assets/{TopExCard-BUjnGDUB-ILeRndVt.js → TopExCard-BUjnGDUB-DDOVH94X.js} +1 -1
- package/dist/assets/{TopExDetailPage-CNDkfc3u-BPGQHHhh.js → TopExDetailPage-CNDkfc3u-B2fX7zYK.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-kSQqJVpX-CN_Bd6XL.js → TransactionActivityLogPage-kSQqJVpX-CgGnvC5t.js} +1 -1
- package/dist/assets/{TransactionDetailPage-f7vWtXWL-B6Z3KQcQ.js → TransactionDetailPage-f7vWtXWL-Bh_Q7Ml2.js} +1 -1
- package/dist/assets/{TransactionList-3-mUZOsw-BOqEjROc.js → TransactionList-3-mUZOsw-Bjo6uOYk.js} +1 -1
- package/dist/assets/{TransactionListBig-Bx_Rm9ho-B9vgR37B.js → TransactionListBig-Bx_Rm9ho-CtCz2Lyh.js} +1 -1
- package/dist/assets/{TransactionListPage-q6x4_jni-ByWLrriF.js → TransactionListPage-q6x4_jni-DpY58IiZ.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-MjSH5hfq-BauD225P.js → TransactionVendorDetailPage-MjSH5hfq-C3IDSQwc.js} +1 -1
- package/dist/assets/{TransferDrawerPage-BayVa6po-DOmgo5bD.js → TransferDrawerPage-BayVa6po-DwrUwkcR.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CuqWmrO5-WjxiYw-Z.js → TreasuryOverviewPage-CuqWmrO5-xWjYlFCm.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BCjz1EKX-B5KDWi07.js → TreasuryPromoPage-BCjz1EKX-Dgtwfoud.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-CGr00SXF-C60wRmKc.js → TreasuryStatementsPage-CGr00SXF-DaeYu6qK.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-D9_qnlK4-DjBNSdh0.js → TreasuryTaxLetterPage-D9_qnlK4-CR3XJwj5.js} +1 -1
- package/dist/assets/{TrendChart-JTOG0a7B-DpgA2voA.js → TrendChart-JTOG0a7B-BPCPEjor.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CTJhTpAM-BQk6HV-p.js → TrendWithTransactions-CTJhTpAM-Bv1UqYxB.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-TGKYpC5A-RvK9bcxw.js → UncategorizedAccountsMappingPage-TGKYpC5A-B1sGC0BQ.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-mt2IjA5X-sxJ5WITz.js → UnitIntegrationPage-mt2IjA5X-BIw1k3_j.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DZfpwE5J-DW-djX7x.js → UploadAdditionalDocumentOverlay-DZfpwE5J-rLD7Y7JG.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-DAOf5cJD-BPBPmB6-.js → Vendor2FAPopup-DAOf5cJD-C4NPPJZt.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-CCOupiSZ-CBSNIh8C.js → VendorACHDetailsPage-CCOupiSZ-VkKL9cse.js} +1 -1
- package/dist/assets/{VendorDetailPage-DufNphGD-CYmhQiv4.js → VendorDetailPage-DufNphGD-BpKUNlD8.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-BayV34Rt-Bv9GXuwg.js → VendorDomesticWireDetailsPage-BayV34Rt-b6OkYMHi.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-CRnO7Ubw-D8TJzbQY.js → VendorFiling1099EditablePage-CRnO7Ubw-CN7VgWdB.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-DA0EL4RJ-B1EJ16cd.js → VendorFirstReviewPage-DA0EL4RJ-iVupFwLM.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-HUtNyn9Z-DME8KQvf.js → VendorInternationalWireDetailsPage-HUtNyn9Z-Bepuipax.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DRVMUeXi-WaJ_bb27.js → VendorInternationalWireSwiftDetailsPage-DRVMUeXi-2YV2vBHu.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-D6Qa1zf9-uVFUNuqq.js → VendorsAccountsSection-D6Qa1zf9-BOpjhiGE.js} +1 -1
- package/dist/assets/{VerifyDevice-B6B_nk3v-Bdkrxio0.js → VerifyDevice-B6B_nk3v-B5i8fKIX.js} +1 -1
- package/dist/assets/{VideoPlayer-BRAgZThr-DjmJcTCC.js → VideoPlayer-BRAgZThr-D2qPsCHw.js} +2 -2
- package/dist/assets/{VideoPopup-C_SkBI9U-BcIEWeMW.js → VideoPopup-C_SkBI9U-BTwHqW0E.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-B3gB3wW7-D2GIDjbZ.js → WarningsDrawerPage-B3gB3wW7-CvBkHLSl.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Dp-eo-Vq-Bhjoyj-p.js → ZeniAccountDetailPage-Dp-eo-Vq-ByIjykDL.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-S-XmAYqD-DifvzT-q.js → ZeniAccountListViewPage-S-XmAYqD-RzlWcBha.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-DhjBxfEr-Cs_0mVt4.js → ZeniAccountNavBarPieces-DhjBxfEr-NUqiiuuD.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BgYCHYLO-Cw7mPD8B.js → ZeniAccountPromoPage-BgYCHYLO-WViSdc2S.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-CvnIMdcY-UG3h63JG.js → ZeniAccountSetupPage-CvnIMdcY-Cj37yJbf.js} +1 -1
- package/dist/assets/{ZeniCopyright-BlLvlGZV-oWH5-_QG.js → ZeniCopyright-BlLvlGZV-CrVJLfj_.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BNYgPwHs-BkFdMOqg.js → ZeniTransferAmountSlider-BNYgPwHs-CcASxOZt.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-CQY6YDIS.js → add-to-wallet-DgdBD8_G-CEUXmLLB.js} +1 -1
- package/dist/assets/{analytics-Bkw5onLf.js → analytics-CkM8lXFl.js} +1 -1
- package/dist/assets/{analyticsHelper-CYr5V2MV-D117boEZ.js → analyticsHelper-CYr5V2MV-CkRNnCUV.js} +1 -1
- package/dist/assets/{analyticsHelper-BrCWxqsP.js → analyticsHelper-gGnU4EeF.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-Bjmr6TY7.js → arrow-south-east-round-PEovUgvH-1rW0zoS2.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CNNhiF_u.js → auto-transfer-rule-mbafm5D3-CFQdrDeA.js} +1 -1
- package/dist/assets/{chartTypes-40RenddT-C3e8npm6.js → chartTypes-40RenddT-C5cIBfKP.js} +1 -1
- package/dist/assets/{commonDimensions-BMnB1-xU-BEplFlGz.js → commonDimensions-BMnB1-xU-DiUddsI8.js} +1 -1
- package/dist/assets/{commonTypes-DsWS6Ccc-DEEa_Sk5.js → commonTypes-DsWS6Ccc-CwodQQco.js} +1 -1
- package/dist/assets/{constants-BjwuG-sL.js → constants-CTjR4H-o.js} +1 -1
- package/dist/assets/{core-ChNxRm0V.js → core-C2ocMdpX.js} +1 -1
- package/dist/assets/{dash.all.min-CPWXIJa3.js → dash.all.min-BCNwafZn.js} +1 -1
- package/dist/assets/{detailCommon-CrcyqWtZ-Y-btcKvT.js → detailCommon-CrcyqWtZ-rWotQtvr.js} +1 -1
- package/dist/assets/{downloadPdf-CUUx8PWn-CpeF1exC.js → downloadPdf-CUUx8PWn-BdEKPRoV.js} +1 -1
- package/dist/assets/{empty-CbUW6a7c.js → empty-D1vxKoTb.js} +1 -1
- package/dist/assets/{empty-DB2fqLbL.js → empty-V8XS4YR7.js} +1 -1
- package/dist/assets/{epic-D8ilA7L4.js → epic-DauDmjnX.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-CAEsBxF-.js → gift-box-Cmt9OgIZ-D3iw0yyB.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-5QBY0UXm.js → graphic-no-data-l-DU4J8fDt-Dy3KHs8N.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-hdaFlp9y.js → graphic-no-data-net-burn-l-CzmycA0m-BZpKWoe8.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-ChCbIa55.js → handshake-BPg58FML-oAGcRw5Y.js} +1 -1
- package/dist/assets/{helper-BMiMbXMj-Dmh6E349.js → helper-BMiMbXMj-3yg_EAWe.js} +1 -1
- package/dist/assets/{index-DlObXRGr.js → index-BIVWVvnU.js} +1 -1
- package/dist/assets/{index-B7L93Ji9.js → index-CgqMT29q.js} +1 -1
- package/dist/assets/{index-DqZ19at7.js → index-DMtzVMbw.js} +7 -7
- package/dist/assets/{index-DVyniIKO.js → index-PQV-Jugy.js} +1 -1
- package/dist/assets/{index-ioI1xYoQ.js → index-S8MS3O9i.js} +1 -1
- package/dist/assets/{index-cdfRDhK8.js → index-VGNYvjLY.js} +1 -1
- package/dist/assets/{index-Dpyv5L0j.js → index-yaAnolck.js} +1 -1
- package/dist/assets/{lexical-1Ygrq4RW.js → lexical-DGY0EwD1.js} +1 -1
- package/dist/assets/{liveblocks-BTMi-6jm.js → liveblocks-BP-9wBvW.js} +1 -1
- package/dist/assets/{lottie-DePu4yCn.js → lottie-CH4Au8OK.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DGnyXKBT-BYse0ozL.js → mapLoadingInProgressToTreeNode-DGnyXKBT-Diz2jPsG.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BkPRWtaj-hihXzy98.js → mapSectionWithAcOnlyToTreeNode-BkPRWtaj-BgcXUMpE.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CvGdU9Ma-DeFN34g2.js → mapSpacerToTreeNode-CvGdU9Ma-99-38wUs.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BCOsOvxo-CSygkCSn.js → mapTimeframeBalancesToTreeNode-BCOsOvxo-D1JEqmHt.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-DIqYP3NK-R-95BHOA.js → mapTimeframeBalancesToTreeNode-DIqYP3NK-CzEZLVGT.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-27M6rUwe.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Ch2rvcz4-CQMmf8Vi.js} +1 -1
- package/dist/assets/{mui-ZYC_cKE8.js → mui-CoYz3n28.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-DC8jxm5B.js → page-detail-CWX5S47F-y8p1z9Ov.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-D6-xSZhW.js → panelSelectedMixin-CzfD5-Zs-BhQovnBD.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-BxCWoZze.js → radio-default-CiSgisfh-CcppOTnL.js} +1 -1
- package/dist/assets/{react-BKZXD5Oc.js → react-BV0JbFK9.js} +1 -1
- package/dist/assets/{react-IIMWUaFV.js → react-CDgvvYzw.js} +1 -1
- package/dist/assets/{react-d6rMgZIK.js → react-D4lAziVQ.js} +1 -1
- package/dist/assets/{react-BYslFEBJ.js → react-DDKwoBWl.js} +1 -1
- package/dist/assets/{react-BwmLfOl6.js → react-DKpRtEcT.js} +1 -1
- package/dist/assets/{react--xqujLHa.js → react-GnwsG-Kr.js} +1 -1
- package/dist/assets/{react-Z0_odY1k.js → react-cAXirknQ.js} +1 -1
- package/dist/assets/{react-C9KgujEQ.js → react-kevoc5vo.js} +2 -2
- package/dist/assets/{recharts-CPKKNFMD.js → recharts-BDU9Jttg.js} +1 -1
- package/dist/assets/{sentry-DO9J0OD9.js → sentry-oySuCz2z.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-K7yJVGAq.js → shield-DOlUxcFf-C7HWEBos.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DkMGvlEt-BttuYM2L.js → toCOABalancesWithID-DkMGvlEt-CjweDPd3.js} +1 -1
- package/dist/assets/{toChartData-C6s-eBzE-DfNWG1EA.js → toChartData-C6s-eBzE-DQEzIUE9.js} +1 -1
- package/dist/assets/{uploadAttachment-BlLqRIXe-BrI0Dxy9.js → uploadAttachment-BlLqRIXe-CMo80ZkF.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-C53BLsXO.js → uploadReceipts-Dge0cNF1-Dvyi-9oH.js} +1 -1
- package/dist/assets/{url-VhWKyQz6.js → url-BgqPEja_.js} +1 -1
- package/dist/assets/{url-Brmd3733.js → url-CxTzQh6W.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-BBNJdZmN.js → useLongPress-GCK2COYQ-DAOTd3ww.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-BjY16bQv.js → usp-line-BBd1wKwW-CGF9yi5W.js} +1 -1
- package/dist/assets/{utils-CXoyjNuY.js → utils-lCkIh4TY.js} +1 -1
- package/dist/assets/{zeni-epic-state-C5Hzx540.js → zeni-epic-state-C253RwnE.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-CRjwWFLJ-BpoLCE54.js +0 -1
package/dist/assets/{BillDetailPage-7TMkWo3V-CAz7q8si.js → BillDetailPage-7TMkWo3V-0TjWgo-F.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Xn,go as qn,cf as Gn,aS as Yn,y,V as t,fc as ct,fd as Qn,o as a,fe as Jn,ff as ea,fg as ta,aP as Se,fh as na,aR as b,bE as pt,bq as mt,dx as ut,cr as yt,cs as ht,ct as bt,gp as aa,gq as ia,gr as la,gs as oa,fm as j,gt as $,fo as A,fp as k,fl as ra,b as gt,p as oe,fn as Ot,fv as sa,fq as da,fr as ca,gu as pa,gv as ma,aT as ua,ap as ft,bV as ve,gw as ya,gx as L,O as ha,u as s,ah as ba,c4 as ga,gy as fa,x as xa,gz as wa,fw as xt,H as Ta,d5 as va,ck as Da,gA as wt,b9 as Ia,bb as ja,a as $a,bX as Ft,d6 as Aa,gB as ka,aj as Et,aw as Sa,b7 as Ca,bv as Pa,gC as Ba,am as Ra}from"./index-DqZ19at7.js";import{a as p}from"./sentry-DO9J0OD9.js";import{n as i}from"./mui-ZYC_cKE8.js";import{a as za}from"./liveblocks-BTMi-6jm.js";import{bO as Ma,bL as Na,bP as La,FS as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-C5Hzx540.js";import{o as Wa,t as Za}from"./LowBalancePopup-ScEqPY9J-CQJroj6z.js";import"./core-ChNxRm0V.js";import"./lottie-DePu4yCn.js";import"./recharts-CPKKNFMD.js";import"./analytics-Bkw5onLf.js";import"./lexical-1Ygrq4RW.js";import"./utils-CXoyjNuY.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]="f551165e-4d76-4a0f-a268-c75ce7691d0e",e._sentryDebugIdIdentifier="sentry-dbid-f551165e-4d76-4a0f-a268-c75ce7691d0e")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("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:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Xa,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Ga}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Xt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:P}=Xn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,X,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Xe]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),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},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=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}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),In=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}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Ii,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{J as Zn,ax as Un,d as Kn,gl as Vn,gm as Hn,gn as Xn,go as qn,cf as Gn,aS as Yn,y,V as t,fc as ct,fd as Qn,o as a,fe as Jn,ff as ea,fg as ta,aP as Se,fh as na,aR as b,bE as pt,bq as mt,dx as ut,cr as yt,cs as ht,ct as bt,gp as aa,gq as ia,gr as la,gs as oa,fm as j,gt as $,fo as A,fp as k,fl as ra,b as gt,p as oe,fn as Ot,fv as sa,fq as da,fr as ca,gu as pa,gv as ma,aT as ua,ap as ft,bV as ve,gw as ya,gx as L,O as ha,u as s,ah as ba,c4 as ga,gy as fa,x as xa,gz as wa,fw as xt,H as Ta,d5 as va,ck as Da,gA as wt,b9 as Ia,bb as ja,a as $a,bX as Ft,d6 as Aa,gB as ka,aj as Et,aw as Sa,b7 as Ca,bv as Pa,gC as Ba,am as Ra}from"./index-DMtzVMbw.js";import{a as p}from"./sentry-oySuCz2z.js";import{n as i}from"./mui-CoYz3n28.js";import{a as za}from"./liveblocks-BP-9wBvW.js";import{bO as Ma,bL as Na,bP as La,FS as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-C253RwnE.js";import{o as Wa,t as Za}from"./LowBalancePopup-ScEqPY9J-HnxUWV1P.js";import"./core-C2ocMdpX.js";import"./lottie-CH4Au8OK.js";import"./recharts-BDU9Jttg.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.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]="f551165e-4d76-4a0f-a268-c75ce7691d0e",e._sentryDebugIdIdentifier="sentry-dbid-f551165e-4d76-4a0f-a268-c75ce7691d0e")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("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:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:Xa,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:It,title:{comments:Ga}}}}=ha.getLocalizedStrings(),Ie=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:Xt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:ze,deleteBill:qt,cancelAndDeleteBill:Me,approveOrRejectBill:Ne,onAddNewRule:Gt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,Q]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:X,isLoading:P}=Xn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:X.filter(r=>r.resolved===!1&&!r.id.includes(qn)),[X,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&X.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,X,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Gn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,Xe]=p.useState(!1),[qe,Ge]=p.useState(!1),Ye=()=>He(!1),yn=()=>He(!0),Qe=Yn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Y()},[Y]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(ze(),Y())},[e,Y,ze]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Qe,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&q?.code?q:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:q?.code!=null&&(ae?.code=="approved"||q.code==="mark_as_paid")?q:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Xt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?qt?.(e.isRecurring):N.title===n.cancelBillTitle?Me?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Me?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),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},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=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}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),In=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}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx(Ii,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
2
|
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?Ma(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Qn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,zn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,Mn=!zn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),G=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!G&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,qe,r)},rt=()=>{Xe(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Ge(!0),rt()},Fn=()=>{Qt(),Xe(!1),qe&&Ge(!1)},En=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]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),We===!0&&Q(!1),_!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(Ie)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:Ze,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[We?t.jsx(Wa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,un?t.jsx(Za,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Qa(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(G,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx(j,{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($,{label:{label:n.invoiceNumber,width:I},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.invoiceDate,width:I},text:ie.invoiceDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.billDueDate,width:I},text:ie.billDueDate?.format(Ie)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.memo,width:I},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Wn=>Wn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx(j,{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($,{label:{label:n.amount,width:I},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.billable,width:I},text:r.billable!=null?In(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{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($,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(z,{})]}),t.jsx(j,{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($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx(j,{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($,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(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(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Gt,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:Wt,signedInUserId:re?.userId,showRealTimeApproval:Zt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ja(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Q(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!G&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(W,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(W,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(W,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(W,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(W,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!G&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(si,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!G&&Mn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Xa,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(za,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Ga,threads:X,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:It.resolveComment,threadUnResolve:It.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Ya=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.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}},Qa=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Mt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Mt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Ja=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const Z=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${Z}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",Z)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as F,u as T,J as M,O as U,aa as W,aS as G,aL as H,cH as J,V as r,bE as X,ad as Y,aT as K,o as u,gb as Q}from"./index-
|
|
1
|
+
import{y as F,u as T,J as M,O as U,aa as W,aS as G,aL as H,cH as J,V as r,bE as X,ad as Y,aT as K,o as u,gb as Q}from"./index-DMtzVMbw.js";import{a as $}from"./sentry-oySuCz2z.js";import{n as h}from"./mui-CoYz3n28.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-0eFMS0c5-Crvq3nzf.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./zeni-epic-state-C253RwnE.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.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]="5a36de0f-78bf-4c53-8fa9-ceb058e7165b",e._sentryDebugIdIdentifier="sentry-dbid-5a36de0f-78bf-4c53-8fa9-ceb058e7165b")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new F(T[2],T[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=M(),t=U.getLocalizedStrings().commonSetUp.approval,P=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:V,billPaySetupApproverViewUpdateData:f}=e;let b=p.length>1?p.length-1:0,v=p.length>0?p[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=p.findIndex(d=>d.approvalRuleId===i),v=b>0?p[b-1].criteria[0].range.min.amount:0}const O=x.handleSubmit(()=>{N()}),q=async(i,d)=>{s(d)};return $.useEffect(()=>{const i=x.watch((d,{name:L})=>{if(L!=null&&d!=null){const z=H(d);J(()=>q(L,z))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(Y,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:O,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(K,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Q,{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:n},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[m]:n?[]:[m],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as W,O as S,V as t,bE as V,T as G,aR as b,y as r,am as M,o as i,aP as z,bV as P,cr as O,cs as q,ct as K,d1 as F,u as l,bb as J,H as T,ba as Q,p as j,d0 as X,bv as Y,b as Z}from"./index-
|
|
1
|
+
import{J as W,O as S,V as t,bE as V,T as G,aR as b,y as r,am as M,o as i,aP as z,bV as P,cr as O,cs as q,ct as K,d1 as F,u as l,bb as J,H as T,ba as Q,p as j,d0 as X,bv as Y,b as Z}from"./index-DMtzVMbw.js";import{n as o}from"./mui-CoYz3n28.js";import{a as ee}from"./sentry-oySuCz2z.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./zeni-epic-state-C253RwnE.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="e3704369-8bd9-4983-996f-204293ed02f1",e._sentryDebugIdIdentifier="sentry-dbid-e3704369-8bd9-4983-996f-204293ed02f1")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},U={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,E=()=>{h(!0)},H={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(k,{}),t.jsx(le,{}),t.jsx(k,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(I,{onClick:E,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{f(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,N)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(A,{children:[t.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(R,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},N))})}),v?t.jsx(O,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:H}):null]})},oe=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-AGffhbY3-C_QscQuJ.js → BillPayPromoPage-AGffhbY3-DZsatXbJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ax as q,J as f,aS as Y,V as e,fx as ee,bE as ie,i as B,aR as C,af as x,O as I,o as s,ar as se,R as le,d as M,aV as U,an as oe,y as re,p as $,cG as te,aW as ae,bc as ne,u as de}from"./index-
|
|
1
|
+
import{ax as q,J as f,aS as Y,V as e,fx as ee,bE as ie,i as B,aR as C,af as x,O as I,o as s,ar as se,R as le,d as M,aV as U,an as oe,y as re,p as $,cG as te,aW as ae,bc as ne,u as de}from"./index-DMtzVMbw.js";import{a as g}from"./sentry-oySuCz2z.js";import{n as l}from"./mui-CoYz3n28.js";import{FH as ce,bS as pe,FI as xe}from"./zeni-epic-state-C253RwnE.js";import{C as me}from"./VideoPopup-C_SkBI9U-BTwHqW0E.js";import{M as b}from"./usp-line-BBd1wKwW-CGF9yi5W.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";import"./VideoPlayer-BRAgZThr-D2qPsCHw.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]="42ab9fc8-ccec-4682-a4c0-49365a2e3b8b",i._sentryDebugIdIdentifier="sentry-dbid-42ab9fc8-ccec-4682-a4c0-49365a2e3b8b")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new 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-Cs5rkWBu-GrPc_Ghq.js → BillPaySetUpPage-Cs5rkWBu-CDMzpJwT.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as $e,J as De,aS as F,aa as Oe,cH as Re,O as Ue,aX as K,V as t,ff as He,p as ze,aR as Le,y as u,bE as qe,T as Me,ad as Je,fy as H,dS as Ne,fz as Ge,by as Ye,dI as Ze,bV as Ke,fA as Qe,aT as Xe,o as L,fB as et,u as a,am as tt,bM as it}from"./index-
|
|
1
|
+
import{d as $e,J as De,aS as F,aa as Oe,cH as Re,O as Ue,aX as K,V as t,ff as He,p as ze,aR as Le,y as u,bE as qe,T as Me,ad as Je,fy as H,dS as Ne,fz as Ge,by as Ye,dI as Ze,bV as Ke,fA as Qe,aT as Xe,o as L,fB as et,u as a,am as tt,bM as it}from"./index-DMtzVMbw.js";import{a as m}from"./sentry-oySuCz2z.js";import{n as b}from"./mui-CoYz3n28.js";import{bJ as nt}from"./zeni-epic-state-C253RwnE.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DZfpwE5J-rLD7Y7JG.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.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]="2e48f926-a4dc-42db-8a80-6297ed13cc2f",e._sentryDebugIdIdentifier="sentry-dbid-2e48f926-a4dc-42db-8a80-6297ed13cc2f")}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)},Q="billPaySetUpPage",W="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:J}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:V,approvalRulesStatus:Ie}=v,$=_.link_account.updateStatus,D=_.update_account.updateStatus,B=F(f),G=F(P.fetchState),Y=F($.fetchState),Z=F(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"||Y==="In-Progress"&&$.fetchState==="Completed"||Z==="In-Progress"&&D.fetchState==="Completed")&&w.reset(z(e))},[B,f,w,e,Y,$.fetchState,Z,D.fetchState]);const Ve=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Be=async(x,E)=>{const o=E[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=J.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((E,{name:o})=>{o!=null&&E!=null&&Re(()=>Be(o,E))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{G==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,G,P.fetchState]);const{commonSetUp:je,spendManagement:Ee}=Ue.getLocalizedStrings(),{setUp:r}=je,{billPaySetup:l}=Ee.billPay,O=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Fe=O?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||N==="In-Progress"||N==="Not-Started",j=k.mode==="light"?new K(k.colors.brandColorJadeLight):new K(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:Fe}),We?t.jsx(rt,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Je,{...w,children:t.jsx("form",{id:X(Q),onSubmit:Ve,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(Ne,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Ge,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:J,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.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(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ke,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&V.length>0?t.jsx(Xe,{formId:X(Q),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 we,J as be,aa as Pe,cH as Ce,aX as k,O as xe,V as t,y as C,bE as Ie,T as Ae,ad as ve,by as je,cI as ke,aT as Te,o as s,hP as $e,f1 as Ve,f2 as De,u as x,am as Ee,gY as Be,p as Oe,H as ze}from"./index-
|
|
1
|
+
import{d as we,J as be,aa as Pe,cH as Ce,aX as k,O as xe,V as t,y as C,bE as Ie,T as Ae,ad as ve,by as je,cI as ke,aT as Te,o as s,hP as $e,f1 as Ve,f2 as De,u as x,am as Ee,gY as Be,p as Oe,H as ze}from"./index-DMtzVMbw.js";import{a as H}from"./sentry-oySuCz2z.js";import{n as r}from"./mui-CoYz3n28.js";import{M as Le,o as R,t as Me}from"./PaymentAccountSetupBillingAddressSection-JPO-rPAd-DFTRFu_Q.js";import{F as _e}from"./SetUpAccountSection-sfIB1h4i-Bo3cXG50.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./zeni-epic-state-C253RwnE.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";import"./commonTypes-DsWS6Ccc-CwodQQco.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]="6be29fcc-1039-4240-88d8-6fc5090e90b4",e._sentryDebugIdIdentifier="sentry-dbid-6be29fcc-1039-4240-88d8-6fc5090e90b4")}catch{}})();const p={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,x[5],x[5]),iconWidthHeight:new C(20,x[4]),subTitlePaddingTop:new C(12,x[3])},He={title:new ze("standardSemiBold","largeSemiBold")},W="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:F,stripeKey:K,googleAPIKey:N,companyId:q,onUpdateAccountClick:G,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:Y,onEstablishConnectionClick:Q,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:T,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:$},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=$.fetchState==="In-Progress"||$.fetchState==="Not-Started",f=Pe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:J(i),values:J(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(q)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:w}=a[n].street,j=Ve(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:De(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&G(g.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Ce(()=>me(g,a))});return()=>{c.unsubscribe()}});const E=b.mode==="light"?new k(b.colors.brandColorJadeLight):new k(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:B}=xe.getLocalizedStrings(),ge=B.section.subTitle,{text:ye,subText:fe}=he,O=h.cardsList.length>0,z=h?.cardsList[0]?.brand??"other",L=h?.addCardPaymentSourceStatus.fetchState,P=Le(S.header,S.titleText,S.protectedCardNo,h);let M;O&&(M={header:P.header,title:P.title,subtitle:P.subtitle,status:P.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:O===!0,icon:{element:t.jsx("img",{src:R(z).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:R(z).name}),color:new k(E)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=H.useState(!1);return t.jsxs(We,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:B.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(Re,{windowSize:o,children:[t.jsx(Je,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Ge,{children:t.jsx("form",{id:U(W),onSubmit:pe,children:t.jsxs(Fe,{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:Q,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:Y,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:T,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),ke(f.formState.dirtyFields)?t.jsx(Te,{formId:U(W),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:T,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:F.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},J=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]:$e(n,e.subscriptionBillingAddress)[n]}},Re=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as f,cr as V,cs as M,ct as W,kc as q,a_ as z,O as G}from"./index-
|
|
1
|
+
import{V as f,cr as V,cs as M,ct as W,kc as q,a_ as z,O as G}from"./index-DMtzVMbw.js";import{a as b}from"./sentry-oySuCz2z.js";import{Go as K}from"./zeni-epic-state-C253RwnE.js";import{u as X}from"./ReviewOverlay-BoM41t8W-BKsrsvnb.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./mui-CoYz3n28.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.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]="f6639b46-e2c8-4844-a4f4-ac105f6adaa6",e._sentryDebugIdIdentifier="sentry-dbid-f6639b46-e2c8-4844-a4f4-ac105f6adaa6")}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]=b.useState(!1),[n,v]=b.useState(T(e,u)),[p,k]=b.useState(u),[B,E]=b.useState(0),[y,j]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(I),L===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!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,A=()=>{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)},D={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,Y(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:F}=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"}:{}},O={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:A,style:i==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[C?f.jsx(V,{titleComponent:f.jsx(W,{children:y.title}),descriptionComponent:f.jsx(M,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(X,{title:N,description:{content:F,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:O,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{J as l,V as s,aR as b,o as e}from"./index-
|
|
1
|
+
import{J as l,V as s,aR as b,o as e}from"./index-DMtzVMbw.js";import{n as a}from"./mui-CoYz3n28.js";import{o as p}from"./commonDimensions-BMnB1-xU-DiUddsI8.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]="7f7db6a3-f17d-45cd-9c62-96eb6141e38b",o._sentryDebugIdIdentifier="sentry-dbid-7f7db6a3-f17d-45cd-9c62-96eb6141e38b")}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 dt,J as ut,aS as Te,V as a,af as G,aa as pt,cX as mt,az as ft,cH as yt,a_ as ve,aQ as Oe,ge as ht,i as gt,bE as xt,aR as St,cI as wt,cr as Ct,cs as bt,ct as Dt,T as Tt,ad as vt,aT as Ot,o as l,y as F,an as Ve,O as je,gf as It,fC as Ie,f1 as Nt,R as $t,x as kt,am as Ae,H as Pt,B as Ft,u as N}from"./index-DqZ19at7.js";import{a as V}from"./sentry-DO9J0OD9.js";import{n as d}from"./mui-ZYC_cKE8.js";import{ES as Vt,bi as Y,Fn as jt,Fm as At,Fo as _t}from"./zeni-epic-state-C5Hzx540.js";import{r as Lt,z as Bt}from"./CompanyOfficerDetailsSection-BaPhFsLx-B9Snu63L.js";import"./liveblocks-BTMi-6jm.js";import"./core-ChNxRm0V.js";import"./recharts-CPKKNFMD.js";import"./lottie-DePu4yCn.js";import"./analytics-Bkw5onLf.js";import"./lexical-1Ygrq4RW.js";import"./utils-CXoyjNuY.js";import"./helper-BMiMbXMj-Dmh6E349.js";import"./LabeledAddressValueField-C6-hVsPb-Bfrq1uTa.js";import"./LabeledCountryMultiSelectField-sj8p7Rne-DmVlXwHY.js";import"./LabeledCreatableSingleSelectField-DUTQh416-DtIYGO-z.js";import"./LabeledDocumentField-Bp9m-OrP-Di2DVQR8.js";import"./commonTypes-DsWS6Ccc-DEEa_Sk5.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new t.Error().stack;S&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="b7595b55-1812-4b17-a9dd-e9993e5db011",t._sentryDebugIdIdentifier="sentry-dbid-b7595b55-1812-4b17-a9dd-e9993e5db011")}catch{}})();const x={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,N[3]),subTitlePaddingBottom:new F(N[3],N[3]),verificationDetailsRowGap:new F(12,N[5],N[5]),termsPaddingLeftRight:new F(N[0],N[3])},zt={stepTitle:new Pt("h6Regular","h5Regular")},Ne="businessVerificationPage",D="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:Et,currency:$e,footer:ke,strings:{empty:Rt}}}=je.getLocalizedStrings(),va=({businessVerificationDetails:t,allNationalityCountries:S,verficationDetailsFetchState:$,isRefreshingViewInBackground:L,filesEndPoint:i,authParams:B,productType:y,allIndustries:j,companyTitles:z,maxInsuredAmount:m,isDisabled:k,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:J=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Le,onBackClick:A,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:Ye,onExecuteTreasuryTransfer:Je})=>{const Ze=dt(),u=ut(),{updateStatus:R,companyView:_,companyDetailsLocalData:r,companyOfficerLocalData:C}=t,qe=Te(R.fetchState),U=_?.company.company.featuresActivationInfo.connectedAccountProvider,He=U==="unit"?a.jsxs(Ht,{children:[s.terms.term1,a.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ke,Z]=V.useState(!1),[M,re]=V.useState("save"),[q,Qe]=V.useState(!1),p=pt({mode:"all",reValidateMode:"onChange",defaultValues:Ut(t,j,z,S)}),{isValid:Xe}=p.formState,W=_?.company.company.companyBillPayInfo,H=_?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?H?.companyVerificationStatus:W?.companyVerificationStatus,v=Object.values(C).findIndex(e=>e?.isSelectedForVerification===!0),O=`Officer_${v<0?1:v+1}`,et=()=>{const e=C[O],n=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,b=e?.firstName,I=e?.lastName,ue=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,me=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?Y(fe):void 0,he=r?.companyDescription,X=r?.companyLegalName,ge=r?.companyIndustry,xe=r?.phone,Se=r?.website,we=r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0,ee=r?.primaryContactLocalData,Ce=ee?.firstName,be=ee?.lastName,De=ee?.email;n!=null&&f!=null&&b!=null&&I!=null&&c!=null&&ue!=null&&me!=null&&ye!=null&&pe!=null&&he!=null&&X!=null&&xe!=null&&Se!=null&&ge!=null&&X!=null&&we!=null&&Ce!=null&&be!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:I,companyRole:ue,phone:me,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:X,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:be,email:De},y,o?"Settings":void 0)},tt=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,b=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!I?((!n?.firstName||!n?.lastName)&&p.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&p.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||K!=null&&K?.length>0)return p.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(M!=="verification"&&re("verification"),U==="unit"&&C[O]?.isPhoneVerified!==!0){p.setError(`${T}.${v}.phone`,{type:"custom"});return}const e=mt(Object.values(C).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(r?.deleteFileStatusById??{}).filter(c=>c!=null);Vt(e.concat(n)).fetchState!=="In-Progress"&&Xe&&(et(),Re?.(O),J===!0&&Je?.())}),st=async(e,n)=>{e.includes(D)?Ue?.(n[D]):e.includes(T)&&We?.(n[T])},nt=V.useCallback(ft((e,n)=>{st(e,n)},300),[]);V.useEffect(()=>{const e=p.watch((n,{name:c})=>{c!=null&&n!=null&&yt(()=>nt(c,n))});return()=>{e.unsubscribe()}});const le=Te(t.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${D}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,oe,p]);const ce=_?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),K=ce?.map(e=>e.user),ot=ce?.map(e=>e.role),rt={onOkClick:()=>{Z(!1),A();const e=[],n=_?.company.company.incInfo.fileIds??[];p.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||e.push(c)}),ot?.forEach((c,f)=>{const b=c?.fileIds??[];p.getValues(`${T}.${f}.fileIds`).forEach(I=>{b.includes(I)||e.push(I)})}),e.length!==0&&Me?.(e)},onCancelClick:()=>{Z(!1)}},lt=ve(Oe(m),m,$e.currencySymbol).toUpperCase(),Q=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;if(y==="zeni_treasury"&&P?.code==="pending_review"&&qe==="In-Progress"&&R.fetchState==="Completed")return a.jsxs(ia,{children:[a.jsxs(sa,{children:[a.jsx(ht,{}),a.jsx(na,{windowSize:u,children:J===!0?s.submittedTitleWithTransfer:s.submittedTitle}),a.jsx(aa,{isReadonly:!1,children:J===!0?s.submittedDescriptionWithTransfer.replace("__amount__",ve(Oe(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):s.submittedDescription})]}),a.jsx(gt,{label:s.submittedButton,onClick:()=>{A(),te?.()},variant:"primary"})]});const ct=()=>{const e=W?.companyVerificationStatus?.code==="verified",n=(r?.countriesOfOperations?.length??0)>0||r?.companySourceOfFunds!=null||r?.transactionVolume!=null||r?.purposeOfAccount!=null||r?.registeredAddressStatus!=null||r?.usNexus!=null;return e===!0&&n===!1};return a.jsxs(Mt,{isSettings:o,children:[a.jsx(xt,{title:h&&w===!0?Rt:s.header,backgroundColor:Ze.colors.grey5,style:{zIndex:q?1:4},onBackClick:()=>{wt(p.formState.dirtyFields)?Z(!0):A()},showBackButton:!o&&!h,showMenuIcon:o?u==="medium-compact"||u==="small":!1,onClickMenuIcon:Ye,rightSideComponent:h?a.jsx(oa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{A(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(Ct,{titleComponent:a.jsx(Dt,{children:s.discardTitle}),descriptionComponent:a.jsx(bt,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:rt}):null,a.jsxs(Yt,{windowSize:u,children:[(!h||w===!1)&&a.jsx(Gt,{windowSize:u,children:o?Et.infoText.businessVerification:s.title}),$==="In-Progress"||$==="Not-Started"?a.jsx(Jt,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(vt,{...p,children:a.jsxs("form",{id:Pe(Ne),onSubmit:it,children:[h&&w===!0&&a.jsxs(Wt,{children:[a.jsxs(Kt,{windowSize:u,children:[a.jsx(Qt,{windowSize:u,children:Q?s.businessVerificationDetails:de?s.verifyBusinessDetails:s.verifyBusinessDetailsWithoutTransfer}),!Q&&a.jsx(Xt,{children:a.jsxs(ea,{children:[a.jsx(Fe,{}),de&&a.jsx(Fe,{}),a.jsx(ta,{})]})})]}),a.jsx(_e,{isReadonly:Q,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(Zt,{children:[a.jsx(Lt,{companyOfficerData:C,allNationalityCountries:S,allOfficers:K??[],sectionId:T,isRefreshingViewInBackground:L,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:k,filesEndPoint:i,authParams:B,isPopupOpen:q,openPopup:Qe,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Bt,{companyDetails:r,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:L},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",hideNewOnboardingFields:ct(),sectionId:D,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":k,fileProps:{authParams:B,filesEndPoint:i,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Le,connectedAccountProvider:U,allIndustries:j,allNationalityCountries:S})]}),y==="zeni_accounts"?a.jsx(qt,{windowSize:u,children:s.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?H?.companyVerificationStatus?.code!=="pending_review"&&H?.companyVerificationStatus?.code!=="verified":W?.businessVerificationStatus?.code!=="pending_review"&&W?.businessVerificationStatus?.code!=="verified")?a.jsx(Ot,{formId:Pe(Ne),primaryBtn:{label:w?ke.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:u==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:k!=null},containerStyle:{width:u==="small"?x.width.valuePx(u):"auto",justifyContent:u==="small"?"space-between":"center"},helperStyle:{width:u==="small"?x.width.valuePx(u):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(u),paddingRight:x.termsPaddingLeftRight.valuePx(u),textAlign:u==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ke.back:s.saveDetailsButton,style:{width:u==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)A();else{const e=C[O],n=r?.primaryContactLocalData;M!=="save"&&re("save");const c=e?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?Y(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:r?.companyDescription,legalName:r?.companyLegalName,phone:r?.phone,website:r?.website?.toString(),industry:r?.companyIndustry??"",formattedAddress:r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),Ge?.(O))}}},helperText:He,style:{padding:`12px ${l.sp3}`,zIndex:q?0:4}}):null]})},Ut=(t,S,$,L)=>{const{companyDetailsLocalData:i,companyOfficerLocalData:B,companyView:y}=t,j=je.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:i?.companyDescription??"",ein:i?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:i?.companyId??"",syncToken:i?.syncToken,companyLegalName:i?.companyLegalName??"",companyWebsite:i?.website?.toString()??"",companyAddress:i?.addressStatus?.addressToCreate,registeredAddress:i?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:i?.companyIndustry,allOptions:S?.map(m=>m.code)},companyPhone:i?.phone??"",companyTaxId:i?.taxIdOrEIN??"",primaryContactName:{firstName:i?.primaryContactLocalData?.firstName??"",lastName:i?.primaryContactLocalData?.lastName??""},primaryContactEmail:i?.primaryContactLocalData?.email??"",primaryContactUserId:i?.primaryContactLocalData?.userId,primaryContactSyncToken:i?.primaryContactLocalData?.syncToken,fileIds:i?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:i?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:i?.incDate?.toDate(),typeOfIncorporation:{selectedOption:i?.typeOfIncorporation,allOptions:j.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:i?.stateOfIncorporation,allOptions:j.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:i?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:i?.companySourceOfFunds??"",allOptions:Object.keys(s.companySourceOfFundOptions??{})},companySourceOfFundsDescription:i?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:i?.transactionVolume,allOptions:[..._t]},transactionVolumeDescription:i?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:i?.purposeOfAccount,allOptions:[...At]},purposeOfAccountDescription:i?.purposeOfAccountDescription??"",usNexus:i?.usNexus??"",usNexusTypes:{selectedOptions:i?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:i?.regulatedStatus??"",regulatedStatusDescription:i?.regulatedStatusDescription??""},[T]:Object.values(B).map((m,k)=>{const o=m,h=It(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${k+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:Nt(o?.nationalityCountryCode,L.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:$?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&k===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},Pe=t=>`${t}_form`,Mt=d.div`
|
|
1
|
+
import{d as dt,J as ut,aS as Te,V as a,af as G,aa as pt,cX as mt,az as ft,cH as yt,a_ as ve,aQ as Oe,ge as ht,i as gt,bE as xt,aR as St,cI as wt,cr as Ct,cs as bt,ct as Dt,T as Tt,ad as vt,aT as Ot,o as l,y as F,an as Ve,O as je,gf as It,fC as Ie,f1 as Nt,R as $t,x as kt,am as Ae,H as Pt,B as Ft,u as N}from"./index-DMtzVMbw.js";import{a as V}from"./sentry-oySuCz2z.js";import{n as d}from"./mui-CoYz3n28.js";import{ES as Vt,bi as Y,Fn as jt,Fm as At,Fo as _t}from"./zeni-epic-state-C253RwnE.js";import{r as Lt,z as Bt}from"./CompanyOfficerDetailsSection-BaPhFsLx-DACmvtur.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";import"./helper-BMiMbXMj-3yg_EAWe.js";import"./LabeledAddressValueField-C6-hVsPb-SvnkQYGO.js";import"./LabeledCountryMultiSelectField-sj8p7Rne-BNt9Egt1.js";import"./LabeledCreatableSingleSelectField-DUTQh416-D_eDy0tz.js";import"./LabeledDocumentField-Bp9m-OrP-Cv3EwCa5.js";import"./commonTypes-DsWS6Ccc-CwodQQco.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new t.Error().stack;S&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="b7595b55-1812-4b17-a9dd-e9993e5db011",t._sentryDebugIdIdentifier="sentry-dbid-b7595b55-1812-4b17-a9dd-e9993e5db011")}catch{}})();const x={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,N[3]),subTitlePaddingBottom:new F(N[3],N[3]),verificationDetailsRowGap:new F(12,N[5],N[5]),termsPaddingLeftRight:new F(N[0],N[3])},zt={stepTitle:new Pt("h6Regular","h5Regular")},Ne="businessVerificationPage",D="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:Et,currency:$e,footer:ke,strings:{empty:Rt}}}=je.getLocalizedStrings(),va=({businessVerificationDetails:t,allNationalityCountries:S,verficationDetailsFetchState:$,isRefreshingViewInBackground:L,filesEndPoint:i,authParams:B,productType:y,allIndustries:j,companyTitles:z,maxInsuredAmount:m,isDisabled:k,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:J=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Le,onBackClick:A,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:Ye,onExecuteTreasuryTransfer:Je})=>{const Ze=dt(),u=ut(),{updateStatus:R,companyView:_,companyDetailsLocalData:r,companyOfficerLocalData:C}=t,qe=Te(R.fetchState),U=_?.company.company.featuresActivationInfo.connectedAccountProvider,He=U==="unit"?a.jsxs(Ht,{children:[s.terms.term1,a.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,a.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,a.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,a.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ke,Z]=V.useState(!1),[M,re]=V.useState("save"),[q,Qe]=V.useState(!1),p=pt({mode:"all",reValidateMode:"onChange",defaultValues:Ut(t,j,z,S)}),{isValid:Xe}=p.formState,W=_?.company.company.companyBillPayInfo,H=_?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?H?.companyVerificationStatus:W?.companyVerificationStatus,v=Object.values(C).findIndex(e=>e?.isSelectedForVerification===!0),O=`Officer_${v<0?1:v+1}`,et=()=>{const e=C[O],n=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,b=e?.firstName,I=e?.lastName,ue=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,me=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?Y(fe):void 0,he=r?.companyDescription,X=r?.companyLegalName,ge=r?.companyIndustry,xe=r?.phone,Se=r?.website,we=r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0,ee=r?.primaryContactLocalData,Ce=ee?.firstName,be=ee?.lastName,De=ee?.email;n!=null&&f!=null&&b!=null&&I!=null&&c!=null&&ue!=null&&me!=null&&ye!=null&&pe!=null&&he!=null&&X!=null&&xe!=null&&Se!=null&&ge!=null&&X!=null&&we!=null&&Ce!=null&&be!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:I,companyRole:ue,phone:me,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:X,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:be,email:De},y,o?"Settings":void 0)},tt=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,b=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!I?((!n?.firstName||!n?.lastName)&&p.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&p.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||K!=null&&K?.length>0)return p.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=p.handleSubmit(()=>{if(M!=="verification"&&re("verification"),U==="unit"&&C[O]?.isPhoneVerified!==!0){p.setError(`${T}.${v}.phone`,{type:"custom"});return}const e=mt(Object.values(C).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(r?.deleteFileStatusById??{}).filter(c=>c!=null);Vt(e.concat(n)).fetchState!=="In-Progress"&&Xe&&(et(),Re?.(O),J===!0&&Je?.())}),st=async(e,n)=>{e.includes(D)?Ue?.(n[D]):e.includes(T)&&We?.(n[T])},nt=V.useCallback(ft((e,n)=>{st(e,n)},300),[]);V.useEffect(()=>{const e=p.watch((n,{name:c})=>{c!=null&&n!=null&&yt(()=>nt(c,n))});return()=>{e.unsubscribe()}});const le=Te(t.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${D}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,oe,p]);const ce=_?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),K=ce?.map(e=>e.user),ot=ce?.map(e=>e.role),rt={onOkClick:()=>{Z(!1),A();const e=[],n=_?.company.company.incInfo.fileIds??[];p.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||e.push(c)}),ot?.forEach((c,f)=>{const b=c?.fileIds??[];p.getValues(`${T}.${f}.fileIds`).forEach(I=>{b.includes(I)||e.push(I)})}),e.length!==0&&Me?.(e)},onCancelClick:()=>{Z(!1)}},lt=ve(Oe(m),m,$e.currencySymbol).toUpperCase(),Q=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;if(y==="zeni_treasury"&&P?.code==="pending_review"&&qe==="In-Progress"&&R.fetchState==="Completed")return a.jsxs(ia,{children:[a.jsxs(sa,{children:[a.jsx(ht,{}),a.jsx(na,{windowSize:u,children:J===!0?s.submittedTitleWithTransfer:s.submittedTitle}),a.jsx(aa,{isReadonly:!1,children:J===!0?s.submittedDescriptionWithTransfer.replace("__amount__",ve(Oe(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):s.submittedDescription})]}),a.jsx(gt,{label:s.submittedButton,onClick:()=>{A(),te?.()},variant:"primary"})]});const ct=()=>{const e=W?.companyVerificationStatus?.code==="verified",n=(r?.countriesOfOperations?.length??0)>0||r?.companySourceOfFunds!=null||r?.transactionVolume!=null||r?.purposeOfAccount!=null||r?.registeredAddressStatus!=null||r?.usNexus!=null;return e===!0&&n===!1};return a.jsxs(Mt,{isSettings:o,children:[a.jsx(xt,{title:h&&w===!0?Rt:s.header,backgroundColor:Ze.colors.grey5,style:{zIndex:q?1:4},onBackClick:()=>{wt(p.formState.dirtyFields)?Z(!0):A()},showBackButton:!o&&!h,showMenuIcon:o?u==="medium-compact"||u==="small":!1,onClickMenuIcon:Ye,rightSideComponent:h?a.jsx(oa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{A(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(Ct,{titleComponent:a.jsx(Dt,{children:s.discardTitle}),descriptionComponent:a.jsx(bt,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:rt}):null,a.jsxs(Yt,{windowSize:u,children:[(!h||w===!1)&&a.jsx(Gt,{windowSize:u,children:o?Et.infoText.businessVerification:s.title}),$==="In-Progress"||$==="Not-Started"?a.jsx(Jt,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(vt,{...p,children:a.jsxs("form",{id:Pe(Ne),onSubmit:it,children:[h&&w===!0&&a.jsxs(Wt,{children:[a.jsxs(Kt,{windowSize:u,children:[a.jsx(Qt,{windowSize:u,children:Q?s.businessVerificationDetails:de?s.verifyBusinessDetails:s.verifyBusinessDetailsWithoutTransfer}),!Q&&a.jsx(Xt,{children:a.jsxs(ea,{children:[a.jsx(Fe,{}),de&&a.jsx(Fe,{}),a.jsx(ta,{})]})})]}),a.jsx(_e,{isReadonly:Q,children:s.verifyBusinessDetailsDescription})]}),a.jsxs(Zt,{children:[a.jsx(Lt,{companyOfficerData:C,allNationalityCountries:S,allOfficers:K??[],sectionId:T,isRefreshingViewInBackground:L,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:k,filesEndPoint:i,authParams:B,isPopupOpen:q,openPopup:Qe,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Bt,{companyDetails:r,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:L},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",hideNewOnboardingFields:ct(),sectionId:D,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":k,fileProps:{authParams:B,filesEndPoint:i,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Le,connectedAccountProvider:U,allIndustries:j,allNationalityCountries:S})]}),y==="zeni_accounts"?a.jsx(qt,{windowSize:u,children:s.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?H?.companyVerificationStatus?.code!=="pending_review"&&H?.companyVerificationStatus?.code!=="verified":W?.businessVerificationStatus?.code!=="pending_review"&&W?.businessVerificationStatus?.code!=="verified")?a.jsx(Ot,{formId:Pe(Ne),primaryBtn:{label:w?ke.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:u==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:k!=null},containerStyle:{width:u==="small"?x.width.valuePx(u):"auto",justifyContent:u==="small"?"space-between":"center"},helperStyle:{width:u==="small"?x.width.valuePx(u):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(u),paddingRight:x.termsPaddingLeftRight.valuePx(u),textAlign:u==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ke.back:s.saveDetailsButton,style:{width:u==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)A();else{const e=C[O],n=r?.primaryContactLocalData;M!=="save"&&re("save");const c=e?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?Y(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:r?.companyDescription,legalName:r?.companyLegalName,phone:r?.phone,website:r?.website?.toString(),industry:r?.companyIndustry??"",formattedAddress:r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),Ge?.(O))}}},helperText:He,style:{padding:`12px ${l.sp3}`,zIndex:q?0:4}}):null]})},Ut=(t,S,$,L)=>{const{companyDetailsLocalData:i,companyOfficerLocalData:B,companyView:y}=t,j=je.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:i?.companyDescription??"",ein:i?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:i?.companyId??"",syncToken:i?.syncToken,companyLegalName:i?.companyLegalName??"",companyWebsite:i?.website?.toString()??"",companyAddress:i?.addressStatus?.addressToCreate,registeredAddress:i?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:i?.companyIndustry,allOptions:S?.map(m=>m.code)},companyPhone:i?.phone??"",companyTaxId:i?.taxIdOrEIN??"",primaryContactName:{firstName:i?.primaryContactLocalData?.firstName??"",lastName:i?.primaryContactLocalData?.lastName??""},primaryContactEmail:i?.primaryContactLocalData?.email??"",primaryContactUserId:i?.primaryContactLocalData?.userId,primaryContactSyncToken:i?.primaryContactLocalData?.syncToken,fileIds:i?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:i?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:i?.incDate?.toDate(),typeOfIncorporation:{selectedOption:i?.typeOfIncorporation,allOptions:j.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:i?.stateOfIncorporation,allOptions:j.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:i?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:i?.companySourceOfFunds??"",allOptions:Object.keys(s.companySourceOfFundOptions??{})},companySourceOfFundsDescription:i?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:i?.transactionVolume,allOptions:[..._t]},transactionVolumeDescription:i?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:i?.purposeOfAccount,allOptions:[...At]},purposeOfAccountDescription:i?.purposeOfAccountDescription??"",usNexus:i?.usNexus??"",usNexusTypes:{selectedOptions:i?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:i?.regulatedStatus??"",regulatedStatusDescription:i?.regulatedStatusDescription??""},[T]:Object.values(B).map((m,k)=>{const o=m,h=It(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${k+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:Nt(o?.nationalityCountryCode,L.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:$?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&k===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},Pe=t=>`${t}_form`,Mt=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{J as f,V as r,O as y,b as w,o as a,H as b,B as x}from"./index-
|
|
1
|
+
import{J as f,V as r,O as y,b as w,o as a,H as b,B as x}from"./index-DMtzVMbw.js";import{n as o}from"./mui-CoYz3n28.js";import{a as c}from"./sentry-oySuCz2z.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]="e36745d1-ad43-4876-9e2b-aee077a57e60",e._sentryDebugIdIdentifier="sentry-dbid-e36745d1-ad43-4876-9e2b-aee077a57e60")}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:s,styles:l})=>{const g=f(),h=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,m=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(H,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${m}`,children:[h,r.jsx(v,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},H=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 k,J as f,V as t,bE as te,fl as P,b as u,b5 as X,c1 as ie,o as i,O as w,p as B,y as h,am as v,dj as oe,u as l,a_ as re,aP as T,bT as ae,aj as $,aR as L,jm as Q,jn as U,j2 as se,cB as ne,cE as de,an as O,j3 as le,j4 as ce}from"./index-
|
|
1
|
+
import{d as k,J as f,V as t,bE as te,fl as P,b as u,b5 as X,c1 as ie,o as i,O as w,p as B,y as h,am as v,dj as oe,u as l,a_ as re,aP as T,bT as ae,aj as $,aR as L,jm as Q,jn as U,j2 as se,cB as ne,cE as de,an as O,j3 as le,j4 as ce}from"./index-DMtzVMbw.js";import{n as o}from"./mui-CoYz3n28.js";import{Gf as b,bh as he}from"./zeni-epic-state-C253RwnE.js";import{P as R,a as K}from"./sentry-oySuCz2z.js";import{F as pe}from"./InsightsSection-De9zu_me-fO_n1ybi.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-BDU9Jttg.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";import"./NavigationDots-Bv4tBDN3-oYD3IjEb.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]="27eb8d88-c68a-4691-9134-e97789fb0931",e._sentryDebugIdIdentifier="sentry-dbid-27eb8d88-c68a-4691-9134-e97789fb0931")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=k();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},E=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(W,{children:[t.jsx(J,{children:E.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(W,{children:[t.jsx(J,{children:E.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,W=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,je=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as at,J as Ie,ax as Lt,a9 as Dt,h1 as Sr,hG as Ti,aX as et,h2 as $r,aS as tt,V as t,h5 as Ai,bE as Ei,u as h,fZ as vr,aP as qe,aR as Q,bD as Ri,bV as ta,p as c,o as a,O as ke,j8 as kr,b as _,cr as Fi,j9 as Pi,ff as zi,gT as Mi,ja as Vi,bH as Oi,bQ as jr,aV as aa,y as T,b9 as ra,bM as Ir,aj as Ce,eI as Hi,bc as ia,iY as Ni,aW as Lr,h as ft,h4 as Dr,cf as Bi,T as Ct,b5 as Wi,dq as _i,cv as Ui,jb as Gi,jc as Tr,jd as dt,e as Zi,b1 as qi,je as Yi,jf as Ki,cs as Ji,d7 as Xi,hD as Qi,am as ze,bX as eo,aw as Ut,jg as Ma,jh as to,dk as ao,H as Va,B as Ar,bb as ro,aD as io,iS as mt,j1 as oo,j6 as no,j7 as so,dx as Oa,eZ as co,i as Er,cB as Rr,i$ as lo,b_ as ho,a as Fr,ji as po,av as kt,c1 as Ha,bz as uo,dg as mo,ar as go,an as lt,h0 as Co,x as fo,bI as wo,jj as Tt,fs as xo,jk as Pr,gD as zr,jl as It,ik as Mr,i8 as Vr,bT as yo,el as Or,j2 as bo,cE as So,dS as $o,d1 as vo,j3 as ko,j4 as jo,er as Io,ci as Lo,cj as Do}from"./index-
|
|
1
|
+
import{d as at,J as Ie,ax as Lt,a9 as Dt,h1 as Sr,hG as Ti,aX as et,h2 as $r,aS as tt,V as t,h5 as Ai,bE as Ei,u as h,fZ as vr,aP as qe,aR as Q,bD as Ri,bV as ta,p as c,o as a,O as ke,j8 as kr,b as _,cr as Fi,j9 as Pi,ff as zi,gT as Mi,ja as Vi,bH as Oi,bQ as jr,aV as aa,y as T,b9 as ra,bM as Ir,aj as Ce,eI as Hi,bc as ia,iY as Ni,aW as Lr,h as ft,h4 as Dr,cf as Bi,T as Ct,b5 as Wi,dq as _i,cv as Ui,jb as Gi,jc as Tr,jd as dt,e as Zi,b1 as qi,je as Yi,jf as Ki,cs as Ji,d7 as Xi,hD as Qi,am as ze,bX as eo,aw as Ut,jg as Ma,jh as to,dk as ao,H as Va,B as Ar,bb as ro,aD as io,iS as mt,j1 as oo,j6 as no,j7 as so,dx as Oa,eZ as co,i as Er,cB as Rr,i$ as lo,b_ as ho,a as Fr,ji as po,av as kt,c1 as Ha,bz as uo,dg as mo,ar as go,an as lt,h0 as Co,x as fo,bI as wo,jj as Tt,fs as xo,jk as Pr,gD as zr,jl as It,ik as Mr,i8 as Vr,bT as yo,el as Or,j2 as bo,cE as So,dS as $o,d1 as vo,j3 as ko,j4 as jo,er as Io,ci as Lo,cj as Do}from"./index-DMtzVMbw.js";import{a as o,P as To}from"./sentry-oySuCz2z.js";import{n as r,c as we,k as Hr}from"./mui-CoYz3n28.js";import{EQ as At,bh as Ao,bf as Eo,Ge as Ro}from"./zeni-epic-state-C253RwnE.js";import{k as Fo}from"./NavigationDots-Bv4tBDN3-oYD3IjEb.js";import{A as Po,i as zo,a as Mo,l as Vo,r as Oo,t as Ho,n as No}from"./add-to-wallet-DgdBD8_G-CEUXmLLB.js";import{L as Gt}from"./lottie-CH4Au8OK.js";import{j as Bo}from"./CardNumberSubText-DqtLT1w5-DXiQdLzK.js";import{l as Wo}from"./panelSelectedMixin-CzfD5-Zs-BhQovnBD.js";import{r as Nr}from"./core-C2ocMdpX.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-Dvyi-9oH.js";import{L as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-BBIVLYVD-Bc1P2GXi.js";import"./liveblocks-BP-9wBvW.js";import"./recharts-BDU9Jttg.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";import"./RoleWithToolTip-C8x5yXaK-Dm9Z_ANT.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]="e6cc5386-85c9-4776-b5a9-494b17f39667",e._sentryDebugIdIdentifier="sentry-dbid-e6cc5386-85c9-4776-b5a9-494b17f39667")}catch{}})();const Wr=ke.getLocalizedStrings().spendManagement.chargeCard,qo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:w,chargeCardDetailView:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:A,setWalletType:S,setIsAddToWalletDrawerOpen:z,isDebitCard:M})=>{const y=Dt().analytics,{isIPadScreen:G}=Yi(),{isAndroidScreen:Y}=Ki(),K=Lt(),E=At(K.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(j,"_blank")}}):Y===!0?t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{S("apple"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}}),t.jsx(Qt,{onClick:()=>{S("google"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:E,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}})]})})},Qt=({onClick:e})=>{const i=at();return t.jsx(Er,{prefixIcon:t.jsx(Ko,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=at();return t.jsx(Er,{prefixIcon:t.jsx(Jo,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-apple-wallet-button")})},Yo=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a9 as Za,aS as N,ax as er,fY as tr,iS as W,J as Pe,o as a,d as ta,V as t,bE as ar,ga as rr,fl as ie,b as D,bV as nt,p,aP as me,aR as V,a_ as st,O as Fe,y as H,aj as Y,H as ir,B as or,c$ as nr,at as aa,bM as sr,b1 as ct,aV as dr,an as lt,aa as cr,gW as lr,ex as ur,ap as hr,ad as mr,gg as pr,i as zt,u as _,d9 as ra,ar as Cr,am as gr,R as br,c_ as fr,bx as xr,bX as yr}from"./index-
|
|
1
|
+
import{a9 as Za,aS as N,ax as er,fY as tr,iS as W,J as Pe,o as a,d as ta,V as t,bE as ar,ga as rr,fl as ie,b as D,bV as nt,p,aP as me,aR as V,a_ as st,O as Fe,y as H,aj as Y,H as ir,B as or,c$ as nr,at as aa,bM as sr,b1 as ct,aV as dr,an as lt,aa as cr,gW as lr,ex as ur,ap as hr,ad as mr,gg as pr,i as zt,u as _,d9 as ra,ar as Cr,am as gr,R as br,c_ as fr,bx as xr,bX as yr}from"./index-DMtzVMbw.js";import{a as l}from"./sentry-oySuCz2z.js";import{n as r,c as ut,k as Sr}from"./mui-CoYz3n28.js";import{EQ as wr,Gd as kr,bh as Nt,bL as $r,bP as Ir}from"./zeni-epic-state-C253RwnE.js";import{t as vr}from"./SpendManagementSection-dT-N4bSQ-DyiRwDlk.js";import{D as oe,r as jr,i as Lr}from"./ChargeCardListTable-DE72YU_i-Dx1EFTdQ.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-CPpNh89o-Bqb3Zf4F.js";import{N as Er,J as Pr}from"./PromoBaseCards-DdCMZIc7-DdtdHqeM.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-BBIVLYVD-Bc1P2GXi.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-BZpKWoe8.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-1rW0zoS2.js";import"./liveblocks-BP-9wBvW.js";import"./core-C2ocMdpX.js";import"./recharts-BDU9Jttg.js";import"./lottie-CH4Au8OK.js";import"./analytics-CkM8lXFl.js";import"./lexical-DGY0EwD1.js";import"./utils-lCkIh4TY.js";import"./RoleWithToolTip-C8x5yXaK-Dm9Z_ANT.js";import"./CardNumberSubText-DqtLT1w5-DXiQdLzK.js";import"./NavigationDots-Bv4tBDN3-oYD3IjEb.js";import"./usp-line-BBd1wKwW-CGF9yi5W.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]="e0dd9d3f-c2e5-4259-876d-b5152974760a",e._sentryDebugIdIdentifier="sentry-dbid-e0dd9d3f-c2e5-4259-876d-b5152974760a")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Ee=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Pe(),A=$!==void 0,G=$==="rejected"?Ee.status.requestRejected:$==="under_review"?Ee.status.requestUnderReview:"";return t.jsxs(Nr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:A,children:[t.jsxs(na,{children:[A?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),A?null:t.jsx(Jr,{children:n})]}),!A&&t.jsxs(Yr,{children:[t.jsx(qr,{}),m.length>0&&t.jsx(dt,{slideUpCount:m.length,children:m.map((ne,se)=>t.jsx(sa,{children:ne},`card-promo-${se.toString()}`))}),t.jsx(Kr,{})]}),U!=null&&A?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:A,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Pe();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Ee.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Ee.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},zr=e=>{const c=e-1;let u=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cf as ni,V as t,aa as li,ad as di,O as le,J as ie,ax as Se,a9 as ci,d as ze,h1 as hi,iT as pi,iU as ui,iV as mi,aT as gi,o as i,aR as X,co as xi,b as Re,p as I,b5 as wi,cv as Ci,iW as fi,iX as yi,bV as ye,cy as Ve,bQ as Si,aV as ki,y as C,eI as vi,bc as ji,iY as $i,aW as bi,h as Ii,aj as ee,h4 as Li,an as G,am as J,u as p,cL as zi,eG as Fi,iZ as Ai,i_ as Pi,H as ft,b_ as yt,i$ as St,j0 as Bi,bT as Ri,cB as Ge,j1 as kt,dx as Di,dy as q,aP as ce,cx as vt,T as jt,j2 as _i,cE as Ei,iL as Je,bM as $t,bO as bt,j3 as Ti,j4 as Vi,aX as je,bv as Oi,b$ as Ui,c0 as Ni,j5 as Mi}from"./index-DqZ19at7.js";import{P as pe,a as f}from"./sentry-DO9J0OD9.js";import{n as o,c as Qe}from"./mui-ZYC_cKE8.js";import{T as It}from"./RoleWithToolTip-C8x5yXaK-Dbq6YNZJ.js";import{j as Oe}from"./CardNumberSubText-DqtLT1w5-DO6jyw3h.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]="3d608ee0-a7a8-40ca-a51f-db6c5950e767",e._sentryDebugIdIdentifier="sentry-dbid-3d608ee0-a7a8-40ca-a51f-db6c5950e767")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Ze={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ye={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Ze,width:new C(0,0),value:Wi},Ye,et,tt,it,ot]:[Ze,Ye,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:j}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Xi=({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:$,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,B]=f.useState(!1);f.useEffect(()=>{h||B(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),B(!1))},[l.length,h]);const R=r.cardId===a.id,D=l.includes(a.id),z=R&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=R&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{$(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,F=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==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(V)}${Hi}`})}):null]}),Q=a.type.code,_=j.cardList.tooltip[Q],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Qi,{onClick:M,"data-testid":X("card-row",a.id),children:t.jsxs(Yi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:F[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:j.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:F[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx(jt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":X("send-reminder",a.id),children:j.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&B(!0)},onMouseLeave:()=>{A&&B(!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:j.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{b||m(Fe)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Zi,{}),t.jsx(fe,{children:j.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:j.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:j.cardDetails.moreOptions.lock})]}),t.jsx($e,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:j.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new je(I.success);case"request_on_hold":return new je(I.graphColor36);case"inactive":return new je(I.alert);default:return new je(s.colors.grey1)}},T=o(J)`
|
|
1
|
+
import{cf as ni,V as t,aa as li,ad as di,O as le,J as ie,ax as Se,a9 as ci,d as ze,h1 as hi,iT as pi,iU as ui,iV as mi,aT as gi,o as i,aR as X,co as xi,b as Re,p as I,b5 as wi,cv as Ci,iW as fi,iX as yi,bV as ye,cy as Ve,bQ as Si,aV as ki,y as C,eI as vi,bc as ji,iY as $i,aW as bi,h as Ii,aj as ee,h4 as Li,an as G,am as J,u as p,cL as zi,eG as Fi,iZ as Ai,i_ as Pi,H as ft,b_ as yt,i$ as St,j0 as Bi,bT as Ri,cB as Ge,j1 as kt,dx as Di,dy as q,aP as ce,cx as vt,T as jt,j2 as _i,cE as Ei,iL as Je,bM as $t,bO as bt,j3 as Ti,j4 as Vi,aX as je,bv as Oi,b$ as Ui,c0 as Ni,j5 as Mi}from"./index-DMtzVMbw.js";import{P as pe,a as f}from"./sentry-oySuCz2z.js";import{n as o,c as Qe}from"./mui-CoYz3n28.js";import{T as It}from"./RoleWithToolTip-C8x5yXaK-Dm9Z_ANT.js";import{j as Oe}from"./CardNumberSubText-DqtLT1w5-DXiQdLzK.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]="3d608ee0-a7a8-40ca-a51f-db6c5950e767",e._sentryDebugIdIdentifier="sentry-dbid-3d608ee0-a7a8-40ca-a51f-db6c5950e767")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Ze={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ye={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Ze,width:new C(0,0),value:Wi},Ye,et,tt,it,ot]:[Ze,Ye,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:j}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Xi=({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:$,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,B]=f.useState(!1);f.useEffect(()=>{h||B(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),B(!1))},[l.length,h]);const R=r.cardId===a.id,D=l.includes(a.id),z=R&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=R&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{$(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,F=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==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(V)}${Hi}`})}):null]}),Q=a.type.code,_=j.cardList.tooltip[Q],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Qi,{onClick:M,"data-testid":X("card-row",a.id),children:t.jsxs(Yi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:F[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:j.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:F[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx(jt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":X("send-reminder",a.id),children:j.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&B(!0)},onMouseLeave:()=>{A&&B(!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:j.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{b||m(Fe)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Zi,{}),t.jsx(fe,{children:j.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx($e,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:j.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:j.cardDetails.moreOptions.lock})]}),t.jsx($e,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:j.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new je(I.success);case"request_on_hold":return new je(I.graphColor36);case"inactive":return new je(I.alert);default:return new je(s.colors.grey1)}},T=o(J)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(J)`
|
|
4
4
|
color: ${I.important};
|