@zeniai/web-cockpit-ui 1.15.22-dev → 1.15.22-prod
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-CZfTXGMr-CI17UjpU.js → ACHDetailsPage-CZfTXGMr-hiDwgkbw.js} +1 -1
- package/dist/assets/{AIPerformancePage-CpfWdGaC-ATsa9xZL.js → AIPerformancePage-CpfWdGaC-ykoczdc2.js} +1 -1
- package/dist/assets/{AccountInfoPage-BUVWxmzs-DGCzo4Ay.js → AccountInfoPage-BUVWxmzs-CbeKL2x2.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-CYZIBmtA-BtadN1-Z.js → AccountInfoPageContent-CYZIBmtA-BPyn0qNy.js} +1 -1
- package/dist/assets/{AccountLockedInfoModal-BFBjEOzC-D3uFLbPe.js → AccountLockedInfoModal-BFBjEOzC-zb8X-unO.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DSFCBgAM-DDHgP1in.js → AccountReconDetailsDrawerPage-DSFCBgAM-CzrkHqja.js} +1 -1
- package/dist/assets/{AccountRow-Gn7g3D_F-BNs1BGkk.js → AccountRow-Gn7g3D_F-CAJ4cIzU.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-DOMli4-L-Bxo_NE7N.js → AccountsPromoCardStack-DOMli4-L-eTyaq0ba.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DlGL-3yf-IaM3cMnx.js → AddAddressForCardDrawer-DlGL-3yf-C2DcZz0s.js} +1 -1
- package/dist/assets/{AddToWalletPage-D-Z-ZVZn-CiDbNS_k.js → AddToWalletPage-D-Z-ZVZn-DJXuEv7X.js} +1 -1
- package/dist/assets/{AgingReportsPage-CdqPmA60-Cyut0UFq.js → AgingReportsPage-CdqPmA60-3PongpoW.js} +1 -1
- package/dist/assets/{AllUserItems-DWLkEF2p-CkywmjZG.js → AllUserItems-DWLkEF2p-Chhg8iun.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-CdtqprUm-6vrQOn-k.js → ApAgingDetailPage-CdtqprUm-BL9zFysD.js} +1 -1
- package/dist/assets/{AppBasePage-CPdKfb57-DawJWk5R.js → AppBasePage-CPdKfb57-3rxRWAw2.js} +1 -1
- package/dist/assets/{AppDrawerContent-DCMK2lRO-Df7Fnkyq.js → AppDrawerContent-DCMK2lRO-a2d4YW-p.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-C8P04Y3s-D25-twBi.js → ApprovalRulesSettingsPage-C8P04Y3s-GhejM1gq.js} +1 -1
- package/dist/assets/{ArAgingChart-DOYvVptv-BswXO8kR.js → ArAgingChart-DOYvVptv-Ddq6z7vY.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-BCaRO749-DbTi7cK7.js → ArAgingDetailPage-BCaRO749-BK_zsskq.js} +1 -1
- package/dist/assets/{AttachmentView-CnfHYBMC-DIj7ahn3.js → AttachmentView-CnfHYBMC-D5ibhu9k.js} +1 -1
- package/dist/assets/{BankAccountSection-P9w-MOrg-BTlhn7ds.js → BankAccountSection-P9w-MOrg-usBRkI6s.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-BDEZ6LKQ-11XJ9ttg.js → BankAccountWarningSection-BDEZ6LKQ-CNNWLYyR.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-dE7WxsGo-D0HTjyVI.js → BankConnectionsSettingsPage-dE7WxsGo-o85_vHE8.js} +1 -1
- package/dist/assets/{BillDetailPage-CAbohg1r-CBI7qhIO.js → BillDetailPage-CAbohg1r-CzNonYQw.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CKr-k2kC-DyOtlRI5.js → BillPayApprovalRuleDetailPage-CKr-k2kC-CpFHNdQ4.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-wy4fIDHo-MumDIXCw.js → BillPayApprovalRulesPage-wy4fIDHo-sRoz032I.js} +1 -1
- package/dist/assets/{BillPayPromoPage-CbXq0YNV-rXFaEpJE.js → BillPayPromoPage-CbXq0YNV-CyQSG6os.js} +1 -1
- package/dist/assets/{BillPaySetUpPage-CwP6Aw2I-D-V51AjE.js → BillPaySetUpPage-CwP6Aw2I-B4FgNPs2.js} +1 -1
- package/dist/assets/{BillingSettingsPage-Bqj_AXGq-1_mFR23j.js → BillingSettingsPage-Bqj_AXGq-FMqJtF0H.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-QsGKIhW0-BUE3drgk.js → BillsBulkReviewDrawerPage-QsGKIhW0-BPkUbHjo.js} +1 -1
- package/dist/assets/{BoxItem-CgrlwejJ-DRtcS1-S.js → BoxItem-CgrlwejJ-DUWY3JGu.js} +1 -1
- package/dist/assets/{BusinessVerificationPage-G8uzN4Ws-BKiOttKK.js → BusinessVerificationPage-G8uzN4Ws-BbZk5z4g.js} +1 -1
- package/dist/assets/{CardNumberSubText-DPlqciQh-CtVSDBTQ.js → CardNumberSubText-DPlqciQh-B1Nr2V3T.js} +1 -1
- package/dist/assets/{CashbackDetailPage-DvxlixOz-BI7zB5eW.js → CashbackDetailPage-DvxlixOz-ihqcXfsv.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-BwsPpOzj-DPbKM4bn.js → ChargeCardDetailPage-BwsPpOzj-DVqfs_2O.js} +1 -1
- package/dist/assets/{ChargeCardListPage-BKu9-MWp-COSqzM0c.js → ChargeCardListPage-BKu9-MWp-7p3aXmpk.js} +1 -1
- package/dist/assets/{ChargeCardListTable-BkAggUNy-BT3mst3U.js → ChargeCardListTable-BkAggUNy-BaHz9dQe.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-BddAvqUm-DbucxoY-.js → ChargeCardPaymentHistoryPage-BddAvqUm-BjnPwVlR.js} +1 -1
- package/dist/assets/{ChargeCardPromoPage-B4yj7KP9-DKwL8yRO.js → ChargeCardPromoPage-B4yj7KP9-BYkB4vac.js} +1 -1
- package/dist/assets/{ChargeCardSetupPage-B3vasCMt-Dv7zO5cm.js → ChargeCardSetupPage-B3vasCMt-CTK3ZmC2.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-BOscGNXN-Mh_DnEuP.js → ChargeCardStatementsPage-BOscGNXN-BMpD7bbr.js} +1 -1
- package/dist/assets/{CheckDepositDrawerPage-BEEyhU4L-JcTBCzRd.js → CheckDepositDrawerPage-BEEyhU4L-B7K-GReP.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BpZbn8JV-DFNPaWFK.js → CollapsableReportTable-BpZbn8JV-HSUWJ7y5.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-1BDesjjs-BJgYaGxB.js → CompanyOfficerDetailsSection-1BDesjjs-DZ02QoIK.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DnpS3cSu-DXhbgL7c.js → CompanyPassportCard-DnpS3cSu-keBcaHb2.js} +1 -1
- package/dist/assets/{CompanyPassportPage-DPNROicI-D1huJKnB.js → CompanyPassportPage-DPNROicI-BLdKXLMu.js} +1 -1
- package/dist/assets/{CompleteProfile-E7yJ6AqT-DXZcKzk-.js → CompleteProfile-E7yJ6AqT-D5Zdin9t.js} +1 -1
- package/dist/assets/{ConfettiBurst-BUf7AIFk-Da6kYSI2.js → ConfettiBurst-BUf7AIFk-CICAHIGt.js} +1 -1
- package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CyBR7YJz.js → ConstrainedInnerElement-BeIpAPjB-CGXg7hOQ.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-CqGWKAVs-g2Tpgbp0.js → CreateOrEditVendorPage-CqGWKAVs-C8HuoYEn.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-CO7njZlm-DopqGCxN.js → CreditCardPaymentDrawerPage-CO7njZlm-BkkEf7FP.js} +1 -1
- package/dist/assets/{CurrencySelectField-DxdAWtY0-B1TsXU1Q.js → CurrencySelectField-DxdAWtY0-BLpNah21.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-CEaKVaVS-D9RnWmBa.js → CustomerOnboardingActivationPage-CEaKVaVS-DpYgSNSS.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-ihPd9hEn-DriPntr-.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Bk-UD_xZ-B_1TcJUF.js → CustomerOnboardingDetailPageSkeleton-Bk-UD_xZ-0BPSIsBu.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-zMwJiFSO-_zZf3e5X.js → CustomerOnboardingNoStepsPage-zMwJiFSO-CQ9gmtrI.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-D2g6ose5-qapuEieN.js → CustomerOnboardingPage-D2g6ose5-FFfx5aU0.js} +1 -1
- package/dist/assets/{CustomerOnboardingProductSuitePage-BowJfyTX-CRJdoG-k.js → CustomerOnboardingProductSuitePage-BowJfyTX-DFj-hmuI.js} +1 -1
- package/dist/assets/{Dashboard-46VwWQSI-DH2n0aDR.js → Dashboard-46VwWQSI-pfIT6zgZ.js} +1 -1
- package/dist/assets/{DashboardReportPage-BA6k3bPl-B1EwtUKw.js → DashboardReportPage-BA6k3bPl-DDHnJNEc.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-Dh7RFAmH-0PN4dTJQ.js → DashboardSidebarBackgroundAnimation-Dh7RFAmH-BUwgj6Tu.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-Dql1IjYZ-DFOMn-wO.js → DepositAccTransactionItem-Dql1IjYZ-DQHmu8do.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-BjKtMY47-eMYJ1LE-.js → DepositAccTransactionListPage-BjKtMY47-ngsMFheG.js} +1 -1
- package/dist/assets/{DomesticWireDetailsPage-DeXdHoem-CGnMYsda.js → DomesticWireDetailsPage-DeXdHoem-Bwqy2ghj.js} +1 -1
- package/dist/assets/{DownloadOverlay-C9lm7jRS-Bq6Od7GL.js → DownloadOverlay-C9lm7jRS-Cc08nneI.js} +1 -1
- package/dist/assets/{DrawerPage-DwjcM3hz-B-KESp3F.js → DrawerPage-DwjcM3hz-CBWxuywT.js} +1 -1
- package/dist/assets/{EditPeoplePage-D-vaUQbG-DQbsI6rR.js → EditPeoplePage-D-vaUQbG-Ca6hVUD5.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-BerHadSD-DaUKmLjy.js → EditReimbursementDetailPage-BerHadSD-CXIlOuoP.js} +1 -1
- package/dist/assets/{EntityDetailPage-B2Tmq0cV-uO9x-oKB.js → EntityDetailPage-B2Tmq0cV-fGmor59B.js} +1 -1
- package/dist/assets/{EntitySummarySection-BvXgw7DC-Bef0TZtp.js → EntitySummarySection-BvXgw7DC-Dg4XtfC5.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-ySXotmyY-CeFn1UnP.js → ExpenseAutomationOverviewPage-ySXotmyY-BA4932j6.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-CieCVy8t-BHePblcM.js → ExpenseAutomationPage-CieCVy8t-BGDUsJqA.js} +1 -1
- package/dist/assets/{ExpressPayPage-BnUc-3ye-BHMM4ytE.js → ExpressPayPage-BnUc-3ye-qqUKNpSi.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-rGKH26mO-Ak70PMDX.js → FeaturePreviewPage-rGKH26mO-UruApl0q.js} +1 -1
- package/dist/assets/{FollowStepsSection-Cul0Cxvm-BEhGMlUy.js → FollowStepsSection-Cul0Cxvm-BQEdiHT7.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-CC2ACTah-CxJ-n6WW.js → GlobalReviewListPage-CC2ACTah-D0_oo9BM.js} +1 -1
- package/dist/assets/{InformationCardStack-geyzh82K-BsfqU0FK.js → InformationCardStack-geyzh82K-C1it3tMt.js} +1 -1
- package/dist/assets/{InsightsCardStack-DmEWXOXG-D8zQOXPe.js → InsightsCardStack-DmEWXOXG-N-KiJto8.js} +1 -1
- package/dist/assets/{InsightsSection-Ldcdpf_t-BR1EacmB.js → InsightsSection-Ldcdpf_t-B5FO4TNq.js} +1 -1
- package/dist/assets/{IntegrationsSettingsPage-D8DA20vr-Dzz_dqHF.js → IntegrationsSettingsPage-D8DA20vr-BTECqtQ3.js} +1 -1
- package/dist/assets/{InternationalWireSwiftDetailsPage-C0p3_QQy-C5e9qnYF.js → InternationalWireSwiftDetailsPage-C0p3_QQy-DpAoynqo.js} +1 -1
- package/dist/assets/{InternationalWireVerificationPage-mHew9ruS-BrqHukVH.js → InternationalWireVerificationPage-mHew9ruS-L5UYImu5.js} +1 -1
- package/dist/assets/{InviteFormPage-CH4FYGl4-C1vX7pcw.js → InviteFormPage-CH4FYGl4-Cf3hUP4R.js} +1 -1
- package/dist/assets/{InvitePageListView-C-RG9OiM-w5eanIdw.js → InvitePageListView-C-RG9OiM-5uN9ZfEp.js} +1 -1
- package/dist/assets/{InvitePeoplePage-y0gl_wqg-CSxYUXEb.js → InvitePeoplePage-y0gl_wqg-C9ZeGrW2.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-YQHXVR_6-Bb0-RXQg.js → InvoiceUploadSection-YQHXVR_6-DxfUhkF9.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-CKhRoUiP-CTYHfQCp.js → IssueChargeCardPage-CKhRoUiP-BMLcqXTn.js} +1 -1
- package/dist/assets/{LabeledAddressValue-D_-0VDjZ-4h12iTBN.js → LabeledAddressValue-D_-0VDjZ-Dsr_8rT8.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BNPvRvHU-EK3HrcNO.js → LabeledAddressValueField-BNPvRvHU-BdpBZiOb.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-CkG-jIW7-C2Hnry7S.js → LabeledControlledCheckBoxField-CkG-jIW7-mbz1Gjll.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-C1dHZ9ym-iC8YKpuW.js → LabeledCreatableSingleSelectField-C1dHZ9ym-D1LCC1u-.js} +1 -1
- package/dist/assets/{LabeledDocumentField-ffpHZV4a-BUHqIKgG.js → LabeledDocumentField-ffpHZV4a-CPQsh_Na.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-QdvkGLEh-BRZgDq4Q.js → LabeledDropDownFormattedTextField-QdvkGLEh-hJPhBe1g.js} +1 -1
- package/dist/assets/{LabeledText-CQiPSE0v-By2EfM5F.js → LabeledText-CQiPSE0v-s0ZAGPOa.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CcmaUIGJ-pvqY6PVS.js → LabeledUserSingleSelectWithSubtitlesField-CcmaUIGJ-zjSgBb0q.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-k0YihYN--DD97S2fG.js → LabeledZeniRolesDropDownField-k0YihYN--y_O-qwJB.js} +1 -1
- package/dist/assets/{LinkJETransactionPage-DUaT91O5-Gq8lPCYr.js → LinkJETransactionPage-DUaT91O5-CLTikx56.js} +1 -1
- package/dist/assets/{LockCardPage-DYD2_HzF-Dog57kHB.js → LockCardPage-DYD2_HzF-DDuA78z8.js} +1 -1
- package/dist/assets/{LowBalancePopup-DiycrXpa-BGxqOGSj.js → LowBalancePopup-DiycrXpa-C_3KLi8m.js} +1 -1
- package/dist/assets/{MagicLinkACHDetailsPage-DIpNQrGA-BmzNcyxo.js → MagicLinkACHDetailsPage-DIpNQrGA-CgMdsKCr.js} +1 -1
- package/dist/assets/{MagicLinkDomesticWireDetailsPage-B9wywDCI-B71xVz_F.js → MagicLinkDomesticWireDetailsPage-B9wywDCI-BRfuPza5.js} +1 -1
- package/dist/assets/{MagicLinkInternationalWireDetailsPage-eZNTvlJK-BWmKcmTA.js → MagicLinkInternationalWireDetailsPage-eZNTvlJK-DJVDPqK8.js} +1 -1
- package/dist/assets/{MagicLinkSuccessPage-RQtS7ohy-CE9hMVm-.js → MagicLinkSuccessPage-RQtS7ohy-DLqWDkh0.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-D6bdQGfS-4Cui-zz1.js → MagicLinkTitleSection-D6bdQGfS-IHxELQ0G.js} +1 -1
- package/dist/assets/{MailingDetailsSection-Db8X4a09-CGdNacsa.js → MailingDetailsSection-Db8X4a09-Dwx9g4JF.js} +1 -1
- package/dist/assets/{MyBankConnectionsSettingsPage-C9rAs8AC-CELzps57.js → MyBankConnectionsSettingsPage-C9rAs8AC-C9HdP_ld.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-Dhz5e_Uu-CGb9qdbR.js → MyPendingActivationChargeCardListPage-Dhz5e_Uu-ZWunbDS_.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CxZER675-2UOccUna.js → MyProfileSettingsPage-CxZER675-D10Oq0QT.js} +1 -1
- package/dist/assets/{NavBarWithPicker-BSVBMx7T-0Dqo2fgB.js → NavBarWithPicker-BSVBMx7T-Dwi5Qh7J.js} +1 -1
- package/dist/assets/{NavigationArrow-Ca-B5zfh-DRNdaY_I.js → NavigationArrow-Ca-B5zfh-CzpA0vRC.js} +1 -1
- package/dist/assets/{NavigationDots-CjxNj1Qo-DN4lM7to.js → NavigationDots-CjxNj1Qo-9OALTUT1.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-LykCdab5-DEBbT1GR.js → NewGlobalMerchantPage-LykCdab5-j1JPNlL_.js} +1 -1
- package/dist/assets/{NoDataChart-Dm8c31gV-Dj8UiPhG.js → NoDataChart-Dm8c31gV-smj_KZJI.js} +1 -1
- package/dist/assets/{NoDataTable-BLcYAK9T-3nfxy3Nd.js → NoDataTable-BLcYAK9T-L0d4qi5S.js} +1 -1
- package/dist/assets/{NotFoundPage-C4BU4sH8-sZxfS_K4.js → NotFoundPage-C4BU4sH8-BkOqGrno.js} +1 -1
- package/dist/assets/{NotificationSettingsPage-BcZEeTzA-Gt8bGOQC.js → NotificationSettingsPage-BcZEeTzA-BVoujFGE.js} +1 -1
- package/dist/assets/{NotificationsListConfig-CYqB9pO5-Q7jWyd5C.js → NotificationsListConfig-CYqB9pO5-D8DfowH9.js} +1 -1
- package/dist/assets/{NotificationsPage-BpE7xDxK-DEeyLrys.js → NotificationsPage-BpE7xDxK-_ZqaT-uB.js} +1 -1
- package/dist/assets/{OpExByVendorPage-CzAB4zqP-D8KXk_hr.js → OpExByVendorPage-CzAB4zqP-B-D4_QrN.js} +1 -1
- package/dist/assets/{OverlayContainerPage-D4QU0p4o-BjtR95tx.js → OverlayContainerPage-D4QU0p4o-C6txeCdL.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CDkHjqzy-EOvrd7Tw.js → PandLWithForecastPage-CDkHjqzy-DSUf_Ypa.js} +1 -1
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-ChGcOYcG-D0OWrwVX.js → PaymentAccountSetupBillingAddressSection-ChGcOYcG-DSLZbTG2.js} +1 -1
- package/dist/assets/{PeoplePage-C_FZL-mx-B0oFZuXo.js → PeoplePage-C_FZL-mx-BDL-PoYG.js} +1 -1
- package/dist/assets/{Preview-Dit3IBZc.js → Preview-Dgp6-c_s.js} +1 -1
- package/dist/assets/{ProductsCarousel-lJBWrgjU-BK8yascI.js → ProductsCarousel-lJBWrgjU-BfgQiLt3.js} +1 -1
- package/dist/assets/{PromoBaseCards-BHeLFDFF-CUDBGebi.js → PromoBaseCards-BHeLFDFF-Il5mG_v3.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-BfBk1GDG-CNBPmIt1.js → QBOConnectionDialog-BfBk1GDG-B0bN8n9i.js} +1 -1
- package/dist/assets/{QBOSetupSection-BO8FYRd_-BNdNnkk3.js → QBOSetupSection-BO8FYRd_-C6ItJbVr.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-BScdJYcI-BcwDGLiX.js → ReimbursementApprovalRuleDetailPage-BScdJYcI-TQwU5Ge2.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-2-dvUngC-9CdneR5P.js → ReimbursementApprovalRulesPage-2-dvUngC-CIKQgLxV.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-CCBrKxup-3_3O6q1i.js → ReimbursementDetailPage-CCBrKxup-Rib8LPO_.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-C1DzNWh1-B5DdwXjx.js → ReimbursementPromoPage-C1DzNWh1-kbAf2GLP.js} +1 -1
- package/dist/assets/{ReimbursementSetUpPage-Bs1pChM5-DTukW1Jt.js → ReimbursementSetUpPage-Bs1pChM5-DGztpR6x.js} +1 -1
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BY1ivHX0-CAH_UqYX.js → ReimbursementsBulkReviewDrawerPage-BY1ivHX0-BnOzOqg5.js} +1 -1
- package/dist/assets/{ReloadCard-Ci1JfueA-BSqwcsh4.js → ReloadCard-Ci1JfueA-BVv8_YdU.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-FSUjS0tA-BBV47JJP.js → ReportTableViewSelector-FSUjS0tA-CpMtsTaD.js} +1 -1
- package/dist/assets/{ReportsPage-2XGgGATP-cuHT_XJ3.js → ReportsPage-2XGgGATP-BRNtmddp.js} +1 -1
- package/dist/assets/{RevenueChart-DhiHl3J4-DLO9Tjun.js → RevenueChart-DhiHl3J4-CFS3tfjC.js} +1 -1
- package/dist/assets/{ReviewDetailsPage-JfBmJL7T-C_j08e24.js → ReviewDetailsPage-JfBmJL7T-C9i-uM-7.js} +1 -1
- package/dist/assets/{ReviewOverlay-B8Quli7Z-C6JgrDgC.js → ReviewOverlay-B8Quli7Z-MyD40hHz.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DL78JlR8-C9xZrPOP.js → RoleWithToolTip-DL78JlR8-Bg-tBnZX.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-B-mkt12S-Dy27kfKS.js → ScheduleDetailsFixedAssetsPage-B-mkt12S-Drpp4egA.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-BUZcySac-HBwTYcGC.js → ScheduleDetailsPage-BUZcySac-D26ow55j.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-CdKMmZqy-KLYGBtjp.js → ScheduleSequenceTable-CdKMmZqy-Dg8Cj26A.js} +1 -1
- package/dist/assets/{ScreenRoutes-xr8emYTZ.js → ScreenRoutes-CR6jvuEY.js} +1 -1
- package/dist/assets/{SetUpAccountSection-D1MXUm9M-aQqZDAJc.js → SetUpAccountSection-D1MXUm9M-BT-6loSN.js} +1 -1
- package/dist/assets/{SignIn-CPWFfFe2--e4scVLJ.js → SignIn-CPWFfFe2-Cyfsv6M8.js} +1 -1
- package/dist/assets/{SignInScreen-6Xirnvhp.js → SignInScreen-BiDFAAFG.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage--cVcOp1f-CoMTuOeL.js → SpendManagementListViewPage--cVcOp1f-zXY2wOwI.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-DPxjzKS8-DIiRlr2F.js → SpendManagementPerTabPage-DPxjzKS8-O4uEWZh5.js} +1 -1
- package/dist/assets/{SpendManagementSection-CA8SwNCI-C0bFCdBj.js → SpendManagementSection-CA8SwNCI-CKNqMm97.js} +1 -1
- package/dist/assets/{StatementItem-UzV0xHzG-B2brulIy.js → StatementItem-UzV0xHzG-DMBxvkrx.js} +1 -1
- package/dist/assets/{StatementsPage-CksjCH5w-C3ioIgFA.js → StatementsPage-CksjCH5w-BQFkV0O4.js} +1 -1
- package/dist/assets/{StatusSwitcher-BDDVmn-K-CKBwQQDa.js → StatusSwitcher-BDDVmn-K-CVqwfmPs.js} +1 -1
- package/dist/assets/{SubTabSwitcher-CMsdXoCD-3-Y_8O6e.js → SubTabSwitcher-CMsdXoCD-B0JQtHCm.js} +1 -1
- package/dist/assets/{SummaryCard-B4km1rL_-DaunAw95.js → SummaryCard-B4km1rL_-D_1o1o_Y.js} +1 -1
- package/dist/assets/{TaskManagementPage-CDi3YMVo-CDvB9Max.js → TaskManagementPage-CDi3YMVo-BKaIGu1B.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-D1boW3u5-IM63QogJ.js → TimeRangeSwitcher-D1boW3u5-C3ir1EJb.js} +1 -1
- package/dist/assets/{TimeframeSwitcher-NWdUWC8r-DZUeY14S.js → TimeframeSwitcher-NWdUWC8r-CcFMLhad.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-BCRqmVAB-m9vI8Gjx.js → TimeframeSwitcherWithToggle-BCRqmVAB-DBgIwHJ5.js} +1 -1
- package/dist/assets/{TopExCard-B7nDaKGC-VBOxt-wD.js → TopExCard-B7nDaKGC-DozA2OAE.js} +1 -1
- package/dist/assets/{TopExDetailPage-CFC5Kzob-Dt6PLbBa.js → TopExDetailPage-CFC5Kzob-13gApppw.js} +1 -1
- package/dist/assets/{TransactionActivityLogPage-dLfey-Pj-BNo7Uj_A.js → TransactionActivityLogPage-dLfey-Pj-Yf31h4Gj.js} +1 -1
- package/dist/assets/{TransactionDetailPage-DUFj8B1S-CqpGWjre.js → TransactionDetailPage-DUFj8B1S-ClwG9Igm.js} +1 -1
- package/dist/assets/{TransactionList-BDaoHCk7-CZl9zU4i.js → TransactionList-BDaoHCk7-CxR3qiVF.js} +1 -1
- package/dist/assets/{TransactionListBig-DxOGEDcA-M4zryrQh.js → TransactionListBig-DxOGEDcA-BRA9MK1n.js} +1 -1
- package/dist/assets/{TransactionListPage-4nFAQM97-jwJBji-c.js → TransactionListPage-4nFAQM97-C-vsmXdW.js} +1 -1
- package/dist/assets/{TransactionVendorDetailPage-CliQXg5L-DI9_qo0u.js → TransactionVendorDetailPage-CliQXg5L-Btd8vUxd.js} +1 -1
- package/dist/assets/{TransferDrawerPage-kbzn1dkx-Bopm8vbU.js → TransferDrawerPage-kbzn1dkx-CUovPSSi.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-j8Dtk2Q8-C0BtbFG5.js → TreasuryOverviewPage-j8Dtk2Q8-D6Nkm37R.js} +1 -1
- package/dist/assets/{TreasuryPromoPage-BlgxNE0U-Cc6ztZJc.js → TreasuryPromoPage-BlgxNE0U-X_eZ6vGG.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-Bd70Y2Yv-CYfFBpB9.js → TreasuryStatementsPage-Bd70Y2Yv-BxhDdX2h.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-DL4GDdXJ-xlICR3P4.js → TreasuryTaxLetterPage-DL4GDdXJ-Hpg-jOf1.js} +1 -1
- package/dist/assets/{TrendChart-BS6VOoj_-CKe3PY8I.js → TrendChart-BS6VOoj_-pdbmljRy.js} +1 -1
- package/dist/assets/{TrendWithTransactions-DMAMnr7F-DxwunSwM.js → TrendWithTransactions-DMAMnr7F-DvJ4EwUu.js} +1 -1
- package/dist/assets/{UncategorizedAccountsMappingPage-stLOvAUg-CCLPL_ED.js → UncategorizedAccountsMappingPage-stLOvAUg-BBFJu9xL.js} +1 -1
- package/dist/assets/{UnitIntegrationPage-D39cXlRw-oxayfQbY.js → UnitIntegrationPage-D39cXlRw-C7487i4i.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-BmiNa89K-BeqcSbMb.js → UploadAdditionalDocumentOverlay-BmiNa89K-DJN45T3C.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-Cn7Bst-t-DCAkAnX8.js → Vendor2FAPopup-Cn7Bst-t-CBytFmjx.js} +1 -1
- package/dist/assets/{VendorACHDetailsPage-yJs4pSeb-B9thwaoC.js → VendorACHDetailsPage-yJs4pSeb-D9Lkk-Bo.js} +1 -1
- package/dist/assets/{VendorDetailPage-Ck26EgtS-BHR4p4Il.js → VendorDetailPage-Ck26EgtS-CkUuun_R.js} +1 -1
- package/dist/assets/{VendorDomesticWireDetailsPage-BZatg69M-B9cR7gr6.js → VendorDomesticWireDetailsPage-BZatg69M-9rquyAd7.js} +1 -1
- package/dist/assets/{VendorFiling1099EditablePage-PYVQaWMk-G5giJg88.js → VendorFiling1099EditablePage-PYVQaWMk-D59Ey8Mx.js} +1 -1
- package/dist/assets/{VendorFirstReviewPage-hKEEnsZq-9lysxVz-.js → VendorFirstReviewPage-hKEEnsZq-Z4Iq8l1K.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-qv2qL6Xn-Bc91C8bc.js → VendorInternationalWireDetailsPage-qv2qL6Xn-ChZccfeH.js} +1 -1
- package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Co_Kax4L-bZKJbQeC.js → VendorInternationalWireSwiftDetailsPage-Co_Kax4L-B0JB4HiL.js} +1 -1
- package/dist/assets/{VendorsAccountsSection-BeiK6LWK-WA9vgeiE.js → VendorsAccountsSection-BeiK6LWK-3ktZ9Ps9.js} +1 -1
- package/dist/assets/{VerifyDevice-BVtSQLC2-otqudy2C.js → VerifyDevice-BVtSQLC2-Ds3RPxUS.js} +1 -1
- package/dist/assets/{VideoPlayer-DcPwSvda-DzC2R71-.js → VideoPlayer-DcPwSvda-BRsLoDwi.js} +2 -2
- package/dist/assets/{VideoPopup-CSSLhfoi-CGw_VFjN.js → VideoPopup-CSSLhfoi-E_C121QZ.js} +1 -1
- package/dist/assets/{WarningsDrawerPage-y9CUfPu5-MeHZsL1e.js → WarningsDrawerPage-y9CUfPu5-CzBtmteZ.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-CeL_e1NL-CQdk1jRa.js → ZeniAccountDetailPage-CeL_e1NL-Dep7MfE1.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-C-rGqw9i-D_x6eTsv.js → ZeniAccountListViewPage-C-rGqw9i-BySHRITN.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CSy5vlQ--2YMNZ3_9.js → ZeniAccountNavBarPieces-CSy5vlQ--CT0VOmE5.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-ByNyhhoa-DV36qC0Z.js → ZeniAccountPromoPage-ByNyhhoa-BdMe47kn.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-YbvbQFzj-Byax4mz5.js → ZeniAccountSetupPage-YbvbQFzj-H1oelczn.js} +1 -1
- package/dist/assets/{ZeniCopyright-D5ywJMrC-ViPTJSJz.js → ZeniCopyright-D5ywJMrC-5T6BtK1x.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-CKFCKGRC-BbttVAel.js → ZeniTransferAmountSlider-CKFCKGRC-Dg3vxqWL.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-tmzUrH5h.js → add-to-wallet-DgdBD8_G-BL7IsC-K.js} +1 -1
- package/dist/assets/{analytics-BHfEcMs7.js → analytics-B3sq3okC.js} +1 -1
- package/dist/assets/{analyticsHelper-DMvP-IUc.js → analyticsHelper-Be2Ghb4U.js} +1 -1
- package/dist/assets/{analyticsHelper-nJyKiOwQ-BPlvzeT_.js → analyticsHelper-nJyKiOwQ-EQyMSNqu.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-DopNMSVs.js → arrow-south-east-round-PEovUgvH-DmLH6zSL.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-5qZZD7bQ.js → auto-transfer-rule-mbafm5D3-CcNAXHTO.js} +1 -1
- package/dist/assets/{chartTypes-BKexR59e-C3ztmi9f.js → chartTypes-BKexR59e-CQ0ua_Cf.js} +1 -1
- package/dist/assets/{commonDimensions-Upfg-PB1-DEuX-eDL.js → commonDimensions-Upfg-PB1-DtD1FLbn.js} +1 -1
- package/dist/assets/{constants-CHbK5IhN.js → constants-CDeFZxKj.js} +1 -1
- package/dist/assets/{core-BZCxWmUX.js → core-DTBVlpj8.js} +1 -1
- package/dist/assets/{dash.all.min-DcxeahhE.js → dash.all.min-CftLUG-Q.js} +1 -1
- package/dist/assets/{detailCommon-_wEL82NI-n1evVXdx.js → detailCommon-_wEL82NI-B4Vm8z0s.js} +1 -1
- package/dist/assets/{downloadPdf-CMFOff-_-mnN6dDox.js → downloadPdf-CMFOff-_-cKHvib4M.js} +1 -1
- package/dist/assets/{empty-D_f2XL7V.js → empty-BNDMGpcA.js} +1 -1
- package/dist/assets/{empty-DcJQLvC7.js → empty-BPkvcwM1.js} +1 -1
- package/dist/assets/{epic-NTdWJzAE.js → epic-CT8WTv7q.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-wauDJyqU.js → gift-box-Cmt9OgIZ-Fwm-hKK9.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-Co-mMaRI.js → graphic-no-data-l-DU4J8fDt-QKI8AlDH.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-_WUrjzng.js → graphic-no-data-net-burn-l-CzmycA0m-BS89uvw5.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-Bh6G4KIp.js → handshake-BPg58FML-DpvwqCaO.js} +1 -1
- package/dist/assets/{index-Dkkbximi.js → index-3QczuH61.js} +1 -1
- package/dist/assets/{index-DC2hxKgC.js → index-7aq5k8Mp.js} +1 -1
- package/dist/assets/{index-BTb8ckWv.js → index-BatWcn3H.js} +1 -1
- package/dist/assets/{index-CRjLU1CH.js → index-BnSnD4Ea.js} +7 -7
- package/dist/assets/{index-B7HaXBI4.js → index-D-qSfPD5.js} +1 -1
- package/dist/assets/{index-C9eCTMJr.js → index-GsD9b3ZG.js} +1 -1
- package/dist/assets/{index-BCLGLn5P.js → index-WVjZFuNz.js} +1 -1
- package/dist/assets/{lexical-D8AhEV3-.js → lexical-DVC693on.js} +1 -1
- package/dist/assets/{liveblocks-B2F837W5.js → liveblocks-DWtyrD8F.js} +1 -1
- package/dist/assets/{lottie-CgAPdzgC.js → lottie-BQFxz1iJ.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-ll9NZ-I4-DPPDlmzF.js → mapLoadingInProgressToTreeNode-ll9NZ-I4-DrP6XxaN.js} +1 -1
- package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DcevOSiz-8lx_NTel.js → mapSectionWithAcOnlyToTreeNode-DcevOSiz-Dqsnf4t7.js} +1 -1
- package/dist/assets/{mapSpacerToTreeNode-6Qxn340N-B6QTlyVL.js → mapSpacerToTreeNode-6Qxn340N-CFYaTSjr.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-BlKa4mAP-BPPLb2wN.js → mapTimeframeBalancesToTreeNode-BlKa4mAP-C604MFNf.js} +1 -1
- package/dist/assets/{mapTimeframeBalancesToTreeNode-tYVPqkGh-BzVS1eS7.js → mapTimeframeBalancesToTreeNode-tYVPqkGh-Bas-zTi7.js} +1 -1
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-C92aroSy-BbZlxdu4.js → mapTimeframeHeaderLoadingInProgressToTreeNode-C92aroSy-D3clUC9z.js} +1 -1
- package/dist/assets/{mui-G_qoHHKo.js → mui-BDZGIUkR.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-x7w6wNJZ.js → page-detail-CWX5S47F-meSa3zdY.js} +1 -1
- package/dist/assets/{panelSelectedMixin-CzfD5-Zs-BuQ6-IQv.js → panelSelectedMixin-CzfD5-Zs-jMGIBDwH.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-Bpmj0_HZ.js → radio-default-CiSgisfh-C6OZYBRj.js} +1 -1
- package/dist/assets/{react-Hh8LA1NH.js → react-BJMdlCMJ.js} +1 -1
- package/dist/assets/{react-Bz8KihG8.js → react-BRdwR8D9.js} +2 -2
- package/dist/assets/{react-DY87wnXm.js → react-BlPj4KoM.js} +1 -1
- package/dist/assets/{react-C-Nzpwqb.js → react-CLVldKit.js} +1 -1
- package/dist/assets/{react-CQCeOVHy.js → react-DNUE1XN6.js} +1 -1
- package/dist/assets/{react-BVN7d4k7.js → react-aVoixQh7.js} +1 -1
- package/dist/assets/{react-CgU7dLsF.js → react-narZUdRy.js} +1 -1
- package/dist/assets/{react-D3qPI2I1.js → react-oWbdRTlu.js} +1 -1
- package/dist/assets/{recharts-CCryt90F.js → recharts-CubDZ_7X.js} +1 -1
- package/dist/assets/{sentry-DZdy1Eny.js → sentry-YGvsS0ez.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DEYalkml.js → shield-DOlUxcFf-DsACXIu5.js} +1 -1
- package/dist/assets/{toCOABalancesWithID-DtqUradx-lEoCPU_e.js → toCOABalancesWithID-DtqUradx-BRE9DER6.js} +1 -1
- package/dist/assets/{toChartData-BpfWXnJ--DBwlURkd.js → toChartData-BpfWXnJ--B4n1Y3ME.js} +1 -1
- package/dist/assets/{uploadAttachment-ukKU1LbX-DZ3cul8l.js → uploadAttachment-ukKU1LbX-7A78Ey6A.js} +1 -1
- package/dist/assets/{uploadReceipts-Dge0cNF1-9xq6mF3E.js → uploadReceipts-Dge0cNF1-BxcM6Vxg.js} +1 -1
- package/dist/assets/{url-T01FJj_Y.js → url-BjhYXgUM.js} +1 -1
- package/dist/assets/{url-D90t3YD5.js → url-Dn89Ergw.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-gOO9DxKL.js → useLongPress-GCK2COYQ-nPqklDV-.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-gP2BLOgz.js → usp-line-BBd1wKwW-CegBz6mw.js} +1 -1
- package/dist/assets/{utils-D8ZC_tPv.js → utils-C1dZuG8s.js} +1 -1
- package/dist/assets/{zeni-epic-state-BlmgKn3B.js → zeni-epic-state--v0gKXZH.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-ihPd9hEn-ClNt0TP3.js +0 -1
package/dist/assets/{BillDetailPage-CAbohg1r-CBI7qhIO.js → BillDetailPage-CAbohg1r-CzNonYQw.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as Wn,aw as Un,e as Kn,gh as Vn,gi as Hn,gj as qn,gk as Gn,cd as Xn,aQ as Qn,y,V as t,f8 as ct,f9 as Yn,o as a,fa as Jn,fb as ea,fc as ta,aN as Se,fd as na,aP as b,bC as pt,bo as mt,dw as ut,cp as yt,cq as ht,cr as bt,gl as aa,gm as ia,gn as la,go as oa,fi as I,gp as $,fk as A,fl as k,fh as ra,b as gt,p as oe,fj as Ot,fr as sa,fm as da,fn as ca,gq as pa,gr as ma,aR as ua,ao as ft,bT as ve,gs as ya,gt as L,F as ha,u as s,ag as ba,c2 as ga,gu as fa,C as xa,gv as wa,fs as xt,R as Ta,d4 as va,ci as Da,gw as wt,b7 as ja,b9 as Ia,d as $a,bV as Ft,d5 as Aa,gx as ka,ai as Et,av as Sa,b5 as Ca,bt as Pa,gy as Ba,al as Ra}from"./index-CRjLU1CH.js";import{a as p}from"./sentry-DZdy1Eny.js";import{n as i}from"./mui-G_qoHHKo.js";import{a as Ma}from"./liveblocks-B2F837W5.js";import{bO as za,bL as Na,bP as La,FL as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state-BlmgKn3B.js";import{o as Za,t as Wa}from"./LowBalancePopup-DiycrXpa-BGxqOGSj.js";import"./core-BZCxWmUX.js";import"./lottie-CgAPdzgC.js";import"./recharts-CCryt90F.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="c2187112-ed81-4a61-840b-c4b15988e733",e._sentryDebugIdIdentifier="sentry-dbid-c2187112-ed81-4a61-840b-c4b15988e733")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:qa,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:jt,title:{comments:Xa}}}}=ha.getLocalizedStrings(),je=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:Zt,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:qt,redirectToBillsScreen:Q,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Qt,discardOutsideZeniPaymentData:Yt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Wn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[Ze,Y]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:q,isLoading:P}=qn(T,"both",!1),x=Be&&h!=null,We=p.useMemo(()=>h==null?[]:q.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[q,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&q.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,q,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,qe]=p.useState(!1),[Ge,Xe]=p.useState(!1),Qe=()=>He(!1),yn=()=>He(!0),Ye=Qn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Q()},[Q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),Q())},[e,Q,Me]),p.useEffect(()=>{Ye==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Ye,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&G?.code?G:ae,S=Qa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:G?.code!=null&&(ae?.code=="approved"||G.code==="mark_as_paid")?G:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&qt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{z.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),z.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,In=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${In}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(Ii,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
1
|
+
import{Q as Wn,aw as Un,e as Kn,gh as Vn,gi as Hn,gj as qn,gk as Gn,cd as Xn,aQ as Qn,y,V as t,f8 as ct,f9 as Yn,o as a,fa as Jn,fb as ea,fc as ta,aN as Se,fd as na,aP as b,bC as pt,bo as mt,dw as ut,cp as yt,cq as ht,cr as bt,gl as aa,gm as ia,gn as la,go as oa,fi as I,gp as $,fk as A,fl as k,fh as ra,b as gt,p as oe,fj as Ot,fr as sa,fm as da,fn as ca,gq as pa,gr as ma,aR as ua,ao as ft,bT as ve,gs as ya,gt as L,F as ha,u as s,ag as ba,c2 as ga,gu as fa,C as xa,gv as wa,fs as xt,R as Ta,d4 as va,ci as Da,gw as wt,b7 as ja,b9 as Ia,d as $a,bV as Ft,d5 as Aa,gx as ka,ai as Et,av as Sa,b5 as Ca,bt as Pa,gy as Ba,al as Ra}from"./index-BnSnD4Ea.js";import{a as p}from"./sentry-YGvsS0ez.js";import{n as i}from"./mui-BDZGIUkR.js";import{a as Ma}from"./liveblocks-DWtyrD8F.js";import{bO as za,bL as Na,bP as La,FL as Oa,bN as Fa,bH as Ea,bh as _a}from"./zeni-epic-state--v0gKXZH.js";import{o as Za,t as Wa}from"./LowBalancePopup-DiycrXpa-C_3KLi8m.js";import"./core-DTBVlpj8.js";import"./lottie-BQFxz1iJ.js";import"./recharts-CubDZ_7X.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="c2187112-ed81-4a61-840b-c4b15988e733",e._sentryDebugIdIdentifier="sentry-dbid-c2187112-ed81-4a61-840b-c4b15988e733")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Ta("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Va,common:{noText:C,strings:{empty:c},currency:Tt,via:Ha,more:qa,edit:Ga},spendManagement:{billPay:{billDetails:n,billsByTabs:Ce,bulkActions:vt,vendorCreation:De,insufficientFunds:_t}},collaboration:{threads:{placeholder:Dt,tooltip:jt,title:{comments:Xa}}}}=ha.getLocalizedStrings(),je=Va.visual.MMMDCommaYYYYformat,_i=({billDetails:e,currentTenant:g,showApproveRejectBtns:f,isShowDeletedBillsEnabled:W,signedInUser:re,isAdmin:Zt,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Kt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Pe,isBillPayCommentingEnabled:Be,isZeniUser:Vt,showBackButton:Re=!0,isDetectInsufficientFundsEnabled:Ht,redirectToEditableBillScreen:qt,redirectToBillsScreen:Q,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Ne,onAddNewRule:Xt,onAttachmentClick:Le,saveBillDetails:Qt,discardOutsideZeniPaymentData:Yt,onBackClick:Oe,updateEditRealTimeApproverClicked:Jt,onSaveRealTimeApprovals:en,onRetryPaymentClick:tn,onRefundPaymentClick:nn,initialOpenThreadRequest:K})=>{const l=Wn(),o=Un(),Fe=Kn(),[an,V]=p.useState(!1),[Ee,se]=p.useState(!1),[de,ce]=p.useState(!1),[_e,pe]=p.useState(!1),[ln,me]=p.useState(!1),[Ze,Y]=p.useState(!1),h=e.transactionDetails?.id,on=Vt?Vn:Hn,{requestToOpenThread:ue,setRequestToOpenThread:J,setOpenThread:ee}=p.useContext(on);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&J(K)},[K,J]);const[rn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:q,isLoading:P}=qn(T,"both",!1),x=Be&&h!=null,We=p.useMemo(()=>h==null?[]:q.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[q,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,sn=p.useCallback((r,u)=>{ee(u),H(!1)},[ee,H]);p.useEffect(()=>{ue?.threadId!=null&&q.length>0&&!P&&(ee(ue.threadId),J(null))},[ue,q,P,ee,J]);const Ue=p.useRef(!1),[dn,cn]=p.useState(!1),pn=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,cn(!0))});Xn({componentName:"bill.details",enabled:dn});const[N,te]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Ve]=p.useState("approved"),[mn,He]=p.useState(!1),[un,qe]=p.useState(!1),[Ge,Xe]=p.useState(!1),Qe=()=>He(!1),yn=()=>He(!0),Ye=Qn(e.zeniAssist?.refundStatus.fetchState),ne=p.useCallback(()=>{Q()},[Q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),Q())},[e,Q,Me]),p.useEffect(()=>{Ye==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(ce(!1),ne())},[Ye,e.zeniAssist?.refundStatus,ne]);const w=e.transactionDetails?.billPayInfo.stage,ae=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,hn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ye=w?.code==="paid",D=ye?w:ae?.code=="approved"&&G?.code?G:ae,S=Qa(D,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?hn:G?.code!=null&&(ae?.code=="approved"||G.code==="mark_as_paid")?G:ae,he=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&qt(e.transactionDetails?.id??"")},bn=()=>{te({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},gn=()=>{te({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},fn=()=>{te({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},xn=()=>{z.trackRefundClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),te({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),ce(!0)},wn={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),nn())},onCancelClick:()=>{V(!1),ce(!1)}},Tn={onOkClick:r=>{me(!1),Ne({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{me(!1)}},vn=()=>{const[r]=Sa("ZeniAssist");return r!=null?t.jsx(Ca,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{pe(!_e),z.trackZeniAssistClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},ie={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??Tt.currencyCode},be=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],Dn=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,In=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",$n=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${In}`,An=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(Ii,{windowSize:l,children:t.jsx(ji,{})})]}):void 0,et=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),kn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Aa(r.toLowerCase()):r??"";return`${De.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
|
|
2
2
|
${De.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${De.achDetails.accountTypeLabel} ${u}`},le=e.transactionDetails?.billPayInfo!=null?za(e.transactionDetails?.billPayInfo):void 0,Sn=le!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Na(La(le?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,tt=e.transactionDetails?.billPayInfo.expectedDepositDate??Sn,nt=ct(d?.paymentType?.method??"").replace("Same Day",""),Cn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Yn,{paymentTypeLabel:nt,onClick:yn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Pn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(ka,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,at=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&at),it=!((w?.code==="scheduled"||w?.code==="pending_approval")&&at),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,we=e.zeniAssist?.isEligibleForRefund===!0,Bn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Rn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||we)&&Bn===!1,Te=xe||we,Mn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,E=D?.code,zn=!Mn&&(!et||D?.code==="processing"&&!B),lt=!et,ot=["small","medium-compact","medium-regular"].includes(l),X=Oa(e.transactionDetails?.bulkProcessingDetail?.type),F=Fa(e.paymentMethodType?.method),Nn=!X&&(E!=="processing"&&it||E==="processing"&&!B||E==="processing"&<||f&&F&&Pe),Ln=r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",D?.code??""),Qt(!0,Ge,r)},rt=()=>{qe(!0),z.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},On=()=>{Xe(!0),rt()},Fn=()=>{Yt(),qe(!1),Ge&&Xe(!1)},En=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:h??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Ht&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Jn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,st=()=>{Ve("approved"),Ze===!0&&Y(!1),_!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Ne({billId:e.transactionDetails?.id??"",type:"approved"})},_n=()=>{Ve("rejected"),_!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),me(!0)},dt=p.useRef(null);return t.jsxs(pi,{windowSize:l,ref:dt,children:[t.jsx(ea,{anchor:"right",open:mn,onClose:Qe,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(ta,{companyName:na(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:nt,amount:Se("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Qe})}),t.jsxs(hi,{ref:pn.current,windowSize:l,children:[t.jsx(ki,{windowSize:l,children:l==="small"?t.jsx(pt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),source:"BillDetailPage"}):t.jsx(pt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[he,e.isRecurring?t.jsx(ke,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Ct,{windowSize:l,children:[x?t.jsxs(Nt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>ut(u)),void 0,void 0,"page icon")},children:[t.jsx(mt,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Lt,{})]}):null,t.jsx(Pt,{onClick:()=>ne(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(St,{})})]}),leftSideComponent:t.jsx(kt,{windowSize:l,onClick:Oe,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Re?"visible":"hidden"}`},children:t.jsx(At,{})}),enableTitleOnScroll:!0,scrollableContent:dt,source:"BillDetailPage"})}),t.jsxs(bi,{windowSize:l,children:[Ze?t.jsx(Za,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:st,onCancelClick:()=>{Y(!1),Je()},onClickAway:()=>{Y(!1)}}):null,un?t.jsx(Wa,{onCancel:Fn,onProceedForMarkAsPaid:Ln,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,an||de?t.jsx(yt,{titleComponent:t.jsx(bt,{children:N.title}),descriptionComponent:t.jsx(ht,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:de?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:wn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:de?Ya(l,e):null}):null,ln?t.jsx(yt,{titleComponent:t.jsx(bt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ht,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Tn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(fi,{windowSize:l,children:[l!=="small"?t.jsxs(xi,{windowSize:l,children:[he,e.isRecurring?t.jsx(ke,{height:a.sp5,width:a.sp5}):null]}):null,W&&S!=null&&S.code==="deleted"?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Ce.tabsById.overdue?t.jsx(Bt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(aa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ia,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:tt,scheduleDate:le,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ti(X,e,_),t.jsx(la,{sectionId:oa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Be,isBillPaid:ye,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Le,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(Ae,{children:n.whatForTitle}),t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:n.invoiceNumber,width:j},text:ie.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:n.invoiceDate,width:j},text:ie.invoiceDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:n.billDueDate,width:j},text:ie.billDueDate?.format(je)??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:n.memo,width:j},text:ie.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(gi,{windowSize:l,children:t.jsx(Ae,{children:n.lineItemsTitle})}),be.length>0?be.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Zn=>Zn.id===r.lineId)?.recipientAmount;return t.jsxs(mi,{children:[be.length>1?t.jsx(ui,{windowSize:l,children:t.jsx(yi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(Ie,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:n.amount,width:j},text:R!=null?Se("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:n.description,width:j},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:n.category,width:j},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:n.class,width:j},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:n.billable,width:j},text:r.billable!=null?jn(r.billable):C,style:{width:"auto"}})}),t.jsx(M,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:n.customer,width:j},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(wi,{windowSize:l,children:[t.jsx(Ti,{children:n.total}),t.jsx(vi,{children:ge!=null?t.jsx(ra,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(Ae,{children:n.paymentDetailsTitle}),t.jsxs(Ie,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:oe.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(M,{})]}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(Ea)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ai,{children:sa(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?ei(e.outsideZeniPaymentInfo):ct(d.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(M,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentTo,width:j},text:d.paymentToBankAccount!=null?$n:d.paymentToPI!=null?d.paymentToPI.displayText:An,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:kn(),additionalInfoLabel:t.jsx(ni,{children:Cn})}),Pn()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(M,{}),t.jsx(I,{isThreadAllowed:x,entityId:h,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ca(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:da(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx($i,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(pa,{onAttachmentClick:Le,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??Tt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ma,{amount:Dn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Xt,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Zt,signedInUserId:re?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Jt,onSaveRealTimeApprovals:en},historicActivities:e.billHistory.activities}),t.jsx(Di,{})]}),e.transactionDetails?.vendor!=null&&!ye&&!e.transactionDetails.isDeleted?t.jsx(ua,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||f,showCancel:!U&&f,cancelBtn:{label:ot?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:_n,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ja(U,ot),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?rt:()=>{_!=null?Y(!0):st()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(ii,{children:t.jsxs(ci,{windowSize:l,children:[!X&&Ee?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-container"),children:[E!=="processing"&&it?t.jsx(Z,{onClick:bn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,E==="processing"&&!B?t.jsx(Z,{onClick:gn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,E==="processing"&<?t.jsx(Z,{onClick:fn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,f&&F&&Pe?t.jsx(Z,{onClick:On,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,_e?t.jsx(ft,{onClickAway:()=>{se(!1),pe(!1)},children:t.jsxs($t,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(Z,{onClick:()=>{z.trackRetryClick(D?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,we?t.jsx(Z,{onClick:xn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(di,{windowSize:l,children:[Rn===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Te?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:Te,"data-testid":b("other-actions-icon-container"),children:Te?t.jsx(vn,{}):t.jsx(oi,{})})}):null,!X&&fe===!0?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ga,placement:"top",children:t.jsx(si,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(ri,{})})}):null,!X&&zn===!0&&Nn?t.jsx(ve,{enterDelay:600,style:{color:oe.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(It,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(li,{onClick:()=>se(!Ee)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(Ma,{id:v,children:t.jsx(ya,{isDrawerOpen:rn,allowComposer:!0,drawerTitle:Xa,threads:q,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:Dt.addANewComment,replyComposerPlaceholder:Dt.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:En,onThreadClick:sn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Qa=(e,g)=>{const f=e?.code;if(e!=null&&f!=null)return g?.isDeleted===!0?{value:Ce.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:f==="pending_approval"&&g?.dueDate?.isBefore(_a(),"date")===!0?{value:Ce.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[f].color,bgColor:L[f].bgColor,borderColor:L[f].borderColor}},Ya=(e,g)=>{const f=g.transactionDetails?.recipientTotalAmount;return t.jsxs(Ai,{windowSize:e,children:[t.jsxs(Rt,{windowSize:e,children:[t.jsx(Mt,{children:n.zeniAssist.accountNumber}),t.jsx(zt,{children:g.withdrawFrom!=null?Ot(g.withdrawFrom,e):c})]}),t.jsxs(Rt,{windowSize:e,children:[t.jsx(Mt,{children:n.zeniAssist.amount}),t.jsx(zt,{children:f!=null?Se("0,0[.]00",f):C})]})]})},Ja=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,ei=e=>{const g=e.paymentMode,f=n.paymentOutsideZeni.offline;if(g==null||g==="other")return f;const W=n.paymentOutsideZeni.paymentModeOptions.find(re=>re.value===g)?.label;return`${f} ${Ha} ${W}`},ti=(e,g,f)=>{if(e)return t.jsx(wt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:vt.duplicateWarning.title,description:vt.duplicateWarning.description});if(f!=null){const W=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(wt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${_t.lowBalanceIn.replace("__account__",W)}`,description:f.replace("Low balance! ","")})}else return null},ni=i.div``,ai=i.div``,ii=i.div`
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: flex-end;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{y as O,u as L,Q as M,F as U,a9 as W,aQ as G,aJ as Q,cF as J,V as r,bC as X,ac as H,aR as K,o as u,g7 as Y}from"./index-
|
|
1
|
+
import{y as O,u as L,Q as M,F as U,a9 as W,aQ as G,aJ as Q,cF as J,V as r,bC as X,ac as H,aR as K,o as u,g7 as Y}from"./index-BnSnD4Ea.js";import{a as T}from"./sentry-YGvsS0ez.js";import{n as h}from"./mui-BDZGIUkR.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-Cul0Cxvm-BQEdiHT7.js";import"./liveblocks-DWtyrD8F.js";import"./core-DTBVlpj8.js";import"./recharts-CubDZ_7X.js";import"./zeni-epic-state--v0gKXZH.js";import"./lottie-BQFxz1iJ.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="6e44f62d-6615-47bf-97eb-91d6dd2e2a21",e._sentryDebugIdIdentifier="sentry-dbid-6e44f62d-6615-47bf-97eb-91d6dd2e2a21")}catch{}})();const C="billPayApprovalRuleDetailPage",k="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new O(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const P=M(),t=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:F,billPaySetupApproverViewUpdateData:f}=e;let m=p.length>1?p.length-1:0,v=p.length>0?p[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=p.findIndex(d=>d.approvalRuleId===i),v=m>0?p[m-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()}),q=async(i,d)=>{s(d)};return T.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const z=Q(d);J(()=>q($,z))}});return()=>{i.unsubscribe()}}),T.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(X,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(H,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:j(C),onSubmit:V,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(K,{formId:j(C),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[k]:l?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),j=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as W,F as S,V as t,bC as G,T as V,aP as f,y as r,al as M,o as i,aN as z,bT as P,cp as q,cq as F,cr as K,d0 as O,u as l,b9 as Q,R as T,b8 as Z,p as j,cZ as J,bt as X,b as Y}from"./index-
|
|
1
|
+
import{Q as W,F as S,V as t,bC as G,T as V,aP as f,y as r,al as M,o as i,aN as z,bT as P,cp as q,cq as F,cr as K,d0 as O,u as l,b9 as Q,R as T,b8 as Z,p as j,cZ as J,bt as X,b as Y}from"./index-BnSnD4Ea.js";import{n as o}from"./mui-BDZGIUkR.js";import{a as ee}from"./sentry-YGvsS0ez.js";import"./liveblocks-DWtyrD8F.js";import"./core-DTBVlpj8.js";import"./recharts-CubDZ_7X.js";import"./zeni-epic-state--v0gKXZH.js";import"./lottie-BQFxz1iJ.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="a3f44a8f-deae-4f3c-b2fd-5f8a961957e5",e._sentryDebugIdIdentifier="sentry-dbid-a3f44a8f-deae-4f3c-b2fd-5f8a961957e5")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},N={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:b,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U=()=>{h(!0)},E={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(L,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(k,{}),t.jsx(le,{}),t.jsx(k,{})]}),m.max==null?t.jsx(he,{}):t.jsx(L,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(I,{$isDisabled:!0,"data-testid":f("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(I,{onClick:U,"data-testid":f("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":f("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{b(x)},"data-testid":f("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(A,{children:[t.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(A,{children:[t.jsxs(R,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},H))})}),v?t.jsx(q,{titleComponent:t.jsx(K,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(F,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:E}):null]})},oe=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
|
package/dist/assets/{BillPayPromoPage-CbXq0YNV-rXFaEpJE.js → BillPayPromoPage-CbXq0YNV-CyQSG6os.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aw as X,Q as f,aQ as Y,V as e,ft as ee,bC as ie,r as C,aP as B,ae as m,F as I,o as s,aq as se,c as le,e as U,aT as M,am as oe,y as re,p as $,cE as te,aU as ae,ba as ne,u as de}from"./index-
|
|
1
|
+
import{aw as X,Q as f,aQ as Y,V as e,ft as ee,bC as ie,r as C,aP as B,ae as m,F as I,o as s,aq as se,c as le,e as U,aT as M,am as oe,y as re,p as $,cE as te,aU as ae,ba as ne,u as de}from"./index-BnSnD4Ea.js";import{a as g}from"./sentry-YGvsS0ez.js";import{n as l}from"./mui-BDZGIUkR.js";import{FA as ce,bS as pe,FB as me}from"./zeni-epic-state--v0gKXZH.js";import{C as xe}from"./VideoPopup-CSSLhfoi-E_C121QZ.js";import{M as b}from"./usp-line-BBd1wKwW-CegBz6mw.js";import"./liveblocks-DWtyrD8F.js";import"./core-DTBVlpj8.js";import"./recharts-CubDZ_7X.js";import"./lottie-BQFxz1iJ.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";import"./VideoPlayer-DcPwSvda-BRsLoDwi.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="713a653a-d6c6-483a-8eff-abdeb9379614",i._sentryDebugIdIdentifier="sentry-dbid-713a653a-d6c6-483a-8eff-abdeb9379614")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new re(de[5],44)},ge=l.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: 1 1 auto;
|
|
4
4
|
min-height: 100%;
|
package/dist/assets/{BillPaySetUpPage-CwP6Aw2I-D-V51AjE.js → BillPaySetUpPage-CwP6Aw2I-B4FgNPs2.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as _e,Q as $e,aQ as E,a9 as Oe,cF as Re,F as Ue,aV as Z,V as t,fb as He,p as ze,aP as Le,y as u,bC as Ne,T as qe,ac as Me,fu as H,dR as Ge,fv as Je,bw as Qe,dH as Ke,bT as Ze,fw as Ye,aR as Xe,o as L,fx as et,u as a,al as tt,bK as it}from"./index-
|
|
1
|
+
import{e as _e,Q as $e,aQ as E,a9 as Oe,cF as Re,F as Ue,aV as Z,V as t,fb as He,p as ze,aP as Le,y as u,bC as Ne,T as qe,ac as Me,fu as H,dR as Ge,fv as Je,bw as Qe,dH as Ke,bT as Ze,fw as Ye,aR as Xe,o as L,fx as et,u as a,al as tt,bK as it}from"./index-BnSnD4Ea.js";import{a as b}from"./sentry-YGvsS0ez.js";import{n as m}from"./mui-BDZGIUkR.js";import{bJ as nt}from"./zeni-epic-state--v0gKXZH.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-BmiNa89K-DJN45T3C.js";import"./liveblocks-DWtyrD8F.js";import"./core-DTBVlpj8.js";import"./recharts-CubDZ_7X.js";import"./lottie-BQFxz1iJ.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="7bacabbd-fbc3-4164-935d-d9e74b3bc9bb",e._sentryDebugIdIdentifier="sentry-dbid-7bacabbd-fbc3-4164-935d-d9e74b3bc9bb")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:be,onEnableBillPaySuccess:N,onClickMenuIcon:me,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=_e(),i=$e(),[A,S]=b.useState(!1),q=b.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:D,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,_=D.link_account.updateStatus,$=D.update_account.updateStatus,j=E(f),J=E(P.fetchState),Q=E(_.fetchState),K=E($.fetchState),w=Oe({mode:"all",reValidateMode:"onChange",defaultValues:b.useMemo(()=>z(e),[e]),values:z(e)});b.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&j==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,j]),b.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||Q==="In-Progress"&&_.fetchState==="Completed"||K==="In-Progress"&&$.fetchState==="Completed")&&w.reset(z(e))},[j,f,w,e,Q,_.fetchState,K,$.fetchState]);const Ve=w.handleSubmit(x=>{y.trackEnableBillPay(),be()}),je=async(x,F)=>{const o=F[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=M.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};b.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>je(o,F))});return()=>{x.unsubscribe()}}),b.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&N()},[N,J,P.fetchState]);const{commonSetUp:Be,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Be,{billPaySetup:l}=Fe.billPay,O=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=O?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=k.mode==="light"?new Z(k.colors.brandColorJadeLight):new Z(k.colors.brandColorJadeDark),De=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(Ne,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:me,scrollableContent:q,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...w,children:t.jsx("form",{id:X(Y),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:De,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:M,plaidConnectionDetails:D,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ze,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),O&&!R&&V.length>0?t.jsx(Xe,{formId:X(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(et,{isFooterRendered:O&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=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{e as we,Q as be,a9 as Ce,cF as Pe,aV as k,F as xe,V as t,y as P,bC as Ie,T as Ae,ac as ve,bw as je,cG as ke,aR as Te,o as s,hL as $e,eZ as Ve,e_ as De,u as x,al as Be,gU as Ee,p as Le,R as ze}from"./index-
|
|
1
|
+
import{e as we,Q as be,a9 as Ce,cF as Pe,aV as k,F as xe,V as t,y as P,bC as Ie,T as Ae,ac as ve,bw as je,cG as ke,aR as Te,o as s,hL as $e,eZ as Ve,e_ as De,u as x,al as Be,gU as Ee,p as Le,R as ze}from"./index-BnSnD4Ea.js";import{a as R}from"./sentry-YGvsS0ez.js";import{n as r}from"./mui-BDZGIUkR.js";import{M as Oe,r as F,o as _e}from"./PaymentAccountSetupBillingAddressSection-ChGcOYcG-DSLZbTG2.js";import{F as Me}from"./SetUpAccountSection-D1MXUm9M-BT-6loSN.js";import"./liveblocks-DWtyrD8F.js";import"./core-DTBVlpj8.js";import"./recharts-CubDZ_7X.js";import"./zeni-epic-state--v0gKXZH.js";import"./lottie-BQFxz1iJ.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="baa01c28-cbcb-4638-8cd9-9ea3868a9c17",e._sentryDebugIdIdentifier="sentry-dbid-baa01c28-cbcb-4638-8cd9-9ea3868a9c17")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Re={title:new ze("standardSemiBold","largeSemiBold")},W="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:G,stripeKey:K,googleAPIKey:N,companyId:J,onUpdateAccountClick:q,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:T,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:$},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=$.fetchState==="In-Progress"||$.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:H(i),values:H(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(J)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:w}=a[n].street,j=Ve(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:De(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&q(g.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=b.mode==="light"?new k(b.colors.brandColorJadeLight):new k(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,z=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(S.header,S.titleText,S.protectedCardNo,h);let _;L&&(_={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:F(z).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:F(z).name}),color:new k(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,Se]=R.useState(!1);return t.jsxs(We,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(Fe,{windowSize:o,children:[t.jsx(He,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(qe,{children:t.jsx("form",{id:U(W),onSubmit:pe,children:t.jsxs(Ge,{windowSize:o,children:[t.jsx(Me,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:T,cardPaymentSectionValues:_,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),ke(f.formState.dirtyFields)?t.jsx(Te,{formId:U(W),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(_e,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:T,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:G.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:M,setCardSetupInProgress:Se})]})},H=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:$e(n,e.subscriptionBillingAddress)[n]}},Fe=r.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
height: 100%;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as b,cp as V,cq as q,cr as M,k8 as W,aY as Y,F as z}from"./index-
|
|
1
|
+
import{V as b,cp as V,cq as q,cr as M,k8 as W,aY as Y,F as z}from"./index-BnSnD4Ea.js";import{a as f}from"./sentry-YGvsS0ez.js";import{Gh as G}from"./zeni-epic-state--v0gKXZH.js";import{u as K}from"./ReviewOverlay-B8Quli7Z-MyD40hHz.js";import"./liveblocks-DWtyrD8F.js";import"./core-DTBVlpj8.js";import"./recharts-CubDZ_7X.js";import"./mui-BDZGIUkR.js";import"./lottie-BQFxz1iJ.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1e613db3-c714-44a8-adff-45170c3ed771",e._sentryDebugIdIdentifier="sentry-dbid-1e613db3-c714-44a8-adff-45170c3ed771")}catch{}})();const{common:s,spendManagement:{billPay:x}}=z.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,v]=f.useState(T(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(M,{children:y.title}),descriptionComponent:b.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(K,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:Y("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&G(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=W([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as l,V as s,aP as b,o as e}from"./index-
|
|
1
|
+
import{Q as l,V as s,aP as b,o as e}from"./index-BnSnD4Ea.js";import{n as a}from"./mui-BDZGIUkR.js";import{o as p}from"./commonDimensions-Upfg-PB1-DtD1FLbn.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="47d95265-650e-424c-a359-e888190ea068",o._sentryDebugIdIdentifier="sentry-dbid-47d95265-650e-424c-a359-e888190ea068")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
|
|
4
4
|
min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as ct,Q as dt,aQ as De,V as a,ae as G,a9 as mt,cT as ut,ay as pt,cF as ft,aY as ve,aO as Ie,ga as yt,r as ht,bC as gt,aP as xt,cG as St,cp as wt,cq as bt,cr as Ct,T as Tt,ac as Dt,aR as vt,o,y as O,am as Ve,F as Le,gb as It,fy as $e,eZ as $t,c as kt,C as Pt,al as Fe,R as jt,a as Nt,u as k}from"./index-CRjLU1CH.js";import{a as V}from"./sentry-DZdy1Eny.js";import{n as d}from"./mui-G_qoHHKo.js";import{ER as Ot,bi as M}from"./zeni-epic-state-BlmgKn3B.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-1BDesjjs-BJgYaGxB.js";import"./liveblocks-B2F837W5.js";import"./core-BZCxWmUX.js";import"./recharts-CCryt90F.js";import"./lottie-CgAPdzgC.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";import"./LabeledAddressValueField-BNPvRvHU-EK3HrcNO.js";import"./LabeledCreatableSingleSelectField-C1dHZ9ym-iC8YKpuW.js";import"./LabeledDocumentField-ffpHZV4a-BUHqIKgG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},D=new e.Error().stack;D&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[D]="888267c1-a770-404f-b845-da6d3622dc9f",e._sentryDebugIdIdentifier="sentry-dbid-888267c1-a770-404f-b845-da6d3622dc9f")}catch{}})();const x={width:new O(343,580,726),titleWidth:new O(343,580,726,826),subTitlePaddingTop:new O(12,k[3]),subTitlePaddingBottom:new O(k[3],k[3]),verificationDetailsRowGap:new O(12,k[5],k[5]),termsPaddingLeftRight:new O(k[0],k[3])},Ft={stepTitle:new jt("h6Regular","h5Regular")},ke="businessVerificationPage",C="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:Pe,footer:je,strings:{empty:At}}}=Le.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:D,verficationDetailsFetchState:P,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:j,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:Q=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,onSendForVerificationClick:ze,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:We,onCompanyOfficerUpdated:Ge,saveNewAddressInLocalStore:re,onSaveDetailsClick:Me,onClickMenuIcon:Qe,onExecuteTreasuryTransfer:qe})=>{const Ke=ct(),m=dt(),{updateStatus:z,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Xe=De(z.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=U==="unit"?a.jsxs(Qt,{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,[Ze,q]=V.useState(!1),[W,oe]=V.useState("save"),[K,Je]=V.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,B,E,D)}),{isValid:He}=u.formState,X=F?.company.company.companyBillPayInfo,Y=F?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?Y?.companyVerificationStatus:X?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,$=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?M(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?M(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&b!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:Te},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Z!=null&&Z?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(W!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${T}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),ze?.(I),Q===!0&&qe?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(T)&&Ge?.(s[T])},nt=V.useCallback(pt((t,s)=>{st(t,s)},300),[]);V.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=De(e.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Z=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{q(!1),L();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${T}.${f}.fileIds`).forEach($=>{b.includes($)||t.push($)})}),t.length!==0&&We?.(t)},onCancelClick:()=>{q(!1)}},lt=ve(Ie(p),p,Pe.currencySymbol).toUpperCase(),J=N?.code==="pending_review"||N?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&N?.code==="pending_review"&&Xe==="In-Progress"&&z.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:Q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Jt,{isReadonly:!1,children:Q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(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:()=>{L(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Ke.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?q(!0):L()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ze===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),P==="In-Progress"||P==="Not-Started"?a.jsx(Wt,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(Dt,{...u,children:a.jsxs("form",{id:Ne(ke),onSubmit:it,children:[h&&S===!0&&a.jsxs(Rt,{children:[a.jsxs(qt,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:J?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!J&&a.jsx(Xt,{children:a.jsxs(Yt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Zt,{})]})})]}),a.jsx(_e,{isReadonly:J,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Gt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:D,allOfficers:Z??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:j,filesEndPoint:r,authParams:A,isPopupOpen:K,openPopup:Je,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":j,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Mt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),P==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Ne(ke),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="verification"&&z.fetchState==="In-Progress",isDisabled:j!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="save"&&z.fetchState==="In-Progress",onClick:()=>{if(S)L();else{const t=w[I],s=l?.primaryContactLocalData;W!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?M(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?M(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Me?.(I))}}},helperText:Ye,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Bt=(e,D,P,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=e,B=Le.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:D?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(A).map((p,j)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${j+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:P?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,n?.userFiles??[],h),back:$e(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&j===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=e=>`${e}_form`,Et=d.div`
|
|
1
|
+
import{e as ct,Q as dt,aQ as De,V as a,ae as G,a9 as mt,cT as ut,ay as pt,cF as ft,aY as ve,aO as Ie,ga as yt,r as ht,bC as gt,aP as xt,cG as St,cp as wt,cq as bt,cr as Ct,T as Tt,ac as Dt,aR as vt,o,y as O,am as Ve,F as Le,gb as It,fy as $e,eZ as $t,c as kt,C as Pt,al as Fe,R as jt,a as Nt,u as k}from"./index-BnSnD4Ea.js";import{a as V}from"./sentry-YGvsS0ez.js";import{n as d}from"./mui-BDZGIUkR.js";import{ER as Ot,bi as M}from"./zeni-epic-state--v0gKXZH.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-1BDesjjs-DZ02QoIK.js";import"./liveblocks-DWtyrD8F.js";import"./core-DTBVlpj8.js";import"./recharts-CubDZ_7X.js";import"./lottie-BQFxz1iJ.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";import"./LabeledAddressValueField-BNPvRvHU-BdpBZiOb.js";import"./LabeledCreatableSingleSelectField-C1dHZ9ym-D1LCC1u-.js";import"./LabeledDocumentField-ffpHZV4a-CPQsh_Na.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},D=new e.Error().stack;D&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[D]="888267c1-a770-404f-b845-da6d3622dc9f",e._sentryDebugIdIdentifier="sentry-dbid-888267c1-a770-404f-b845-da6d3622dc9f")}catch{}})();const x={width:new O(343,580,726),titleWidth:new O(343,580,726,826),subTitlePaddingTop:new O(12,k[3]),subTitlePaddingBottom:new O(k[3],k[3]),verificationDetailsRowGap:new O(12,k[5],k[5]),termsPaddingLeftRight:new O(k[0],k[3])},Ft={stepTitle:new jt("h6Regular","h5Regular")},ke="businessVerificationPage",C="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:Pe,footer:je,strings:{empty:At}}}=Le.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:D,verficationDetailsFetchState:P,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:j,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:Q=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,onSendForVerificationClick:ze,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:We,onCompanyOfficerUpdated:Ge,saveNewAddressInLocalStore:re,onSaveDetailsClick:Me,onClickMenuIcon:Qe,onExecuteTreasuryTransfer:qe})=>{const Ke=ct(),m=dt(),{updateStatus:z,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Xe=De(z.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=U==="unit"?a.jsxs(Qt,{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,[Ze,q]=V.useState(!1),[W,oe]=V.useState("save"),[K,Je]=V.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,B,E,D)}),{isValid:He}=u.formState,X=F?.company.company.companyBillPayInfo,Y=F?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?Y?.companyVerificationStatus:X?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,$=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?M(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?M(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&b!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:Te},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Z!=null&&Z?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(W!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${T}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),ze?.(I),Q===!0&&qe?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(T)&&Ge?.(s[T])},nt=V.useCallback(pt((t,s)=>{st(t,s)},300),[]);V.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=De(e.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Z=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{q(!1),L();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${T}.${f}.fileIds`).forEach($=>{b.includes($)||t.push($)})}),t.length!==0&&We?.(t)},onCancelClick:()=>{q(!1)}},lt=ve(Ie(p),p,Pe.currencySymbol).toUpperCase(),J=N?.code==="pending_review"||N?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&N?.code==="pending_review"&&Xe==="In-Progress"&&z.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:Q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Jt,{isReadonly:!1,children:Q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(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:()=>{L(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Ke.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?q(!0):L()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ze===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),P==="In-Progress"||P==="Not-Started"?a.jsx(Wt,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(Dt,{...u,children:a.jsxs("form",{id:Ne(ke),onSubmit:it,children:[h&&S===!0&&a.jsxs(Rt,{children:[a.jsxs(qt,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:J?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!J&&a.jsx(Xt,{children:a.jsxs(Yt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Zt,{})]})})]}),a.jsx(_e,{isReadonly:J,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Gt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:D,allOfficers:Z??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:j,filesEndPoint:r,authParams:A,isPopupOpen:K,openPopup:Je,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":j,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Mt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),P==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Ne(ke),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="verification"&&z.fetchState==="In-Progress",isDisabled:j!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="save"&&z.fetchState==="In-Progress",onClick:()=>{if(S)L();else{const t=w[I],s=l?.primaryContactLocalData;W!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?M(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?M(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Me?.(I))}}},helperText:Ye,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Bt=(e,D,P,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=e,B=Le.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:D?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(A).map((p,j)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${j+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:P?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,n?.userFiles??[],h),back:$e(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&j===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=e=>`${e}_form`,Et=d.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
min-height: 100%;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as m,V as r,F as b,b as y,o as a,R as w,a as x}from"./index-
|
|
1
|
+
import{Q as m,V as r,F as b,b as y,o as a,R as w,a as x}from"./index-BnSnD4Ea.js";import{n as o}from"./mui-BDZGIUkR.js";import{a as c}from"./sentry-YGvsS0ez.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="7e9f564c-14a8-476d-82f6-b9950b2dbca2",e._sentryDebugIdIdentifier="sentry-dbid-7e9f564c-14a8-476d-82f6-b9950b2dbca2")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=b.getLocalizedStrings(),C={subText:new w("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,r.jsx(H,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},v=o(x)`
|
|
2
2
|
${e=>e.forDetailPage?{...y.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
|
|
3
3
|
color: ${e=>e.theme.colors.hero};
|
|
4
4
|
max-width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as k,Q as f,V as t,bC as te,fh as z,b as u,b3 as Q,b$ as ie,o as i,F as w,p as B,y as h,al as v,di as oe,u as l,aY as re,aN as T,bR as ae,ai as $,aP as L,ji as X,jj as q,i_ as se,cz as ne,cC as de,am as O,i$ as le,j0 as ce}from"./index-
|
|
1
|
+
import{e as k,Q as f,V as t,bC as te,fh as z,b as u,b3 as Q,b$ as ie,o as i,F as w,p as B,y as h,al as v,di as oe,u as l,aY as re,aN as T,bR as ae,ai as $,aP as L,ji as X,jj as q,i_ as se,cz as ne,cC as de,am as O,i$ as le,j0 as ce}from"./index-BnSnD4Ea.js";import{n as o}from"./mui-BDZGIUkR.js";import{G8 as b,bh as he}from"./zeni-epic-state--v0gKXZH.js";import{P as R,a as V}from"./sentry-YGvsS0ez.js";import{F as pe}from"./InsightsSection-Ldcdpf_t-B5FO4TNq.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as fe}from"./recharts-CubDZ_7X.js";import"./liveblocks-DWtyrD8F.js";import"./core-DTBVlpj8.js";import"./lottie-BQFxz1iJ.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";import"./NavigationDots-CjxNj1Qo-9OALTUT1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="6bafeafe-aa99-490e-9b35-fddc552e93d3",e._sentryDebugIdIdentifier="sentry-dbid-6bafeafe-aa99-490e-9b35-fddc552e93d3")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=k();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(_,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(_,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: ${i.sp1};
|
|
4
4
|
`,je=o.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as at,Q as Ie,aw as Lt,a8 as Dt,gZ as Sr,hC as Ti,aV as et,g_ as $r,aQ as tt,V as t,h1 as Ai,bC as Fi,u as h,fV as vr,aN as qe,aP as Q,bB as Ri,bT as ta,p as c,o as a,F as ke,j4 as kr,b as _,cp as Ei,j5 as Pi,fb as zi,gP as Mi,j6 as Vi,bF as Oi,bO as jr,aT as aa,y as T,b7 as ra,bK as Ir,ai as Ce,eF as Hi,ba as ia,iU as Ni,aU as Lr,h as ft,h0 as Dr,cd as Bi,T as Ct,b3 as Wi,dp as _i,ct as Ui,j7 as Gi,j8 as Tr,j9 as dt,Y as Zi,a$ as qi,ja as Yi,jb as Ki,cq as Ji,d6 as Xi,hz as Qi,al as ze,bV as eo,av as Ut,jc as Ma,jd as to,dj as ao,R as Va,a as Ar,b9 as ro,aB as io,iO as mt,iZ as oo,j2 as no,j3 as so,dw as Oa,eV as co,r as Fr,cz as Rr,iX as lo,bY as ho,d as Er,je as po,au as kt,b$ as Ha,bx as uo,df as mo,aq as go,am as lt,gY as Co,C as fo,bG as wo,jf as Tt,fo as xo,jg as Pr,gz as zr,jh as It,ig as Mr,i4 as Vr,bR as yo,ek as Or,i_ as bo,cC as So,dR as $o,d0 as vo,i$ as ko,j0 as jo,eq as Io,cg as Lo,ch as Do}from"./index-
|
|
1
|
+
import{e as at,Q as Ie,aw as Lt,a8 as Dt,gZ as Sr,hC as Ti,aV as et,g_ as $r,aQ as tt,V as t,h1 as Ai,bC as Fi,u as h,fV as vr,aN as qe,aP as Q,bB as Ri,bT as ta,p as c,o as a,F as ke,j4 as kr,b as _,cp as Ei,j5 as Pi,fb as zi,gP as Mi,j6 as Vi,bF as Oi,bO as jr,aT as aa,y as T,b7 as ra,bK as Ir,ai as Ce,eF as Hi,ba as ia,iU as Ni,aU as Lr,h as ft,h0 as Dr,cd as Bi,T as Ct,b3 as Wi,dp as _i,ct as Ui,j7 as Gi,j8 as Tr,j9 as dt,Y as Zi,a$ as qi,ja as Yi,jb as Ki,cq as Ji,d6 as Xi,hz as Qi,al as ze,bV as eo,av as Ut,jc as Ma,jd as to,dj as ao,R as Va,a as Ar,b9 as ro,aB as io,iO as mt,iZ as oo,j2 as no,j3 as so,dw as Oa,eV as co,r as Fr,cz as Rr,iX as lo,bY as ho,d as Er,je as po,au as kt,b$ as Ha,bx as uo,df as mo,aq as go,am as lt,gY as Co,C as fo,bG as wo,jf as Tt,fo as xo,jg as Pr,gz as zr,jh as It,ig as Mr,i4 as Vr,bR as yo,ek as Or,i_ as bo,cC as So,dR as $o,d0 as vo,i$ as ko,j0 as jo,eq as Io,cg as Lo,ch as Do}from"./index-BnSnD4Ea.js";import{a as o,P as To}from"./sentry-YGvsS0ez.js";import{n as r,c as we,k as Hr}from"./mui-BDZGIUkR.js";import{EP as At,bh as Ao,bf as Fo,G7 as Ro}from"./zeni-epic-state--v0gKXZH.js";import{k as Eo}from"./NavigationDots-CjxNj1Qo-9OALTUT1.js";import{A as Po,i as zo,a as Mo,l as Vo,r as Oo,t as Ho,n as No}from"./add-to-wallet-DgdBD8_G-BL7IsC-K.js";import{L as Gt}from"./lottie-BQFxz1iJ.js";import{j as Bo}from"./CardNumberSubText-DPlqciQh-B1Nr2V3T.js";import{l as Wo}from"./panelSelectedMixin-CzfD5-Zs-jMGIBDwH.js";import{r as Nr}from"./core-DTBVlpj8.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-BxcM6Vxg.js";import{L as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-DYD2_HzF-DDuA78z8.js";import"./liveblocks-DWtyrD8F.js";import"./recharts-CubDZ_7X.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";import"./RoleWithToolTip-DL78JlR8-Bg-tBnZX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="4d5a691f-2f3b-40e5-9771-29b17243134c",e._sentryDebugIdIdentifier="sentry-dbid-4d5a691f-2f3b-40e5-9771-29b17243134c")}catch{}})();const Wr=ke.getLocalizedStrings().spendManagement.chargeCard,qo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:w,chargeCardDetailView:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:A,setWalletType:S,setIsAddToWalletDrawerOpen:z,isDebitCard:M})=>{const y=Dt().analytics,{isIPadScreen:G}=Yi(),{isAndroidScreen:Y}=Ki(),K=Lt(),F=At(K.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(j,"_blank")}}):Y===!0?t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{S("apple"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}}),t.jsx(Qt,{onClick:()=>{S("google"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}})]})})},Qt=({onClick:e})=>{const i=at();return t.jsx(Fr,{prefixIcon:t.jsx(Ko,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=at();return t.jsx(Fr,{prefixIcon:t.jsx(Jo,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-apple-wallet-button")})},Yo=r.div`
|
|
2
2
|
margin-top: ${a.sp4};
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a8 as Za,aQ as z,aw as er,fU as tr,iO as W,Q as Ee,o as a,e as ta,V as t,bC as ar,g6 as rr,fh as ie,b as D,bT as nt,p,aN as me,aP as V,aY as st,F as Fe,y as H,ai as K,R as ir,a as or,cX as nr,as as aa,bK as sr,a$ as ct,aT as dr,am as lt,a9 as cr,gS as lr,c_ as ur,ao as hr,ac as mr,gc as pr,r as Nt,u as _,d8 as ra,aq as Cr,al as gr,c as br,cW as fr,bv as xr,bV as yr}from"./index-
|
|
1
|
+
import{a8 as Za,aQ as z,aw as er,fU as tr,iO as W,Q as Ee,o as a,e as ta,V as t,bC as ar,g6 as rr,fh as ie,b as D,bT as nt,p,aN as me,aP as V,aY as st,F as Fe,y as H,ai as K,R as ir,a as or,cX as nr,as as aa,bK as sr,a$ as ct,aT as dr,am as lt,a9 as cr,gS as lr,c_ as ur,ao as hr,ac as mr,gc as pr,r as Nt,u as _,d8 as ra,aq as Cr,al as gr,c as br,cW as fr,bv as xr,bV as yr}from"./index-BnSnD4Ea.js";import{a as l}from"./sentry-YGvsS0ez.js";import{n as r,c as ut,k as Sr}from"./mui-BDZGIUkR.js";import{EP as wr,G6 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state--v0gKXZH.js";import{t as vr}from"./SpendManagementSection-CA8SwNCI-CKNqMm97.js";import{D as oe,r as jr,i as Ar}from"./ChargeCardListTable-BkAggUNy-BaHz9dQe.js";import{ChargeCardPromoUserContent as Lr}from"./ChargeCardPromoPage-B4yj7KP9-BYkB4vac.js";import{N as Pr,J as Er}from"./PromoBaseCards-BHeLFDFF-Il5mG_v3.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-DYD2_HzF-DDuA78z8.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-BS89uvw5.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-DmLH6zSL.js";import"./liveblocks-DWtyrD8F.js";import"./core-DTBVlpj8.js";import"./recharts-CubDZ_7X.js";import"./lottie-BQFxz1iJ.js";import"./analytics-B3sq3okC.js";import"./lexical-DVC693on.js";import"./utils-C1dZuG8s.js";import"./RoleWithToolTip-DL78JlR8-Bg-tBnZX.js";import"./CardNumberSubText-DPlqciQh-B1Nr2V3T.js";import"./NavigationDots-CjxNj1Qo-9OALTUT1.js";import"./usp-line-BBd1wKwW-CegBz6mw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="a9e37ea1-990a-4514-a0f4-2e8a96e9936e",e._sentryDebugIdIdentifier="sentry-dbid-a9e37ea1-990a-4514-a0f4-2e8a96e9936e")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),L=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:L,children:[t.jsxs(na,{children:[L?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),L?null:t.jsx(qr,{children:n})]}),!L&&t.jsxs(Kr,{children:[t.jsx(Yr,{}),m.length>0&&t.jsx(dt,{slideUpCount:m.length,children:m.map((ne,se)=>t.jsx(sa,{children:ne},`card-promo-${se.toString()}`))}),t.jsx(Jr,{})]}),U!=null&&L?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:L,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:L,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cd as ni,V as t,a9 as li,ac as di,F as le,Q as ie,aw as Se,a8 as ci,e as ze,gZ as hi,iP as pi,iQ as ui,iR as mi,aR as gi,o as i,aP as Y,cm as xi,b as Be,p as I,b3 as wi,ct as Ci,iS as fi,iT as yi,bT as ye,cw as Ve,bO as Si,aT as ki,y as C,eF as vi,ba as $i,iU as ji,aU as bi,h as Ii,ai as ee,h0 as Li,am as G,al as Z,u as p,cS as zi,c$ as Fi,iV as Ai,iW as Pi,R as ft,bY as yt,iX as St,iY as Ri,bR as Bi,cz as Ge,iZ as kt,dw as Di,dx as q,aN as ce,cv as vt,T as $t,i_ as _i,cC as Ei,iH as Ze,bK as jt,bM as bt,i$ as Ti,j0 as Vi,aV as $e,bt as Oi,bZ as Ui,b_ as Ni,j1 as Mi}from"./index-CRjLU1CH.js";import{P as pe,a as f}from"./sentry-DZdy1Eny.js";import{n as o,c as Je}from"./mui-G_qoHHKo.js";import{T as It}from"./RoleWithToolTip-DL78JlR8-C9xZrPOP.js";import{j as Oe}from"./CardNumberSubText-DPlqciQh-CtVSDBTQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="72f3e5cc-3f4c-4e77-860a-7245d0f167d6",e._sentryDebugIdIdentifier="sentry-dbid-72f3e5cc-3f4c-4e77-860a-7245d0f167d6")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},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?[{...Qe,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Qe,Xe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Yi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,F=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(V)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":Y("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:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:F[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.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:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":Y("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&R(!0)},onMouseLeave:()=>{A&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{b||m(Fe)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(Z)`
|
|
1
|
+
import{cd as ni,V as t,a9 as li,ac as di,F as le,Q as ie,aw as Se,a8 as ci,e as ze,gZ as hi,iP as pi,iQ as ui,iR as mi,aR as gi,o as i,aP as Y,cm as xi,b as Be,p as I,b3 as wi,ct as Ci,iS as fi,iT as yi,bT as ye,cw as Ve,bO as Si,aT as ki,y as C,eF as vi,ba as $i,iU as ji,aU as bi,h as Ii,ai as ee,h0 as Li,am as G,al as Z,u as p,cS as zi,c$ as Fi,iV as Ai,iW as Pi,R as ft,bY as yt,iX as St,iY as Ri,bR as Bi,cz as Ge,iZ as kt,dw as Di,dx as q,aN as ce,cv as vt,T as $t,i_ as _i,cC as Ei,iH as Ze,bK as jt,bM as bt,i$ as Ti,j0 as Vi,aV as $e,bt as Oi,bZ as Ui,b_ as Ni,j1 as Mi}from"./index-BnSnD4Ea.js";import{P as pe,a as f}from"./sentry-YGvsS0ez.js";import{n as o,c as Je}from"./mui-BDZGIUkR.js";import{T as It}from"./RoleWithToolTip-DL78JlR8-Bg-tBnZX.js";import{j as Oe}from"./CardNumberSubText-DPlqciQh-B1Nr2V3T.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="72f3e5cc-3f4c-4e77-860a-7245d0f167d6",e._sentryDebugIdIdentifier="sentry-dbid-72f3e5cc-3f4c-4e77-860a-7245d0f167d6")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},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?[{...Qe,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Qe,Xe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Yi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,F=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(V)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":Y("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:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:F[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.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:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":Y("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&R(!0)},onMouseLeave:()=>{A&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{b||m(Fe)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(Z)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(Z)`
|
|
4
4
|
color: ${I.important};
|