@zeniai/web-cockpit-ui 1.14.74-dev → 1.14.74-next
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-C4mW_6ah-BJ7pn6vk.js → ACHDetailsPage-C4mW_6ah-B99ZmB8s.js} +1 -1
- package/dist/assets/{AIPerformancePage-D340k3cD-BAOQqy7F.js → AIPerformancePage-D340k3cD-DK3Rnmlc.js} +1 -1
- package/dist/assets/{AccountInfoPage-CxHOmu8J-Du2y-SkT.js → AccountInfoPage-CxHOmu8J-D7ZuPDOg.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-piyQPGxR-VvJnc1kS.js → AccountInfoPageContent-piyQPGxR-DVYSf-rc.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-B-RdObr_-DL3Ol_Vk.js → AccountLockedInfoModal-B-RdObr_-B5y19IOa.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DSTRaH9L-BXT5r9BA.js → AccountReconDetailsDrawerPage-DSTRaH9L-DmplgqAU.js} +1 -1
- package/dist/assets/{AccountRow-0aCtZvU4-BVljyIs7.js → AccountRow-0aCtZvU4-AspyYs3a.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DnWb-9rH-Cnhv-tiT.js → AccountsPromoCardStack-DnWb-9rH-Dr419mMX.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-CXACYbPO-CQcJpWQx.js → AddAddressForCardDrawer-CXACYbPO-B_t786ZT.js} +1 -1
- package/dist/assets/{AddToWalletPage-C4sRJBul-BE93DCw4.js → AddToWalletPage-C4sRJBul-CeQopXQe.js} +1 -1
- package/dist/assets/{AgingReportsPage-BKBrbEp6-CdiDDDGU.js → AgingReportsPage-BKBrbEp6-BA9nRnFY.js} +1 -1
- package/dist/assets/{AllUserItems-YQA0TTW5-CziFRv_L.js → AllUserItems-YQA0TTW5-Izzg9jkE.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BVFOkU1c-Dh8aOVlT.js → ApAgingDetailPage-BVFOkU1c-CRr1gid1.js} +1 -1
- package/dist/assets/{AppBasePage-D7bLHqQ3-BIqewKfO.js → AppBasePage-D7bLHqQ3-BwYpc44Y.js} +1 -1
- package/dist/assets/{AppDrawerContent-BL0Ov_41-hUiOSUMJ.js → AppDrawerContent-BL0Ov_41-CQUPxF3u.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-DWuIZMvM-BhzLafty.js → ApprovalRulesSettingsPage-DWuIZMvM-B1JX2msJ.js} +1 -1
- package/dist/assets/{ArAgingChart-DhNRyKZ4-CEGKbwQp.js → ArAgingChart-DhNRyKZ4-zjnKlG3k.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-DAXNd3Un-Ci3ec1Qq.js → ArAgingDetailPage-DAXNd3Un-D9Zsy-XV.js} +1 -1
- package/dist/assets/{AttachmentView-B6_HWM-N-K28jxAws.js → AttachmentView-B6_HWM-N-BkquYgKH.js} +1 -1
- package/dist/assets/{BankAccountSection-CXwFMtqi-Cz8mdjRm.js → BankAccountSection-CXwFMtqi-DBcK5C6B.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-BdC0joXN-CerfOmkN.js → BankAccountWarningSection-BdC0joXN-DSYHjMs8.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-D_TyZMym-Be-_WeVr.js → BankConnectionsSettingsPage-D_TyZMym-B8Pqgf2V.js} +1 -1
- package/dist/assets/{BillDetailPage-BK2oSoHp-BFeSsGgs.js → BillDetailPage-BK2oSoHp-DJeXkc1z.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-DnhfBkGF-BTgajpli.js → BillPayApprovalRuleDetailPage-DnhfBkGF-B4v3_h6M.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-BNGn2rWa-Bx6XgguU.js → BillPayApprovalRulesPage-BNGn2rWa-DZGQNO8O.js} +1 -1
- package/dist/assets/{BillPayPromoPage-BR2HUX9q-_kssIuSS.js → BillPayPromoPage-BR2HUX9q-B68iHTuK.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CF1wBGUG-Cgzc2x0O.js → BillPaySetUpPage-CF1wBGUG-O6uep3DJ.js} +1 -1
- package/dist/assets/{BillingSettingsPage-BwS4mUax-DmkifiOd.js → BillingSettingsPage-BwS4mUax-DrL8qefL.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-D1MBWo1c-C9aUdpW7.js → BillsBulkReviewDrawerPage-D1MBWo1c-CCagQoif.js} +1 -1
- package/dist/assets/{BoxItem-BPwFzk70-fZUDwlZ6.js → BoxItem-BPwFzk70-BXqfIpjn.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-DBK52xwc-BIIdHV5Y.js → BusinessVerificationPage-DBK52xwc-DpMkl2Vg.js} +1 -1
- package/dist/assets/{CardNumberSubText-dZ1irCW_-34bn8CAs.js → CardNumberSubText-dZ1irCW_-BRwsGKQL.js} +1 -1
- package/dist/assets/{CashbackDetailPage-C_JqzxlJ-BWMW68f2.js → CashbackDetailPage-C_JqzxlJ-B5Fc15qV.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-zLGKbNXp-D4adnc1g.js → ChargeCardDetailPage-zLGKbNXp-D6lpVg7i.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BOiovXcX-BFNJvaAn.js → ChargeCardListPage-BOiovXcX-CgMfqhLM.js} +1 -1
- package/dist/assets/{ChargeCardListTable-B4rMq1dZ-GL0k6cYr.js → ChargeCardListTable-B4rMq1dZ-By10wzqi.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-BJINiZYC-BMqina4g.js → ChargeCardPromoPage-BJINiZYC-CDFItICy.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-CClkuaEC-CF4jS8Gp.js → ChargeCardSetupPage-CClkuaEC-Dk0aFNpw.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-DnnVjc0s-Bc4ZuXTj.js → ChargeCardStatementsPage-DnnVjc0s-DQ22z6RE.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-v_SCMxCz-Ddd2mxqR.js → CheckDepositDrawerPage-v_SCMxCz-M0zd4nkZ.js} +1 -1
- package/dist/assets/{CollapsableReportTable-CcJXUhk5-BB5w0-d0.js → CollapsableReportTable-CcJXUhk5-BjXRRYRA.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-CZ2_Bxab-DRzkD-Ct.js → CompanyOfficerDetailsSection-CZ2_Bxab-CUa4MwvE.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DZkuDI3D-DCb8SQV0.js → CompanyPassportCard-DZkuDI3D-CJqRpgWk.js} +1 -1
- package/dist/assets/{CompanyPassportPage-BdP_gm7U-By2oFjNM.js → CompanyPassportPage-BdP_gm7U-CZJKwKe6.js} +1 -1
- package/dist/assets/{CompleteProfile-DRK_kLAe-DmO5KniL.js → CompleteProfile-DRK_kLAe-Bijzy5fs.js} +1 -1
- package/dist/assets/{ConfettiBurst-BrCmqpgN-Dt_N8EQ6.js → ConfettiBurst-BrCmqpgN-BynbfJq1.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-BwLI03T8-DGP7qAou.js → CreateOrEditVendorPage-BwLI03T8-CwVpHqwE.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-BSYOs8-l-BrMNcMif.js → CreditCardPaymentDrawerPage-BSYOs8-l-C66s4fxk.js} +1 -1
- package/dist/assets/{CurrencySelectField-B_4B_9aF-CLVcRWIZ.js → CurrencySelectField-B_4B_9aF-qL4S0hSN.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BZFkFSTw-C4cyZzQe.js → CustomerOnboardingActivationPage-BZFkFSTw-Br1Y1RFt.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BXJQUW7p-DbQ9nUz4.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYvcKHG6-BvlJD_VQ.js → CustomerOnboardingDetailPageSkeleton-DYvcKHG6-DH0aoWxA.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-KYTPP6tX-C9suazFu.js → CustomerOnboardingNoStepsPage-KYTPP6tX-BdCuNlH1.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-C1o855J_-xrI-tley.js → CustomerOnboardingPage-C1o855J_-7Z7RuUHZ.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-B6_XfRee-QyfEUsdL.js → CustomerOnboardingProductSuitePage-B6_XfRee-CSU3-gqD.js} +1 -1
- package/dist/assets/{Dashboard-FTTHWU9i-BHVWRcnC.js → Dashboard-FTTHWU9i-DblTk1Bn.js} +1 -1
- package/dist/assets/{DashboardReportPage-bJB_ZM-P-BrRP2awy.js → DashboardReportPage-bJB_ZM-P-CFYJRXm1.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Bd0zh-Pv-qug8l3m7.js → DashboardSidebarBackgroundAnimation-Bd0zh-Pv-DkCl2vz2.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-a9hm23uZ-DaOlOJLL.js → DepositAccTransactionItem-a9hm23uZ-Dy1T6PbE.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BHoIdlzJ-BOK4iB36.js → DepositAccTransactionListPage-BHoIdlzJ-Cm3x9pAk.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-CR2NWUDZ-D4jNxpNj.js → DomesticWireDetailsPage-CR2NWUDZ-CNfDn-vn.js} +1 -1
- package/dist/assets/{DownloadOverlay-CGIlEzcv-BKgmgiW2.js → DownloadOverlay-CGIlEzcv-kLcG2xXY.js} +1 -1
- package/dist/assets/{DrawerPage-C4L7rhLd-wRX0O-og.js → DrawerPage-C4L7rhLd-JhMrexM1.js} +1 -1
- package/dist/assets/{EditPeoplePage-W_bqhMGG-BER3hwuK.js → EditPeoplePage-W_bqhMGG-RuYxE0Ie.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-MYiSJ04b-BboulfkK.js → EditReimbursementDetailPage-MYiSJ04b-Cd1B0Nt9.js} +1 -1
- package/dist/assets/{EntityDetailPage-0fAk2iLE-BArJn59d.js → EntityDetailPage-0fAk2iLE-ChzBwlTt.js} +1 -1
- package/dist/assets/{EntitySummarySection-Cl-xJolg-CdEjdMce.js → EntitySummarySection-Cl-xJolg-BUVy6FHQ.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-BzVUSpUz-CqslmsqE.js → ExpenseAutomationOverviewPage-BzVUSpUz-CH3J1F2V.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CzuKvnw8-CMwBxBjD.js → ExpenseAutomationPage-CzuKvnw8-B3XUuWnZ.js} +1 -1
- package/dist/assets/{ExpressPayPage-CXpbDpcG-D9QRFwz1.js → ExpressPayPage-CXpbDpcG-BAQXc0xj.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-BdWRpRXX-DWnIyNzh.js → FeaturePreviewPage-BdWRpRXX-ChyjOSfh.js} +1 -1
- package/dist/assets/{FollowStepsSection-Ck49QYUi-CdBWmonJ.js → FollowStepsSection-Ck49QYUi-CE8EsX5C.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-tl64OC_D-CWOBwYuR.js → GlobalReviewListPage-tl64OC_D-BuBWIxZv.js} +1 -1
- package/dist/assets/{InformationCardStack-BSLnJhVh-Dzfh7Zng.js → InformationCardStack-BSLnJhVh-BJF3c_HO.js} +1 -1
- package/dist/assets/{InsightsCardStack-upFCkt0d-Db8oCBQ4.js → InsightsCardStack-upFCkt0d-DhHbvz78.js} +1 -1
- package/dist/assets/{InsightsSection-B2f8NB4o-BwwnBAwA.js → InsightsSection-B2f8NB4o-DAnfZVmO.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-ApEA3NDk-B4UYPUJn.js → IntegrationsSettingsPage-ApEA3NDk-BnsEe8QA.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-pRXnBX8--CQwUQsvM.js → InternationalWireSwiftDetailsPage-pRXnBX8--Cl7O16Ub.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-C-SQJS8P-MZQ5BmXK.js → InternationalWireVerificationPage-C-SQJS8P-Cq1OuhBO.js} +1 -1
- package/dist/assets/{InviteFormPage-D0DAXYlY-B8rA0kr_.js → InviteFormPage-D0DAXYlY-CWz8NKNJ.js} +1 -1
- package/dist/assets/{InvitePageListView-BFVisGwy-DTsoLtCS.js → InvitePageListView-BFVisGwy-BJL_jYmE.js} +1 -1
- package/dist/assets/{InvitePeoplePage-BEzryxFQ-DkpF-V_f.js → InvitePeoplePage-BEzryxFQ-B5CrcNHA.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-DKXMH9_f-DrAynWSL.js → InvoiceUploadSection-DKXMH9_f-Cjt46uoB.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-BARWK3sa-CinijfuK.js → IssueChargeCardPage-BARWK3sa-Chkr_mda.js} +1 -1
- package/dist/assets/{LabeledAddressValue-eVBoTtqn-Dr5zAWXP.js → LabeledAddressValue-eVBoTtqn-qdpey4K5.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-DF2XP6wZ-BkNk4sE9.js → LabeledAddressValueField-DF2XP6wZ-QG5V2Jpf.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DEYSYf-J-D1Vmxi6J.js → LabeledControlledCheckBoxField-DEYSYf-J-CGJGV3ZM.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-CSfLkVof-BQMxKyOT.js → LabeledCreatableSingleSelectField-CSfLkVof-3ejxeY5w.js} +1 -1
- package/dist/assets/{LabeledDocumentField-DdVw-K0--DsqVXCTa.js → LabeledDocumentField-DdVw-K0--BTnSeJmK.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-6_OAT7xy-Dm7dpfGF.js → LabeledDropDownFormattedTextField-6_OAT7xy-BnV6AlPk.js} +1 -1
- package/dist/assets/{LabeledText-R8i6QoET-B3nfKnFZ.js → LabeledText-R8i6QoET-D2nT-MAs.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BMJT6dfe-Jsee4jIv.js → LabeledUserSingleSelectWithSubtitlesField-BMJT6dfe-_KrlTupf.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-BNytFxUn-CVSAv1ZC.js → LabeledZeniRolesDropDownField-BNytFxUn-BP1v4jh0.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-DNhlMdQ7-lq0pwlUM.js → LinkJETransactionPage-DNhlMdQ7-Db-I9ft0.js} +1 -1
- package/dist/assets/{LockCardPage-CxKPs84u-DWkoAf-t.js → LockCardPage-CxKPs84u-Duj3THK9.js} +1 -1
- package/dist/assets/{LowBalancePopup-pumriZyO-Draylozm.js → LowBalancePopup-pumriZyO-DMrl7bFF.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-DmnrTJMS-CmLTFAhG.js → MagicLinkACHDetailsPage-DmnrTJMS-CJD8fyXG.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-CLBWijcR-D0vaRP-J.js → MagicLinkDomesticWireDetailsPage-CLBWijcR-tIB3f4vf.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-DnZ1xXH_-Cpks1XdT.js → MagicLinkInternationalWireDetailsPage-DnZ1xXH_-Dj-VB3kn.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-CzWtXlBo-sL1L9Hc7.js → MagicLinkSuccessPage-CzWtXlBo-EYVQtaAj.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-B7L3P3Ac-Bv2YTSel.js → MagicLinkTitleSection-B7L3P3Ac-C4Z40JeB.js} +1 -1
- package/dist/assets/{MailingDetailsSection-XEIU22Nu-BTqT0cuE.js → MailingDetailsSection-XEIU22Nu-CxCV7JmV.js} +1 -1
- package/dist/assets/{Menu-6F194E28-BRLJH1zc.js → Menu-6F194E28-2iv61K6i.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-ClYTuULD-nhyRKlOG.js → MyBankConnectionsSettingsPage-ClYTuULD-CPonH-nn.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-CGdernIl-Dlo0Ve0L.js → MyPendingActivationChargeCardListPage-CGdernIl-CSsDws0T.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-BiUcDLvo-pMNgWuSF.js → MyProfileSettingsPage-BiUcDLvo-Bl0gQrn9.js} +1 -1
- package/dist/assets/{NavBarWithPicker-_-ZjAFN_-tfQt1OKn.js → NavBarWithPicker-_-ZjAFN_-BPpWfito.js} +1 -1
- package/dist/assets/{NavigationArrow-_y8iIetO-DSMr6St_.js → NavigationArrow-_y8iIetO-CSMUZsUt.js} +1 -1
- package/dist/assets/{NavigationDots-CLIto8Du-vkiM_7C5.js → NavigationDots-CLIto8Du-DjKV6gOD.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-Dw82QzKG-cPbb75E6.js → NewGlobalMerchantPage-Dw82QzKG-DvBqpIdS.js} +1 -1
- package/dist/assets/{NoDataChart-CGJiBbL5-B2qOpeqX.js → NoDataChart-CGJiBbL5-BsDdYQo3.js} +1 -1
- package/dist/assets/{NoDataTable-DXI7pAwU-DZV1VEwp.js → NoDataTable-DXI7pAwU-CM5sQI2l.js} +1 -1
- package/dist/assets/{NotFoundPage-aQvWSBB4-DRYeezlv.js → NotFoundPage-aQvWSBB4-BRj98ddZ.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-UWPLoqAx-_GoDULyD.js → NotificationSettingsPage-UWPLoqAx-DlZgWM4V.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CcVmJLd9-BRk8_PBR.js → NotificationsListConfig-CcVmJLd9-CmRQfelJ.js} +1 -1
- package/dist/assets/{NotificationsPage-WOiZ6P2a-DOBn-zrY.js → NotificationsPage-WOiZ6P2a-D2lHf45_.js} +1 -1
- package/dist/assets/{OpExByVendorPage-Czuf3hUD-BHWP9zXC.js → OpExByVendorPage-Czuf3hUD-25IkYF7O.js} +1 -1
- package/dist/assets/{OverlayContainerPage-BKHs_4eI-BPD9ZvHX.js → OverlayContainerPage-BKHs_4eI-BkyImQ99.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-u3LxSAUm-O2NJ8JN9.js → PandLWithForecastPage-u3LxSAUm-DJjg2a8s.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-KH90MNZj-4fOLZHZH.js → PaymentAccountSetupBillingAddressSection-KH90MNZj-D-I2Y301.js} +1 -1
- package/dist/assets/{PeoplePage-QTZMkkM6-QSMSleF3.js → PeoplePage-QTZMkkM6-CMQJ_038.js} +1 -1
- package/dist/assets/{ProductsCarousel-B41eMd74-sWAxoq6p.js → ProductsCarousel-B41eMd74-DrV4ZNL5.js} +1 -1
- package/dist/assets/{PromoBaseCards-y3l9Sc__-tEF5P3OO.js → PromoBaseCards-y3l9Sc__-C6fYBMfM.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CRHlDQYb-BIOuoX89.js → QBOConnectionDialog-CRHlDQYb-oBA5W_xR.js} +1 -1
- package/dist/assets/{QBOSetupSection-CpGkp1OV-BdhNKnyA.js → QBOSetupSection-CpGkp1OV-_VngXxWB.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-DZqbsPgv-D4HiTItQ.js → ReimbursementApprovalRuleDetailPage-DZqbsPgv-BiINACsW.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-BbMRRChu-C--j8PD_.js → ReimbursementApprovalRulesPage-BbMRRChu-BVPjCECM.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-QdocM_vT-Bsa3GCHg.js → ReimbursementDetailPage-QdocM_vT-CZK3oDDM.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-D9WxVDF--DOHRa5Fw.js → ReimbursementPromoPage-D9WxVDF--Bdu8Dki-.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-BkjvoOYH-B3wVLz1K.js → ReimbursementSetUpPage-BkjvoOYH-0x9G683Z.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DSSj0aF8-85iq6oXv.js → ReimbursementsBulkReviewDrawerPage-DSSj0aF8-CKzpnAZR.js} +1 -1
- package/dist/assets/{ReloadCard-Dg3vfc18-BKK4fX1H.js → ReloadCard-Dg3vfc18-CgsH0jaT.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-7fjnfeAW-DpeIRyfh.js → ReportTableViewSelector-7fjnfeAW-g0xF37QY.js} +1 -1
- package/dist/assets/{ReportsPage-BNN-qVnT-Bd5p3ZN6.js → ReportsPage-BNN-qVnT-Dya6aFdh.js} +1 -1
- package/dist/assets/{RevenueChart-CMaNRfRM-6jpea8-a.js → RevenueChart-CMaNRfRM-yZfsOdVw.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-CGs0NDrV-CQy4mt2a.js → ReviewDetailsPage-CGs0NDrV-BYszd--j.js} +1 -1
- package/dist/assets/{ReviewOverlay-CwU0ZK5O-D-68VTJY.js → ReviewOverlay-CwU0ZK5O-CHbyKLID.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DmAYuJGo-AK6hcMvZ.js → RoleWithToolTip-DmAYuJGo-CX4UbYVw.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-TI2uKcec-B5w8zYGw.js → ScheduleDetailsFixedAssetsPage-TI2uKcec-BPXdsPqU.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BZwoFX7Q-B9YAyb7E.js → ScheduleDetailsPage-BZwoFX7Q-Ci9x6uNM.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-Bjc3OMeM-BsRWulQF.js → ScheduleSequenceTable-Bjc3OMeM-vr1nPwGg.js} +1 -1
- package/dist/assets/{ScreenRoutes-f9SE5Iy1.js → ScreenRoutes-DsbAkEqK.js} +1 -1
- package/dist/assets/{SetUpAccountSection-MjL7GjKE-B2NEEcPr.js → SetUpAccountSection-MjL7GjKE-CHxPqvT3.js} +1 -1
- package/dist/assets/{SignIn-BAh_EEoN-Cb0Cnng-.js → SignIn-BAh_EEoN-Cw5OeZFq.js} +1 -1
- package/dist/assets/{SignInScreen-BI3jBBJT.js → SignInScreen-C5yY1Dem.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-Bjvv_rMV-Bxlcxmnb.js → SpendManagementListViewPage-Bjvv_rMV-CV6l7mMW.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-Bg_bB06V-xOwqVULS.js → SpendManagementPerTabPage-Bg_bB06V-DkrQXUpv.js} +1 -1
- package/dist/assets/{SpendManagementSection-BR8QYszb-DtQ8Wcj2.js → SpendManagementSection-BR8QYszb-CbMz6Nsb.js} +1 -1
- package/dist/assets/{StatementItem-u8ZKTmXX-C5IiWurQ.js → StatementItem-u8ZKTmXX-DLVEauMD.js} +1 -1
- package/dist/assets/{StatementsPage-6Fba2JtL-DNkO0Pab.js → StatementsPage-6Fba2JtL-8ABommoU.js} +1 -1
- package/dist/assets/{StatusSwitcher-Dv2SgIW0-eXTsGEHd.js → StatusSwitcher-Dv2SgIW0-CRvw7ZQl.js} +1 -1
- package/dist/assets/{SubTabSwitcher-BOphKmVH-_i6fG3t0.js → SubTabSwitcher-BOphKmVH-B6MCowie.js} +1 -1
- package/dist/assets/{SummaryCard-Cu63Ml3e-DMjN2JiK.js → SummaryCard-Cu63Ml3e-D4VaaZYy.js} +1 -1
- package/dist/assets/{TaskManagementPage-BsVKOwvY-BHSo74mT.js → TaskManagementPage-BsVKOwvY-CSsJmIME.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-Bp1_pTol-BmRZJs6N.js → TimeRangeSwitcher-Bp1_pTol-DV-l7qx7.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-rTLFqHH2-DztT92o8.js → TimeframeSwitcher-rTLFqHH2-CpjSLG-m.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-D-S1ltHl-BhBf7d8W.js → TimeframeSwitcherWithToggle-D-S1ltHl-V_UCOcrn.js} +1 -1
- package/dist/assets/{TopExCard-BHc2xYbP-BDSI3q-8.js → TopExCard-BHc2xYbP-DETRqd6Y.js} +1 -1
- package/dist/assets/{TopExDetailPage-CHl6A0K6-B3MTesWP.js → TopExDetailPage-CHl6A0K6-C17iddD4.js} +1 -1
- package/dist/assets/{TransactionDetailPage-BCd0982f-DmsrgF67.js → TransactionDetailPage-BCd0982f-DV3mW4Cj.js} +1 -1
- package/dist/assets/{TransactionList-0867BAwL-BbN0GY86.js → TransactionList-0867BAwL-Bsh07y3Y.js} +1 -1
- package/dist/assets/{TransactionListBig-BFvk5By8-CyDZmiFB.js → TransactionListBig-BFvk5By8-DZz2DNAU.js} +1 -1
- package/dist/assets/{TransactionListPage-CVso3-Sq-BUp5wVoR.js → TransactionListPage-CVso3-Sq-Berg9rXE.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CFBouGmI-sgKopRbu.js → TransactionVendorDetailPage-CFBouGmI-D_BEl8MU.js} +1 -1
- package/dist/assets/{TransferDrawerPage-Bwy8yQcL-Bxek4sVY.js → TransferDrawerPage-Bwy8yQcL-CeMCTwrL.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-CrBGDHGH-D2QukEcJ.js → TreasuryOverviewPage-CrBGDHGH-DV2GF9NG.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BJNoMR_d-xK5Lb0L0.js → TreasuryPromoPage-BJNoMR_d-DRZ0zwX0.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-BzhOeW1p-BJbzl0TE.js → TreasuryStatementsPage-BzhOeW1p-CLIGXYhI.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-CRx4YBxQ-ChfSV2ew.js → TreasuryTaxLetterPage-CRx4YBxQ-DrTWHtdG.js} +1 -1
- package/dist/assets/{TrendChart-_yBtvLU9-COE0_A0D.js → TrendChart-_yBtvLU9-BojfAzs1.js} +1 -1
- package/dist/assets/{TrendWithTransactions-CGfGoz_E-D6M9VAg2.js → TrendWithTransactions-CGfGoz_E-CE-BNUEu.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-BmRsiyhx-BvxkHUtm.js → UncategorizedAccountsMappingPage-BmRsiyhx-uunrUW36.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-DXwy0NZm-xZJFT2BB.js → UnitIntegrationPage-DXwy0NZm-kp3ByBzr.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-DsDLbaGz-BstUgJ1X.js → UploadAdditionalDocumentOverlay-DsDLbaGz-R7ROuJyL.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CPEAYcom-8bxUbWrh.js → Vendor2FAPopup-CPEAYcom-DQ5eXTQV.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-Cz7BK4T9-DqFkAiiK.js → VendorACHDetailsPage-Cz7BK4T9-Bo8VpL79.js} +1 -1
- package/dist/assets/{VendorDetailPage-BJZuKt4M-JheoiaaN.js → VendorDetailPage-BJZuKt4M-jTWH9RWV.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-CTkPAcfP-BEsZa-dF.js → VendorDomesticWireDetailsPage-CTkPAcfP-DX36JdYt.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-B3mRsD_0-Da9rIP24.js → VendorFiling1099EditablePage-B3mRsD_0-DukHL1IY.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-CxzqIMuY-Ce9bSwew.js → VendorFirstReviewPage-CxzqIMuY-B_txWPe3.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-DX-yi7u1-HtcW_Lch.js → VendorInternationalWireDetailsPage-DX-yi7u1-D3cnWGkU.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CLdDD8_B--E6K0pgb.js → VendorInternationalWireSwiftDetailsPage-CLdDD8_B-BUJlV7G-.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-Di1ktFd--D6smdzr9.js → VendorsAccountsSection-Di1ktFd--B4GnQHxp.js} +1 -1
- package/dist/assets/{VerifyDevice-BVaWBX-g-C3K0ruRB.js → VerifyDevice-BVaWBX-g-DrQtsmsr.js} +1 -1
- package/dist/assets/{VideoPlayer-BVktA9zm-T4uPTDWi.js → VideoPlayer-BVktA9zm-0NoN4_H0.js} +1 -1
- package/dist/assets/{VideoPopup-Dd2qSy6d-CgHmsSYY.js → VideoPopup-Dd2qSy6d-DQA-fBwr.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-C3Uqokew-Bft2m727.js → WarningsDrawerPage-C3Uqokew-DtUzzuF2.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-I8HXJKWC-UUUHNqrK.js → ZeniAccountDetailPage-I8HXJKWC-3xy3JXIT.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-DOEc0490-DSCWGXJj.js → ZeniAccountListViewPage-DOEc0490-Cl63dsc-.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CpFq6HPl-BVpelMwF.js → ZeniAccountNavBarPieces-CpFq6HPl-B6g2LNE6.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-BZyIcGdq-BkpxdM6m.js → ZeniAccountPromoPage-BZyIcGdq-oKp4YXpG.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DfWkFoYj-D2RuslCT.js → ZeniAccountSetupPage-DfWkFoYj--3MDoe9z.js} +1 -1
- package/dist/assets/{ZeniCopyright-BXrMFMW9-CvjHxDSe.js → ZeniCopyright-BXrMFMW9-usCv-Izz.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CnQJYowS-DKyYdjRA.js → ZeniTransferAmountSlider-CnQJYowS-_jUBOPTu.js} +1 -1
- package/dist/assets/{analyticsHelper-DjKX8Y9I.js → analyticsHelper-B2hf7bze.js} +1 -1
- package/dist/assets/{analyticsHelper-B4DXRki4-Wpr8cJ1y.js → analyticsHelper-B4DXRki4-D2JAu39g.js} +1 -1
- package/dist/assets/{chartTypes-COSgAHt0-C0C66Tz8.js → chartTypes-COSgAHt0-DumxjDI3.js} +1 -1
- package/dist/assets/{commonDimensions-BKhS6mTi-BJCGH-wc.js → commonDimensions-BKhS6mTi-OeOQzWes.js} +1 -1
- package/dist/assets/{detailCommon-CJQExMa7-DVrCUwsk.js → detailCommon-CJQExMa7-jQWgPHkg.js} +1 -1
- package/dist/assets/{downloadPdf-Bru9fczY-C4Synbir.js → downloadPdf-Bru9fczY-Cy0zTKG6.js} +1 -1
- package/dist/assets/{index-BhnojtD5.js → index-DRuWBnqK.js} +4 -4
- package/dist/assets/{mapLoadingInProgressToTreeNode-DV8vIRaP-Bqnpe3QW.js → mapLoadingInProgressToTreeNode-DV8vIRaP-BhwpA0M5.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DCJ__ek0-CUZntkpb.js → mapSectionWithAcOnlyToTreeNode-DCJ__ek0-DXcoeNJU.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-CA9dSVnx-VXXHlg9U.js → mapSpacerToTreeNode-CA9dSVnx-BI69_8HR.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BO_g8R5Q-CJ2EVrlN.js → mapTimeframeBalancesToTreeNode-BO_g8R5Q-hcThP2BC.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-Be9Kacde-BNZaDq3u.js → mapTimeframeBalancesToTreeNode-Be9Kacde-CnxHW9i6.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dn7xO_6A-B7iraVel.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dn7xO_6A-Ds2JhE0U.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DTZGQ336-CiSdq2JW.js → toCOABalancesWithID-DTZGQ336-C5g89Gde.js} +1 -1
- package/dist/assets/{toChartData-Dqwt7ax6-BHUA0e4y.js → toChartData-Dqwt7ax6-RJLJhrRW.js} +1 -1
- package/dist/assets/{uploadAttachment-6mcNX-M3-C72jRix6.js → uploadAttachment-6mcNX-M3-B0tTVHZs.js} +1 -1
- package/dist/assets/{uploadReceipts-Dp1dvCjf-DgePMo9X.js → uploadReceipts-Dp1dvCjf-CVmz8CMd.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-BXJQUW7p-CPpxWiwM.js +0 -1
package/dist/assets/{BillDetailPage-BK2oSoHp-BFeSsGgs.js → BillDetailPage-BK2oSoHp-DJeXkc1z.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as Fn,ax as En,d as _n,gu as Wn,gv as Zn,gw as Kn,gx as Vn,cs as Gn,aP as Un,z as Hn,y as u,j as t,l as E,fl as st,fm as qn,o as a,fn as Jn,fo as Xn,aM as b,fp as Yn,aN as Ae,fq as Qn,bG as dt,bt as ct,dO as pt,cE as mt,cF as ut,cG as yt,gy as ea,gz as ta,gA as na,gB as aa,fv as $,fw as I,fx as A,gC as k,fu as ia,b as ht,p as le,fy as Lt,fz as la,fA as oa,fB as ra,gD as sa,gE as da,aQ as ca,ap as bt,c6 as Te,gF as pa,gG as L,u as r,aj as ma,ch as ua,gH as ya,T as ha,gI as ba,gJ as gt,fF as xt,B as ga,di as xa,cx as fa,b7 as wa,b9 as Ta,c as va,c8 as Ot,gK as Da,ai as Ft,aY as ja,b5 as $a,by as Ia,f3 as Aa,am as ka}from"./index-BhnojtD5.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as Sa}from"./liveblocks-8ht9CoL5.js";import{o as Ca,t as Pa}from"./LowBalancePopup-pumriZyO-Draylozm.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-CK1x27Ua.js";const Ba=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),za={formTitle:new ga("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ra,common:{noText:C,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:La},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:Oa}}}}=Hn.getLocalizedStrings(),ve=Ra.visual.MMMDCommaYYYYformat,Ai=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:K,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Gt,redirectToEditableBillScreen:Ut,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Be,deleteBill:Ht,cancelAndDeleteBill:ze,approveOrRejectBill:Re,onAddNewRule:qt,onAttachmentClick:Me,saveBillDetails:Jt,discardOutsideZeniPaymentData:Xt,onBackClick:Ne,updateEditRealTimeApproverClicked:Yt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Le=_n(),[nn,G]=p.useState(!1),[Oe,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,Y]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:Q}=p.useContext(ln),[on,U]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:H,isLoading:P}=Kn(T,"both",!1),f=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:H.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[H,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{Q(y),U(!1)},[Q,U]);p.useEffect(()=>{me?.threadId!=null&&H.length>0&&!P&&(Q(me.threadId),_e(null))},[me,H,P,Q,_e]),Gn({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Ge]=p.useState(!1),[Ue,He]=p.useState(!1),qe=()=>Ve(!1),cn=()=>Ve(!0),Je=Un(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),X())},[e,X,Be]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Je,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&q?.code?q:ne,S=Fa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:q?.code!=null&&(ne?.code=="approved"||q.code==="mark_as_paid")?q:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,Xe=()=>{e.transactionDetails?.id!=null&&Ut(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),G(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),G(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),G(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{G(!1),N.primaryButtonText===n.delete?Ht?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{G(!1),de(!1)}},gn={onOkClick:c=>{pe(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},xn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx($a,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,Ye=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{q as Fn,ax as En,d as _n,gu as Wn,gv as Zn,gw as Kn,gx as Vn,cs as Gn,aP as Un,z as Hn,y as u,j as t,l as E,fl as st,fm as qn,o as a,fn as Jn,fo as Xn,aM as b,fp as Yn,aN as Ae,fq as Qn,bG as dt,bt as ct,dO as pt,cE as mt,cF as ut,cG as yt,gy as ea,gz as ta,gA as na,gB as aa,fv as $,fw as I,fx as A,gC as k,fu as ia,b as ht,p as le,fy as Lt,fz as la,fA as oa,fB as ra,gD as sa,gE as da,aQ as ca,ap as bt,c6 as Te,gF as pa,gG as L,u as r,aj as ma,ch as ua,gH as ya,T as ha,gI as ba,gJ as gt,fF as xt,B as ga,di as xa,cx as fa,b7 as wa,b9 as Ta,c as va,c8 as Ot,gK as Da,ai as Ft,aY as ja,b5 as $a,by as Ia,f3 as Aa,am as ka}from"./index-DRuWBnqK.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as Sa}from"./liveblocks-8ht9CoL5.js";import{o as Ca,t as Pa}from"./LowBalancePopup-pumriZyO-DMrl7bFF.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-CK1x27Ua.js";const Ba=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),za={formTitle:new ga("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ra,common:{noText:C,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:La},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:Oa}}}}=Hn.getLocalizedStrings(),ve=Ra.visual.MMMDCommaYYYYformat,Ai=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:K,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Gt,redirectToEditableBillScreen:Ut,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Be,deleteBill:Ht,cancelAndDeleteBill:ze,approveOrRejectBill:Re,onAddNewRule:qt,onAttachmentClick:Me,saveBillDetails:Jt,discardOutsideZeniPaymentData:Xt,onBackClick:Ne,updateEditRealTimeApproverClicked:Yt,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Le=_n(),[nn,G]=p.useState(!1),[Oe,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,Y]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:Q}=p.useContext(ln),[on,U]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:H,isLoading:P}=Kn(T,"both",!1),f=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:H.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[H,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{Q(y),U(!1)},[Q,U]);p.useEffect(()=>{me?.threadId!=null&&H.length>0&&!P&&(Q(me.threadId),_e(null))},[me,H,P,Q,_e]),Gn({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Ge]=p.useState(!1),[Ue,He]=p.useState(!1),qe=()=>Ve(!1),cn=()=>Ve(!0),Je=Un(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),X())},[e,X,Be]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Je,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&q?.code?q:ne,S=Fa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:q?.code!=null&&(ne?.code=="approved"||q.code==="mark_as_paid")?q:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,Xe=()=>{e.transactionDetails?.id!=null&&Ut(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),G(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),G(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),G(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{G(!1),N.primaryButtonText===n.delete?Ht?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{G(!1),de(!1)}},gn={onOkClick:c=>{pe(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},xn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx($a,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,Ye=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
|
|
2
2
|
${Tt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ie=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,$n=ie!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ie?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Qe=e.transactionDetails?.billPayInfo.expectedDepositDate??$n,et=st(s?.paymentType?.method??"").replace("Same Day",""),In=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(qn,{paymentTypeLabel:et,onClick:cn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,An=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Da,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,tt=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,ge=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&tt),nt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&tt),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,fe=e.zeniAssist?.isEligibleForRefund===!0,kn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Sn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||fe)&&kn===!1,we=xe||fe,Cn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,_=D?.code,Pn=!Cn&&(!Ye||D?.code==="processing"&&!B),at=!Ye,it=["small","medium-compact","medium-regular"].includes(l),J=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),F=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Bn=!J&&(_!=="processing"&&nt||_==="processing"&&!B||_==="processing"&&at||g&&F&&Se),zn=c=>{M.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",w?.code??"",D?.code??""),Jt(!0,Ue,c)},lt=()=>{Ge(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Rn=()=>{He(!0),lt()},Mn=()=>{Xt(),Ge(!1),Ue&&He(!1)},Nn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),W=Gt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,ot=()=>{Ke("approved"),Ee===!0&&Y(!1),W!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},Ln=()=>{Ke("rejected"),W!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),pe(!0)},rt=p.useRef(null);return t.jsxs(Qa,{windowSize:l,ref:rt,children:[t.jsx(Xn,{anchor:"right",open:sn,onClose:qe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Yn,{companyName:Qn(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:et,amount:Ae("0,0.[00]",be),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:qe})}),t.jsxs(ai,{windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(dt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Le.colors.grey4,rightSideComponent:t.jsxs(St,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),source:"BillDetailPage"}):t.jsx(dt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(St,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),U(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx(It,{})}),enableTitleOnScroll:!0,scrollableContent:rt,source:"BillDetailPage"})}),t.jsxs(ii,{windowSize:l,children:[Ee?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:ot,onCancelClick:()=>{Y(!1),Xe()},onClickAway:()=>{Y(!1)}}):null,dn?t.jsx(Pa,{onCancel:Mn,onProceedForMarkAsPaid:zn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||se?t.jsx(mt,{titleComponent:t.jsx(yt,{children:N.title}),descriptionComponent:t.jsx(ut,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:se?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:bn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:se?Ea(l,e):null}):null,an?t.jsx(mt,{titleComponent:t.jsx(yt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ut,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:gn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(oi,{windowSize:l,children:[l!=="small"?t.jsxs(ri,{windowSize:l,children:[ye,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,K&&S!=null&&S.code==="deleted"?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(ea,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ta,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Za(J,e,W),t.jsx(na,{sectionId:aa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:ue,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:j},text:ae.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:j},text:ae.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:j},text:ae.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:j},text:ae.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(li,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),he.length>0?he.map((c,y)=>{const z=e?.transactionDetails?.lines?.find(On=>On.id===c.lineId)?.recipientAmount;return t.jsxs(ei,{children:[he.length>1?t.jsx(ti,{windowSize:l,children:t.jsx(ni,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:j},text:z!=null?Ae("0,0[.]00",z):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:j},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("account",y)}`},children:t.jsx(k,{label:{label:n.category,width:j},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("class",y)}`},children:t.jsx(k,{label:{label:n.class,width:j},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("billable",y)}`},children:t.jsx(k,{label:{label:n.billable,width:j},text:c.billable!=null?wn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("customer",y)}`},children:t.jsx(k,{label:{label:n.customer,width:j},text:c.customer?.name??C,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(si,{windowSize:l,children:[t.jsx(di,{children:n.total}),t.jsx(ci,{children:be!=null?t.jsx(ia,{amount:be,integerStyles:ht.h6Medium.cssObject,decimalStyles:ht.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Lt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:le.brandColorGoldDark},additionalInfoLabel:W!=null&&w?.code==="pending_approval"?Et.addMoney:W})}),t.jsx(R,{})]}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Zt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Va,{children:la(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?Wa(e.outsideZeniPaymentInfo):st(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:j},text:s.paymentToBankAccount!=null?vn:s.paymentToPI!=null?s.paymentToPI.displayText:Dn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:jn(),additionalInfoLabel:t.jsx(Ka,{children:In})}),An()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ra(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:oa(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(yi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(sa,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ft.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(da,{amount:fn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:qt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:_t,signedInUserId:oe?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Yt,onSaveRealTimeApprovals:Qt},historicActivities:e.billHistory.activities}),t.jsx(pi,{})]}),e.transactionDetails?.vendor!=null&&!ue&&!e.transactionDetails.isDeleted?t.jsx(ca,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:V||g,showCancel:!V&&g,cancelBtn:{label:it?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Ln,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:_a(V,it),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:V?lt:()=>{W!=null?Y(!0):ot()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:V?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ga,{children:t.jsxs(Ya,{windowSize:l,children:[!J&&Oe?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[_!=="processing"&&nt?t.jsx(Z,{onClick:mn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,_==="processing"&&!B?t.jsx(Z,{onClick:un,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,_==="processing"&&at?t.jsx(Z,{onClick:yn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&Se?t.jsx(Z,{onClick:Rn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(Z,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,fe?t.jsx(Z,{onClick:hn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Xa,{windowSize:l,children:[Sn===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:we?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:we,"data-testid":b("other-actions-icon-container"),children:we?t.jsx(xn,{}):t.jsx(Ha,{})})}):null,!J&&ge===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:La,placement:"top",children:t.jsx(Ja,{onClick:Xe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(qa,{})})}):null,!J&&Pn===!0&&Bn?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Na,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ua,{onClick:()=>re(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Sa,{id:v,children:t.jsx(pa,{isDrawerOpen:on,allowComposer:!0,drawerTitle:Oa,threads:H,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:Nn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>U(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Le.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Fa=(e,x)=>{const g=e?.code;if(e!=null&&g!=null)return x?.isDeleted===!0?{value:ke.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&x?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[g].color,bgColor:L[g].bgColor,borderColor:L[g].borderColor}},Ea=(e,x)=>{const g=x.transactionDetails?.recipientTotalAmount;return t.jsxs(hi,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Rt,{children:x.withdrawFrom!=null?Lt(x.withdrawFrom,e):d})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Rt,{children:g!=null?Ae("0,0[.]00",g):C})]})]})},_a=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,Wa=e=>{const x=e.paymentMode,g=n.paymentOutsideZeni.offline;if(x==null||x==="other")return g;const K=n.paymentOutsideZeni.paymentModeOptions.find(oe=>oe.value===x)?.label;return`${g} ${Ma} ${K}`},Za=(e,x,g)=>{if(e)return t.jsx(gt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:wt.duplicateWarning.title,description:wt.duplicateWarning.description});if(g!=null){const K=`${x.withdrawFrom?.label??""} ${x.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(gt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",K)}`,description:g.replace("Low balance! ","")})}else return null},Ka=i.div``,Va=i.div``,Ga=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as V,u as U,q as O,z as L,aa as G,aP as M,j as o,aJ as W,cT as J,bG as Q,ad as X,aQ as Z,o as c}from"./index-
|
|
1
|
+
import{y as V,u as U,q as O,z as L,aa as G,aP as M,j as o,aJ as W,cT as J,bG as Q,ad as X,aQ as Z,o as c}from"./index-DRuWBnqK.js";import{b as R,n as h}from"./vendor-Bs1fkIUX.js";import{b as H,f as K,l as j,o as D}from"./FollowStepsSection-Ck49QYUi-CE8EsX5C.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const T="billPayApprovalRuleDetailPage",N="lowerBound",E="upperBound",y="steps",Y={footerPadding:new V(U[2],U[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 P=O(),a=L.getLocalizedStrings().commonSetUp.approval,I=L.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=M(u?.fetchState),{upperBound:B}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),q=async(i,d)=>{r(d)};return R.useEffect(()=>{const i=v.watch((d,{name:$})=>{if($!=null&&d!=null){const z=W(d);J(()=>q($,z))}});return()=>{i.unsubscribe()}}),R.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&S()},[w,u?.fetchState,S]),o.jsxs(re,{children:[o.jsx(Q,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(X,{...v,children:o.jsx("form",{id:C(T),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(H,{label:{label:A?I.amountPerBillGreaterLabel:I.amountPerBillLabel},firstText:{type:"number",name:N,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:A,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(K,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(Z,{formId:C(T),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(P)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),D(e.allAttributes),D(e.filteredAttributes),r??[])??[],[N]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:j},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),C=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as B,z as v,j as t,bG as D,_ as E,aM as b,y as r,am as I,aN as j,cE as G,cF as H,cG as U,o as i,de as V,u as l,b9 as _,B as z,b8 as q,p as S,db as F,by as J,b as K}from"./index-
|
|
1
|
+
import{q as B,z as v,j as t,bG as D,_ as E,aM as b,y as r,am as I,aN as j,cE as G,cF as H,cG as U,o as i,de as V,u as l,b9 as _,B as z,b8 as q,p as S,db as F,by as J,b as K}from"./index-DRuWBnqK.js";import{n as o,b as O}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.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")},X=({showDeleteBtn:e=!1,isLastSection:y=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:$})=>{const[m,x]=O.useState(!1),n=B(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=v.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(Y,{windowSize:n,isLastSection:y,children:[t.jsxs(Z,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Q,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(C,{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:()=>{f(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(R,{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(R,{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(G,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(H,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Y=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-BR2HUX9q-_kssIuSS.js → BillPayPromoPage-BR2HUX9q-B68iHTuK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ax as _,q as $,aP as ee,l as g,z as M,j as e,fG as ie,bG as le,n as B,aM as C,af as x,o as l,ar as se,a as oe,d as U,aS as A,an as re,y as te,p as S,cS as ae,aT as ne,ba as de,u as ce}from"./index-
|
|
1
|
+
import{ax as _,q as $,aP as ee,l as g,z as M,j as e,fG as ie,bG as le,n as B,aM as C,af as x,o as l,ar as se,a as oe,d as U,aS as A,an as re,y as te,p as S,cS as ae,aT as ne,ba as de,u as ce}from"./index-DRuWBnqK.js";import{b as u,n as s}from"./vendor-Bs1fkIUX.js";import{f as pe}from"./VideoPopup-Dd2qSy6d-DQA-fBwr.js";import{M as z}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./VideoPlayer-BVktA9zm-0NoN4_H0.js";const L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",I="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new te(ce[5],44)},me=s.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-CF1wBGUG-Cgzc2x0O.js → BillPaySetUpPage-CF1wBGUG-O6uep3DJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as Oe,q as _e,aP as V,aa as Re,cT as Ue,z as De,l as He,aU as Z,j as t,fo as ze,aM as Le,p as Me,y as u,bG as qe,_ as Ne,ad as Ge,fH as H,e7 as Je,fI as Ke,bB as Qe,dZ as Ze,c6 as Xe,fJ as Ye,aQ as et,o as L,fK as tt,u as a,am as it,bQ as nt}from"./index-
|
|
1
|
+
import{d as Oe,q as _e,aP as V,aa as Re,cT as Ue,z as De,l as He,aU as Z,j as t,fo as ze,aM as Le,p as Me,y as u,bG as qe,_ as Ne,ad as Ge,fH as H,e7 as Je,fI as Ke,bB as Qe,dZ as Ze,c6 as Xe,fJ as Ye,aQ as et,o as L,fK as tt,u as a,am as it,bQ as nt}from"./index-DRuWBnqK.js";import{b as g,n as m}from"./vendor-Bs1fkIUX.js";import"./SetUpAccountSection-MjL7GjKE-CHxPqvT3.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DsDLbaGz-R7ROuJyL.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},X="billPaySetUpPage",E="billPayAccount",vt=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:M,onClickMenuIcon:ye,onInternationPaymentSetUpClick:be,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=_e(),[k,b]=g.useState(!1),q=g.useRef(null),{fetchState:p,updateStatus:S,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,O=$.link_account.updateStatus,_=$.update_account.updateStatus,B=V(p),J=V(S.fetchState),K=V(O.fetchState),Q=V(_.fetchState),P=Re({mode:"all",reValidateMode:"onChange",defaultValues:g.useMemo(()=>z(e),[e]),values:z(e)});g.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&b(!0),k&&B==="In-Progress"&&p==="Completed"&&b(!1)},[c,p,B]),g.useEffect(()=>{(B==="In-Progress"&&p==="Completed"||K==="In-Progress"&&O.fetchState==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed")&&P.reset(z(e))},[B,p,P,e,K,O.fetchState,Q,_.fetchState]);const Be=P.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Ie=async(x,F)=>{const o=F[E];if(x.includes(E)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=N.find(D=>D.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(D=>D.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};g.useEffect(()=>{const x=P.watch((F,{name:o})=>{o!=null&&F!=null&&Ue(()=>Ie(o,F))});return()=>{x.unsubscribe()}}),g.useEffect(()=>{J==="In-Progress"&&S.fetchState==="Completed"&&M()},[M,J,S.fetchState]);const{commonSetUp:Fe,spendManagement:Ve}=De.getLocalizedStrings(),{setUp:d}=Fe,{billPaySetup:l}=Ve.billPay,R=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),U=A?.isBillPayEnabled===!0,Ee=R?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new Z(C.colors.brandColorJadeLight):new Z(C.colors.brandColorJadeDark),$e=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?b(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>b(!1),style:{backgroundColor:Me.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:S,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:xe,companyOfficer:c,onClose:()=>b(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!U&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:q,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(dt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...P,children:t.jsx("form",{id:Y(X),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Ke,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{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:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ze,{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})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),be?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),R&&!U&&j.length>0?t.jsx(et,{formId:Y(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:S.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(tt,{isFooterRendered:R&&!U,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=m.div``,lt=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as fe,q as Ce,aa as be,cT as xe,aU as k,z as Pe,j as t,y as x,bG as Ae,_ as Ie,ad as ve,bB as je,cU as ke,aQ as $e,o as s,hW as Be,dk as Te,dl as Ee,u as P,am as Ve,h2 as ze,B as Le,p as De}from"./index-
|
|
1
|
+
import{d as fe,q as Ce,aa as be,cT as xe,aU as k,z as Pe,j as t,y as x,bG as Ae,_ as Ie,ad as ve,bB as je,cU as ke,aQ as $e,o as s,hW as Be,dk as Te,dl as Ee,u as P,am as Ve,h2 as ze,B as Le,p as De}from"./index-DRuWBnqK.js";import{b as _,n as r}from"./vendor-Bs1fkIUX.js";import{M as Oe,r as R,o as Me}from"./PaymentAccountSetupBillingAddressSection-KH90MNZj-D-I2Y301.js";import{N as We}from"./SetUpAccountSection-MjL7GjKE-CHxPqvT3.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";const p={titleWidth:new x(343,580,726,826),setupDetailsRowGap:new x(12,P[5],P[5]),iconWidthHeight:new x(20,P[4]),subTitlePaddingTop:new x(12,P[3])},_e={title:new Le("standardSemiBold","largeSemiBold")},U="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",rt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:F,stripeKey:K,googleAPIKey:q,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const C=fe(),i=Ce(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:B},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,T=y?.providerVerificationStatus,ue=B.fetchState==="In-Progress"||B.fetchState==="Not-Started",S=be({mode:"onSubmit",reValidateMode:"onChange",defaultValues:H(a),values:H(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),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=Te(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Ee(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};_.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&xe(()=>me(h,o))});return()=>{c.unsubscribe()}});const V=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:z}=Pe.getLocalizedStrings(),ge=z.section.subTitle,{text:ye,subText:Se}=he,L=m.cardsList.length>0,D=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,b=Oe(w.header,w.titleText,w.protectedCardNo,m);let M;L&&(M={header:b.header,title:b.title,subtitle:b.subtitle,status:b.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:R(D).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:R(D).name}),color:new k(V)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[W,we]=_.useState(!1);return t.jsxs(Ue,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:z.section.title,backgroundColor:C.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(Re,{windowSize:i,children:[t.jsx(He,{windowSize:i,children:ge}),ue?t.jsx(Ne,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:N(U),onSubmit:pe,children:t.jsxs(Fe,{windowSize:i,children:[t.jsx(We,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:T?.code==="require_info"||T?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:W}),Ke(i,l.headers.billingAddress,ce,q,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:N(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:F.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:W,setCardSetupInProgress:we})]})},H=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]:Be(n,e.subscriptionBillingAddress)[n]}},Re=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as V,j as b,cE as q,cF as z,cG as M,ki as W,l as X,aX as G}from"./index-
|
|
1
|
+
import{z as V,j as b,cE as q,cF as z,cG as M,ki as W,l as X,aX as G}from"./index-DRuWBnqK.js";import{b as _}from"./vendor-Bs1fkIUX.js";import{u as Y}from"./ReviewOverlay-CwU0ZK5O-CHbyKLID.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.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(E(t,u)),[p,k]=_.useState(u),[I,T]=_.useState(0),[f,j]=_.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});_.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===I?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),I===s.length&&p&&(k(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(E(t,!1)),()=>{clearInterval(x)}),[s.length,I,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:S}=H(y);j({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},A={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,Z(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=J(m,y,R,p),P=t.fetchState==="Completed"&&y===0,U=()=>{r.trackBillPayBulkSubmit(i,g,w),l(i)},D={label:P?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:U,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:F,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[B?b.jsx(q,{titleComponent:b.jsx(M,{children:f.title}),descriptionComponent:b.jsx(z,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:A,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{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:L,hideCancel:P}})]})},E=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:G("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&X.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},Z=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=W([...l,e.isRecurring?"recurring":"one-time"])}),l},H=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},J=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is: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}},K=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,Z as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as h,j as s,aM as b,o as r}from"./index-
|
|
1
|
+
import{q as h,j as s,aM as b,o as r}from"./index-DRuWBnqK.js";import{n as p}from"./vendor-Bs1fkIUX.js";import{o as l}from"./commonDimensions-BKhS6mTi-OeOQzWes.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=h();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(a,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const a=p.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ct,q as dt,aP as ve,j as a,z as Ve,af as G,aa as mt,d5 as ut,l as L,az as pt,cT as ft,aX as De,aO as $e,gn as yt,n as ht,bG as gt,aM as xt,cU as St,cE as wt,cF as Ct,cG as Tt,_ as bt,ad as vt,aQ as Dt,o,y as j,an as Fe,go as $t,fV as ke,dk as kt,a as It,T as Pt,am as Le,B as jt,M as Nt,u as k}from"./index-BhnojtD5.js";import{b as N,n as d}from"./vendor-Bs1fkIUX.js";import{b as Ot,s as Vt}from"./CompanyOfficerDetailsSection-CZ2_Bxab-DRzkD-Ct.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./LabeledAddressValueField-DF2XP6wZ-BkNk4sE9.js";import"./LabeledCreatableSingleSelectField-CSfLkVof-BQMxKyOT.js";import"./LabeledDocumentField-DdVw-K0--DsqVXCTa.js";const x={width:new j(343,580,726),titleWidth:new j(343,580,726,826),subTitlePaddingTop:new j(12,k[3]),subTitlePaddingBottom:new j(k[3],k[3]),verificationDetailsRowGap:new j(12,k[5],k[5]),termsPaddingLeftRight:new j(k[0],k[3])},Ft={stepTitle:new jt("h6Regular","h5Regular")},Ie="businessVerificationPage",T="companyDetails",b="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Lt,currency:Pe,footer:je,strings:{empty:At}}}=Ve.getLocalizedStrings(),ya=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:O,isRefreshingViewInBackground:B,filesEndPoint:r,authParams:_,productType:y,allIndustries:E,companyTitles:z,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Be,onBackClick:V,onGetOtp:_e,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Xe})=>{const Qe=ct(),m=dt(),{updateStatus:M,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Je=ve(M.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=U==="unit"?a.jsxs(Gt,{children:[i.terms.term1,a.jsx(G,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(G,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(G,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(G,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,X]=N.useState(!1),[W,oe]=N.useState("save"),[Q,Ze]=N.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(t,E,z,A)}),{isValid:He}=u.formState,J=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,et=()=>{const e=w[D],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,me=e?.titleAtCompany,ue=e?.documentTypeSelectedForVerification,pe=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?L.getFormattedAddress(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Ce=ee?.firstName,Te=ee?.lastName,be=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&Ce!=null&&Te!=null&&be!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:Te,email:be},y,n?"Settings":void 0)},tt=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${b}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${T}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${T}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||Y!=null&&Y?.length>0)return u.trigger(`${b}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(W!=="verification"&&oe("verification"),U==="unit"&&w[D]?.isPhoneVerified!==!0){u.setError(`${b}.${v}.phone`,{type:"custom"});return}const e=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(D),q===!0&&Xe?.())}),st=async(e,s)=>{e.includes(T)?Me?.(s[T]):e.includes(b)&&We?.(s[b])},nt=N.useCallback(pt((e,s)=>{st(e,s)},300),[]);N.useEffect(()=>{const e=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);N.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${T}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{X(!1),V();const e=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${T}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${b}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{X(!1)}},lt=De($e(p),p,Pe.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Je==="In-Progress"&&M.fetchState==="Completed"?a.jsxs(Zt,{children:[a.jsxs(Ht,{children:[a.jsx(yt,{}),a.jsx(ea,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Yt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",De($e(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(_t,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?X(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(ta,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?a.jsx(wt,{titleComponent:a.jsx(Tt,{children:i.discardTitle}),descriptionComponent:a.jsx(Ct,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Rt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?Lt.infoText.businessVerification:i.title}),O==="In-Progress"||O==="Not-Started"?a.jsx(Mt,{children:a.jsx(bt,{size:"ExtraLarge",start:!0})}):a.jsx(vt,{...u,children:a.jsxs("form",{id:Ne(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(Et,{children:[a.jsxs(qt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Qt,{children:a.jsxs(Jt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Kt,{})]})})]}),a.jsx(Ae,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Ut,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:A,allOfficers:Y??[],sectionId:b,isRefreshingViewInBackground:B,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:_,isPopupOpen:Q,openPopup:Ze,onGetOtp:_e,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:B},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:T,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":I,fileProps:{authParams:_,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Be,connectedAccountProvider:U,allIndustries:E})]}),y==="zeni_accounts"?a.jsx(Wt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?a.jsx(Dt,{formId:Ne(Ie),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="verification"&&M.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="save"&&M.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[D],s=l?.primaryContactLocalData;W!=="save"&&oe("save");const c=e?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(D))}}},helperText:Ke,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},Bt=(t,A,O,B)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:_,companyView:y}=t,E=Ve.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[T]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[b]:Object.values(_).map((p,I)=>{const n=p,h=$t(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:kt(n?.nationalityCountryCode,B.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:O?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=t=>`${t}_form`,_t=d.div`
|
|
1
|
+
import{d as ct,q as dt,aP as ve,j as a,z as Ve,af as G,aa as mt,d5 as ut,l as L,az as pt,cT as ft,aX as De,aO as $e,gn as yt,n as ht,bG as gt,aM as xt,cU as St,cE as wt,cF as Ct,cG as Tt,_ as bt,ad as vt,aQ as Dt,o,y as j,an as Fe,go as $t,fV as ke,dk as kt,a as It,T as Pt,am as Le,B as jt,M as Nt,u as k}from"./index-DRuWBnqK.js";import{b as N,n as d}from"./vendor-Bs1fkIUX.js";import{b as Ot,s as Vt}from"./CompanyOfficerDetailsSection-CZ2_Bxab-CUa4MwvE.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./LabeledAddressValueField-DF2XP6wZ-QG5V2Jpf.js";import"./LabeledCreatableSingleSelectField-CSfLkVof-3ejxeY5w.js";import"./LabeledDocumentField-DdVw-K0--BTnSeJmK.js";const x={width:new j(343,580,726),titleWidth:new j(343,580,726,826),subTitlePaddingTop:new j(12,k[3]),subTitlePaddingBottom:new j(k[3],k[3]),verificationDetailsRowGap:new j(12,k[5],k[5]),termsPaddingLeftRight:new j(k[0],k[3])},Ft={stepTitle:new jt("h6Regular","h5Regular")},Ie="businessVerificationPage",T="companyDetails",b="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Lt,currency:Pe,footer:je,strings:{empty:At}}}=Ve.getLocalizedStrings(),ya=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:O,isRefreshingViewInBackground:B,filesEndPoint:r,authParams:_,productType:y,allIndustries:E,companyTitles:z,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:q=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Be,onBackClick:V,onGetOtp:_e,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Xe})=>{const Qe=ct(),m=dt(),{updateStatus:M,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,Je=ve(M.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=U==="unit"?a.jsxs(Gt,{children:[i.terms.term1,a.jsx(G,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(G,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(G,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(G,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,X]=N.useState(!1),[W,oe]=N.useState("save"),[Q,Ze]=N.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(t,E,z,A)}),{isValid:He}=u.formState,J=F?.company.company.companyBillPayInfo,K=F?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,et=()=>{const e=w[D],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,me=e?.titleAtCompany,ue=e?.documentTypeSelectedForVerification,pe=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?L.getFormattedAddress(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Ce=ee?.firstName,Te=ee?.lastName,be=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&Ce!=null&&Te!=null&&be!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:Te,email:be},y,n?"Settings":void 0)},tt=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${b}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${T}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${T}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||Y!=null&&Y?.length>0)return u.trigger(`${b}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(W!=="verification"&&oe("verification"),U==="unit"&&w[D]?.isPhoneVerified!==!0){u.setError(`${b}.${v}.phone`,{type:"custom"});return}const e=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(s)).fetchState!=="In-Progress"&&He&&(et(),Re?.(D),q===!0&&Xe?.())}),st=async(e,s)=>{e.includes(T)?Me?.(s[T]):e.includes(b)&&We?.(s[b])},nt=N.useCallback(pt((e,s)=>{st(e,s)},300),[]);N.useEffect(()=>{const e=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);N.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${T}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Y=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{X(!1),V();const e=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${T}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${b}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{X(!1)}},lt=De($e(p),p,Pe.currencySymbol).toUpperCase(),Z=P?.code==="pending_review"||P?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&Je==="In-Progress"&&M.fetchState==="Completed"?a.jsxs(Zt,{children:[a.jsxs(Ht,{children:[a.jsx(yt,{}),a.jsx(ea,{windowSize:m,children:q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Yt,{isReadonly:!1,children:q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",De($e(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{V(),te?.()},variant:"primary"})]}):a.jsxs(_t,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?X(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?a.jsx(ta,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{V(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?a.jsx(wt,{titleComponent:a.jsx(Tt,{children:i.discardTitle}),descriptionComponent:a.jsx(Ct,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Rt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?Lt.infoText.businessVerification:i.title}),O==="In-Progress"||O==="Not-Started"?a.jsx(Mt,{children:a.jsx(bt,{size:"ExtraLarge",start:!0})}):a.jsx(vt,{...u,children:a.jsxs("form",{id:Ne(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(Et,{children:[a.jsxs(qt,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:Z?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Z&&a.jsx(Qt,{children:a.jsxs(Jt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Kt,{})]})})]}),a.jsx(Ae,{isReadonly:Z,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Ut,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:A,allOfficers:Y??[],sectionId:b,isRefreshingViewInBackground:B,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:_,isPopupOpen:Q,openPopup:Ze,onGetOtp:_e,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:B},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:T,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":I,fileProps:{authParams:_,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Be,connectedAccountProvider:U,allIndustries:E})]}),y==="zeni_accounts"?a.jsx(Wt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),O==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?a.jsx(Dt,{formId:Ne(Ie),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="verification"&&M.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="save"&&M.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[D],s=l?.primaryContactLocalData;W!=="save"&&oe("save");const c=e?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(D))}}},helperText:Ke,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},Bt=(t,A,O,B)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:_,companyView:y}=t,E=Ve.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[T]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[b]:Object.values(_).map((p,I)=>{const n=p,h=$t(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:kt(n?.nationalityCountryCode,B.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:O?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=t=>`${t}_form`,_t=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as x,z as w,j as r,b as $,B as y,o as s,M as C}from"./index-
|
|
1
|
+
import{q as x,z as w,j as r,b as $,B as y,o as s,M as C}from"./index-DRuWBnqK.js";import{n as l,b as d}from"./vendor-Bs1fkIUX.js";const f=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:t}}=w.getLocalizedStrings(),b={subText:new y("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a,styles:h})=>{const u=x(),m=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let o=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=n.strings.space+t.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,g=e.status.code==="request_on_hold"||!a?o:i,c=e.type.code.includes("physical");return r.jsxs(H,{style:h,windowSize:u,forDetailPage:a,className:"cardName",title:`${g}`,children:[m,r.jsx(v,{}),o,c&&!a?r.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?r.jsx(p,{}):null]})},H=l(C)`
|
|
2
2
|
${e=>e.forDetailPage?{...$.extraSmallRegular.cssObject}:`${b.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as k,q as f,j as t,bG as te,z as w,fu as P,b as u,b3 as H,ce as ie,o as i,p as B,y as h,am as j,dC as oe,l as y,u as l,bR as re,bS as ae,bi as se,bh as ne,aX as de,bT as le,bV as ce,jv as he,aN as T,c4 as pe,aM as z,ai as $,jw as Q,jx as X,j8 as me,cN as ge,cQ as xe,an as O,j9 as we,ja as ue}from"./index-
|
|
1
|
+
import{d as k,q as f,j as t,bG as te,z as w,fu as P,b as u,b3 as H,ce as ie,o as i,p as B,y as h,am as j,dC as oe,l as y,u as l,bR as re,bS as ae,bi as se,bh as ne,aX as de,bT as le,bV as ce,jv as he,aN as T,c4 as pe,aM as z,ai as $,jw as Q,jx as X,j8 as me,cN as ge,cQ as xe,an as O,j9 as we,ja as ue}from"./index-DRuWBnqK.js";import{n as o,w as R,b as V}from"./vendor-Bs1fkIUX.js";import{q as ye}from"./InsightsSection-B2f8NB4o-DAnfZVmO.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./NavigationDots-CLIto8Du-DjKV6gOD.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(je,{children:t.jsx(ve,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(G,{children:W.month})," ",t.jsx(Z,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(G,{children:W.cashback}),t.jsx(Z,{children:T("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
|
`,je=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as tt,q as Ie,ax as Lt,a9 as Dt,h6 as wr,l as nt,hN as ki,aU as Qe,z as ke,h7 as xr,aP as et,j as t,h9 as ji,bG as Ii,u as l,g6 as Sr,aN as Ge,aM as X,o as a,c6 as Qt,p as d,je as yr,b as U,cE as Li,jf as Di,fo as Ai,gZ as Ti,jg as Ri,bK as Ei,b_ as br,aS as ea,jh as Fi,ji as $r,jj as ot,y as T,bQ as vr,ba as ta,V as Pi,aT as kr,a$ as zi,jk as Mi,jl as Vi,b7 as aa,ai as ge,eU as Oi,j2 as Hi,r as Ct,h8 as jr,_ as gt,b3 as Ni,dH as Bi,cI as Wi,cF as Ui,dj as _i,hK as Zi,am as Oe,c8 as Gi,aY as Wt,jm as Ut,jn as Fa,jo as Yi,B as Pa,M as Ir,b9 as qi,jp as Ji,iY as ut,jc as Xi,jd as Ki,j7 as Qi,dO as za,fa as eo,n as Lr,cN as Dr,j5 as to,cb as ao,c as Ar,jq as ro,aw as kt,ce as Ma,bC as io,dy as oo,an as dt,hF as no,ar as so,T as co,bM as lo,jr as At,fC as ho,c4 as po,js as Tr,jt as Rr,gL as Er,ju as It,is as Fr,j8 as uo,cQ as mo,eA as Pr,j9 as go,ja as Co,e7 as fo,de as wo,eG as xo,cv as So,cw as yo}from"./index-
|
|
1
|
+
import{d as tt,q as Ie,ax as Lt,a9 as Dt,h6 as wr,l as nt,hN as ki,aU as Qe,z as ke,h7 as xr,aP as et,j as t,h9 as ji,bG as Ii,u as l,g6 as Sr,aN as Ge,aM as X,o as a,c6 as Qt,p as d,je as yr,b as U,cE as Li,jf as Di,fo as Ai,gZ as Ti,jg as Ri,bK as Ei,b_ as br,aS as ea,jh as Fi,ji as $r,jj as ot,y as T,bQ as vr,ba as ta,V as Pi,aT as kr,a$ as zi,jk as Mi,jl as Vi,b7 as aa,ai as ge,eU as Oi,j2 as Hi,r as Ct,h8 as jr,_ as gt,b3 as Ni,dH as Bi,cI as Wi,cF as Ui,dj as _i,hK as Zi,am as Oe,c8 as Gi,aY as Wt,jm as Ut,jn as Fa,jo as Yi,B as Pa,M as Ir,b9 as qi,jp as Ji,iY as ut,jc as Xi,jd as Ki,j7 as Qi,dO as za,fa as eo,n as Lr,cN as Dr,j5 as to,cb as ao,c as Ar,jq as ro,aw as kt,ce as Ma,bC as io,dy as oo,an as dt,hF as no,ar as so,T as co,bM as lo,jr as At,fC as ho,c4 as po,js as Tr,jt as Rr,gL as Er,ju as It,is as Fr,j8 as uo,cQ as mo,eA as Pr,j9 as go,ja as Co,e7 as fo,de as wo,eG as xo,cv as So,cw as yo}from"./index-DRuWBnqK.js";import{b as o,n as r,i as we,w as bo,k as zr}from"./vendor-Bs1fkIUX.js";import{j as $o}from"./NavigationDots-CLIto8Du-DjKV6gOD.js";import{A as vo,i as ko,a as jo,l as Io,r as Lo,t as Do,n as Ao}from"./add-to-wallet-DgdBD8_G-XP_wmSR7.js";import{j as To}from"./CardNumberSubText-dZ1irCW_-BRwsGKQL.js";import{r as Mr}from"./mui-Ty75qFQF.js";import{f as Vr}from"./uploadReceipts-Dp1dvCjf-CVmz8CMd.js";import{L as Ro,z as Eo,k as Fo,P as Po}from"./LockCardPage-CxKPs84u-Duj3THK9.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./RoleWithToolTip-DmAYuJGo-CX4UbYVw.js";const Or=ke.getLocalizedStrings().spendManagement.chargeCard,zo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:y,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Dt().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:K}=Vi(),_=Lt(),D=nt.hasChargeCardAdminLevelAccess(_.loggedInUserRoleMap);return t.jsx(Mo,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(k,"_blank")}}):K===!0?t.jsx(Xt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:S,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{y("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),O(!0)}}),t.jsx(Xt,{onClick:()=>{y("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:S,creditAccountRepayment:n}),O(!0)}})]})})},Xt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Vo,{}),label:Or.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":X("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Oo,{}),label:Or.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":X("add-to-apple-wallet-button")})},Mo=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a9 as Ga,aP as N,ax as Ya,g5 as Ja,l as te,iY as U,q as Le,z as Pe,o as a,d as Xt,j as t,bG as qa,gj as Ha,fu as ae,b as D,c6 as rt,p as m,aN as ue,aX as it,aM as nt,y as W,ai as ie,B as Xa,M as Za,d9 as Ka,au as Zt,bQ as Qa,a$ as st,aS as er,an as dt,aa as tr,h0 as ar,dc as rr,ap as ir,ad as or,gp as nr,n as Tt,u as O,dr as sr,ar as dr,am as cr,a as lr,d8 as ur,bA as hr,c8 as mr}from"./index-
|
|
1
|
+
import{a9 as Ga,aP as N,ax as Ya,g5 as Ja,l as te,iY as U,q as Le,z as Pe,o as a,d as Xt,j as t,bG as qa,gj as Ha,fu as ae,b as D,c6 as rt,p as m,aN as ue,aX as it,aM as nt,y as W,ai as ie,B as Xa,M as Za,d9 as Ka,au as Zt,bQ as Qa,a$ as st,aS as er,an as dt,aa as tr,h0 as ar,dc as rr,ap as ir,ad as or,gp as nr,n as Tt,u as O,dr as sr,ar as dr,am as cr,a as lr,d8 as ur,bA as hr,c8 as mr}from"./index-DRuWBnqK.js";import{b as c,n as r,i as ct,k as pr}from"./vendor-Bs1fkIUX.js";import{X as Cr}from"./SpendManagementSection-BR8QYszb-CbMz6Nsb.js";import{D as re,l as gr,r as br}from"./ChargeCardListTable-B4rMq1dZ-By10wzqi.js";import{ChargeCardPromoUserContent as fr}from"./ChargeCardPromoPage-BJINiZYC-CDFItICy.js";import{N as xr,J as Sr}from"./PromoBaseCards-y3l9Sc__-C6fYBMfM.js";import{z as Dt,L as Rt,k as yr,P as wr}from"./LockCardPage-CxKPs84u-Duj3THK9.js";import{r as kr,i as $r}from"./graphic-no-data-net-burn-l-CzmycA0m-W-GGrHSF.js";import{t as vr,o as Ir}from"./arrow-south-east-round-PEovUgvH-DnzbA_s-.js";import"./mui-Ty75qFQF.js";import"./analytics-BbBRZ6cw.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-CK1x27Ua.js";import"./Menu-6F194E28-2iv61K6i.js";import"./RoleWithToolTip-DmAYuJGo-CX4UbYVw.js";import"./CardNumberSubText-dZ1irCW_-BRwsGKQL.js";import"./NavigationDots-CLIto8Du-DjKV6gOD.js";import"./usp-line-BBd1wKwW-ZlUrfnG1.js";const lt={infoSubheadingTextMarginTop:new W(O[0],O[0]),cardsMinWidth:new W(343,353)},Mt=Pe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Bt=({cardPromoType:e,cardText:l,header:h,title:d,subTitle:n,slidingTextList:p,onClick:E})=>{const M=Le();return t.jsxs(Ar,{windowSize:M,cardPromoType:e,"data-testid":nt("list-page-promo-card",e),onClick:()=>E(e),children:[t.jsxs(Kt,{children:[t.jsxs(ea,{children:[t.jsx(Qt,{children:h}),t.jsx(Er,{children:d}),t.jsx(Dr,{children:n})]}),t.jsxs(Rr,{children:[t.jsx(Mr,{}),p.length>0&&t.jsx(ot,{slideUpCount:p.length,children:p.map((_,B)=>t.jsx(ta,{children:_},`card-promo-${B.toString()}`))}),t.jsx(Br,{})]})]}),t.jsx(Nr,{children:t.jsx(xr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(zr,{children:t.jsx(Sr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Nt=({cardType:e,header:l,title:h,creditLimit:d,onCreateNowClick:n})=>{const p=Le();return t.jsx(Lr,{windowSize:p,cardType:e,children:t.jsxs(Pr,{children:[t.jsxs(ea,{children:[t.jsx(Qt,{children:l}),t.jsx(Tr,{children:t.jsx(Fr,{children:h})}),t.jsx(Or,{windowSize:p,children:t.jsxs(_r,{windowSize:p,onClick:()=>n(e),"data-testid":nt("total-cashback-info"),children:[t.jsx(ta,{children:Mt.createNow}),t.jsx(Ur,{})]})})]}),e==="creditCard"?t.jsxs(Wr,{children:[t.jsx(Vr,{children:Mt.creditLimit}),t.jsx(Gr,{children:d})]}):null]})})},jr=e=>{const l=e-1;let h=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t,cs as ni,aa as li,z as ne,ad as di,q as ie,ax as ke,a9 as ci,d as Fe,h6 as hi,iZ as pi,i_ as ui,i$ as mi,aQ as gi,o as i,aM as G,cB as xi,b as Re,p as I,b3 as wi,cI as Ci,j0 as fi,j1 as yi,c6 as ye,b_ as ki,aS as Si,y as C,eU as vi,ba as $i,j2 as ji,aT as bi,r as Ii,ai as ee,h8 as Li,an as Y,am as J,u as p,d4 as Fi,dd as zi,j3 as Ai,j4 as Pi,B as ft,cb as yt,j5 as kt,j6 as Bi,c4 as Ri,cN as Ye,j7 as St,dO as Di,dP as q,aN as de,cK as vt,_ as $t,j8 as _i,cQ as Ei,iR as Je,bQ as jt,bY as bt,j9 as Ti,ja as Vi,aU as $e,by as Oi,cc as Ui,cd as Ni,jb as Mi}from"./index-BhnojtD5.js";import{w as he,b as f,n as o,i as Qe}from"./vendor-Bs1fkIUX.js";import{P as Ve}from"./Menu-6F194E28-BRLJH1zc.js";import{T as It}from"./RoleWithToolTip-DmAYuJGo-AK6hcMvZ.js";import{j as Oe}from"./CardNumberSubText-dZ1irCW_-34bn8CAs.js";const ge=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=ne.getLocalizedStrings().common.strings.empty,Ze={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Xe={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Ze,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Ze,Xe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:b}}=ne.getLocalizedStrings(),se={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardRowClick:$,onChargeCardResendInviteClick:S})=>{const[h,m]=f.useState(!1),[y,B]=f.useState(!1);f.useEffect(()=>{h||B(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),B(!1))},[l.length,h]);const R=r.cardId===a.id,D=l.includes(a.id),L=R&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",U=R&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=L||U,v=ie(),E=!!ke().loggedInUserRole.includes("charge_card_user")||x,N=f.useCallback(()=>{$(a.id,k)},[a.id]),T=St(a)/a.limit.amount*100,M=a?.cardHolderUserId===w.userId,z=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,F=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:de("0,0.[00]",H),className:"amountToUtilize",children:de("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Q=a.type.code,_=b.cardList.tooltip[Q],le=_!=null?M?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Qi,{onClick:N,"data-testid":G("card-row",a.id),children:t.jsxs(Xi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:F[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:b.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:F[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:le,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!M?t.jsx(xo,{onClick:K=>{K.stopPropagation(),S(a.id)},"data-testid":G("send-reminder",a.id),children:b.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:de("0,0.[00]",a.limit),children:de("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&z&&B(!0)},onMouseLeave:()=>{z&&B(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&z:a.status.code==="request_on_hold",j=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!j,variant:"standard",title:b.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{j||m(ze)},isMenuOpen:h&&!j,menuIconStyles:{height:"auto",cursor:j?"not-allowed":"pointer",opacity:j?.5:1,pointerEvents:j?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Ft=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Zi,{}),t.jsx(fe,{children:b.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(A,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:b.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Fe(),d=Yi(e,r),c=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Yi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},W=o(J)`
|
|
1
|
+
import{j as t,cs as ni,aa as li,z as ne,ad as di,q as ie,ax as ke,a9 as ci,d as Fe,h6 as hi,iZ as pi,i_ as ui,i$ as mi,aQ as gi,o as i,aM as G,cB as xi,b as Re,p as I,b3 as wi,cI as Ci,j0 as fi,j1 as yi,c6 as ye,b_ as ki,aS as Si,y as C,eU as vi,ba as $i,j2 as ji,aT as bi,r as Ii,ai as ee,h8 as Li,an as Y,am as J,u as p,d4 as Fi,dd as zi,j3 as Ai,j4 as Pi,B as ft,cb as yt,j5 as kt,j6 as Bi,c4 as Ri,cN as Ye,j7 as St,dO as Di,dP as q,aN as de,cK as vt,_ as $t,j8 as _i,cQ as Ei,iR as Je,bQ as jt,bY as bt,j9 as Ti,ja as Vi,aU as $e,by as Oi,cc as Ui,cd as Ni,jb as Mi}from"./index-DRuWBnqK.js";import{w as he,b as f,n as o,i as Qe}from"./vendor-Bs1fkIUX.js";import{P as Ve}from"./Menu-6F194E28-2iv61K6i.js";import{T as It}from"./RoleWithToolTip-DmAYuJGo-CX4UbYVw.js";import{j as Oe}from"./CardNumberSubText-dZ1irCW_-BRwsGKQL.js";const ge=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=ne.getLocalizedStrings().common.strings.empty,Ze={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Xe={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Ze,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Ze,Xe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:b}}=ne.getLocalizedStrings(),se={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Gi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:k,onChargeCardRowClick:$,onChargeCardResendInviteClick:S})=>{const[h,m]=f.useState(!1),[y,B]=f.useState(!1);f.useEffect(()=>{h||B(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),B(!1))},[l.length,h]);const R=r.cardId===a.id,D=l.includes(a.id),L=R&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",U=R&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=L||U,v=ie(),E=!!ke().loggedInUserRole.includes("charge_card_user")||x,N=f.useCallback(()=>{$(a.id,k)},[a.id]),T=St(a)/a.limit.amount*100,M=a?.cardHolderUserId===w.userId,z=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,F=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:de("0,0.[00]",H),className:"amountToUtilize",children:de("0,0.[00]",H)})}),T!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(T)}${Hi}`})}):null]}),Q=a.type.code,_=b.cardList.tooltip[Q],le=_!=null?M?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Qi,{onClick:N,"data-testid":G("card-row",a.id),children:t.jsxs(Xi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:F[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:b.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:F[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:le,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!M?t.jsx(xo,{onClick:K=>{K.stopPropagation(),S(a.id)},"data-testid":G("send-reminder",a.id),children:b.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:de("0,0.[00]",a.limit),children:de("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&z&&B(!0)},onMouseLeave:()=>{z&&B(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&z:a.status.code==="request_on_hold",j=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!j,variant:"standard",title:b.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{j||m(ze)},isMenuOpen:h&&!j,menuIconStyles:{height:"auto",cursor:j?"not-allowed":"pointer",opacity:j?.5:1,pointerEvents:j?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Ft=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Zi,{}),t.jsx(fe,{children:b.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(W,{children:b.cardDetails.moreOptions.unlock})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(W,{children:b.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:b.cardDetails.moreOptions.rename})]}),t.jsxs(A,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(W,{children:b.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(A,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(fe,{children:b.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(A,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:b.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=Fe(),d=Yi(e,r),c=ne.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Yi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},W=o(J)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(J)`
|
|
4
4
|
color: ${I.important};
|