@zeniai/web-cockpit-ui 1.13.89-qa → 1.13.90-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-Dht0mfFW-CnBsuoV-.js → ACHDetailsPage-ppaaVv4t-BnOUfoFz.js} +1 -1
- package/dist/assets/{AIPerformancePage-D8LI2uJ_-C7bPAaz5.js → AIPerformancePage-brocrTLA-C9EDr2D4.js} +1 -1
- package/dist/assets/{AccountInfoPage-Cw_Mdy7Z-BT4F8v2w.js → AccountInfoPage-BkqXbGUJ-DXuI8tNZ.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-DadwVfBB-uFTPFlOX.js → AccountInfoPageContent-DOrQxiUF-2yx_ZhMt.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-mQx5-mCY-D5_BgiNu.js → AccountReconDetailsDrawerPage-i6rVi1gY-DVchfPsP.js} +1 -1
- package/dist/assets/{AccountRow-B4i2KTVu-C7LTIhFl.js → AccountRow-D9vDRsjv-uSOuzaD9.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-B2NngRd9-D-l2lLPy.js → AccountsPromoCardStack-BvFE5A3N-C__nnIqn.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-D-IznBH5-DmcdLsko.js → AddAddressForCardDrawer-BV2BSzaD-CBI5bfsC.js} +1 -1
- package/dist/assets/{AddToWalletPage-DflLtoqk-Dsj4N3Cx.js → AddToWalletPage-DTEIuDRq-CzKzLxkn.js} +1 -1
- package/dist/assets/{AgingReportsPage-z5SauZFW-CHiK0tNG.js → AgingReportsPage-B8iVxaQX-z0eVPQ8X.js} +1 -1
- package/dist/assets/{AllUserItems-Cs-QjNZz-DJ2K-Hgn.js → AllUserItems-BepRyHp7-6smxMTUs.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-lLcH4EB_-Dcjx6dO9.js → ApAgingDetailPage-DOObMUqB-DRL-pTDS.js} +1 -1
- package/dist/assets/{AppBasePage-jmR82AtE-WoKiJCRR.js → AppBasePage-Ob8EkU54-B4IzJNVZ.js} +1 -1
- package/dist/assets/AppDrawerContent-CNsKktFP-oEQQGdma.js +142 -0
- package/dist/assets/{ApprovalRulesSettingsPage-zl3t7M0D-CZboF3af.js → ApprovalRulesSettingsPage-Bn7LOelK-C_JBTy7y.js} +1 -1
- package/dist/assets/{ArAgingChart-B7_os9Eg-Bt__YkvI.js → ArAgingChart-C0hTtEmV-Cp3DCSeq.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DPGrFIuw-FN4rS2zc.js → ArAgingDetailPage-C_E_xPwf-CoqFi7sc.js} +1 -1
- package/dist/assets/{AttachmentView-B0X31J2n-CacByoiK.js → AttachmentView-CATl3tNf-DCa2zXLn.js} +1 -1
- package/dist/assets/{BankAccountSection-BGfiGdYG-coKtzKmb.js → BankAccountSection-VSbZyxoY-BkprL32R.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Cd5lC0dV-CUUz-Exs.js → BankAccountWarningSection-a39s142r-4WcZfRoK.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-DHJqJw74-BlTET1Yj.js → BankConnectionsSettingsPage-CBavGNdc-DWKqHO49.js} +1 -1
- package/dist/assets/{BillDetailPage-CVPyGkX2-fFTX-Ocr.js → BillDetailPage-uMG3JJPb-ClGgqpml.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CPvu5b92-F8EjgziX.js → BillPayApprovalRuleDetailPage-Bmrg1Wxh-CFroqaxM.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-04rw5oF_-TIx7_YN6.js → BillPayApprovalRulesPage-BN21qPTb-BwOgIMfY.js} +1 -1
- package/dist/assets/{BillPayPromoPage-xnBNKyGo-X7TVMSec.js → BillPayPromoPage-DoP2oC8W-D-cHzeZ4.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-2FceZZW4-TCgBSFd3.js → BillPaySetUpPage-o-V-9aI5-DuW6yWFa.js} +1 -1
- package/dist/assets/{BillingSettingsPage-D2iVTCtE-Ci07KaQL.js → BillingSettingsPage-CX-rbxzB-D5hgrymw.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-sdzCq1Cx-J2uD0n-I.js → BillsBulkReviewDrawerPage-_qgURJjv-CemkDBxg.js} +1 -1
- package/dist/assets/{BoxItem-dOIVDQzt-NtTPp4CN.js → BoxItem-CHPfWPEF-lXs1y6iB.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DaVB5XYz-DY9bdSBg.js → BusinessVerificationPage-YKJ-CZfb-BgJNO5ZA.js} +1 -1
- package/dist/assets/{CardNumberSubText-CX7raaMz-Df6fKIc5.js → CardNumberSubText-dxYfM6ph-B1OZ5t3N.js} +1 -1
- package/dist/assets/{CashbackDetailPage-xKd1BcXA-DOKFrG0z.js → CashbackDetailPage-BfTC3IBm-BcRVF9pL.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-D-htyuB--b8ZuifKu.js → ChargeCardDetailPage-npqfreRG-D_PNn6ZE.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BFEDq_hH-DLkp657c.js → ChargeCardListPage-Dbx1ymB9-DiXO1BWI.js} +1 -1
- package/dist/assets/{ChargeCardListTable-D0rr5rCb-DvYas5Ug.js → ChargeCardListTable-qk9tQ6Kb-DR0FaH4k.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-C4RyYN8x-CdqIlnGX.js → ChargeCardPromoPage-CsItH2IC-BEXKS9-8.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-DdabiH79-wT6fIrAy.js → ChargeCardSetupPage-D5LWY3-P-BB2kARlQ.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-fcVVhHeN-B3Z4WiQm.js → ChargeCardStatementsPage-vYbnt2WJ-CDBr97Hk.js} +1 -1
- package/dist/assets/{ChargeCardUtils-CHUMBmgR-BtDK4UTM.js → ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js} +1 -1
- package/dist/assets/{ChaseOverlay-kXvIXrLn-Lot7s9mg.js → ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-DzZGbAGe-q_SkLLq0.js → CheckDepositDrawerPage-B1Qp-xbY-f-dhYQ0q.js} +1 -1
- package/dist/assets/{CollapsableReportTable-B7JqlhCA-DlVKUuhN.js → CollapsableReportTable-Dp1985is-CgJ_JGJs.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-Cd0QdDAc-Dw3rzd0i.js → CompanyOfficerDetailsSection-CGewbsKm-DBM7Hns2.js} +1 -1
- package/dist/assets/{CompanyPassportCard-Bhm76W7a-BPNSSuBF.js → CompanyPassportCard-Dp3a8GH8-qRGWLoZI.js} +1 -1
- package/dist/assets/{CompanyPassportPage-B6Urivf7-DubnzS8F.js → CompanyPassportPage-CS1LPj5f-CxHtTINk.js} +1 -1
- package/dist/assets/{CompleteProfile-Ch4TNwnb-BcsCdDEe.js → CompleteProfile-CJOsHnBa-DdCWBRuB.js} +1 -1
- package/dist/assets/{ConfettiBurst-DxWLsUlB-D8Jx9ulS.js → ConfettiBurst-DX1P5VT_-C7tIIZfu.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-MjFD4wWW-C08D4uVX.js → CreateOrEditVendorPage-BL1BXGvy-Vx1XM-1z.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CcZnGiIZ-BTa8I7UV.js → CreditCardPaymentDrawerPage-D6-R3DiA-ByQ_c4QS.js} +1 -1
- package/dist/assets/{CreditCardPaymentPlgSection-DEV6AUvV-DY35HpaU.js → CreditCardPaymentPlgSection-YcsIIUkG-C-zCY8ZF.js} +1 -1
- package/dist/assets/{CurrencySelectField-iFR770y_-DUzSudBS.js → CurrencySelectField-CH65s5Fc-DGotu77i.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-O_lVI1Iw-CXCQatOK.js → CustomerOnboardingActivationPage-DCHbvIb1-4vnrfrOn.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-X6X9Yc-9-D6pVLXm5.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-WBhn2MmI-DQx0BLRy.js → CustomerOnboardingDetailPageSkeleton-Cz40bZgg-6UjJ2BJ9.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CmnwYeBe-Cb5_HOMT.js → CustomerOnboardingNoStepsPage-DrbkKOBx-C5bbYFj1.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DUMb3HBt-C2qKigzd.js → CustomerOnboardingPage-CIbBaMcO-Dqym0Rf2.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-DZ8c60qu-DtKq1SkE.js → CustomerOnboardingProductSuitePage-DyGs61vw-DLcQ1dQj.js} +1 -1
- package/dist/assets/{Dashboard-BqpjCXF4-DFInYnKb.js → Dashboard-beLswUHx-XoTiAJKU.js} +1 -1
- package/dist/assets/{DashboardReportPage-pKEtfyyz-Bz_TuR11.js → DashboardReportPage-BM6TqjrJ-DQu7SOT2.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-CzhTsz8T-BR-YP5Rx.js → DepositAccTransactionItem-CfAjG3HH-COwwc_MG.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BdBZvUQu-az9hs94h.js → DepositAccTransactionListPage-Cj1smNoP-CkdRHZge.js} +1 -1
- package/dist/assets/{DocumentSecurityBanner-CjDxLXR5-8PCnDbOc.js → DocumentSecurityBanner-BRFFDueV-stK3q2uU.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-Ckv29rd5-Bn35fCsZ.js → DomesticWireDetailsPage-BZ8jSo8r-Dcvy9KUR.js} +1 -1
- package/dist/assets/{DownloadOverlay-9HCQzpew-D7JQlDlt.js → DownloadOverlay-Ly2ZesqA-D_S8bx9G.js} +1 -1
- package/dist/assets/{DrawerPage-BxA7btCQ-BmBzAlev.js → DrawerPage-BFIdjtOJ-BFnTHlQb.js} +1 -1
- package/dist/assets/{EditPeoplePage-B9oW6E0C-DtLWviYu.js → EditPeoplePage-BPHt33f5-DjZUh9aC.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-2_Ugsfav-QZjM2qzI.js → EditReimbursementDetailPage-DJ_qNQbh-D_aBh5FK.js} +1 -1
- package/dist/assets/{EntityDetailPage-Dv97bCUN-BwIIPL1U.js → EntityDetailPage-DZ9vXZci-DUGgDVnf.js} +1 -1
- package/dist/assets/{EntitySummarySection-CAz28n_B-Dm9Mk9cN.js → EntitySummarySection-kCA6OJs0-CuvI5nJX.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-CpVokJPL-BLbw9wgH.js → ExpenseAutomationOverviewPage-B9K2qPQi-BcMuOXVi.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CFRiNGRE-DvXqANdy.js → ExpenseAutomationPage-LoGHiJzr-BnTXz0Ci.js} +1 -1
- package/dist/assets/{ExpressPayPage-BsCQmXdG-Ds4YTF8o.js → ExpressPayPage-B12NaLXN-CGW5-zDn.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CnYlH8Tm-4-Rk1rI2.js → FeaturePreviewPage-D9_aRmPj-CvnK2Uy2.js} +1 -1
- package/dist/assets/{FollowStepsSection-CvsH5sJq-Bd2bAxCx.js → FollowStepsSection-BL8sM4vS-D6HNdi5Y.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CKbg3WRJ-HzlEwwYS.js → GlobalReviewListPage-DONc_BXP-jngzyZ2P.js} +1 -1
- package/dist/assets/{HelpButton-DmSTrp5G-BFcKSZj9.js → HelpButton-khTPylkl-CEL7Boo7.js} +1 -1
- package/dist/assets/{InformationCardStack-X52PXCzi-8yuUPTeZ.js → InformationCardStack-BtIMGsaQ-BRj2ZNHm.js} +1 -1
- package/dist/assets/{InsightsCardStack-CXxA6hpf-BdxC_puc.js → InsightsCardStack-lzduh7aO-Crnd4D-1.js} +1 -1
- package/dist/assets/{InsightsSection-obWu95-o-ddL771fm.js → InsightsSection-q1QuO6Z4-1k_aUqAr.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-BFZjrnDu-RT-u4_SZ.js → IntegrationsSettingsPage-CpnXcxlz-ANVTxCp5.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-CywJ88_i-BnllM88s.js → InternationalWireSwiftDetailsPage-BXBsK560-i2JR8sEk.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-CjunyEiQ-Dr_TTQI0.js → InternationalWireVerificationPage-BrnMNFx7-CivrskR8.js} +1 -1
- package/dist/assets/{InviteFormPage-BaaFGzDE-Dw309kwf.js → InviteFormPage-DQTEQazA-CYIvBKP9.js} +1 -1
- package/dist/assets/{InvitePageListView-BJJQpITw-DCbx1IHW.js → InvitePageListView-C7CaDCYN-kxX6EM5-.js} +1 -1
- package/dist/assets/{InvitePeoplePage-7yKV1JuU-BGZXplYV.js → InvitePeoplePage-Ca0ZnNhV-4UVRRlzN.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-CjV8q6sM-CPl6gGHs.js → InvoiceUploadSection-Cm7WlMIS-Ds7UwHT_.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-BTloC5fY-BmArvej_.js → IssueChargeCardPage-B7w3Xky1-CF1rLLIM.js} +1 -1
- package/dist/assets/{LabeledAddressValue-C8xq-j7G-EY-L5iS4.js → LabeledAddressValue-B5Yv4nig-BmG4gsPH.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-CqhBSQ8f-CPXJhGgE.js → LabeledAddressValueField-BODlYe8J-C_77UpWi.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-D5A-8bnH-B_eYzZ1v.js → LabeledControlledCheckBoxField-BBrHodlx-ajZwZw2T.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CB34OT80-D0_gUm7_.js → LabeledCreatableSingleSelectField-DBovHkMc-D9D-7hZt.js} +1 -1
- package/dist/assets/{LabeledDocumentField-MyG-6WMu-I9bW2EFa.js → LabeledDocumentField-CIlbLPtO-DSLjsPoT.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-DyvjlBIK-YdWOnQoJ.js → LabeledDropDownFormattedTextField-Dpt7UG-o-BPi_XfUF.js} +1 -1
- package/dist/assets/{LabeledText-CEbLfx4b-BpyGKldy.js → LabeledText-D0aPaE6r-DJ33Sqqy.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CDXChSPU-C7iYeJWK.js → LabeledUserSingleSelectWithSubtitlesField-CO-Owx5--C5GcoA_6.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-CpZOSybd-HDTVv3mn.js → LabeledZeniRolesDropDownField-CcfvYWTB-FOsQ-M0q.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-CF2S7mlj-Dla9Sds0.js → LinkJETransactionPage-w2poqqTD-CRc8L88u.js} +1 -1
- package/dist/assets/{LowBalancePopup-CI3FeJJc-DoCHgVjv.js → LowBalancePopup-BpFvPcb8-CmbXf1Gb.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-Hs-8X1gB-CdgF1Zp5.js → MagicLinkACHDetailsPage-DUyr5VX8-FvxaU41w.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-JY153fBS-CmyiWHQa.js → MagicLinkDomesticWireDetailsPage-CTA58UoF-CRGjJqP9.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-C7H0tqh2-Se7gH2Nu.js → MagicLinkInternationalWireDetailsPage-DDQqyw69-MTxSeQ4l.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-DrfXx_R1-BkjVELh_.js → MagicLinkSuccessPage-CKKAWryZ-Cm8AQCr_.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-GAlgtNgO-CZgxBgK0.js → MagicLinkTitleSection-CvW_f4xF-BDkWHabu.js} +1 -1
- package/dist/assets/{MailingDetailsSection-DwEajxFH-gm7_8xo8.js → MailingDetailsSection-Di5KwEqu-Di8UL6YK.js} +1 -1
- package/dist/assets/{MeetingCalenderPopup-CF-RTU9K-C-w6KW4_.js → MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js} +1 -1
- package/dist/assets/{Menu-DgxJQlbW-zbTlo91F.js → Menu-BOh_KLZu-BrkD9kYL.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-Bkn9hqAF-B9G2yjC0.js → MyBankConnectionsSettingsPage-BBQ0YN9M-BBihRuQw.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Bg1r7PJb-w9vjeGWd.js → MyPendingActivationChargeCardListPage-DcXCxGj2-BY3uKh9u.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-DFqIWGcr-8iPlbKIP.js → MyProfileSettingsPage-D-lTTFuP-D9kDcE-6.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BJyEgvZP-JRV3h30X.js → NavBarWithPicker-CNBOk06R-D8yiRwFQ.js} +1 -1
- package/dist/assets/{NavigationArrow-CUVFG2Pf-CNhlXp6h.js → NavigationArrow-B15b66TT-B9hYIhnI.js} +1 -1
- package/dist/assets/{NavigationDots-BDLMSply-BaF2Vbnh.js → NavigationDots-5fxvl-4e-BzJdpllk.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Ck7DGlQi-DaQXRBCD.js → NewGlobalMerchantPage-BeP4W8rj-Dwyu3Pw7.js} +1 -1
- package/dist/assets/{NoDataChart-DMqFH96W-fv4cR3pY.js → NoDataChart-edFKx0zh-DIp9-BoP.js} +1 -1
- package/dist/assets/{NoDataTable-B8PHBrBF-BxwQxjpG.js → NoDataTable-41nH5trW-Brapb7lv.js} +1 -1
- package/dist/assets/{NotFoundPage-4JmEE0vS-TCqMAVLD.js → NotFoundPage-CRVGi6Xn-BHvH8jL8.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-D6YQunRL-Cl8KP6vm.js → NotificationSettingsPage-CiVAtoGY-B9kZWOsO.js} +1 -1
- package/dist/assets/{NotificationsListConfig-DZBF9h2L-CddnMsxc.js → NotificationsListConfig-BjItJJe9-l0BCgaPP.js} +1 -1
- package/dist/assets/{NotificationsPage-PjOFwF6H-jBs_ZASx.js → NotificationsPage-DuHUL5V8-CgYzIXTj.js} +1 -1
- package/dist/assets/{OpExByVendorPage-BNNQdeqy-DIbTPTMn.js → OpExByVendorPage-D611nXIC-CqyYyP4C.js} +1 -1
- package/dist/assets/{OverlayContainerPage-C0rUb6-5-C8DmmLmX.js → OverlayContainerPage-C0rUb6-5-DPaQcYgi.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-Cg3I1JPR-CF8tv3kA.js → PandLWithForecastPage-Cqab0euB-dzseIlDa.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-BaNMRbqw-Dzu83wc2.js → PaymentAccountSetupBillingAddressSection-Cvn1adQb-kbzfxjFm.js} +1 -1
- package/dist/assets/{PeoplePage-BRnDI6mc-CkUUGmH6.js → PeoplePage-MCCZAx4z-BnV0pX_P.js} +1 -1
- package/dist/assets/{PortfolioAllocationFormPage-BG5sY-R6-QuPw7wyD.js → PortfolioAllocationFormPage-Coa0Y4wN-CVL7-3BP.js} +1 -1
- package/dist/assets/{PortfolioDetails-g9uKkfc0-CyCK7_Rg.js → PortfolioDetails-C9a0p99e-d06R_ouh.js} +1 -1
- package/dist/assets/{ProductsCarousel-DZmAO-Ad-CSV1kbrn.js → ProductsCarousel-B0fHKTa_-Bne7N-_V.js} +1 -1
- package/dist/assets/{PromoBaseCards-B9AnaalQ-BzQ7sMZC.js → PromoBaseCards-BuCQJuXH-BcjVOmSJ.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-Bnhkqpjg-T0-tQjXm.js → QBOConnectionDialog-D-vB9dbo--0kkpUah.js} +1 -1
- package/dist/assets/{QBOSetupSection-CHXmbhAv-CPFzN4Vh.js → QBOSetupSection-CfficE5p-nLwRVoqN.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-B2zXkJz--CtVboWjL.js → ReimbursementApprovalRuleDetailPage-Cg_pVsAh-Baq7EYkc.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-HuTMMWVv-Bv-PkXOa.js → ReimbursementApprovalRulesPage-Dg1b0lJP-YhAdGh62.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-BLvwZrVh-AWvenrtq.js → ReimbursementDetailPage-CE_jx7cM-DEw3OdDA.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-D_mQJpBI-CzavY-06.js → ReimbursementPromoPage-MQpz5nNE-CLg8Hqif.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-FkxlkcbN-sL1c93dG.js → ReimbursementSetUpPage-BRjWHns_-BSdXzytm.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Oqy1_VEa-4Bwv7-2r.js → ReimbursementsBulkReviewDrawerPage-wPNRkXt8-DoNrAJRB.js} +1 -1
- package/dist/assets/{ReloadCard-DXOUba_M-Ds_JhQAa.js → ReloadCard-D5woGDxx-DS9HJ3wy.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-CHN0DsMB-BpJxSZpu.js → ReportTableViewSelector-Bc5xUtnG-pW3txVQ2.js} +1 -1
- package/dist/assets/{ReportsPage-FPxKx4-a-DjcS-PTA.js → ReportsPage-J8DrZz78-Bf6sj4--.js} +1 -1
- package/dist/assets/{RevenueChart-L0b_usU7-DR3KGky3.js → RevenueChart-CS0JmijO-BqFQGtoh.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-BNpQBWoS-DvQQRITm.js → ReviewDetailsPage-C7RbpKwU-C9iDaLL8.js} +1 -1
- package/dist/assets/{ReviewOverlay-DDNAl3b3--_jFgC00.js → ReviewOverlay-BwgzcM9d-CSY6hmMy.js} +1 -1
- package/dist/assets/{RoleWithToolTip-B-ODIDAN-CfZSdhdT.js → RoleWithToolTip-DkeT6zjW-DmUDvRC_.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DqZ58bn4-Bmf0Mrw_.js → ScheduleDetailsFixedAssetsPage-BzZkVg7T-c2tjnpKQ.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BASxSK8V-C3IBkebO.js → ScheduleDetailsPage-DiXwmlk8-t0I7MASB.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-6xfi8GG9-Dudg_N2j.js → ScheduleSequenceTable-CSxFNhoR-D9UFT3Zm.js} +1 -1
- package/dist/assets/{ScreenRoutes--V--Mqce.js → ScreenRoutes-xLzXCTox.js} +1 -1
- package/dist/assets/{SetUpAccountSection-pi1sH7b5-EagMxPw8.js → SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js} +1 -1
- package/dist/assets/{SetUpDefaultSection-BpL2WnED-CgicHaOy.js → SetUpDefaultSection-D4FafmO5-CcuY4gpp.js} +1 -1
- package/dist/assets/{SignIn-Bijj9JoA-BL3nNivc.js → SignIn-CAmRcuqx-CXf8JU8h.js} +1 -1
- package/dist/assets/{SignInScreen-ZhSf5Gda.js → SignInScreen-CEfXit7t.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-D5QPI34r-BNgi2lsY.js → SpendManagementListViewPage-DdpJprAd-BHEK7wRP.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-BtYyuusT-B8XojjH0.js → SpendManagementPerTabPage-D2Ri2q6S-BZOgnmqs.js} +1 -1
- package/dist/assets/{SpendManagementSection-D_HyfwAe-W9LXfSod.js → SpendManagementSection-CisJALAC-zKC9aL_a.js} +1 -1
- package/dist/assets/{SpendMgmtSetupAccountSection-B4wik5Ee-CYGTF_Jh.js → SpendMgmtSetupAccountSection-DcJhhfdt-CSj4RU9Q.js} +1 -1
- package/dist/assets/{StatementItem-BNQblVLa-CI5E679I.js → StatementItem-BOq_DDMZ-VgE7gIr3.js} +1 -1
- package/dist/assets/{StatementsPage-_-cg9582-Dtto8qBP.js → StatementsPage-C9WOCLSj-lgfYmMKh.js} +1 -1
- package/dist/assets/{StatusSwitcher-D-0rNVEI-NEMJF-Fs.js → StatusSwitcher-CofdCR_K-DYsfjilX.js} +1 -1
- package/dist/assets/{SubTabSwitcher-D_djwADF-8B_A3mRF.js → SubTabSwitcher-BPVG5BHS-C6Ng45Yx.js} +1 -1
- package/dist/assets/{SummaryCard-0WkhoBZC-CFhYiVOj.js → SummaryCard-D-me4TrL-C69v2luu.js} +1 -1
- package/dist/assets/{TaskManagementPage-Dwna66e0-DX_b0Y9q.js → TaskManagementPage-BSmG6YR2-BRBZRYl9.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-C_XduWs4-DjVrPo4a.js → TimeRangeSwitcher-BK7gGqaa-li6QV9p5.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-rcx5z-sh-xZ8efuWW.js → TimeframeSwitcher-SD5_8TCp-DcEUsFuS.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Bvkq6Qa--CJudW9kF.js → TimeframeSwitcherWithToggle-BwvVsB_p-CoKIqOrx.js} +1 -1
- package/dist/assets/{TopExCard-J5ItU1Wy-ozEfFcFX.js → TopExCard-CDgcQKGp-G2-ryp7z.js} +1 -1
- package/dist/assets/{TopExDetailPage-Lqg8jkw2-CMSFHr_S.js → TopExDetailPage-CXiEe14r-DrI7SLfC.js} +1 -1
- package/dist/assets/{TransactionDetailPage-jXKnnUTd-DaT9dird.js → TransactionDetailPage-IJyZF-Z_-ssTdABCq.js} +1 -1
- package/dist/assets/{TransactionList-BVJHbP4d-DVlkxieO.js → TransactionList-C34ivmk5-BL7wpE6F.js} +1 -1
- package/dist/assets/{TransactionListBig-CUi7KfHo-CwYRqoNl.js → TransactionListBig-qruiU0xy-4hBLzp6P.js} +1 -1
- package/dist/assets/{TransactionListPage-BFYQMXP7-BOyJF2h0.js → TransactionListPage-C31U97xd-B7MDVBJ8.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-Cc45iBaC-FtcEzLID.js → TransactionVendorDetailPage-DZsvH-GM-CHoVBuA8.js} +1 -1
- package/dist/assets/{TransferDrawerPage-D0eKdLeA-D3SZSjs8.js → TransferDrawerPage-DC5q2Zpv-Bbx0ZiKK.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-C-tdus29-BcdjcYh9.js → TreasuryOverviewPage-DSBqawrH--EJITXP0.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-Cohb5lP7-Dw1uUpDf.js → TreasuryPromoPage-D6WSBxgD-BYq_YoGm.js} +1 -1
- package/dist/assets/{TreasurySetupPage-DS2_m-SO-D0FYRAVS.js → TreasurySetupPage-BgSq4D0a-BeLJ_DJT.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-DooqXGAQ-DLBrm-yQ.js → TreasuryStatementsPage-Dj9RAujO-BX1C5lYD.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-hpQxSwqV-Cff1AkiV.js → TreasuryTaxLetterPage-Dw6tL_j9-BVOoGBCD.js} +1 -1
- package/dist/assets/{TreasuryTransferOrReviewPage-LCmwI3GX-D7wV6N1-.js → TreasuryTransferOrReviewPage-cBHznYnK-1UcbcZaf.js} +1 -1
- package/dist/assets/{TrendChart-N85Ktah2-D9qomAET.js → TrendChart-dARoUu-T-CjrTnbAe.js} +1 -1
- package/dist/assets/{TrendWithTransactions-Cm8gWBLF-CBtN5wGl.js → TrendWithTransactions-BOGQK2Zt-itTZBsuV.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-DF2hKM1m-DGh82Kix.js → UncategorizedAccountsMappingPage-Ci4VHOLB-CZTpXCGM.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DXYXOU32-CBbLGDyb.js → UnitIntegrationPage-DSMTzyKA-DnkdzVNG.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-ed-RjMyM-BcVk5T-x.js → UploadAdditionalDocumentOverlay-CBpLz-gk-DUe20w1p.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CNiCYT5L-sjNaJfCv.js → Vendor2FAPopup-Be7OBE4e-Cos9XGLx.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-DfERI3o4-DY5DI5Ho.js → VendorACHDetailsPage-LvWgxsF7-BpMJ6WbJ.js} +1 -1
- package/dist/assets/{VendorDetailPage-BYEJTlBT-CyNQBknP.js → VendorDetailPage-C-qpa1GC-C0r4HDge.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-Cvje85xW-D0rUK_Rq.js → VendorDomesticWireDetailsPage-Ckoq2I8V-BwkAhyAi.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-Brjs_rAW-BXsSYmKk.js → VendorFiling1099EditablePage-WZMwLILQ-BqoTTIiC.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CjmWNXBj-dDyEbMtV.js → VendorFirstReviewPage-DNhp59d9-D_f9l4B9.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CRPZSizn-BWolRCcT.js → VendorInternationalWireDetailsPage-DuP916gU-COYahX1d.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DgOKhTmI-DrUbwSgd.js → VendorInternationalWireSwiftDetailsPage-BCIC6mrJ-BI-zVOHZ.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-CdrVkoqQ-mRqd22rT.js → VendorsAccountsSection-C4q6FPlB-C6cNo2_u.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-vVdVeMGb-BEfGcvIh.js → WarningsDrawerPage-C162biV8-pPVOEtpH.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-DzA2-ZfY-gCRDLMYV.js → ZeniAccountDetailPage-C3NnXuFp-CXwXsDQ1.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-BjOzn-pL-BqCKWwnc.js → ZeniAccountListViewPage-Cn7rYnlu-DTOPnL32.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-C4QCZKVg-qs7wRelN.js → ZeniAccountNavBarPieces-DHYLxQKr-DoTCX7_F.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-CojH6h6Y-DgTiFWUV.js → ZeniAccountPromoPage-BGyyQP4l-B98KmCaD.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-BQ4BSW6F-CXA8E3wm.js → ZeniAccountSetupPage-CIh0isMw-lFqJMWg0.js} +1 -1
- package/dist/assets/{ZeniCopyright-DZ-h_Rou-DbMET3fd.js → ZeniCopyright-B83zWEf0-19q3_mPy.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CDH-_8b0-CyTrsjPs.js → ZeniTransferAmountSlider-CPg3o4xG-BlMvJPot.js} +1 -1
- package/dist/assets/{analyticsHelper-C8SgK0SS.js → analyticsHelper-CD5PHV67.js} +1 -1
- package/dist/assets/{analyticsHelper-DqZXz5oK-B0yimKwh.js → analyticsHelper-DlYWxxhD-DdeYfQh2.js} +1 -1
- package/dist/assets/{chartTypes-BrP58mNO-C1TmCcpt.js → chartTypes-DueLK3Wl-B3lGAHMU.js} +1 -1
- package/dist/assets/{commonDimensions-C9IpJAVN-C85_2wgw.js → commonDimensions-D4uH020E-szItJUN9.js} +1 -1
- package/dist/assets/{detailCommon-nFSW0gvc-BWw17m2N.js → detailCommon-D5qKBZdS-CPasfcVD.js} +1 -1
- package/dist/assets/{downloadPdf-CYD5QftD-Dp-LHWQY.js → downloadPdf-s4pLtuS_-CF3EQD3j.js} +1 -1
- package/dist/assets/{index-T4e21nnZ.js → index-DoFw58Mw.js} +107 -107
- package/dist/assets/{mapLoadingInProgressToTreeNode-Dj9DvcOS-CF4kQvCc.js → mapLoadingInProgressToTreeNode-M0QN8LkC-3yQrrz5g.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bw9kw0FP-CSXp7Z6U.js → mapSectionWithAcOnlyToTreeNode-CrtVdHui-CnnfThO_.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CJfnsOmt-CRNfRZzT.js → mapSpacerToTreeNode-yPPIJHBw-D3Gjllyb.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BJdFcHRm-Dw1vJzex.js → mapTimeframeBalancesToTreeNode-px916zpo-rIOc1Hnu.js} +1 -1
- package/dist/assets/{play-icon-C1_v_oqQ-aBksrrtg.js → play-icon-Bih37F_s-C73Mu05H.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-CYXJAMXX-yZCX9bGP.js → toCOABalancesWithID-CAhfOfUa-CUvT0aen.js} +1 -1
- package/dist/assets/{toChartData-oAAd1YDY-C3bZ9kal.js → toChartData-BicnbT0F-BAKhPkjP.js} +1 -1
- package/dist/assets/{treasuryColorHelper-BClHzQle-CJL-S_JM.js → treasuryColorHelper-A_YlwvaQ-YLNVEYZe.js} +1 -1
- package/dist/assets/{uploadAttachment-Bi2HYlA8-Bl8-k7IC.js → uploadAttachment-DVoWdoWD-RtUqrYnb.js} +1 -1
- package/dist/assets/{uploadReceipts-Buvz7DfG-D7suivjs.js → uploadReceipts-Buvz7DfG-XWftDYl6.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/AppDrawerContent-BjVgRQD8-C8F7bkE1.js +0 -116
- package/dist/assets/CustomerOnboardingContainerPage-DY7-75zX-DXGGb3sk.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as u,j as o,Y as $,bt as w,M as b,o as e,C as a,bp as k,Q as f,h as v,g as l,eS as j,s as z,p as r}from"./index-
|
|
1
|
+
import{X as u,j as o,Y as $,bt as w,M as b,o as e,C as a,bp as k,Q as f,h as v,g as l,eS as j,s as z,p as r}from"./index-DoFw58Mw.js";import{n}from"./vendor-CnQcJ2Lu.js";const{common:{navBar:{back:C}}}=b.getLocalizedStrings(),s={navBarContainerPadding:new a(10,r[3]),customTitleMarginBottom:new a(r[0],r[3]),customTitleMarginLeft:new a(r[3],r[6]),customTitleMarginRight:new a(r[5],r[8])},P={formTitle:new f("h6Medium","h5Medium")},G=({header:i,isDirty:d,isMagicLink:g,onBackClick:m,setShowConfirmationPopup:p})=>{const t=u();return o.jsxs(o.Fragment,{children:[t==="small"?o.jsxs(y,{windowSize:t,children:[g?null:o.jsx(x,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click-mobile")}),o.jsx(h,{windowSize:t,children:i})]}):o.jsx(S,{children:g?null:o.jsx(w,{title:C,enterDelay:600,placement:"bottom",children:o.jsx(x,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click")})})}),t!=="small"?o.jsx(h,{windowSize:t,children:i}):null]})},h=n(v)`
|
|
2
2
|
${i=>`${P.formTitle.style(i.windowSize)}`};
|
|
3
3
|
color: ${i=>i.theme.colors.primary};
|
|
4
4
|
margin-bottom: ${i=>s.customTitleMarginBottom.valuePx(i.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,e as q,bL as Ze,F as Ge,bt as Ye,C as f,m as Ke,s as A,as as Qe,v as Ie,Q as Xe,cg as et,a5 as de,ab as X,eZ as tt,l as Y,co as nt,aQ as Le,f5 as Oe,f6 as it,f7 as ot,bC as $e,p as h,e_ as ee,e$ as te,_ as ne,bD as ie,Y as at,b5 as lt,dI as Fe,g as V,w as v,f4 as ct,fi as st,fj as rt,cZ as dt,fk as ut}from"./index-
|
|
1
|
+
import{u as ae,X as we,a as He,c3 as qe,j as t,aW as Je,M as J,o as i,e as q,bL as Ze,F as Ge,bt as Ye,C as f,m as Ke,s as A,as as Qe,v as Ie,Q as Xe,cg as et,a5 as de,ab as X,eZ as tt,l as Y,co as nt,aQ as Le,f5 as Oe,f6 as it,f7 as ot,bC as $e,p as h,e_ as ee,e$ as te,_ as ne,bD as ie,Y as at,b5 as lt,dI as Fe,g as V,w as v,f4 as ct,fi as st,fj as rt,cZ as dt,fk as ut}from"./index-DoFw58Mw.js";import{b,n}from"./vendor-CnQcJ2Lu.js";import{a as pt}from"./SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js";import{r as ht}from"./mui-C5LQ0bMa.js";import{M as mt}from"./ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js";import{R as gt,z as wt}from"./SpendMgmtSetupAccountSection-DcJhhfdt-CSj4RU9Q.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-D4FafmO5-CcuY4gpp.js";import"./ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js";import"./CreditCardPaymentPlgSection-YcsIIUkG-C-zCY8ZF.js";const{settings:{bankConnectionHeader:Z}}=J.getLocalizedStrings().common,ft={value:Z.productType,width:new f(100,19)},xt={value:Z.primaryAccount,width:new f(100,36)},yt={value:Z.linkAccount,width:new f(100,22)},St={value:Z.status,width:new f(12,12)},bt={value:Z.balance,width:new f(12,13)},P=[ft,xt,yt,St,bt],{common:{settings:ue,strings:{empty:vt,hyphen:$t}}}=J.getLocalizedStrings(),K={paymentAccountIconSize:new f(h[6],h[7])},zt=()=>null,kt=({paymentAccount:e,bankAccountList:a,balanceFetchStatus:L,onRemoveConnection:O})=>{const s=ae(),d=we(),[$,z]=b.useState(!1),w=e?.providerVerificationStatus,c=s.mode==="light"?new X(s.colors.brandColorJadeLight):new X(s.colors.brandColorJadeDark),F={element:t.jsx(Wt,{windowSize:d}),color:c},M=a.find(l=>l.accountId===e.zeniAccountId),R=()=>{z(l=>!l)};return t.jsxs(jt,{onMouseEnter:R,onMouseLeave:R,children:[t.jsxs(At,{windowSize:d,wrapperWidth:P[0].width,children:[t.jsx(Ct,{children:ue.otherAccount.title}),t.jsx(Tt,{children:ue.otherAccount.subTitle})]}),t.jsxs(Pt,{windowSize:d,wrapperWidth:P[1].width,children:[pt(F,d,s.mode==="dark",e,!0),t.jsxs(Bt,{children:[t.jsx(Dt,{children:t.jsx(Vt,{windowSize:d,children:e.institutionDetails.institutionName})}),t.jsx(Mt,{windowSize:d,children:t.jsxs(Ut,{children:[t.jsx(Et,{children:e.accountSubType?.name}),t.jsx(Nt,{children:e.maskedAccountNumber})]})})]})]}),t.jsx(_t,{windowSize:d,wrapperWidth:P[2].width,children:M?.accountName??vt}),t.jsx(It,{windowSize:d,wrapperWidth:P[3].width,children:w!=null?t.jsx(ee,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:w.name,textColor:te(w.code)}):$t}),t.jsxs(Lt,{windowSize:d,wrapperWidth:P[4].width,children:[t.jsx(Ot,{className:"balanceLabel",isRemoveHovered:$,children:ne("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(Ft,{className:"balanceLabel",isRemoveHovered:$,children:ie(e.balances?.lastRefreshTime)}):L?.fetchState==="In-Progress"?t.jsx(q,{size:"Small",start:!0}):null,$&&t.jsx(Rt,{children:t.jsx(Fe,{moreIconType:"plain",options:[{label:ue.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:s.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:s.colors.grey5,width:"162px",border:`1px solid ${s.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${V.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:V.important,":hover":{color:V.important,backgroundColor:s.colors.background}})},menuPlacement:"bottom",onOptionSelection:l=>{l==="remove"&&O(e.paymentAccountId)},valueToIcon:zt})})]})]})},jt=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
padding: ${i.sp4};
|
|
4
4
|
padding-right: ${i.sp8};
|
package/dist/assets/{BillDetailPage-CVPyGkX2-fFTX-Ocr.js → BillDetailPage-uMG3JJPb-ClGgqpml.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as Nn,y as On,u as Fn,fK as Ln,fL as En,fM as _n,fN as Wn,aV as Zn,a5 as Kn,M as Vn,C as u,j as t,l as E,cF as it,cG as Un,o as a,cH as Hn,cI as Yn,Y as b,cJ as Gn,_ as Ae,cK as qn,aW as lt,aH as ot,dr as rt,bO as st,bQ as dt,bR as ct,fO as Qn,fP as Xn,fQ as Jn,fR as ea,cP as j,cQ as I,cR as $,fS as A,cO as ta,v as pt,g as ie,cS as Rt,cT as na,cU as aa,cV as ia,fT as la,fU as oa,a7 as ra,n as mt,bt as Te,fV as sa,fW as O,p as r,c as da,bp as ca,fX as pa,a6 as ma,fY as ua,fZ as ut,c_ as yt,Q as ya,cu as ha,ah as ba,aq as xa,as as ga,k as fa,eY as zt,f_ as wa,w as Mt,at as Ta,au as va,aN as Da,eI as ja,s as Ia}from"./index-T4e21nnZ.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as $a}from"./liveblocks-sSQ9JElv.js";import{o as Aa,t as ka}from"./LowBalancePopup-CI3FeJJc-DoCHgVjv.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const Sa=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"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Lt,hasZeniAssistAccess:Et,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:_t,isBillPayCommentingEnabled:Se,isZeniUser:Wt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:G,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Ht,discardOutsideZeniPaymentData:Yt,onBackClick:Me,updateEditRealTimeApproverClicked:Gt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:Qt,onRefundPaymentClick:Xt})=>{const l=Nn(),o=On(),Ne=Fn(),[Jt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Le,q]=p.useState(!1),y=e.transactionDetails?.id,tn=Wt?Ln:En,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:Q}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:H,isLoading:P}=_n(w,"both",!1),f=Se&&y!=null,_e=p.useMemo(()=>y==null?[]:H.filter(c=>c.resolved===!1&&!c.id.includes(Wn)),[H,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{Q(h),U(!1)},[Q,U]);p.useEffect(()=>{pe?.threadId!=null&&H.length>0&&!P&&(Q(pe.threadId),Ee(null))},[pe,H,P,Q,Ee]),Zn({componentName:"bill.details"});const[N,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[We,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,He]=p.useState(!1),Ye=()=>Ke(!1),rn=()=>Ke(!0),Ge=Kn(e.zeniAssist?.refundStatus.fetchState),J=p.useCallback(()=>{G()},[G]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),G())},[e,G,Pe]),p.useEffect(()=>{Ge==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),J())},[Ge,e.zeniAssist?.refundStatus,J]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&Y?.code?Y:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:Y?.code!=null&&(ee?.code=="approved"||Y.code==="mark_as_paid")?Y:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,qe=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{X({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{X({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{X({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),X({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Xt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{X as Nn,y as On,u as Fn,fK as Ln,fL as En,fM as _n,fN as Wn,aV as Zn,a5 as Kn,M as Vn,C as u,j as t,l as E,cF as it,cG as Un,o as a,cH as Hn,cI as Yn,Y as b,cJ as Gn,_ as Ae,cK as qn,aW as lt,aH as ot,dr as rt,bO as st,bQ as dt,bR as ct,fO as Qn,fP as Xn,fQ as Jn,fR as ea,cP as j,cQ as I,cR as $,fS as A,cO as ta,v as pt,g as ie,cS as Rt,cT as na,cU as aa,cV as ia,fT as la,fU as oa,a7 as ra,n as mt,bt as Te,fV as sa,fW as O,p as r,c as da,bp as ca,fX as pa,a6 as ma,fY as ua,fZ as ut,c_ as yt,Q as ya,cu as ha,ah as ba,aq as xa,as as ga,k as fa,eY as zt,f_ as wa,w as Mt,at as Ta,au as va,aN as Da,eI as ja,s as Ia}from"./index-DoFw58Mw.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as $a}from"./liveblocks-sSQ9JElv.js";import{o as Aa,t as ka}from"./LowBalancePopup-BpFvPcb8-CmbXf1Gb.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";const Sa=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"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Lt,hasZeniAssistAccess:Et,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:_t,isBillPayCommentingEnabled:Se,isZeniUser:Wt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:G,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Ut,onAttachmentClick:ze,saveBillDetails:Ht,discardOutsideZeniPaymentData:Yt,onBackClick:Me,updateEditRealTimeApproverClicked:Gt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:Qt,onRefundPaymentClick:Xt})=>{const l=Nn(),o=On(),Ne=Fn(),[Jt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Le,q]=p.useState(!1),y=e.transactionDetails?.id,tn=Wt?Ln:En,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:Q}=p.useContext(tn),[nn,U]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:H,isLoading:P}=_n(w,"both",!1),f=Se&&y!=null,_e=p.useMemo(()=>y==null?[]:H.filter(c=>c.resolved===!1&&!c.id.includes(Wn)),[H,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{Q(h),U(!1)},[Q,U]);p.useEffect(()=>{pe?.threadId!=null&&H.length>0&&!P&&(Q(pe.threadId),Ee(null))},[pe,H,P,Q,Ee]),Zn({componentName:"bill.details"});const[N,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[We,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ve]=p.useState(!1),[Ue,He]=p.useState(!1),Ye=()=>Ke(!1),rn=()=>Ke(!0),Ge=Kn(e.zeniAssist?.refundStatus.fetchState),J=p.useCallback(()=>{G()},[G]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),G())},[e,G,Pe]),p.useEffect(()=>{Ge==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),J())},[Ge,e.zeniAssist?.refundStatus,J]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,Y=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&Y?.code?Y:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:Y?.code!=null&&(ee?.code=="approved"||Y.code==="mark_as_paid")?Y:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,qe=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{X({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{X({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{X({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),X({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Xt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
2
|
${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Xe=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Je=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Un,{paymentTypeLabel:Je,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,jn=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$n=Et&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&In===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!Qe||v?.code==="processing"&&!M),Sn=!Qe,et=["small","medium-compact","medium-regular"].includes(l),ae=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),L=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Ht(!0,Ue,c)},tt=()=>{Ve(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{He(!0),tt()},Bn=()=>{Yt(),Ve(!1),Ue&&He(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),_=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Hn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Le===!0&&q(!1),_!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ze("rejected"),_!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(qa,{windowSize:l,ref:at,children:[t.jsx(Yn,{anchor:"right",open:ln,onClose:Ye,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Gn,{companyName:qn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Je,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ye})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>J(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>J(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Le?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{q(!1),qe()},onClickAway:()=>{q(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Jt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx($e,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Xe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Xn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Xe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ea(ae,e,_),t.jsx(Jn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(Qa,{children:[ye.length>1?t.jsx(Xa,{windowSize:l,children:t.jsx(Ja,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[L?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&k?.code==="pending_approval"?Nt.addMoney:_})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Lt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wa,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:L&&e.outsideZeniPaymentInfo!=null?La(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),L?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(_a,{children:Dn})}),jn()]})})]}),L||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,L,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,L,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Ut,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:Ot,signedInUserId:le?.userId,showRealTimeApproval:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Gt,onSaveRealTimeApprovals:qt},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:We==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Fa(K,et),isLoading:We==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{_!=null?q(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Za,{children:t.jsxs(Ga,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(W,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(W,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(W,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&L&&_t?t.jsx(W,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(W,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ya,{windowSize:l,children:[$n===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Va,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(Ha,{onClick:qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ua,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx($a,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:H,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>U(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Fa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,La=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${Z}`},Ea=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},_a=i.div``,Wa=i.div``,Za=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as z,p as B,X as q,M as R,a as M,a5 as W,j as o,R as G,c3 as X,aW as Y,F as H,a7 as J,o as c}from"./index-
|
|
1
|
+
import{C as z,p as B,X as q,M as R,a as M,a5 as W,j as o,R as G,c3 as X,aW as Y,F as H,a7 as J,o as c}from"./index-DoFw58Mw.js";import{b as D,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as L,o as j}from"./FollowStepsSection-BL8sM4vS-D6HNdi5Y.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",E="lowerBound",T="upperBound",y="steps",Z={footerPadding:new z(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:A=!1,onSaveRuleClick:_,onSaveRuleSuccess:S}){const I=q(),a=R.getLocalizedStrings().commonSetUp.approval,P=R.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),O=async(i,d)=>{r(d)};return D.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const V=G(d);X(()=>O(U,V))}});return()=>{i.unsubscribe()}}),D.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Y,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:E,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:T,placeholder:"Infinity",isDisabled:b,hideField:A,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Z.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[E]:t?void 0:l!=null?l.range.min.amount??0:0,[T]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:L},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:L},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as I,M as y,j as t,aW as D,e as H,Y as b,C as r,s as B,_ as j,bO as E,bQ as U,bR as q,o as i,cq as G,p as l,as as O,Q as z,ar as Q,g as S,cn as V,aN as X,v as Y}from"./index-
|
|
1
|
+
import{X as I,M as y,j as t,aW as D,e as H,Y as b,C as r,s as B,_ as j,bO as E,bQ as U,bR as q,o as i,cq as G,p as l,as as O,Q as z,ar as Q,g as S,cn as V,aN as X,v as Y}from"./index-DoFw58Mw.js";import{n as o,b as _}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},F=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=_.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(J,{windowSize:n,isLastSection:f,children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(E,{titleComponent:t.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},J=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-xnBNKyGo-X7TVMSec.js → BillPayPromoPage-DoP2oC8W-D-cHzeZ4.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as se,X as b,a5 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as x,o as s,Z as te,c0 as re,u as A,a9 as D,m as ae,C as ne,g as u,c2 as ce,aa as de,av as me,p as pe}from"./index-
|
|
1
|
+
import{y as se,X as b,a5 as le,l as j,M as L,j as e,aW as oe,K as U,Y as h,i as x,o as s,Z as te,c0 as re,u as A,a9 as D,m as ae,C as ne,g as u,c2 as ce,aa as de,av as me,p as pe}from"./index-DoFw58Mw.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";import{f as ge,C as E}from"./play-icon-Bih37F_s-C73Mu05H.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",R="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-2FceZZW4-TCgBSFd3.js → BillPaySetUpPage-o-V-9aI5-DuW6yWFa.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as _e,X as Oe,a5 as B,a as De,c3 as Re,M as Ue,ab as Q,j as t,cI as He,Y as ze,g as Le,C as u,aW as Me,e as qe,F as Ne,c$ as Ge,aQ as Je,d0 as Xe,bt as Ke,d1 as Qe,a7 as Ye,o as L,p as a,s as Ze,b5 as et}from"./index-
|
|
1
|
+
import{u as _e,X as Oe,a5 as B,a as De,c3 as Re,M as Ue,ab as Q,j as t,cI as He,Y as ze,g as Le,C as u,aW as Me,e as qe,F as Ne,c$ as Ge,aQ as Je,d0 as Xe,bt as Ke,d1 as Qe,a7 as Ye,o as L,p as a,s as Ze,b5 as et}from"./index-DoFw58Mw.js";import{b as m,n as g}from"./vendor-CnQcJ2Lu.js";import{F as tt}from"./HelpButton-khTPylkl-CEL7Boo7.js";import"./SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js";import{J as H}from"./SetUpDefaultSection-D4FafmO5-CcuY4gpp.js";import{p as it}from"./SpendMgmtSetupAccountSection-DcJhhfdt-CSj4RU9Q.js";import{g as nt}from"./UploadAdditionalDocumentOverlay-CBpLz-gk-DUe20w1p.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";import"./ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js";import"./ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js";import"./CreditCardPaymentPlgSection-YcsIIUkG-C-zCY8ZF.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",E="billPayAccount",Ft=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:r,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:M,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=_e(),i=Oe(),[k,S]=m.useState(!1),q=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,_=$.link_account.updateStatus,O=$.update_account.updateStatus,F=B(p),J=B(b.fetchState),X=B(_.fetchState),K=B(O.fetchState),x=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&S(!0),k&&F==="In-Progress"&&p==="Completed"&&S(!1)},[s,p,F]),m.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||X==="In-Progress"&&_.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&x.reset(z(e))},[F,p,x,e,X,_.fetchState,K,O.fetchState]);const Fe=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Ie=async(P,V)=>{const o=V[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&l?.id!=o.fundingAccount.selectedOption){const f=N.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,l.id,l.accType)}}};m.useEffect(()=>{const P=x.watch((V,{name:o})=>{o!=null&&V!=null&&Re(()=>Ie(o,V))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&M()},[M,J,b.fetchState]);const{commonSetUp:Ve,spendManagement:Be}=Ue.getLocalizedStrings(),{setUp:d}=Ve,{billPaySetup:c}=Be.billPay,D=A?.isBusinessVerified===!0&&(l?.accType==="depositAccount"||l?.providerVerificationStatus?.code==="verified"||l?.providerVerificationStatus?.code==="manually_verified"||l?.providerVerificationStatus?.code==="automatically_verified"||l?.providerVerificationStatus?.code==="database_matched"),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:c.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new Q(C.colors.brandColorJadeLight):new Q(C.colors.brandColorJadeDark),$e=()=>{!k&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(at,{ref:q,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(nt,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:s,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Me,{title:c.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(st,{windowSize:i,children:[t.jsx(ct,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(ot,{children:[t.jsx(Ne,{...x,children:t.jsx("form",{id:Z(Y),onSubmit:Fe,children:t.jsxs(dt,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(it,{connectedAccountProvider:ee,primaryFundingAccount:l,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:c.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),r===!0?t.jsx(H,{title:T?c.enableInternationalWireTitle:c.internationWireTitle,subTitle:c.internationalWireSubTitle2,header:c.internationalWireHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ke,{title:h.code==="verification_pending"?c.tooltipTexts.pendingInternationalVerificationText:c.tooltipTexts.internationalVerificationFailed,children:t.jsx(lt,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!R&&j.length>0?t.jsx(Ye,{formId:Z(Y),primaryBtn:{label:c.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:c.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},ot=g.div``,at=g.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as fe,X as Ce,a as xe,c3 as Pe,ab as k,M as be,j as t,C as P,aW as Ae,e as Ie,F as ve,aQ as je,c4 as ke,a7 as $e,o as s,h2 as Oe,cw as Be,cx as Ee,p as b,s as Te,gh as Ve,Q as ze,g as Le}from"./index-
|
|
1
|
+
import{u as fe,X as Ce,a as xe,c3 as Pe,ab as k,M as be,j as t,C as P,aW as Ae,e as Ie,F as ve,aQ as je,c4 as ke,a7 as $e,o as s,h2 as Oe,cw as Be,cx as Ee,p as b,s as Te,gh as Ve,Q as ze,g as Le}from"./index-DoFw58Mw.js";import{b as W,n as r}from"./vendor-CnQcJ2Lu.js";import{M as De,r as H,e as Me}from"./PaymentAccountSetupBillingAddressSection-Cvn1adQb-kbzfxjFm.js";import{O as Re}from"./SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./SetUpDefaultSection-D4FafmO5-CcuY4gpp.js";import"./ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},We={title:new ze("standardSemiBold","largeSemiBold")},_="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:J,companyId:q,onUpdateAccountClick:G,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,B=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(a),values:F(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(q)}),E=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:f}=o[n].street,j=Be(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Ee(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&G(h.account.selectedOption,y.paymentAccountId)};W.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const T=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:V}=be.getLocalizedStrings(),ge=V.section.subTitle,{text:ye,subText:Se}=he,z=m.cardsList.length>0,L=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,x=De(w.header,w.titleText,w.protectedCardNo,m);let M;z&&(M={header:x.header,title:x.title,subtitle:x.subtitle,status:x.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:H(L).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:H(L).name}),color:new k(T)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[R,we]=W.useState(!1);return t.jsxs(_e,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:V.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(He,{windowSize:i,children:[t.jsx(Fe,{windowSize:i,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Ge,{children:t.jsx("form",{id:U(_),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Re,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:T},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:R}),Ne(i,l.headers.billingAddress,ce,J,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:U(_),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:E?.fetchState==="In-Progress",isDisabled:E?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:R,setCardSetupInProgress:we})]})},F=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Oe(n,e.subscriptionBillingAddress)[n]}},He=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as V,j as b,bO as q,bQ as M,bR as W,jk as z,l as H,aJ as J}from"./index-
|
|
1
|
+
import{M as V,j as b,bO as q,bQ as M,bR as W,jk as z,l as H,aJ as J}from"./index-DoFw58Mw.js";import{b as _}from"./vendor-CnQcJ2Lu.js";import{m as Q}from"./ReviewOverlay-BwgzcM9d-CSY6hmMy.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:w}=t,u=i==="review",[B,h]=_.useState(!1),[s,v]=_.useState(j(t,u)),[p,k]=_.useState(u),[P,E]=_.useState(0),[f,T]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(x),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),P===s.length&&p&&(k(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(j(t,!1)),()=>{clearInterval(x)}),[s.length,P,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,A=()=>{const{title:d,description:S}=Y(y);T({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},F={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,X(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=Z(m,y,R,p),I=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,w),l(i)},D={label:I?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:I?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:A,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(q,{titleComponent:b.jsx(W,{children:f.title}),descriptionComponent:b.jsx(M,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Q,{title:N,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:D,cancelButton:O,hideCancel:I}})]})},j=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:J("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&H.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:G(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},X=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=z([...l,e.isRecurring?"recurring":"one-time"])}),l},Y=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},Z=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:w,do_:u,does:B}=n.texts,h=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",h?g:w)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},G=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,X as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as a,j as s,Y as b,o as r}from"./index-
|
|
1
|
+
import{X as a,j as s,Y as b,o as r}from"./index-DoFw58Mw.js";import{n as p}from"./vendor-CnQcJ2Lu.js";import{o as l}from"./commonDimensions-D4uH020E-szItJUN9.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=a();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const h=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as et,X as tt,a5 as Se,j as i,M as Te,i as G,a as it,ch as at,l as L,A as st,c3 as nt,aJ as ot,a0 as rt,K as lt,aW as ct,Y as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,e as yt,F as ht,a7 as gt,o as r,C as P,m as $e,fE as xt,fc as Ce,cw as wt,c0 as St,a6 as Ct,s as ke,Q as bt,h as vt,p as k}from"./index-T4e21nnZ.js";import{b as j,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-Cd0QdDAc-Dw3rzd0i.js";import{r as $t}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-CqhBSQ8f-CPXJhGgE.js";import"./LabeledCreatableSingleSelectField-CB34OT80-D0_gUm7_.js";import"./LabeledDocumentField-MyG-6WMu-I9bW2EFa.js";import"./DocumentSecurityBanner-CjDxLXR5-8PCnDbOc.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,k[3]),subTitlePaddingBottom:new P(k[3],k[3]),verificationDetailsRowGap:new P(12,k[5],k[5]),termsPaddingLeftRight:new P(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:It,currency:Nt,footer:ve,strings:{empty:Pt}}}=Te.getLocalizedStrings(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:B,productType:y,allIndustries:E,companyTitles:z,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:Ne,onBackClick:O,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,onSendForVerificationClick:Oe,onEditFileName:ee,onCompanyDetailsChanged:Ve,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:Be})=>{const Ee=et(),m=tt(),{updateStatus:R,companyView:V,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,ze=Se(R.fetchState),U=V?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(Et,{children:[s.terms.term1,i.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,W]=j.useState(!1),[M,se]=j.useState("save"),[Z,Me]=j.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:jt(t,E,z,A)}),{isValid:Ge}=u.formState,K=V?.company.company.companyBillPayInfo,Q=V?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?Q?.companyVerificationStatus:K?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,We=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,J=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Y=l?.primaryContactLocalData,ge=Y?.firstName,xe=Y?.lastName,we=Y?.email;a!=null&&f!=null&&C!=null&&$!=null&&c!=null&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&J!=null&&fe!=null&&ye!=null&&ue!=null&&J!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:J,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},Ze=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",$=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!$?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&u.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},Qe=u.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){u.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Ge&&(We(),Oe?.(T))}),Xe=async(e,a)=>{e.includes(b)?Ve?.(a[b]):e.includes(v)&&Ae?.(a[v])},qe=j.useCallback(st((e,a)=>{Xe(e,a)},300),[]);j.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>qe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(t.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,u]);const oe=V?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=oe?.map(e=>e.user),Je=oe?.map(e=>e.role),Ye={onOkClick:()=>{W(!1),O();const e=[],a=V?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Je?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{W(!1)}},He=ot(rt(p),p,Nt.currencySymbol).toUpperCase(),q=N?.code==="pending_review"||N?.code==="verified";return y==="zeni_treasury"&&N?.code==="pending_review"&&ze==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Kt,{children:[i.jsxs(Qt,{children:[i.jsx($t,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:O,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Pt:s.header,backgroundColor:Ee.colors.grey5,style:{zIndex:Z?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?W(!0):O()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?i.jsx(qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{O()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Ye}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||w===!1)&&i.jsx(Vt,{windowSize:m,children:n?It.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...u,children:i.jsxs("form",{id:De(be),onSubmit:Qe,children:[h&&w===!0&&i.jsxs(Ot,{children:[i.jsxs(zt,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:q?s.businessVerificationDetails:s.verifyBusinessDetails}),!q&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Wt,{})]})})]}),i.jsx(Ie,{isReadonly:q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:I,filesEndPoint:o,authParams:B,isPopupOpen:Z,openPopup:Me,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":I,fileProps:{authParams:B,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:Ne,connectedAccountProvider:U,allIndustries:E})]}),y==="zeni_accounts"?i.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?Q?.companyVerificationStatus?.code!=="pending_review"&&Q?.companyVerificationStatus?.code!=="verified":K?.businessVerificationStatus?.code!=="pending_review"&&K?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)O();else{const e=S[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ze(),C=Ke();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:Z?0:4}}):null]})},jt=(t,A,F,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:B,companyView:y}=t,E=Te.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(B).map((p,I)=>{const n=p,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:wt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
1
|
+
import{u as et,X as tt,a5 as Se,j as i,M as Te,i as G,a as it,ch as at,l as L,A as st,c3 as nt,aJ as ot,a0 as rt,K as lt,aW as ct,Y as dt,c4 as mt,bO as pt,bQ as ut,bR as ft,e as yt,F as ht,a7 as gt,o as r,C as P,m as $e,fE as xt,fc as Ce,cw as wt,c0 as St,a6 as Ct,s as ke,Q as bt,h as vt,p as k}from"./index-DoFw58Mw.js";import{b as j,n as d}from"./vendor-CnQcJ2Lu.js";import{o as Dt,G as Tt}from"./CompanyOfficerDetailsSection-CGewbsKm-DBM7Hns2.js";import{r as $t}from"./verification-CW6uEyev-DdkqedMU.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./LabeledAddressValueField-BODlYe8J-C_77UpWi.js";import"./LabeledCreatableSingleSelectField-DBovHkMc-D9D-7hZt.js";import"./LabeledDocumentField-CIlbLPtO-DSLjsPoT.js";import"./DocumentSecurityBanner-BRFFDueV-stK3q2uU.js";const x={width:new P(343,580,726),titleWidth:new P(343,580,726,826),subTitlePaddingTop:new P(12,k[3]),subTitlePaddingBottom:new P(k[3],k[3]),verificationDetailsRowGap:new P(12,k[5],k[5]),termsPaddingLeftRight:new P(k[0],k[3])},kt={stepTitle:new bt("h6Regular","h5Regular")},be="businessVerificationPage",b="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:s},common:{settings:It,currency:Nt,footer:ve,strings:{empty:Pt}}}=Te.getLocalizedStrings(),pi=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:o,authParams:B,productType:y,allIndustries:E,companyTitles:z,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,onAddressClick:H,onRegisteredAddressClick:Ne,onBackClick:O,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,onSendForVerificationClick:Oe,onEditFileName:ee,onCompanyDetailsChanged:Ve,updateFilesEntity:te,onDeleteFile:ie,onDeleteFileList:Le,onCompanyOfficerUpdated:Ae,saveNewAddressInLocalStore:ae,onSaveDetailsClick:_e,onClickMenuIcon:Be})=>{const Ee=et(),m=tt(),{updateStatus:R,companyView:V,companyDetailsLocalData:l,companyOfficerLocalData:S}=t,ze=Se(R.fetchState),U=V?.company.company.featuresActivationInfo.connectedAccountProvider,Re=U==="unit"?i.jsxs(Et,{children:[s.terms.term1,i.jsx(G,{href:s.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.consent}),s.terms.term2,i.jsx(G,{href:s.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.depositTerms}),s.terms.term3,i.jsx(G,{href:s.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:s.terms.privacy}),s.terms.term4,i.jsx(G,{href:s.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:s.terms.tos}),s.terms.term5]}):s.terms.termsForStripe,[Ue,W]=j.useState(!1),[M,se]=j.useState("save"),[Z,Me]=j.useState(!1),u=it({mode:"all",reValidateMode:"onChange",defaultValues:jt(t,E,z,A)}),{isValid:Ge}=u.formState,K=V?.company.company.companyBillPayInfo,Q=V?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?Q?.companyVerificationStatus:K?.companyVerificationStatus,D=Object.values(S).findIndex(e=>e?.isSelectedForVerification===!0),T=`Officer_${D<0?1:D+1}`,We=()=>{const e=S[T],a=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,re=e?.titleAtCompany,le=e?.documentTypeSelectedForVerification,ce=e?.phone,de=e?.addressStatus?.addressToCreate,me=de!=null?L.getFormattedAddress(de):void 0,pe=l?.companyDescription,J=l?.companyLegalName,ue=l?.companyIndustry,fe=l?.phone,ye=l?.website,he=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,Y=l?.primaryContactLocalData,ge=Y?.firstName,xe=Y?.lastName,we=Y?.email;a!=null&&f!=null&&C!=null&&$!=null&&c!=null&&re!=null&&ce!=null&&me!=null&&le!=null&&pe!=null&&J!=null&&fe!=null&&ye!=null&&ue!=null&&J!=null&&he!=null&&ge!=null&&xe!=null&&we!=null&&g?.trackBusinessVerificationSend({email:a,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:re,phone:ce,formattedAddress:me,documentTypeForVerification:le},{companyDescription:pe,legalName:J,phone:fe,website:ye.toString(),industry:ue,formattedAddress:he},{firstName:ge,lastName:xe,email:we},y,n?"Settings":void 0)},Ze=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=a?.email??"",$=!!a?.firstName&&!!a?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${v}.${D<0?0:D}.name`,{shouldFocus:!0}),!1):C&&!$?((!a?.firstName||!a?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},Ke=()=>{const e=S[T],a=l?.primaryContactLocalData,c=e?.email,f=a?.email;if(c){if(!f)return(a?.firstName||a?.lastName)&&u.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||X!=null&&X?.length>0)return u.trigger(`${v}.${D<0?0:D}.email`,{shouldFocus:!0}),!1;return!0},Qe=u.handleSubmit(()=>{if(M!=="verification"&&se("verification"),U==="unit"&&S[T]?.isPhoneVerified!==!0){u.setError(`${v}.${D}.phone`,{type:"custom"});return}const e=at(Object.values(S).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),a=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(a)).fetchState!=="In-Progress"&&Ge&&(We(),Oe?.(T))}),Xe=async(e,a)=>{e.includes(b)?Ve?.(a[b]):e.includes(v)&&Ae?.(a[v])},qe=j.useCallback(st((e,a)=>{Xe(e,a)},300),[]);j.useEffect(()=>{const e=u.watch((a,{name:c})=>{c!=null&&a!=null&&nt(()=>qe(c,a))});return()=>{e.unsubscribe()}});const ne=Se(t.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&ne==null&&(ae?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,ne,ae,u]);const oe=V?.companyOfficers.slice(0,10).sort((e,a)=>e.user.createTime?.isAfter(a.user.createTime)===!0?1:-1),X=oe?.map(e=>e.user),Je=oe?.map(e=>e.role),Ye={onOkClick:()=>{W(!1),O();const e=[],a=V?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{a.includes(c)||e.push(c)}),Je?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${v}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Le?.(e)},onCancelClick:()=>{W(!1)}},He=ot(rt(p),p,Nt.currencySymbol).toUpperCase(),q=N?.code==="pending_review"||N?.code==="verified";return y==="zeni_treasury"&&N?.code==="pending_review"&&ze==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Kt,{children:[i.jsxs(Qt,{children:[i.jsx($t,{}),i.jsx(Xt,{windowSize:m,children:s.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:s.submittedDescription})]}),i.jsx(lt,{label:s.submittedButton,onClick:O,variant:"primary"})]}):i.jsxs(Ft,{isSettings:n,children:[i.jsx(ct,{title:h&&w===!0?Pt:s.header,backgroundColor:Ee.colors.grey5,style:{zIndex:Z?1:4},onBackClick:()=>{mt(u.formState.dirtyFields)?W(!0):O()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Be,rightSideComponent:h?i.jsx(qt,{"data-testid":dt("nav-bar-close-business-verification-overlay"),onClick:()=>{O()}}):null,source:"BusinessVerificationPage"}),Ue===!0?i.jsx(pt,{titleComponent:i.jsx(ft,{children:s.discardTitle}),descriptionComponent:i.jsx(ut,{children:s.discardDescription}),primaryButtonText:s.discard,secondaryButtonText:s.cancel,action:Ye}):null,i.jsxs(Lt,{windowSize:m,children:[(!h||w===!1)&&i.jsx(Vt,{windowSize:m,children:n?It.infoText.businessVerification:s.title}),F==="In-Progress"||F==="Not-Started"?i.jsx(At,{children:i.jsx(yt,{size:"ExtraLarge",start:!0})}):i.jsx(ht,{...u,children:i.jsxs("form",{id:De(be),onSubmit:Qe,children:[h&&w===!0&&i.jsxs(Ot,{children:[i.jsxs(zt,{windowSize:m,children:[i.jsx(Rt,{windowSize:m,children:q?s.businessVerificationDetails:s.verifyBusinessDetails}),!q&&i.jsx(Ut,{children:i.jsxs(Mt,{children:[i.jsx(Gt,{}),i.jsx(Wt,{})]})})]}),i.jsx(Ie,{isReadonly:q,children:s.verifyBusinessDetailsDescription})]}),i.jsxs(_t,{children:[i.jsx(Dt,{companyOfficerData:S,allNationalityCountries:A,allOfficers:X??[],sectionId:v,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:te,onEditFileName:ee,onOfficerAddressClick:H,onDeleteFile:ie,isDisabled:I,filesEndPoint:o,authParams:B,isPopupOpen:Z,openPopup:Me,onGetOtp:Pe,onVerifyOtp:je,onResendOtp:Fe,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Tt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":I,fileProps:{authParams:B,filesEndPoint:o,onEditFileName:ee,onDeleteFile:ie,updateFilesEntity:te},onCompanyAddressClick:H,onRegisteredAddressClick:Ne,connectedAccountProvider:U,allIndustries:E})]}),y==="zeni_accounts"?i.jsx(Bt,{windowSize:m,children:s.threadText.replace("__amount__",He)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?Q?.companyVerificationStatus?.code!=="pending_review"&&Q?.companyVerificationStatus?.code!=="verified":K?.businessVerificationStatus?.code!=="pending_review"&&K?.businessVerificationStatus?.code!=="verified")?i.jsx(gt,{formId:De(be),primaryBtn:{label:w?ve.submit:s.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ve.back:s.saveDetailsButton,style:{width:m==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)O();else{const e=S[T],a=l?.primaryContactLocalData;M!=="save"&&se("save");const c=e?.email??"",f=Ze(),C=Ke();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:a?.firstName,lastName:a?.lastName,email:a?.email},y,n?"Settings":void 0),_e?.(T))}}},helperText:Re,style:{padding:`12px ${r.sp3}`,zIndex:Z?0:4}}):null]})},jt=(t,A,F,_)=>{const{companyDetailsLocalData:o,companyOfficerLocalData:B,companyView:y}=t,E=Te.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:o?.companyDescription??"",ein:o?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:o?.companyId??"",syncToken:o?.syncToken,companyLegalName:o?.companyLegalName??"",companyWebsite:o?.website?.toString()??"",companyAddress:o?.addressStatus?.addressToCreate,registeredAddress:o?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:o?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:o?.phone??"",companyTaxId:o?.taxIdOrEIN??"",primaryContactName:{firstName:o?.primaryContactLocalData?.firstName??"",lastName:o?.primaryContactLocalData?.lastName??""},primaryContactEmail:o?.primaryContactLocalData?.email??"",primaryContactUserId:o?.primaryContactLocalData?.userId,primaryContactSyncToken:o?.primaryContactLocalData?.syncToken,fileIds:o?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:o?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:o?.incDate?.toDate(),typeOfIncorporation:{selectedOption:o?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:o?.sourceOfFunds??"",allOptions:Object.keys(s.sourceOfFundOptions)},formationDocument:o?.companyFiles.find(p=>p.documentType==="company_formation_document")},[v]:Object.values(B).map((p,I)=>{const n=p,h=xt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:wt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:Ce(!0,n?.userFiles??[],h),back:Ce(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},De=t=>`${t}_form`,Ft=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as g,M as w,j as t,v as x,Q as $,o as s,h as C}from"./index-
|
|
1
|
+
import{X as g,M as w,j as t,v as x,Q as $,o as s,h as C}from"./index-DoFw58Mw.js";import{n as o,b as d}from"./vendor-CnQcJ2Lu.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new $("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(v,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(H,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},v=o(C)`
|
|
2
2
|
${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as k,X as f,j as t,aW as te,M as w,cO as P,v as u,ao as X,bC as ie,o as i,g as B,C as h,s as v,de as oe,l as y,p as l,b6 as re,b7 as ae,aB as se,aA as ne,aJ as de,b8 as le,ba as ce,ix as he,_ as O,bm as pe,Y as z,w as $,iy as _,iz as q,ig as me,bY as ge,b$ as xe,m as T,ih as we,ii as ue}from"./index-
|
|
1
|
+
import{u as k,X as f,j as t,aW as te,M as w,cO as P,v as u,ao as X,bC as ie,o as i,g as B,C as h,s as v,de as oe,l as y,p as l,b6 as re,b7 as ae,aB as se,aA as ne,aJ as de,b8 as le,ba as ce,ix as he,_ as O,bm as pe,Y as z,w as $,iy as _,iz as q,ig as me,bY as ge,b$ as xe,m as T,ih as we,ii as ue}from"./index-DoFw58Mw.js";import{n as o,f as Y,b as V}from"./vendor-CnQcJ2Lu.js";import{F as ye}from"./InsightsSection-q1QuO6Z4-1k_aUqAr.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./NavigationDots-5fxvl-4e-BzJdpllk.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(G,{children:W.month})," ",t.jsx(A,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(G,{children:W.cashback}),t.jsx(A,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,ve=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as Ye,X as Ce,y as st,d3 as dt,fe as Ka,l as Ze,gY as Gr,ab as _e,M as he,ff as Xa,j as t,gm as qr,aW as Kr,p as c,fn as Ja,_ as xe,Y,o as a,bt as Pt,g as p,ij as Qa,v as Z,bO as Xr,ik as Jr,cI as Qr,gd as ei,a as ti,gg as ai,co as ri,C as I,n as ii,F as oi,fF as ni,K as ft,aZ as si,bf as er,a9 as Mt,il as di,im as tr,b5 as ar,av as Vt,eS as ci,aa as rr,ak as li,io as hi,ip as pi,aq as Ot,w as me,ew as ui,ie as mi,ee as ct,fg as ir,e as nt,ao as gi,dj as Ci,bT as fi,bQ as wi,cv as xi,gV as yi,s as ye,eY as or,iq as bi,fh as je,dr as wt,c_ as Si,Q as ha,h as nr,as as $i,ir as vi,eQ as ki,bY as sr,is as Li,t as mt,bC as pa,aR as ji,db as Ii,eB as Di,m as at,fb as Ai,Z as Ti,k as Ri,a6 as Fi,a$ as Ei,it as yt,cW as zi,bm as Pi,iu as dr,iv as cr,f$ as lr,iw as xt,hH as hr,ig as Mi,b$ as Vi,eb as pr,ih as Oi,ii as Hi,c$ as Ni,cq as Bi,ei as Wi,bF as Ui,bG as _i}from"./index-
|
|
1
|
+
import{u as Ye,X as Ce,y as st,d3 as dt,fe as Ka,l as Ze,gY as Gr,ab as _e,M as he,ff as Xa,j as t,gm as qr,aW as Kr,p as c,fn as Ja,_ as xe,Y,o as a,bt as Pt,g as p,ij as Qa,v as Z,bO as Xr,ik as Jr,cI as Qr,gd as ei,a as ti,gg as ai,co as ri,C as I,n as ii,F as oi,fF as ni,K as ft,aZ as si,bf as er,a9 as Mt,il as di,im as tr,b5 as ar,av as Vt,eS as ci,aa as rr,ak as li,io as hi,ip as pi,aq as Ot,w as me,ew as ui,ie as mi,ee as ct,fg as ir,e as nt,ao as gi,dj as Ci,bT as fi,bQ as wi,cv as xi,gV as yi,s as ye,eY as or,iq as bi,fh as je,dr as wt,c_ as Si,Q as ha,h as nr,as as $i,ir as vi,eQ as ki,bY as sr,is as Li,t as mt,bC as pa,aR as ji,db as Ii,eB as Di,m as at,fb as Ai,Z as Ti,k as Ri,a6 as Fi,a$ as Ei,it as yt,cW as zi,bm as Pi,iu as dr,iv as cr,f$ as lr,iw as xt,hH as hr,ig as Mi,b$ as Vi,eb as pr,ih as Oi,ii as Hi,c$ as Ni,cq as Bi,ei as Wi,bF as Ui,bG as _i}from"./index-DoFw58Mw.js";import{b as o,n as r,j as pe,f as Zi,k as ur}from"./vendor-CnQcJ2Lu.js";import{f as Yi}from"./NavigationDots-5fxvl-4e-BzJdpllk.js";import{L as Gi,H as et,U as ua,M as mr,F as gr,_ as Cr}from"./ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js";import{A as qi,i as Ki,a as Xi,l as Ji,r as Qi,t as eo,n as to}from"./add-to-wallet-DgdBD8_G-DcfyMc0W.js";import{R as ao}from"./CardNumberSubText-dxYfM6ph-B1OZ5t3N.js";import{r as fr}from"./mui-C5LQ0bMa.js";import{l as wr}from"./uploadReceipts-Buvz7DfG-XWftDYl6.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const xr=he.getLocalizedStrings().spendManagement.chargeCard,ro=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:m,isChargeCardSetupEnabled:u,chargeCardDetailView:s,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,appleWalletLink:$,googleWalletLink:y,style:g,showDrawerAnimation:D,setWalletType:v,setIsAddToWalletDrawerOpen:O,isDebitCard:T})=>{const z=dt().analytics,{isIPadScreen:q}=hi(),{isAndroidScreen:J}=pi(),U=st(),A=Ze.hasChargeCardAdminLevelAccess(U.loggedInUserRoleMap);return t.jsx(io,{style:g,children:q===!0?t.jsx(zt,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open($,"_blank")}}):J===!0?t.jsx(Et,{onClick:()=>{et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:x,creditAccountInformation:l,debitAccountInformation:f,isChargeCardFeatureEnabled:d,creditAccount:w,creditAccountRepayment:n}),window.open(y,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(zt,{onClick:()=>{v("apple"),D.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}}),t.jsx(Et,{onClick:()=>{v("google"),D.current="slide-in-right-to-left-add-to-wallet",et({chargeCardDetailView:s,classListFetchState:i,analytics:z,isDebitCard:T,isChargeCardAdmin:A,cardIssuedByRoles:C,cardIssuedByDepartmentName:b,cardHolderRoles:L,cardHolderDepartmentName:S,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:d,productInformation:x,creditAccountInformation:l,debitAccountInformation:f,creditAccount:w,creditAccountRepayment:n}),O(!0)}})]})})},Et=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(oo,{}),label:xr.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":Y("add-to-google-wallet-button")})},zt=({onClick:e})=>{const i=Ye();return t.jsx(ft,{prefixIcon:t.jsx(no,{}),label:xr.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":Y("add-to-apple-wallet-button")})},io=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d3 as $t,y as St,fm as jt,l as T,fh as v,X as he,M as Be,o as a,u as _e,j as t,aW as vt,fA as kt,cO as A,v as C,bt as le,g as n,_ as Pt,aJ as de,Y as pe,C as B,w as L,Q as It,h as Mt,cl as Tt,b4 as Fe,b5 as At,ak as me,a9 as Lt,m as ue,p as I,d4 as Et,Z as Rt,s as Dt,c0 as zt,ck as Ot,aP as Nt}from"./index-
|
|
1
|
+
import{d3 as $t,y as St,fm as jt,l as T,fh as v,X as he,M as Be,o as a,u as _e,j as t,aW as vt,fA as kt,cO as A,v as C,bt as le,g as n,_ as Pt,aJ as de,Y as pe,C as B,w as L,Q as It,h as Mt,cl as Tt,b4 as Fe,b5 as At,ak as me,a9 as Lt,m as ue,p as I,d4 as Et,Z as Rt,s as Dt,c0 as zt,ck as Ot,aP as Nt}from"./index-DoFw58Mw.js";import{b as N,n as i,j as ge,k as Bt}from"./vendor-CnQcJ2Lu.js";import{Y as _t}from"./SpendManagementSection-CisJALAC-zKC9aL_a.js";import{ChargeCardPromoUserContent as Ft}from"./ChargeCardPromoPage-CsItH2IC-BEXKS9-8.js";import{A as Ut,J as Wt}from"./PromoBaseCards-BuCQJuXH-BcjVOmSJ.js";import{M as Yt}from"./ChargeCardListTable-qk9tQ6Kb-DR0FaH4k.js";import{r as Gt,i as Jt}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{t as Ht,o as Vt}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";import"./NavigationDots-5fxvl-4e-BzJdpllk.js";import"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./Menu-BOh_KLZu-BrkD9kYL.js";import"./RoleWithToolTip-DkeT6zjW-DmUDvRC_.js";import"./CardNumberSubText-dxYfM6ph-B1OZ5t3N.js";import"./ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js";const xe={infoSubheadingTextMarginTop:new B(I[0],I[0]),cardsMinWidth:new B(343,353)},ve=Be.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,ke=({cardPromoType:e,cardText:s,header:d,title:h,subTitle:r,slidingTextList:u,onClick:l})=>{const p=he();return t.jsxs(qt,{windowSize:p,cardPromoType:e,"data-testid":pe("list-page-promo-card",e),onClick:()=>l(e),children:[t.jsxs(Ue,{children:[t.jsxs(Ye,{children:[t.jsx(We,{children:d}),t.jsx(Xt,{children:h}),t.jsx(aa,{children:r})]}),t.jsxs(ia,{children:[t.jsx(ra,{}),u.length>0&&t.jsx(ce,{slideUpCount:u.length,children:u.map((g,x)=>t.jsx(Ge,{children:g},`card-promo-${x.toString()}`))}),t.jsx(na,{})]})]}),t.jsx(oa,{children:t.jsx(Ut,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(sa,{children:t.jsx(Wt,{cardPromoType:e,cardText:s,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Pe=({cardType:e,header:s,title:d,creditLimit:h,onCreateNowClick:r})=>{const u=he();return t.jsx(Zt,{windowSize:u,cardType:e,children:t.jsxs(Kt,{children:[t.jsxs(Ye,{children:[t.jsx(We,{children:s}),t.jsx(ta,{children:t.jsx(ea,{children:d})}),t.jsx(la,{windowSize:u,children:t.jsxs(da,{windowSize:u,onClick:()=>r(e),"data-testid":pe("total-cashback-info"),children:[t.jsx(Ge,{children:ve.createNow}),t.jsx(ca,{})]})})]}),e==="creditCard"?t.jsxs(ha,{children:[t.jsx(pa,{children:ve.creditLimit}),t.jsx(ma,{children:h})]}):null]})})},Qt=e=>{const s=e-1;let d=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as i,X as V,y as ee,d3 as fi,u as de,fe as $i,i9 as vi,ia as Ci,ib as yi,Y as b,M as _,bL as ji,v as oe,g as y,ao as bi,bT as ki,ic as Si,id as Ii,o as r,bf as zi,a9 as Li,C as p,ew as Ri,av as Pi,ie as Di,aa as Ui,ee as Ni,w as O,fg as Ti,p as a,dr as Vi,_ as T,bV as De,e as Ue,bt as le,bm as _i,m as k,bY as we,s as U,i4 as ue,b5 as Ne,bd as Te,ig as Mi,b$ as Ei,ab as Q,ih as Fi,ii as Oi}from"./index-
|
|
1
|
+
import{j as i,X as V,y as ee,d3 as fi,u as de,fe as $i,i9 as vi,ia as Ci,ib as yi,Y as b,M as _,bL as ji,v as oe,g as y,ao as bi,bT as ki,ic as Si,id as Ii,o as r,bf as zi,a9 as Li,C as p,ew as Ri,av as Pi,ie as Di,aa as Ui,ee as Ni,w as O,fg as Ti,p as a,dr as Vi,_ as T,bV as De,e as Ue,bt as le,bm as _i,m as k,bY as we,s as U,i4 as ue,b5 as Ne,bd as Te,ig as Mi,b$ as Ei,ab as Q,ih as Fi,ii as Oi}from"./index-DoFw58Mw.js";import{b as C,n as o,f as Wi,j as fe}from"./vendor-CnQcJ2Lu.js";import{A as Ve}from"./Menu-BOh_KLZu-BrkD9kYL.js";import{T as _e}from"./RoleWithToolTip-DkeT6zjW-DmUDvRC_.js";import{R as ce}from"./CardNumberSubText-dxYfM6ph-B1OZ5t3N.js";import{_ as Me}from"./ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js";const W=_.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ai=_.getLocalizedStrings().common.strings.empty,$e={key:"owner",value:W.owner,sortOrder:"ascending",width:new p(120,120,160,200,200)},ve={key:"cardName",value:W.cardName,sortOrder:"ascending",width:new p(120,120,160,171,171)},Ce={key:"cardType",value:W.cardType,sortOrder:"ascending",width:new p(120,120,130,170,170)},ye={key:"status",value:W.status,sortOrder:"ascending",width:new p(115,115,125,132,132)},je={key:"utilisation",value:W.utilisation,sortOrder:"ascending",width:new p(a[11],a[11],a[11],a[12],120)},be={key:"limit",value:W.limit,sortOrder:"ascending",width:new p(68,68,68,a[11],100)},Ee=e=>e===!0?[{...$e,width:new p(0,0),value:Ai},ve,Ce,ye,je,be]:[$e,ve,Ce,ye,je,be],z={containerPaddingLeft:r.sp2,containerPaddingRight:r.sp3,containerPaddingTop:r.sp3,containerPaddingBottom:r.sp3,headerLastColumnTopPadding:new p(a[0],a[4]),headerLastColumnRightPadding:new p(a[3],a[11]),headerLastColumnBottomPadding:new p(a[0],a[4]),headerLastColumnLeftPadding:new p(a[3],a[11]),headerHeight:new p(Fi,Oi)};function Hi({companyNameSticky:e,sortConfig:t,showViewForCardUser:n,onColumnSortConfigChanged:h}){const d=de(),l=V(),m=!!ee().loggedInUserRole.includes("charge_card_user")||n,[c,w]=C.useState(Ee(m));C.useEffect(()=>{const s=[...c];for(const g of s)g.key===t.sortKey?g.sortOrder=t.sortOrder:g.sortOrder="ascending";w(s)},[t.sortKey,t.sortOrder]);const u=(s,g)=>{let $=g;t.sortKey===s&&($=g==="ascending"?"descending":"ascending"),h(s,$)},f=c.find(s=>s.key===t.sortKey)??(m?c[1]:c[0]),S=s=>c.find(g=>g.key===s)?.value??"",x=(m?c.filter(s=>s.key!=="owner"):c).map(s=>s.key),j=_.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?i.jsxs(Ji,{windowSize:l,children:[i.jsxs(Qi,{children:[i.jsx(Zi,{children:i.jsx(Xi,{})}),i.jsx(_i,{title:j.sortBy,placeholder:j.sortBy,pickerValues:x,valueToLabel:S,selectedValue:t.sortKey,onPickerSelectionChanged:s=>{u(s,"ascending")},optionTextStyle:oe.extraSmallRegular,titleTextStyle:oe.extraSmallRegular,titleColor:d.colors.primary,selectedOptionColor:d.colors.hero,optionBackgroundColor:d.colors.grey5,downChevronVisible:!1,backgroundColor:d.colors.grey4})]}),i.jsxs(rr,{onClick:()=>u(f.key,f.sortOrder),"data-testid":b("mobile-cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:f.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:f,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]})]}):i.jsx(Bi,{windowSize:l,children:i.jsx(qi,{children:c.map(s=>s.width.value(l)!==0&&i.jsxs(Yi,{companyNameSticky:e,sortDataValue:t.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:l,children:[i.jsxs(ir,{onClick:()=>u(s.key,s.sortOrder),"data-testid":b("cards-list-sort-clicked",t.sortKey),children:[i.jsx(k,{children:s.value}),i.jsx(ke,{windowSize:l,sortDataValue:t.sortKey,headerdata:s,children:i.jsx(Se,{windowSize:l,children:i.jsx(we,{})})})]}),i.jsx(er,{sortDataValue:t.sortKey,windowSize:l,isVisible:t.sortKey===s.key&&(m?s.key!=="cardName":s.key!=="owner"),children:i.jsx(Gi,{onClick:()=>u(m?"cardName":"owner","ascending"),"data-testid":b("cards-list-sort-cancel",t.sortKey)})})]},s.key))})})}const Ki=Wi.memo(Hi),Bi=o.div`
|
|
2
2
|
top: ${r.sp0};
|
|
3
3
|
left: ${r.sp0};
|
|
4
4
|
z-index: 2;
|