@zeniai/web-cockpit-ui 1.14.98-dev → 1.14.98-qa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-DSdNOxQ9-Cve45-FP.js → ACHDetailsPage-DSdNOxQ9-BUDY7ebN.js} +1 -1
- package/dist/assets/{AIPerformancePage-TtdFArUl-j0kjTnVR.js → AIPerformancePage-TtdFArUl-uXser-uf.js} +1 -1
- package/dist/assets/{AccountInfoPage-BVK7wWF2-D6Zwr__G.js → AccountInfoPage-BVK7wWF2-DkuUb7hY.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BXX4TyeS-SAgRb0Wy.js → AccountInfoPageContent-BXX4TyeS-C4EJ3VMJ.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-CiHVEVZY-D75r_EpP.js → AccountLockedInfoModal-CiHVEVZY-DS_3He1-.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-BZsVhDyw-NNurOrkC.js → AccountReconDetailsDrawerPage-BZsVhDyw-B570cCNk.js} +1 -1
- package/dist/assets/{AccountRow-COxNWv3J-Dkf6Savq.js → AccountRow-COxNWv3J-B4EUrg0i.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-BW7r2R96-BzoEoVWx.js → AccountsPromoCardStack-BW7r2R96-D8N78ah8.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-BB7h_VuN-BW-_Qu7Y.js → AddAddressForCardDrawer-BB7h_VuN-JKCzRF55.js} +1 -1
- package/dist/assets/{AddToWalletPage-CXhBOHda-b2nCfyTx.js → AddToWalletPage-CXhBOHda-BeDX9RGw.js} +1 -1
- package/dist/assets/{AgingReportsPage-CX3Te0mD-BjuuVeMz.js → AgingReportsPage-CX3Te0mD-BIMPcWZD.js} +1 -1
- package/dist/assets/{AllUserItems-Cd2jEIM9-DycIVbwH.js → AllUserItems-Cd2jEIM9-B9hdjONU.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BCBhgQDY-m3orWzJK.js → ApAgingDetailPage-BCBhgQDY-C0EKPdXU.js} +1 -1
- package/dist/assets/{AppBasePage-BRcQ7IPJ-DssY-F_Q.js → AppBasePage-BRcQ7IPJ-DutcAwno.js} +1 -1
- package/dist/assets/{AppDrawerContent-DQlHQEcs-DrKgTlSj.js → AppDrawerContent-DQlHQEcs-DLSmKyRJ.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-Cqt8FvLJ-CEOV0Ixl.js → ApprovalRulesSettingsPage-Cqt8FvLJ-Dcokd50I.js} +1 -1
- package/dist/assets/{ArAgingChart-BvAQf_dB-CCF75Uiv.js → ArAgingChart-BvAQf_dB-DuZvWO-Q.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BjvQEK0m-N2ygiYcL.js → ArAgingDetailPage-BjvQEK0m-CiJw0H2M.js} +1 -1
- package/dist/assets/{AttachmentView-e6OZT5St-CRHdzPSa.js → AttachmentView-e6OZT5St-DqYOouQl.js} +1 -1
- package/dist/assets/{BankAccountSection-DWKYMZid-XH_pxLOm.js → BankAccountSection-DWKYMZid-VBEJaF0G.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-neFg-P9--B7Ex5Gby.js → BankAccountWarningSection-neFg-P9--TJDw43tL.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-DLnQeHtD-CQ9CrcQ2.js → BankConnectionsSettingsPage-DLnQeHtD-BXUv6CG7.js} +1 -1
- package/dist/assets/{BillDetailPage-Caang31I-CV8BSbsx.js → BillDetailPage-Caang31I-DbNvy9BW.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-4n9jmsl3-C-Id93Y1.js → BillPayApprovalRuleDetailPage-4n9jmsl3-DclQvVS0.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BPX-ygl8-NB7YIybj.js → BillPayApprovalRulesPage-BPX-ygl8-D9MJjP_M.js} +1 -1
- package/dist/assets/{BillPayPromoPage-KojRs3th-CbM1NPfP.js → BillPayPromoPage-KojRs3th-BYB9Z023.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CneIMbul-lrmOziwC.js → BillPaySetUpPage-CneIMbul-BFdnuBwg.js} +1 -1
- package/dist/assets/{BillingSettingsPage-35KDGxi0-Ct237R_x.js → BillingSettingsPage-35KDGxi0-CUXbiJI4.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-B2SeSM_K-CBWl1wuN.js → BillsBulkReviewDrawerPage-B2SeSM_K-KjC1YEHo.js} +1 -1
- package/dist/assets/{BoxItem-BGDuiQll-BzndiGjI.js → BoxItem-BGDuiQll-SbLnCH_S.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-GZnJ9G9I-Crwn_TZB.js → BusinessVerificationPage-GZnJ9G9I-BIwYlUUz.js} +1 -1
- package/dist/assets/{CardNumberSubText-COHmqgEx-BK8P_Xt5.js → CardNumberSubText-COHmqgEx-CwfhKSB3.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DvA_0POP-D_6kuYkj.js → CashbackDetailPage-DvA_0POP-zs6KXs-G.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DF69jsTG-COjz_Wle.js → ChargeCardDetailPage-DF69jsTG-hPfyciQI.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BaxxkyMM-Tr5RRdcf.js → ChargeCardListPage-BaxxkyMM-MzCs1Y26.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BEYWfP5G-1q8VKxw1.js → ChargeCardListTable-BEYWfP5G-BRCBGTIM.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-5dwl-3gt-Cg-FZFeP.js → ChargeCardPaymentHistoryPage-5dwl-3gt-B3dNp_0o.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-DXHFY90F-COAtEu6_.js → ChargeCardPromoPage-DXHFY90F-BtTao1XR.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-BsTAJGSf-BVABxQAh.js → ChargeCardSetupPage-BsTAJGSf-CKUm4_l7.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BwuOooT4-Ds9c5zWv.js → ChargeCardStatementsPage-BwuOooT4-CHM4k28L.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-CC3EUXpO-Fr7mH3zN.js → CheckDepositDrawerPage-CC3EUXpO-CF5fGfSc.js} +1 -1
- package/dist/assets/{CollapsableReportTable-Bju2JSCg-BqWf1iHn.js → CollapsableReportTable-Bju2JSCg-BSE4kNvo.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CtHtINKb-ChsViTKu.js → CompanyOfficerDetailsSection-CtHtINKb-CFehJGSv.js} +1 -1
- package/dist/assets/{CompanyPassportCard-ClihOV6I-659ckUvl.js → CompanyPassportCard-ClihOV6I-GVUlJP8e.js} +1 -1
- package/dist/assets/{CompanyPassportPage-Bzbp9vtj-DZ2qH-RA.js → CompanyPassportPage-Bzbp9vtj-4dA0AY_q.js} +1 -1
- package/dist/assets/{CompleteProfile-C88rpvIR-CPwa_ZcH.js → CompleteProfile-C88rpvIR-DxWKc-5-.js} +1 -1
- package/dist/assets/{ConfettiBurst-fYnxwqdQ-9H12a4VU.js → ConfettiBurst-fYnxwqdQ-C4yZDZVx.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-DJWcJCPR-VpXOBLk1.js → CreateOrEditVendorPage-DJWcJCPR-Dl9O0TVh.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-nshXhNlE-CfhRwqnV.js → CreditCardPaymentDrawerPage-nshXhNlE-EyB92Kcq.js} +1 -1
- package/dist/assets/{CurrencySelectField-9MMlAXHh-7T5GvQvy.js → CurrencySelectField-9MMlAXHh-ORBioImf.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-J6mQ99Q--BiV07KZX.js → CustomerOnboardingActivationPage-J6mQ99Q--Cb3ro4zs.js} +1 -1
- package/dist/assets/{CustomerOnboardingContainerPage-DHYXaV1V-BTZJkTlt.js → CustomerOnboardingContainerPage-DHYXaV1V-C56kqXXZ.js} +1 -1
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-EBEAYH3x-DVqWwomd.js → CustomerOnboardingDetailPageSkeleton-EBEAYH3x-XKk3Vj6i.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-_P1XRJy7-BBpsfMtj.js → CustomerOnboardingNoStepsPage-_P1XRJy7-U2wzBaVr.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-BWvGF8wk-Gc8v-oNy.js → CustomerOnboardingPage-BWvGF8wk-BF0Atf4b.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BWN72Maw-CVrAAnDn.js → CustomerOnboardingProductSuitePage-BWN72Maw-BM98ceTr.js} +1 -1
- package/dist/assets/{Dashboard-Zq5BpBhF-C6unAaBQ.js → Dashboard-Zq5BpBhF-Clq5EYRk.js} +1 -1
- package/dist/assets/{DashboardReportPage-Pie-FQ1e-CpPHLX-r.js → DashboardReportPage-Pie-FQ1e-WfSD6Vb-.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BCWBgFUn-C6Sp2Ncg.js → DashboardSidebarBackgroundAnimation-BCWBgFUn-Ch7XCa5X.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-C6o7UraM-ERw30shi.js → DepositAccTransactionItem-C6o7UraM-13lTBs69.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DWIzj9EC-C4ETOwPX.js → DepositAccTransactionListPage-DWIzj9EC-aUyx_5K-.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-BbuaFhlm-B7VB8oiV.js → DomesticWireDetailsPage-BbuaFhlm-Dq9oLE4F.js} +1 -1
- package/dist/assets/{DownloadOverlay-smXqu_-_-DbNqWY1P.js → DownloadOverlay-smXqu_-_-HaHQ4oPo.js} +1 -1
- package/dist/assets/{DrawerPage-C-NGhaFc-Bdiyy2BL.js → DrawerPage-C-NGhaFc-C_xh6M62.js} +1 -1
- package/dist/assets/{EditPeoplePage-Ck6tbODS-2oTO0N4I.js → EditPeoplePage-Ck6tbODS-ubBGSkLn.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-CYCB7XUZ-Bkc4_Xh-.js → EditReimbursementDetailPage-CYCB7XUZ-BrP9Twu0.js} +1 -1
- package/dist/assets/{EntityDetailPage-DEzsWzSU-C1IWQ2YR.js → EntityDetailPage-DEzsWzSU-YUiOx1kj.js} +1 -1
- package/dist/assets/{EntitySummarySection-D7ui3VxW-BWyvfwWL.js → EntitySummarySection-D7ui3VxW-CERyjpXQ.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-Cci1pEY4-BQvp8jPr.js → ExpenseAutomationOverviewPage-Cci1pEY4-1sL_AHg7.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-DsPGEQpL-CcB9eHac.js → ExpenseAutomationPage-DsPGEQpL-DKHafJ5b.js} +1 -1
- package/dist/assets/{ExpressPayPage-ddPMg7wE-Tlo0T7f7.js → ExpressPayPage-ddPMg7wE-DPR1g8Lc.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-B7rx89MJ-NE6QqmUF.js → FeaturePreviewPage-B7rx89MJ-D3LB_wGw.js} +1 -1
- package/dist/assets/{FollowStepsSection-WUNvyjJh-Bpyevbi9.js → FollowStepsSection-WUNvyjJh-B3nIPwPh.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CrEL8cxP-BVjE_r1i.js → GlobalReviewListPage-CrEL8cxP-qAlR9aFX.js} +1 -1
- package/dist/assets/{InformationCardStack-cYN7bwE3-B7UR3-b4.js → InformationCardStack-cYN7bwE3-sO0pAOzz.js} +1 -1
- package/dist/assets/{InsightsCardStack-CAuhoPST-MWY5O8lc.js → InsightsCardStack-CAuhoPST-B5pOanGY.js} +1 -1
- package/dist/assets/{InsightsSection-9xZ9BN4e-D22swiZq.js → InsightsSection-9xZ9BN4e-DNtCiXCr.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-CBqEJpyq-Bl--bqo-.js → IntegrationsSettingsPage-CBqEJpyq-GRgtPKr0.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-Bg2_G0O4-DwQXwZkY.js → InternationalWireSwiftDetailsPage-Bg2_G0O4-BSPnTjV8.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-BdaKAePs-BIYMiNd6.js → InternationalWireVerificationPage-BdaKAePs-CkGYQoGn.js} +1 -1
- package/dist/assets/{InviteFormPage-a7CtHDQi-gCSqizmu.js → InviteFormPage-a7CtHDQi-DSGkeOn0.js} +1 -1
- package/dist/assets/{InvitePageListView-D0flsJMi-CW5tcQ7p.js → InvitePageListView-D0flsJMi-0Jk6a2Yk.js} +1 -1
- package/dist/assets/{InvitePeoplePage-xJZ4CmaB-D0fUyZVv.js → InvitePeoplePage-xJZ4CmaB-z8ULVrxL.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-D6gMuygS-CT-0_4kq.js → InvoiceUploadSection-D6gMuygS-DsLHKXnW.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-_zy-SJN0-qq3fKGX-.js → IssueChargeCardPage-_zy-SJN0-pxLtKqbn.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CXqpyfBQ-40JlhWdQ.js → LabeledAddressValue-CXqpyfBQ-C92S2n2L.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-D-0wb98p-CSTw9NrL.js → LabeledAddressValueField-D-0wb98p-CikvqVxv.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CcPruRSO-BooOk31f.js → LabeledControlledCheckBoxField-CcPruRSO-CaFIYxzs.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-B-OgiRpS-D789AeMD.js → LabeledCreatableSingleSelectField-B-OgiRpS-OWY6lxtT.js} +1 -1
- package/dist/assets/{LabeledDocumentField-Bo6fnkUs-BetKwcOR.js → LabeledDocumentField-Bo6fnkUs-BiNfrt85.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-D54g8qxW-Cnlp1a42.js → LabeledDropDownFormattedTextField-D54g8qxW-StSaD31c.js} +1 -1
- package/dist/assets/{LabeledText-BJi28Cmu-KVGobttz.js → LabeledText-BJi28Cmu-D9lfYP7U.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Dgn_WK0p-B4rGn1v8.js → LabeledUserSingleSelectWithSubtitlesField-Dgn_WK0p-DWc0c9MZ.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField--9AjGtEh-1hSD4x8B.js → LabeledZeniRolesDropDownField--9AjGtEh-BGkQVvtD.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CejrEmB0-M4S6E6Jj.js → LinkJETransactionPage-CejrEmB0-CbM_tuHa.js} +1 -1
- package/dist/assets/{LockCardPage-4ihNCAhG-Zb-UDpxz.js → LockCardPage-4ihNCAhG-BCEngBp6.js} +1 -1
- package/dist/assets/{LowBalancePopup-YdUL24Wb-PfAaWR1_.js → LowBalancePopup-YdUL24Wb-Cp0qxN-v.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-BNATDZtB-DsiI-0KM.js → MagicLinkACHDetailsPage-BNATDZtB-DxEBt3UQ.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-ZGyx0g5t-8Tuy5QId.js → MagicLinkDomesticWireDetailsPage-ZGyx0g5t-NsxxIUno.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-CP5KtUSE-HiNxzZ5H.js → MagicLinkInternationalWireDetailsPage-CP5KtUSE-jXdIObjE.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-B-YTZWYj-DKWdsZyd.js → MagicLinkSuccessPage-B-YTZWYj-Dgy0fFVg.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-RHv_GuEq-c-uPcRfj.js → MagicLinkTitleSection-RHv_GuEq-y4Cr3bt2.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DAryNhi6-DIXrN7jG.js → MailingDetailsSection-DAryNhi6-CuFuumI_.js} +1 -1
- package/dist/assets/{Menu-IHf_FfRX-LPFIlYqd.js → Menu-IHf_FfRX-BtY6fG9T.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-CryrCaA2-C1O3R525.js → MyBankConnectionsSettingsPage-CryrCaA2-BKVxzlg0.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-DmmwfwjV-Dzs7maAE.js → MyPendingActivationChargeCardListPage-DmmwfwjV-D-UqXttD.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BspAqqsh-B3zEQ3j1.js → MyProfileSettingsPage-BspAqqsh-DUIa5pOA.js} +1 -1
- package/dist/assets/{NavBarWithPicker-C7xr7tTs-CsJWjiOL.js → NavBarWithPicker-C7xr7tTs-CXcnIkbM.js} +1 -1
- package/dist/assets/{NavigationArrow-rBOsZ92g-CvJ7c17R.js → NavigationArrow-rBOsZ92g-fpwJrM5H.js} +1 -1
- package/dist/assets/{NavigationDots-CautbD-g-AEb3JA6J.js → NavigationDots-CautbD-g-BZ85pLrg.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-DD4raaWT-0NjfCgam.js → NewGlobalMerchantPage-DD4raaWT-DqQ8tI0s.js} +1 -1
- package/dist/assets/{NoDataChart-58kSyixy-CZ5Rv3U9.js → NoDataChart-58kSyixy-C8J9Kl-k.js} +1 -1
- package/dist/assets/{NoDataTable-aDUu8tCI-CN9poHgG.js → NoDataTable-aDUu8tCI-CaXH8kWv.js} +1 -1
- package/dist/assets/{NotFoundPage-D-nIKeoL-DS39BiNV.js → NotFoundPage-D-nIKeoL-BrOOdcPB.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-DP3xTLvr-C8krffT3.js → NotificationSettingsPage-DP3xTLvr-D68mpAoX.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CAW8P9gG-CmdQuS9n.js → NotificationsListConfig-CAW8P9gG-6D54Tubf.js} +1 -1
- package/dist/assets/{NotificationsPage-DkDGBzhT-B-IU27Zt.js → NotificationsPage-DkDGBzhT-BJUrRrH6.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CtcdC3f9-DjyRt_lN.js → OpExByVendorPage-CtcdC3f9-2hXVNqVf.js} +1 -1
- package/dist/assets/{OverlayContainerPage-Daz3A7cI-D0iblwqz.js → OverlayContainerPage-Daz3A7cI-DZQfrAEK.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CpCiLOIl-DtQtxcyB.js → PandLWithForecastPage-CpCiLOIl-BiGua3ch.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BjcqKBLG-BtuRZNcH.js → PaymentAccountSetupBillingAddressSection-BjcqKBLG-CUIvRQIH.js} +1 -1
- package/dist/assets/{PeoplePage-DCI7v6ru-BQGxB0UL.js → PeoplePage-DCI7v6ru-BGUJ5TP9.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dqm1bC2_-C9nhPtyf.js → ProductsCarousel-Dqm1bC2_-D6IxIf3S.js} +1 -1
- package/dist/assets/{PromoBaseCards-dqE7GIJ6-CjPZd9YZ.js → PromoBaseCards-dqE7GIJ6-D0yVIiC6.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CGPNOde4-iJ0HQZcD.js → QBOConnectionDialog-CGPNOde4-CR0zHLvc.js} +1 -1
- package/dist/assets/{QBOSetupSection-HhIe91hw-09HBN8uJ.js → QBOSetupSection-HhIe91hw-DHN5dIMI.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cx24E4je-CUe9BrFq.js → ReimbursementApprovalRuleDetailPage-Cx24E4je-xuDoSOD3.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-DRAkofwN-Cw1wl-sh.js → ReimbursementApprovalRulesPage-DRAkofwN-CwdWvhQr.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DToZctqy-CIF8fvzJ.js → ReimbursementDetailPage-DToZctqy-CNjKjgjE.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-BZoZAydM-_dTEqW97.js → ReimbursementPromoPage-BZoZAydM-gLfgxCqS.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-C8Oat8g_-oUMPzcZW.js → ReimbursementSetUpPage-C8Oat8g_-B0DjcA85.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BSXV7fzi-DApiFQ6Z.js → ReimbursementsBulkReviewDrawerPage-BSXV7fzi-DX28exoT.js} +1 -1
- package/dist/assets/{ReloadCard-BMn_7fNI-DobUmKfH.js → ReloadCard-BMn_7fNI-yFHo4tad.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BE2BuEqj-Cv65zIMR.js → ReportTableViewSelector-BE2BuEqj-BMoVH1Lv.js} +1 -1
- package/dist/assets/{ReportsPage-C4HDLBDq-nmW__s9z.js → ReportsPage-C4HDLBDq-Dbvzy9RX.js} +1 -1
- package/dist/assets/{RevenueChart-q15U89i8-DTxTOafZ.js → RevenueChart-q15U89i8-9Vc-OWiF.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-4mhC2jOb-D75AxfOq.js → ReviewDetailsPage-4mhC2jOb-Dm0CnUM2.js} +1 -1
- package/dist/assets/{ReviewOverlay-Co22Cju1-u5iV88jr.js → ReviewOverlay-Co22Cju1-CN_x1DtX.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DUEwWP4s-ChXNLhUR.js → RoleWithToolTip-DUEwWP4s-C_YDFJH-.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DkKSZ0sJ-zAFG0_v4.js → ScheduleDetailsFixedAssetsPage-DkKSZ0sJ-2Be8yY-W.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-B98XJtoQ-DL_QucDj.js → ScheduleDetailsPage-B98XJtoQ-C92Z9nEO.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-DXLxjeWw-DWriUjIB.js → ScheduleSequenceTable-DXLxjeWw-D6kfx-k4.js} +1 -1
- package/dist/assets/{ScreenRoutes-BRmamOlw.js → ScreenRoutes-BbQAiTN4.js} +1 -1
- package/dist/assets/{SetUpAccountSection-AZk8_IC3-BgRTrYL7.js → SetUpAccountSection-AZk8_IC3-BgpEt7W0.js} +1 -1
- package/dist/assets/{SignIn-C5PcCpLW-Da05HaL3.js → SignIn-C5PcCpLW-U8wNP0Mh.js} +1 -1
- package/dist/assets/{SignInScreen-DJh1xRdL.js → SignInScreen-BeMNwV2Z.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BmZeAl5K-BgHQbDY0.js → SpendManagementListViewPage-BmZeAl5K-Dl61C1Zj.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BfJ_icLF-CGfN-F05.js → SpendManagementPerTabPage-BfJ_icLF-C0rTj6cX.js} +1 -1
- package/dist/assets/{SpendManagementSection-DoJcpweo-BSx0Jax5.js → SpendManagementSection-DoJcpweo-CSStq-Fq.js} +1 -1
- package/dist/assets/{StatementItem-Bw66NYeY-DcIvhMqc.js → StatementItem-Bw66NYeY-DPAgwnTs.js} +1 -1
- package/dist/assets/{StatementsPage-CBIa00EK-BjIWTE3I.js → StatementsPage-CBIa00EK-CDNYK1KG.js} +1 -1
- package/dist/assets/{StatusSwitcher-Blc3-MDg-B12KNYTc.js → StatusSwitcher-Blc3-MDg-DCe5aCTB.js} +1 -1
- package/dist/assets/{SubTabSwitcher-3oir5lzq-Cmzice7W.js → SubTabSwitcher-3oir5lzq-BbfbzkBT.js} +1 -1
- package/dist/assets/{SummaryCard-DO09QLUp-DPmkfJxO.js → SummaryCard-DO09QLUp-Cm1UBlTE.js} +1 -1
- package/dist/assets/{TaskManagementPage-C_EZJRtM-P8DErI3a.js → TaskManagementPage-C_EZJRtM-DEHqnRmR.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-mYZQR43P-BLWBlyWb.js → TimeRangeSwitcher-mYZQR43P-B8L8C54A.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-BsGp8KOv-CTY5_Ouk.js → TimeframeSwitcher-BsGp8KOv-CZ-VtILM.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-wwIX-Q6T-DmtPgL2u.js → TimeframeSwitcherWithToggle-wwIX-Q6T-DeXcelpz.js} +1 -1
- package/dist/assets/{TopExCard-Cn8iW3fO-DMUR1qBk.js → TopExCard-Cn8iW3fO-CG_XDz13.js} +1 -1
- package/dist/assets/{TopExDetailPage-BS8qCkLq-Cq17vLoi.js → TopExDetailPage-BS8qCkLq-DlPS1xGU.js} +1 -1
- package/dist/assets/{TransactionDetailPage-CUeVImfA-D9txujQI.js → TransactionDetailPage-CUeVImfA-FAGZgaG8.js} +1 -1
- package/dist/assets/{TransactionList-CnjoEn7K-D2hvg7ek.js → TransactionList-CnjoEn7K-C0NzRtWS.js} +1 -1
- package/dist/assets/{TransactionListBig-xVKV1MCm-GtEvft_N.js → TransactionListBig-xVKV1MCm-BPazwMDR.js} +1 -1
- package/dist/assets/{TransactionListPage-DDNtUv3t-Dwe7tcE5.js → TransactionListPage-DDNtUv3t-BvPpANOB.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-BTufZurh-CGfPDjZ_.js → TransactionVendorDetailPage-BTufZurh-C2D6Zsr6.js} +1 -1
- package/dist/assets/{TransferDrawerPage-uBmvyc-P-CFJl7D9L.js → TransferDrawerPage-uBmvyc-P-26b9HxZW.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DJcUyLa4-Cd3rdx_U.js → TreasuryOverviewPage-DJcUyLa4-BnA9LVmq.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-DymCO6nN-Dc1dLp52.js → TreasuryPromoPage-DymCO6nN-YVkYCZi3.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-YEgI38zU-DOHp07qg.js → TreasuryStatementsPage-YEgI38zU-CTshBTHF.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-CYO6JXCO-fy_exAGm.js → TreasuryTaxLetterPage-CYO6JXCO-C06DT4sF.js} +1 -1
- package/dist/assets/{TrendChart-Dzc9yPKs-Blv6Qzrf.js → TrendChart-Dzc9yPKs-DCcvZ56Z.js} +1 -1
- package/dist/assets/{TrendWithTransactions-C2HIrxbU-BSlQs2Tq.js → TrendWithTransactions-C2HIrxbU-DAMM6QVL.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-CN3CI6bw-zjOv8nCW.js → UncategorizedAccountsMappingPage-CN3CI6bw-CpvcuXEX.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-EaVWz4pX-CbKtqluY.js → UnitIntegrationPage-EaVWz4pX-Bz0x6lsY.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DIL6E7Sd-BEDKH1e3.js → UploadAdditionalDocumentOverlay-DIL6E7Sd-nr87DyQG.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-BxAm0k92-Dk5tVOzX.js → Vendor2FAPopup-BxAm0k92-pzvF3dzq.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DF0jHzqw-CNLQ8AnP.js → VendorACHDetailsPage-DF0jHzqw-BjdrHpXc.js} +1 -1
- package/dist/assets/{VendorDetailPage-C_B_CmoV-DZeP35Np.js → VendorDetailPage-C_B_CmoV-DhDUfade.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-a52VbRia-DcoKPqJx.js → VendorDomesticWireDetailsPage-a52VbRia-CuThrVrd.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Dzgzl_4E-VsmZ5Vuv.js → VendorFiling1099EditablePage-Dzgzl_4E-C6CtI7F3.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-mfIvCyFK-ApwBXjUo.js → VendorFirstReviewPage-mfIvCyFK-BDtrVL1t.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CNs1VqUa-DbFJLYLp.js → VendorInternationalWireDetailsPage-CNs1VqUa-AxRoZVqc.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BoEZ09xC-egxnMP7A.js → VendorInternationalWireSwiftDetailsPage-BoEZ09xC-Cqzq-YZ_.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-B6DkSP2a-Ct-pliYw.js → VendorsAccountsSection-B6DkSP2a-TGZHJo6b.js} +1 -1
- package/dist/assets/{VerifyDevice-Cu9P83rS-BlGa7yZF.js → VerifyDevice-Cu9P83rS-BXogqvvq.js} +1 -1
- package/dist/assets/{VideoPlayer-Dml6r7Q7-CtFMcnbA.js → VideoPlayer-Dml6r7Q7-kG7O2GEB.js} +1 -1
- package/dist/assets/{VideoPopup-B7E5ZfFp-BvZy2q4i.js → VideoPopup-B7E5ZfFp-2GwUp8oI.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-BZU8XDHH-Djgf6BN0.js → WarningsDrawerPage-BZU8XDHH-5F-nZ5Wh.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-Do5LJYN4-DOVBM5Q5.js → ZeniAccountDetailPage-Do5LJYN4-C5VZ1IHc.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-Be5rl4e6-BE0wkZ9j.js → ZeniAccountListViewPage-Be5rl4e6-B2LuzKy3.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-0h-vfuVY-BqB9OPYl.js → ZeniAccountNavBarPieces-0h-vfuVY-C3yFjXgV.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BMULic13-C4Ac4YqS.js → ZeniAccountPromoPage-BMULic13-DqiBlrLz.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-D_doc0Sf-BchKN68c.js → ZeniAccountSetupPage-D_doc0Sf-DbkyYaRI.js} +1 -1
- package/dist/assets/{ZeniCopyright-CDfvakjf-8KnokS3w.js → ZeniCopyright-CDfvakjf-DdFXxWan.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-BdZ5l3Hh-C3Uey-AS.js → ZeniTransferAmountSlider-BdZ5l3Hh-B0z6Ak2I.js} +1 -1
- package/dist/assets/{analyticsHelper-C164AjRf-tG0aq5YR.js → analyticsHelper-C164AjRf-BUQv6elD.js} +1 -1
- package/dist/assets/{analyticsHelper-OMYXGOV0.js → analyticsHelper-Cg6AQnia.js} +1 -1
- package/dist/assets/{chartTypes-DQ1OffIu-Bo_aesHa.js → chartTypes-DQ1OffIu-DkB5GpFi.js} +1 -1
- package/dist/assets/{commonDimensions-j5_IHOmP-jvW6K-um.js → commonDimensions-j5_IHOmP-BbAWTMhB.js} +1 -1
- package/dist/assets/{detailCommon-BdYIBs8o-CJ5ceH6M.js → detailCommon-BdYIBs8o-C7RP83q0.js} +1 -1
- package/dist/assets/{downloadPdf-BduTAGPj-DUom1tyc.js → downloadPdf-BduTAGPj-D606RiQz.js} +1 -1
- package/dist/assets/{index-CO_Updpp.js → index-DL_zrSsq.js} +5 -5
- package/dist/assets/{mapLoadingInProgressToTreeNode-kWMAzMb3-CMOJHu7q.js → mapLoadingInProgressToTreeNode-kWMAzMb3-DMbKtDeY.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CSuXPDoO-BSS8TRaL.js → mapSectionWithAcOnlyToTreeNode-CSuXPDoO-DzJLlKZa.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-BjnjpyM6-BNLh9WdA.js → mapSpacerToTreeNode-BjnjpyM6-CTSMNsLI.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-CaRKUf6w-8AEXCCet.js → mapTimeframeBalancesToTreeNode-CaRKUf6w-CJ4Nigud.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-XslT-q64-Q3w1WkcY.js → mapTimeframeBalancesToTreeNode-XslT-q64-BTC8ZLHF.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-BItBTBN2.js → mapTimeframeHeaderLoadingInProgressToTreeNode-ByvQizpc-DQz_5jDI.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-BA4WkU1y-CDNy4Vu0.js → toCOABalancesWithID-BA4WkU1y-IaWUt-zn.js} +1 -1
- package/dist/assets/{toChartData-DrvhJgTD-N2b3lY8k.js → toChartData-DrvhJgTD-RZQRJ7Js.js} +1 -1
- package/dist/assets/{uploadAttachment-DiJJciQx-DORmL_G6.js → uploadAttachment-DiJJciQx-CTJnPHjt.js} +1 -1
- package/dist/assets/{uploadReceipts-CPw64UYa-CIYZXcqS.js → uploadReceipts-CPw64UYa-BiBffXJB.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
package/dist/assets/{BillDetailPage-Caang31I-CV8BSbsx.js → BillDetailPage-Caang31I-DbNvy9BW.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as Zn,aw as Un,f as Kn,gd as Hn,ge as Vn,gf as qn,gg as Gn,cb as Xn,aO as Yn,y,V as t,f4 as ct,f5 as Jn,o as a,f6 as Qn,f7 as ea,f8 as ta,aL as Se,f9 as na,aN as b,bA as pt,bn as mt,ds as ut,cn as yt,co as ht,cp as bt,gh as aa,gi as ia,gj as la,gk as oa,fe as j,gl as I,fg as A,fh as k,fd as ra,b as gt,p as oe,ff as Ot,fn as sa,fi as da,fj as ca,gm as pa,gn as ma,aP as ua,ao as ft,bR as ve,go as ya,gp as L,F as ha,d as s,ag as ba,c0 as ga,gq as fa,_ as xa,gr as wa,fo as xt,M as Ta,d1 as va,cg as Da,gs as wt,b6 as $a,b8 as ja,l as Ia,bT as Ft,d2 as Aa,gt as ka,ai as Et,aX as Sa,b4 as Ca,bs as Pa,eK as Ba,al as Ra}from"./index-CO_Updpp.js";import{a as p}from"./sentry-DdXOXL3j.js";import{n as i}from"./mui-ByF8ZmHV.js";import{a as Ma}from"./liveblocks-BOlC_Koo.js";import{bO as za,bL as Na,bP as La,FH as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-BiQIJCwr.js";import{o as Wa,t as Za}from"./LowBalancePopup-YdUL24Wb-PfAaWR1_.js";import"./core-cG0U1y2d.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./recharts-C9z9JCsM.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.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]="aac1f7ce-84fb-4edc-a5cb-273b077d064c",e._sentryDebugIdIdentifier="sentry-dbid-aac1f7ce-84fb-4edc-a5cb-273b077d064c")}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:Ha,common:{noText:C,strings:{empty:c},currency:Tt,via:Va,more:qa,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:$t,title:{comments:Xa}}}}=ha.getLocalizedStrings(),$e=Ha.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Ht,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:qt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Jt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,H]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,J]=p.useState(!1),h=e.transactionDetails?.id,on=Ht?Hn:Vn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&Q(K)},[K,Q]);const[rn,V]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:q,isLoading:P}=qn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:q.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[q,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),V(!1)},[ee,V]);p.useEffect(()=>{ue?.threadId!=null&&q.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,q,P,ee,Q]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,He]=p.useState("approved"),[mn,Ve]=p.useState(!1),[un,qe]=p.useState(!1),[Ge,Xe]=p.useState(!1),Ye=()=>Ve(!1),yn=()=>Ve(!0),Je=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")&&(Me(),Y())},[e,Y,Me]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&G?.code?G:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:G?.code!=null&&(ae?.code=="approved"||G.code==="mark_as_paid")?G:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&qt(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}),H(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},xn=()=>{z.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:()=>{H(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{H(!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),z.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},$=m.labelWidth.value(l),$n=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):"",In=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($i,{})})]}):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{q as Zn,aw as Un,f as Kn,gd as Hn,ge as Vn,gf as qn,gg as Gn,cb as Xn,aO as Yn,y,V as t,f4 as ct,f5 as Jn,o as a,f6 as Qn,f7 as ea,f8 as ta,aL as Se,f9 as na,aN as b,bA as pt,bn as mt,ds as ut,cn as yt,co as ht,cp as bt,gh as aa,gi as ia,gj as la,gk as oa,fe as j,gl as I,fg as A,fh as k,fd as ra,b as gt,p as oe,ff as Ot,fn as sa,fi as da,fj as ca,gm as pa,gn as ma,aP as ua,ao as ft,bR as ve,go as ya,gp as L,F as ha,d as s,ag as ba,c0 as ga,gq as fa,_ as xa,gr as wa,fo as xt,M as Ta,d1 as va,cg as Da,gs as wt,b6 as $a,b8 as ja,l as Ia,bT as Ft,d2 as Aa,gt as ka,ai as Et,aX as Sa,b4 as Ca,bs as Pa,eK as Ba,al as Ra}from"./index-DL_zrSsq.js";import{a as p}from"./sentry-DdXOXL3j.js";import{n as i}from"./mui-ByF8ZmHV.js";import{a as Ma}from"./liveblocks-BOlC_Koo.js";import{bO as za,bL as Na,bP as La,FH as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-BiQIJCwr.js";import{o as Wa,t as Za}from"./LowBalancePopup-YdUL24Wb-Cp0qxN-v.js";import"./core-cG0U1y2d.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./recharts-C9z9JCsM.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.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]="aac1f7ce-84fb-4edc-a5cb-273b077d064c",e._sentryDebugIdIdentifier="sentry-dbid-aac1f7ce-84fb-4edc-a5cb-273b077d064c")}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:Ha,common:{noText:C,strings:{empty:c},currency:Tt,via:Va,more:qa,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:$t,title:{comments:Xa}}}}=ha.getLocalizedStrings(),$e=Ha.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:Z,signedInUser:re,isAdmin:Wt,isRealTimeApprovalEnabled:Zt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Ht,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Vt,redirectToEditableBillScreen:qt,redirectToBillsScreen:Y,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Yt,discardOutsideZeniPaymentData:Jt,onBackClick:Oe,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Zn(),o=Un(),Fe=Kn(),[an,H]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[We,J]=p.useState(!1),h=e.transactionDetails?.id,on=Ht?Hn:Vn,{requestToOpenThread:ue,setRequestToOpenThread:Q,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&Q(K)},[K,Q]);const[rn,V]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:q,isLoading:P}=qn(T,"both",!1),x=Be&&h!=null,Ze=p.useMemo(()=>h==null?[]:q.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[q,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),V(!1)},[ee,V]);p.useEffect(()=>{ue?.threadId!=null&&q.length>0&&!P&&(ee(ue.threadId),Q(null))},[ue,q,P,ee,Q]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,He]=p.useState("approved"),[mn,Ve]=p.useState(!1),[un,qe]=p.useState(!1),[Ge,Xe]=p.useState(!1),Ye=()=>Ve(!1),yn=()=>Ve(!0),Je=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")&&(Me(),Y())},[e,Y,Me]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Je,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&G?.code?G:ae,S=Ya(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:G?.code!=null&&(ae?.code=="approved"||G.code==="mark_as_paid")?G:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&qt(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}),H(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),H(!0)},xn=()=>{z.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:()=>{H(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{H(!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),z.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},$=m.labelWidth.value(l),$n=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):"",In=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($i,{})})]}):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?za(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(Jn,{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,Mn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,zn=!Mn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),X=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!X&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Yt(!0,Ge,r)},rt=()=>{qe(!0),z.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Xe(!0),rt()},Fn=()=>{Jt(),qe(!1),Ge&&Xe(!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]),_=Vt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{He("approved"),We===!0&&J(!1),_!=null&&z.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=()=>{He("rejected"),_!=null&&z.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($e)??"",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(),V(!0),z.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(),V(!0),z.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:()=>{J(!1),Qe()},onClickAway:()=>{J(!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?Ja(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(X,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(Ie,{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(I,{label:{label:n.invoiceNumber,width:$},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(M,{}),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(I,{label:{label:n.invoiceDate,width:$},text:ie.invoiceDate?.format($e)??C,style:{width:"auto"}})}),t.jsx(M,{}),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(I,{label:{label:n.billDueDate,width:$},text:ie.billDueDate?.format($e)??C,style:{width:"auto"}})}),t.jsx(M,{}),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(I,{label:{label:n.memo,width:$},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ie,{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(I,{label:{label:n.amount,width:$},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(M,{}),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(I,{label:{label:n.description,width:$},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(M,{}),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(I,{label:{label:n.category,width:$},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(M,{}),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(I,{label:{label:n.class,width:$},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(M,{}),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(I,{label:{label:n.billable,width:$},text:r.billable!=null?$n(r.billable):C,style:{width:"auto"}})}),t.jsx(M,{}),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(I,{label:{label:n.customer,width:$},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(Ie,{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(I,{label:{label:n.withdrawFrom,width:$},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(M,{})]}),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(I,{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:$},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(M,{}),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(I,{label:{label:n.paymentTo,width:$},text:d.paymentToBankAccount!=null?In: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(M,{}),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(I,{label:{label:n.paymentType,width:$},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(Ii,{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:Xt,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:Qt,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:Qa(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?J(!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:[!X&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs(It,{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(It,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{z.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,!X&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(si,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!X&&zn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,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(Ma,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Xa,threads:q,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:$t.resolveComment,threadUnResolve:$t.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>V(!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}},Ja=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(Mt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(Mt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Qa=(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} ${Va} ${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 O,d as L,q as M,F as U,a9 as W,aO as G,aH as H,cC as X,V as o,bA as J,ac as K,aP as Q,o as u,g3 as Y}from"./index-
|
|
1
|
+
import{y as O,d as L,q as M,F as U,a9 as W,aO as G,aH as H,cC as X,V as o,bA as J,ac as K,aP as Q,o as u,g3 as Y}from"./index-DL_zrSsq.js";import{a as T}from"./sentry-DdXOXL3j.js";import{n as h}from"./mui-ByF8ZmHV.js";import{b as Z,f as ee,o as _,l as C}from"./FollowStepsSection-WUNvyjJh-B3nIPwPh.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./zeni-epic-state-BiQIJCwr.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.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]="9f87a65a-8f2d-47e4-913b-0fc49a0bfa00",e._sentryDebugIdIdentifier="sentry-dbid-9f87a65a-8f2d-47e4-913b-0fc49a0bfa00")}catch{}})();const k="billPayApprovalRuleDetailPage",j="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",ae={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:a,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:y=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const P=M(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,g=le(e,a==="approval_create"&&!n),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:$}=g,{allApprovalRules:d,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let m=d.length>1?d.length-1:0,v=d.length>0?d[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=d.findIndex(p=>p.approvalRuleId===i),v=m>0?d[m-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),q=async(i,p)=>{r(p)};return T.useEffect(()=>{const i=x.watch((p,{name:D})=>{if(D!=null&&p!=null){const z=H(p);X(()=>q(D,z))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),o.jsxs(se,{children:[o.jsx(J,{title:a==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:R(k),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:j,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:v,validate:i=>n?!0:i!=null&&i>v},isDisabled:n,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:y,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(de,{}),o.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:R(k),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:a==="approval_create"?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(P)},separatorStyle:{marginRight:u.sp4}})]})]})}const le=(e,a)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[b]:[b],[w]:te(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),_(e.allAttributes),_(e.filteredAttributes),r??[])??[],[j]:a?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},te=(e,a,l,r,s)=>s&&s.length>0?s.map((n,y)=>({stepIndex:y,stepType:{selectedOption:n.action,allOptions:C},actors:{allUsers:a,selectedUsers:oe(e,n.actors),allNonUsers:r,selectedNonUsers:re(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:C},actors:{allUsers:a,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],oe=(e,a)=>e.filter(l=>l.userId!=null&&a.findIndex(r=>r.userId===l.userId)>-1),re=(e,a)=>e.filter(l=>a.findIndex(r=>r.subType===l.value)>-1),R=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as L,F as v,V as t,bA as N,A as _,aN as S,y as r,al as j,o,aL as P,cn as E,co as H,cp as U,cZ as V,d as l,b8 as G,M as k,b7 as q,p as z,cW as F,bs as Z,b as J}from"./index-
|
|
1
|
+
import{q as L,F as v,V as t,bA as N,A as _,aN as S,y as r,al as j,o,aL as P,cn as E,co as H,cp as U,cZ as V,d as l,b8 as G,M as k,b7 as q,p as z,cW as F,bs as Z,b as J}from"./index-DL_zrSsq.js";import{n as i}from"./mui-ByF8ZmHV.js";import{a as K}from"./sentry-DdXOXL3j.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./zeni-epic-state-BiQIJCwr.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="eef3d168-cfe6-450e-a0ec-71f6d94aeb2d",e._sentryDebugIdIdentifier="sentry-dbid-eef3d168-cfe6-450e-a0ec-71f6d94aeb2d")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},A={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},O=({showDeleteBtn:e=!1,isLastSection:h=!1,approvalRule:d,onEditRuleClick:b,onDeleteRuleClick:w})=>{const[x,g]=K.useState(!1),n=L(),{range:u}=d.criteria[0],{steps:$,approvalRuleId:m}=d,a=v.getLocalizedStrings().commonSetUp.approval,y=()=>{g(!0)},W={onOkClick:()=>{g(!1),w?.(m)},onCancelClick:()=>{g(!1)}};return t.jsxs(Q,{windowSize:n,isLastSection:h,children:[t.jsxs(X,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(B,{windowSize:n,children:[a.from," ",P("0,0",u.min)]}),t.jsxs(Y,{children:[t.jsx(T,{}),t.jsx(ee,{}),t.jsx(T,{})]}),u.max==null?t.jsx(de,{}):t.jsx(B,{windowSize:n,children:P("0,0",{...u.min,amount:u.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e&&t.jsx(ae,{onClick:y,"data-testid":S("delete-approval-rule-bill-pay",d.approvalRuleId)}),t.jsx(pe,{onClick:()=>{b(m)},"data-testid":S("edit-approval-rule-bill-pay",d.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:$.length===1,windowSize:n,children:$.map((c,D)=>t.jsxs(ie,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[c.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),c.nonUserActors!=null&&c.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(C,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},`${p.subType}_${M}`)),c.actors.map(p=>t.jsxs(C,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),c.operator!="is"?t.jsx(R,{className:"operator",children:c.operator}):null]},p.userId))]},D))})}),x?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(H,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},Q=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-KojRs3th-CbM1NPfP.js → BillPayPromoPage-KojRs3th-BYB9Z023.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as W,q as f,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F as I,o as l,aq as le,c as se,f as M,aR as U,am as oe,y as te,p as b,cB as re,aS as ae,b9 as ne,d as de}from"./index-
|
|
1
|
+
import{aw as W,q as f,aO as Y,V as e,fp as ee,bA as ie,n as B,aN as C,ae as m,F as I,o as l,aq as le,c as se,f as M,aR as U,am as oe,y as te,p as b,cB as re,aS as ae,b9 as ne,d as de}from"./index-DL_zrSsq.js";import{a as g}from"./sentry-DdXOXL3j.js";import{n as s}from"./mui-ByF8ZmHV.js";import{Fw as ce,bS as pe,Fx as me}from"./zeni-epic-state-BiQIJCwr.js";import{f as xe}from"./VideoPopup-B7E5ZfFp-2GwUp8oI.js";import{M as $}from"./usp-line-BBd1wKwW-nbZRH-xL.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";import"./VideoPlayer-Dml6r7Q7-kG7O2GEB.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]="0bc8442e-17f6-43b3-98b8-aea86550a8b5",i._sentryDebugIdIdentifier="sentry-dbid-0bc8442e-17f6-43b3-98b8-aea86550a8b5")}catch{}})();const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new te(de[5],44)},ge=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-CneIMbul-lrmOziwC.js → BillPaySetUpPage-CneIMbul-BFdnuBwg.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He,p as ze,aN as Le,y as u,bA as Ne,A as qe,ac as Me,fq as H,dN as Ge,fr as Je,bv as Ze,dD as Ke,bR as Xe,fs as Ye,aP as Qe,o as L,ft as et,d as a,al as tt,bI as it}from"./index-
|
|
1
|
+
import{f as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He,p as ze,aN as Le,y as u,bA as Ne,A as qe,ac as Me,fq as H,dN as Ge,fr as Je,bv as Ze,dD as Ke,bR as Xe,fs as Ye,aP as Qe,o as L,ft as et,d as a,al as tt,bI as it}from"./index-DL_zrSsq.js";import{a as m}from"./sentry-DdXOXL3j.js";import{n as b}from"./mui-ByF8ZmHV.js";import{bJ as nt}from"./zeni-epic-state-BiQIJCwr.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DIL6E7Sd-nr87DyQG.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.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]="9d5886c8-ba9f-4f5c-a35c-b4d7bc9fcbd9",e._sentryDebugIdIdentifier="sentry-dbid-9d5886c8-ba9f-4f5c-a35c-b4d7bc9fcbd9")}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)},Y="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:N,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const A=De(),i=Oe(),[k,S]=m.useState(!1),q=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:Ae,plaidConnectionDetails:_,allBankAccounts:ke,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,B=E(f),J=E(P.fetchState),Z=E(D.fetchState),K=E(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&B==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,B]),m.useEffect(()=>{(B==="In-Progress"&&f==="Completed"||Z==="In-Progress"&&D.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&w.reset(z(e))},[B,f,w,e,Z,D.fetchState,K,O.fetchState]);const je=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Be=async(x,F)=>{const o=F[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=M.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Be(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&N()},[N,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Ve,{billPaySetup:l}=Fe.billPay,$=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=$?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=A.mode==="light"?new X(A.colors.brandColorJadeLight):new X(A.colors.brandColorJadeDark),_e=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,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(Ne,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:q,backgroundColor:A.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...w,children:t.jsx("form",{id:Q(Y),onSubmit:je,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:M,plaidConnectionDetails:_,allBankAccounts:ke,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),$&&!R&&j.length>0?t.jsx(Qe,{formId:Q(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:$&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as we,q as be,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ie,A as Ae,ac as ve,bv as ke,cD as je,aP as Te,o as s,hG as $e,eV as De,eW as Ve,d as x,al as Be,gP as Ee,p as ze,M as Le}from"./index-
|
|
1
|
+
import{f as we,q as be,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ie,A as Ae,ac as ve,bv as ke,cD as je,aP as Te,o as s,hG as $e,eV as De,eW as Ve,d as x,al as Be,gP as Ee,p as ze,M as Le}from"./index-DL_zrSsq.js";import{a as F}from"./sentry-DdXOXL3j.js";import{n as r}from"./mui-ByF8ZmHV.js";import{F as Oe,r as W,o as Me}from"./PaymentAccountSetupBillingAddressSection-BjcqKBLG-CUIvRQIH.js";import{F as _e}from"./SetUpAccountSection-AZk8_IC3-BgpEt7W0.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./zeni-epic-state-BiQIJCwr.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.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]="c0048821-8079-4e87-96c2-2176b84c9572",e._sentryDebugIdIdentifier="sentry-dbid-c0048821-8079-4e87-96c2-2176b84c9572")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Fe={title:new Le("standardSemiBold","largeSemiBold")},H="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:K,stripeKey:q,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,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,D=y?.providerVerificationStatus,ue=$.fetchState==="In-Progress"||$.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:R(i),values:R(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(G)}),V=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,k=De(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Ve(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=b.mode==="light"?new j(b.colors.brandColorJadeLight):new j(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,z=h.cardsList.length>0,L=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;z&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:W(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(L).name}),color:new j(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=F.useState(!1);return t.jsxs(He,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(We,{windowSize:o,children:[t.jsx(Re,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:U(H),onSubmit:pe,children:t.jsxs(Ke,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:D?.code==="require_info"||D?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:T,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),qe(o,l.headers.billingAddress,ce,N,d)]})})})}),je(f.formState.dirtyFields)?t.jsx(Te,{formId:U(H),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:V?.fetchState==="In-Progress",isDisabled:V?.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:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:q,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},R=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]}},We=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as b,cn as V,co as W,cp as M,k1 as q,aW as z,F as G}from"./index-
|
|
1
|
+
import{V as b,cn as V,co as W,cp as M,k1 as q,aW as z,F as G}from"./index-DL_zrSsq.js";import{a as g}from"./sentry-DdXOXL3j.js";import{Gd as K}from"./zeni-epic-state-BiQIJCwr.js";import{u as Q}from"./ReviewOverlay-Co22Cju1-CN_x1DtX.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./mui-ByF8ZmHV.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.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]="d7de3e1d-3575-441b-ab76-55536cd5b8c8",e._sentryDebugIdIdentifier="sentry-dbid-d7de3e1d-3575-441b-ab76-55536cd5b8c8")}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:f,currentSubTab:_}=e,u=i==="review",[C,y]=g.useState(!1),[n,v]=g.useState(P(e,u)),[p,k]=g.useState(u),[B,E]=g.useState(0),[w,j]=g.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});g.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(I),O===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(P(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,f,_),y(!0)},F={onOkClick:d=>{y(!1),r.trackBillPayBulkPopupConfirm(i,f,_,X(e)),l("reject",d)},onCancelClick:()=>{y(!1)}},{title:N,description:A}=H(m,h,R,p),T=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,f,_),l(i)},U={label:T?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:T?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(M,{children:w.title}),descriptionComponent:b.jsx(W,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:T}})]})},P=(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??""}}))},X=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:f,is:_,do_:u,does:C}=s.texts,y=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_>",y?f:_)}`):(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,X as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as l,V as s,aN as b,o as e}from"./index-
|
|
1
|
+
import{q as l,V as s,aN as b,o as e}from"./index-DL_zrSsq.js";import{n as a}from"./mui-ByF8ZmHV.js";import{o as p}from"./commonDimensions-j5_IHOmP-BbAWTMhB.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]="d3d9c2a5-170a-4ff5-95b4-8c9e6350bc7f",o._sentryDebugIdIdentifier="sentry-dbid-d3d9c2a5-170a-4ff5-95b4-8c9e6350bc7f")}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{f as ct,q as dt,aO as De,V as a,ae as W,a9 as mt,cQ as ut,ay as pt,cC as ft,aW as ve,aM as Ie,g6 as yt,n as ht,bA as gt,aN as xt,cD as St,cn as wt,co as bt,cp as Ct,A as Tt,ac as Dt,aP as vt,o,y as O,am as Ve,F as Le,g7 as It,fu as $e,eV as $t,c as kt,_ as Nt,al as Fe,M as jt,a as Pt,d as k}from"./index-CO_Updpp.js";import{a as V}from"./sentry-DdXOXL3j.js";import{n as d}from"./mui-ByF8ZmHV.js";import{EN as Ot,bi as G}from"./zeni-epic-state-BiQIJCwr.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-CtHtINKb-ChsViTKu.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";import"./LabeledAddressValueField-D-0wb98p-CSTw9NrL.js";import"./LabeledCreatableSingleSelectField-B-OgiRpS-D789AeMD.js";import"./LabeledDocumentField-Bo6fnkUs-BetKwcOR.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]="6c526d8b-4043-49d9-a16d-a9b91107b685",e._sentryDebugIdIdentifier="sentry-dbid-6c526d8b-4043-49d9-a16d-a9b91107b685")}catch{}})();const x={width:new O(343,580,726),titleWidth:new O(343,580,726,826),subTitlePaddingTop:new O(12,k[3]),subTitlePaddingBottom:new O(k[3],k[3]),verificationDetailsRowGap:new O(12,k[5],k[5]),termsPaddingLeftRight:new O(k[0],k[3])},Ft={stepTitle:new jt("h6Regular","h5Regular")},ke="businessVerificationPage",C="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:Ne,footer:je,strings:{empty:_t}}}=Le.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:D,verficationDetailsFetchState:N,isRefreshingViewInBackground:A,filesEndPoint:r,authParams:_,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:j,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),m=dt(),{updateStatus:R,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Je=De(R.fetchState),M=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Q]=V.useState(!1),[U,oe]=V.useState("save"),[X,Ze]=V.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,B,E,D)}),{isValid:He}=u.formState,J=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,$=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&b!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:Te},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(U!=="verification"&&oe("verification"),M==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${T}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(I),q===!0&&Qe?.())}),st=async(t,s)=>{t.includes(C)?Me?.(s[C]):t.includes(T)&&We?.(s[T])},nt=V.useCallback(pt((t,s)=>{st(t,s)},300),[]);V.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=De(e.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{Q(!1),L();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${T}.${f}.fileIds`).forEach($=>{b.includes($)||t.push($)})}),t.length!==0&&Ue?.(t)},onCancelClick:()=>{Q(!1)}},lt=ve(Ie(p),p,Ne.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,Ne.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?_t:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?Q(!0):L()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Mt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?At.infoText.businessVerification:i.title}),N==="In-Progress"||N==="Not-Started"?a.jsx(Ut,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(Dt,{...u,children:a.jsxs("form",{id:Pe(ke),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(Qt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Jt,{children:a.jsxs(Kt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Yt,{})]})})]}),a.jsx(Ae,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:D,allOfficers:Y??[],sectionId:T,isRefreshingViewInBackground:A,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:j,filesEndPoint:r,authParams:_,isPopupOpen:X,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:A},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":j,fileProps:{authParams:_,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),N==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Pe(ke),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:j!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)L();else{const t=w[I],s=l?.primaryContactLocalData;U!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(I))}}},helperText:Ke,style:{padding:`12px ${o.sp3}`,zIndex:X?0:4}}):null]})},Bt=(e,D,N,A)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:_,companyView:y}=e,B=Le.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:D?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(_).map((p,j)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${j+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,A.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:N?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,n?.userFiles??[],h),back:$e(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&j===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Pe=e=>`${e}_form`,Et=d.div`
|
|
1
|
+
import{f as ct,q as dt,aO as De,V as a,ae as W,a9 as mt,cQ as ut,ay as pt,cC as ft,aW as ve,aM as Ie,g6 as yt,n as ht,bA as gt,aN as xt,cD as St,cn as wt,co as bt,cp as Ct,A as Tt,ac as Dt,aP as vt,o,y as O,am as Ve,F as Le,g7 as It,fu as $e,eV as $t,c as kt,_ as Nt,al as Fe,M as jt,a as Pt,d as k}from"./index-DL_zrSsq.js";import{a as V}from"./sentry-DdXOXL3j.js";import{n as d}from"./mui-ByF8ZmHV.js";import{EN as Ot,bi as G}from"./zeni-epic-state-BiQIJCwr.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-CtHtINKb-CFehJGSv.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";import"./LabeledAddressValueField-D-0wb98p-CikvqVxv.js";import"./LabeledCreatableSingleSelectField-B-OgiRpS-OWY6lxtT.js";import"./LabeledDocumentField-Bo6fnkUs-BiNfrt85.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]="6c526d8b-4043-49d9-a16d-a9b91107b685",e._sentryDebugIdIdentifier="sentry-dbid-6c526d8b-4043-49d9-a16d-a9b91107b685")}catch{}})();const x={width:new O(343,580,726),titleWidth:new O(343,580,726,826),subTitlePaddingTop:new O(12,k[3]),subTitlePaddingBottom:new O(k[3],k[3]),verificationDetailsRowGap:new O(12,k[5],k[5]),termsPaddingLeftRight:new O(k[0],k[3])},Ft={stepTitle:new jt("h6Regular","h5Regular")},ke="businessVerificationPage",C="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:Ne,footer:je,strings:{empty:_t}}}=Le.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:D,verficationDetailsFetchState:N,isRefreshingViewInBackground:A,filesEndPoint:r,authParams:_,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:j,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),m=dt(),{updateStatus:R,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Je=De(R.fetchState),M=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="unit"?a.jsxs(qt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Q]=V.useState(!1),[U,oe]=V.useState("save"),[X,Ze]=V.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,B,E,D)}),{isValid:He}=u.formState,J=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,$=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&b!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:Te},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Y!=null&&Y?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(U!=="verification"&&oe("verification"),M==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${T}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(I),q===!0&&Qe?.())}),st=async(t,s)=>{t.includes(C)?Me?.(s[C]):t.includes(T)&&We?.(s[T])},nt=V.useCallback(pt((t,s)=>{st(t,s)},300),[]);V.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=De(e.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{Q(!1),L();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${T}.${f}.fileIds`).forEach($=>{b.includes($)||t.push($)})}),t.length!==0&&Ue?.(t)},onCancelClick:()=>{Q(!1)}},lt=ve(Ie(p),p,Ne.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Zt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,Ne.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?_t:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?Q(!0):L()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Mt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(Rt,{windowSize:m,children:n?At.infoText.businessVerification:i.title}),N==="In-Progress"||N==="Not-Started"?a.jsx(Ut,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(Dt,{...u,children:a.jsxs("form",{id:Pe(ke),onSubmit:it,children:[h&&S===!0&&a.jsxs(zt,{children:[a.jsxs(Qt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Jt,{children:a.jsxs(Kt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Yt,{})]})})]}),a.jsx(Ae,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Wt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:D,allOfficers:Y??[],sectionId:T,isRefreshingViewInBackground:A,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:j,filesEndPoint:r,authParams:_,isPopupOpen:X,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:A},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":j,fileProps:{authParams:_,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Gt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),N==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Pe(ke),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:j!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)L();else{const t=w[I],s=l?.primaryContactLocalData;U!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(I))}}},helperText:Ke,style:{padding:`12px ${o.sp3}`,zIndex:X?0:4}}):null]})},Bt=(e,D,N,A)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:_,companyView:y}=e,B=Le.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:D?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(_).map((p,j)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${j+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,A.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:N?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,n?.userFiles??[],h),back:$e(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&j===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Pe=e=>`${e}_form`,Et=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as f,V as r,F as y,b as w,o as a,M as b,a as x}from"./index-
|
|
1
|
+
import{q as f,V as r,F as y,b as w,o as a,M as b,a as x}from"./index-DL_zrSsq.js";import{n as o}from"./mui-ByF8ZmHV.js";import{a as c}from"./sentry-DdXOXL3j.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]="3503917e-4845-48d4-9bde-153d4e735a19",e._sentryDebugIdIdentifier="sentry-dbid-3503917e-4845-48d4-9bde-153d4e735a19")}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")},M=({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(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${m}`,children:[h,r.jsx(H,{}),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]})},v=o(x)`
|
|
2
2
|
${e=>e.forDetailPage?{...w.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as j,q as f,V as t,bA as te,fd as z,b as u,b2 as J,bZ as ie,o as i,F as w,p as B,y as h,al as v,df as oe,d as l,aW as re,aL as T,bP as ae,ai as $,aN as L,jd as Q,je as U,iU as se,cw as ne,cz as de,am as O,iV as le,iW as ce}from"./index-
|
|
1
|
+
import{f as j,q as f,V as t,bA as te,fd as z,b as u,b2 as J,bZ as ie,o as i,F as w,p as B,y as h,al as v,df as oe,d as l,aW as re,aL as T,bP as ae,ai as $,aN as L,jd as Q,je as U,iU as se,cw as ne,cz as de,am as O,iV as le,iW as ce}from"./index-DL_zrSsq.js";import{n as o}from"./mui-ByF8ZmHV.js";import{G4 as b,bh as he}from"./zeni-epic-state-BiQIJCwr.js";import{S as R,a as Y}from"./sentry-DdXOXL3j.js";import{q as pe}from"./InsightsSection-9xZ9BN4e-DNtCiXCr.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-C9z9JCsM.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";import"./NavigationDots-CautbD-g-BZ85pLrg.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]="1a36e0d0-82eb-418e-acd8-92cdbd549609",e._sentryDebugIdIdentifier="sentry-dbid-1a36e0d0-82eb-418e-acd8-92cdbd549609")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=j();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(ke,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(_,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(_,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ke=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as tt,q as Ie,aw as It,a8 as Lt,gU as wr,hx as ki,aT as Qe,gV as xr,aO as et,V as t,gY as ji,bA as Ii,d as l,fR as br,aL as Ge,aN as X,o as a,bR as Qt,p as d,F as ke,i_ as Sr,b as _,cn as Li,i$ as Di,f7 as Ai,gK as Ti,j0 as Ei,bD as Fi,bM as yr,aR as ea,j1 as Ri,j2 as $r,j3 as ot,y as T,bI as vr,b9 as ta,g as Pi,aS as kr,a_ as zi,j4 as Mi,j5 as Vi,b6 as aa,ai as ge,ez as Oi,iO as Hi,u as gt,gX as jr,A as mt,b2 as Ni,dk as Bi,cr as Wi,co as _i,d3 as Ui,hu as Zi,al as Oe,bT as Gi,aX as Wt,j6 as Ra,j7 as qi,M as Pa,a as Ir,b8 as Yi,j8 as Xi,iI as pt,iT as Ki,iY as Ji,iZ as Qi,ds as za,eR as eo,n as Lr,cw as Dr,iR as to,bW as ao,l as Ar,j9 as ro,av as vt,bZ as Ma,bw as io,dc as oo,am as st,gT as no,aq as so,_ as co,bE as lo,ja as Dt,fk as ho,jb as Tr,gu as Er,jc as jt,i9 as Fr,bP as po,ee as Rr,iU as uo,cz as mo,dN as go,cZ as Co,iV as fo,iW as wo,ek as xo,ce as bo,cf as So}from"./index-
|
|
1
|
+
import{f as tt,q as Ie,aw as It,a8 as Lt,gU as wr,hx as ki,aT as Qe,gV as xr,aO as et,V as t,gY as ji,bA as Ii,d as l,fR as br,aL as Ge,aN as X,o as a,bR as Qt,p as d,F as ke,i_ as Sr,b as _,cn as Li,i$ as Di,f7 as Ai,gK as Ti,j0 as Ei,bD as Fi,bM as yr,aR as ea,j1 as Ri,j2 as $r,j3 as ot,y as T,bI as vr,b9 as ta,g as Pi,aS as kr,a_ as zi,j4 as Mi,j5 as Vi,b6 as aa,ai as ge,ez as Oi,iO as Hi,u as gt,gX as jr,A as mt,b2 as Ni,dk as Bi,cr as Wi,co as _i,d3 as Ui,hu as Zi,al as Oe,bT as Gi,aX as Wt,j6 as Ra,j7 as qi,M as Pa,a as Ir,b8 as Yi,j8 as Xi,iI as pt,iT as Ki,iY as Ji,iZ as Qi,ds as za,eR as eo,n as Lr,cw as Dr,iR as to,bW as ao,l as Ar,j9 as ro,av as vt,bZ as Ma,bw as io,dc as oo,am as st,gT as no,aq as so,_ as co,bE as lo,ja as Dt,fk as ho,jb as Tr,gu as Er,jc as jt,i9 as Fr,bP as po,ee as Rr,iU as uo,cz as mo,dN as go,cZ as Co,iV as fo,iW as wo,ek as xo,ce as bo,cf as So}from"./index-DL_zrSsq.js";import{a as o,S as yo}from"./sentry-DdXOXL3j.js";import{n as r,c as we,k as Pr}from"./mui-ByF8ZmHV.js";import{EL as At,bh as $o,bf as vo,G3 as ko}from"./zeni-epic-state-BiQIJCwr.js";import{k as jo}from"./NavigationDots-CautbD-g-BZ85pLrg.js";import{A as Io,i as Lo,a as Do,l as Ao,r as To,t as Eo,n as Fo}from"./add-to-wallet-DgdBD8_G-Bp_adk0W.js";import{L as _t}from"./lottie-DQ5EyuJ6.js";import{j as Ro}from"./CardNumberSubText-COHmqgEx-CwfhKSB3.js";import{r as zr}from"./core-cG0U1y2d.js";import{l as Mr}from"./uploadReceipts-CPw64UYa-BiBffXJB.js";import{L as Po,z as zo,k as Mo,P as Vo}from"./LockCardPage-4ihNCAhG-BCEngBp6.js";import"./liveblocks-BOlC_Koo.js";import"./recharts-C9z9JCsM.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";import"./RoleWithToolTip-DUEwWP4s-C_YDFJH-.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]="2c96dd0d-e768-440f-b3df-21ea1176b27b",e._sentryDebugIdIdentifier="sentry-dbid-2c96dd0d-e768-440f-b3df-21ea1176b27b")}catch{}})();const Vr=ke.getLocalizedStrings().spendManagement.chargeCard,Oo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:q}=Mi(),{isAndroidScreen:K}=Vi(),U=It(),D=At(U.loggedInUserRoleMap);return t.jsx(Ho,{style:p,children:q===!0?t.jsx(Jt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):K===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Jt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Kt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(No,{}),label:Vr.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":X("add-to-google-wallet-button")})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Bo,{}),label:Vr.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":X("add-to-apple-wallet-button")})},Ho=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a8 as Xa,aO as z,aw as Za,fQ as er,iI as W,q as Ee,o as a,f as ea,V as t,bA as tr,g2 as ar,fd as ie,b as D,bR as ot,p,aL as me,aN as V,aW as nt,F as Fe,y as H,ai as J,M as rr,a as ir,cU as or,at as ta,bI as nr,a_ as dt,aR as sr,am as ct,a9 as dr,gN as cr,cX as lr,ao as ur,ac as hr,g8 as mr,n as Rt,d as _,d5 as aa,aq as pr,al as Cr,c as gr,cT as br,bu as fr,bT as xr}from"./index-
|
|
1
|
+
import{a8 as Xa,aO as z,aw as Za,fQ as er,iI as W,q as Ee,o as a,f as ea,V as t,bA as tr,g2 as ar,fd as ie,b as D,bR as ot,p,aL as me,aN as V,aW as nt,F as Fe,y as H,ai as J,M as rr,a as ir,cU as or,at as ta,bI as nr,a_ as dt,aR as sr,am as ct,a9 as dr,gN as cr,cX as lr,ao as ur,ac as hr,g8 as mr,n as Rt,d as _,d5 as aa,aq as pr,al as Cr,c as gr,cT as br,bu as fr,bT as xr}from"./index-DL_zrSsq.js";import{a as l}from"./sentry-DdXOXL3j.js";import{n as r,c as lt,k as yr}from"./mui-ByF8ZmHV.js";import{EL as Sr,G2 as wr,bh as Nt,bL as kr,bP as $r}from"./zeni-epic-state-BiQIJCwr.js";import{t as Ir}from"./SpendManagementSection-DoJcpweo-CSStq-Fq.js";import{D as oe,l as vr,r as jr}from"./ChargeCardListTable-BEYWfP5G-BRCBGTIM.js";import{ChargeCardPromoUserContent as Lr}from"./ChargeCardPromoPage-DXHFY90F-BtTao1XR.js";import{N as Ar,J as Pr}from"./PromoBaseCards-dqE7GIJ6-D0yVIiC6.js";import{z as zt,L as Ot,k as Er,P as Fr}from"./LockCardPage-4ihNCAhG-BCEngBp6.js";import{r as Tr,i as Mr}from"./graphic-no-data-net-burn-l-CzmycA0m-BwRajxvj.js";import{t as Dr,o as Br}from"./arrow-south-east-round-PEovUgvH-BlptIYjS.js";import"./liveblocks-BOlC_Koo.js";import"./core-cG0U1y2d.js";import"./recharts-C9z9JCsM.js";import"./lottie-DQ5EyuJ6.js";import"./analytics-GoB8GGlk.js";import"./lexical-CUq6kk0g.js";import"./utils-BMrfBn9K.js";import"./Menu-IHf_FfRX-BtY6fG9T.js";import"./RoleWithToolTip-DUEwWP4s-C_YDFJH-.js";import"./CardNumberSubText-COHmqgEx-CwfhKSB3.js";import"./NavigationDots-CautbD-g-BZ85pLrg.js";import"./usp-line-BBd1wKwW-nbZRH-xL.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]="eb2ab19f-1695-4811-8504-c537c88eadac",e._sentryDebugIdIdentifier="sentry-dbid-eb2ab19f-1695-4811-8504-c537c88eadac")}catch{}})();const ut={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,_t=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const R=Ee(),L=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(Nr,{windowSize:R,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ra,{isStatusMode:L,children:[t.jsxs(oa,{children:[L?t.jsx(_r,{children:G}):t.jsx(ia,{children:u}),t.jsx(Vr,{children:d}),L?null:t.jsx(Gr,{children:n})]}),!L&&t.jsxs(qr,{children:[t.jsx(Jr,{}),m.length>0&&t.jsx(st,{slideUpCount:m.length,children:m.map((ne,se)=>t.jsx(na,{children:ne},`card-promo-${se.toString()}`))}),t.jsx(Kr,{})]}),U!=null&&L?t.jsx(Ur,{status:$,children:U}):null]}),t.jsx(Yr,{isStatusMode:L,children:t.jsx(Ar,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Qr,{isStatusMode:L,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Ut=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(zr,{windowSize:m,cardType:e,children:t.jsxs(Or,{children:[t.jsxs(oa,{children:[t.jsx(ia,{children:c}),t.jsx(Hr,{children:t.jsx(Wr,{children:u})}),t.jsx(Xr,{windowSize:m,children:t.jsxs(Zr,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(na,{children:Pe.createNow}),t.jsx(ei,{})]})})]}),e==="creditCard"?t.jsxs(ti,{children:[t.jsx(ai,{children:Pe.creditLimit}),t.jsx(ri,{children:d})]}):null]})})},Rr=e=>{const c=e-1;let u=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as ze,gU as hi,iJ as pi,iK as ui,iL as mi,aP as gi,o as i,aN as Y,ck as xi,b as Be,p as I,b2 as wi,cr as Ci,iM as fi,iN as yi,bR as ye,bM as Si,aR as ki,y as C,ez as vi,b9 as $i,iO as ji,aS as bi,u as Ii,ai as ee,gX as Li,am as G,al as X,d as p,cP as zi,cY as Ai,iP as Fi,iQ as Pi,M as ft,bW as yt,iR as St,iS as Ri,bP as Bi,cw as Ge,iT as kt,ds as Di,dt as q,aL as ce,ct as vt,A as $t,iU as _i,cz as Ei,iB as Xe,bI as jt,bK as bt,iV as Ti,iW as Oi,aT as $e,bs as Vi,bX as Ui,bY as Ni,iX as Mi}from"./index-CO_Updpp.js";import{S as pe,a as f}from"./sentry-DdXOXL3j.js";import{n as o,c as Je}from"./mui-ByF8ZmHV.js";import{w as Oe}from"./Menu-IHf_FfRX-LPFIlYqd.js";import{T as It}from"./RoleWithToolTip-DUEwWP4s-ChXNLhUR.js";import{j as Ve}from"./CardNumberSubText-COHmqgEx-BK8P_Xt5.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]="0308b4b8-d613-4bed-a08c-429967d671f8",e._sentryDebugIdIdentifier="sentry-dbid-0308b4b8-d613-4bed-a08c-429967d671f8")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Qe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Qe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Yi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&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(()=>{j(a.id,S)},[a.id]),O=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),O!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(O)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Xi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":Y("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":Y("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.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:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Xe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Xe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(X)`
|
|
1
|
+
import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,f as ze,gU as hi,iJ as pi,iK as ui,iL as mi,aP as gi,o as i,aN as Y,ck as xi,b as Be,p as I,b2 as wi,cr as Ci,iM as fi,iN as yi,bR as ye,bM as Si,aR as ki,y as C,ez as vi,b9 as $i,iO as ji,aS as bi,u as Ii,ai as ee,gX as Li,am as G,al as X,d as p,cP as zi,cY as Ai,iP as Fi,iQ as Pi,M as ft,bW as yt,iR as St,iS as Ri,bP as Bi,cw as Ge,iT as kt,ds as Di,dt as q,aL as ce,ct as vt,A as $t,iU as _i,cz as Ei,iB as Xe,bI as jt,bK as bt,iV as Ti,iW as Oi,aT as $e,bs as Vi,bX as Ui,bY as Ni,iX as Mi}from"./index-DL_zrSsq.js";import{S as pe,a as f}from"./sentry-DdXOXL3j.js";import{n as o,c as Je}from"./mui-ByF8ZmHV.js";import{w as Oe}from"./Menu-IHf_FfRX-BtY6fG9T.js";import{T as It}from"./RoleWithToolTip-DUEwWP4s-C_YDFJH-.js";import{j as Ve}from"./CardNumberSubText-COHmqgEx-CwfhKSB3.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]="0308b4b8-d613-4bed-a08c-429967d671f8",e._sentryDebugIdIdentifier="sentry-dbid-0308b4b8-d613-4bed-a08c-429967d671f8")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Qe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Qe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Yi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&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(()=>{j(a.id,S)},[a.id]),O=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),O!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(O)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Xi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":Y("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":Y("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&F&&R(!0)},onMouseLeave:()=>{F&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.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:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Xe,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Xe,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(X)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(X)`
|
|
4
4
|
color: ${I.important};
|