@zeniai/web-cockpit-ui 1.15.10-qa → 1.15.11-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ACHDetailsPage-BtE9TY6d-DlXHnmZI.js → ACHDetailsPage-CR6ypd9o-CPuvu8Ya.js} +1 -1
- package/dist/assets/{AIPerformancePage-BkDJ2ST0-DdxV1FER.js → AIPerformancePage-C1OU9y7O-Cy2fQhSN.js} +12 -12
- package/dist/assets/{AccountInfoPage-CTbeJLI7-YGwDUr5I.js → AccountInfoPage-CyJ0eFqc-oDTaIYye.js} +1 -1
- package/dist/assets/{AccountInfoPageContent-BUTcEduM-BtBtiOJ1.js → AccountInfoPageContent-CrSVf_Od-DxUVjtpH.js} +7 -7
- package/dist/assets/{AccountLockedInfoModal-v6aQO7JB-Bmx_9fRB.js → AccountLockedInfoModal-DNU_J1FV-BrQt7SPM.js} +1 -1
- package/dist/assets/{AccountReconDetailsDrawerPage-DIAg-5PN-BRImj4bT.js → AccountReconDetailsDrawerPage-DghCIWni-WUADgsvH.js} +1 -1
- package/dist/assets/{AccountRow-BVKk7u7h-DE3jk17J.js → AccountRow-CYv0Uw-I-DQCZ-Htb.js} +1 -1
- package/dist/assets/{AccountsPromoCardStack-CM2kVta7-xsv0XjLY.js → AccountsPromoCardStack-BANu3wYt-CQ0iVQrx.js} +1 -1
- package/dist/assets/{AddAddressForCardDrawer-DDTSYpDb-JihvzEA9.js → AddAddressForCardDrawer-D1XOklKz-D41jak46.js} +1 -1
- package/dist/assets/{AddToWalletPage-D2Qg0MR_-DceA0qP3.js → AddToWalletPage-C8keLYK6-Bn2sefuz.js} +1 -1
- package/dist/assets/{AgingReportsPage-_mSqD2hW-DvZz8QE2.js → AgingReportsPage-L84_Ka8x-B6lkNbiG.js} +1 -1
- package/dist/assets/{AllUserItems-CLsMcXeg-C_vBaRY0.js → AllUserItems-Duwm6ypi-CNUX4dOE.js} +1 -1
- package/dist/assets/{ApAgingDetailPage-BsJuvMuy-B-lDR1HA.js → ApAgingDetailPage-MH7SN7mP-D7GEtWSd.js} +7 -7
- package/dist/assets/{AppBasePage-BxGd2ny5-CWXri9Tj.js → AppBasePage-DpK4Drat-Bt4q9XbU.js} +1 -1
- package/dist/assets/{AppDrawerContent-DzQ2jw8d-D8VrXhaf.js → AppDrawerContent-CR_WXwBz-CFNPiFQp.js} +1 -1
- package/dist/assets/{ApprovalRulesSettingsPage-6n8xLG5c-rUlBEZw-.js → ApprovalRulesSettingsPage-DD2E4NU5-DpHAD8Ti.js} +1 -1
- package/dist/assets/{ArAgingChart-B3T4qk8t-DC1aMv-c.js → ArAgingChart-q1DoAAzl-IMdyrhPv.js} +1 -1
- package/dist/assets/{ArAgingDetailPage-pdf0VjeI-DzDOnrIb.js → ArAgingDetailPage-BKqFTdkz-kMEm6GPZ.js} +1 -1
- package/dist/assets/{AttachmentView-BJfqJ9hP-CzySTjT1.js → AttachmentView-CwbFyo5O-DSfNvuAU.js} +1 -1
- package/dist/assets/{BankAccountSection-Cd_h3co--DX3-l7uu.js → BankAccountSection-DNYhcdas-Ddz8QKzl.js} +1 -1
- package/dist/assets/{BankAccountWarningSection-Cz9fzMVv-C78lIrf-.js → BankAccountWarningSection-B6AIe7nT-BcHAPM_q.js} +1 -1
- package/dist/assets/{BankConnectionsSettingsPage-P-hobvq_-BzAwx3dY.js → BankConnectionsSettingsPage-BQSAz9yS-R3TufSTo.js} +1 -1
- package/dist/assets/{BillDetailPage-B-_gbDGZ-B_LQVm2j.js → BillDetailPage-CJMkS2TO-CUCvdJLF.js} +1 -1
- package/dist/assets/{BillPayApprovalRuleDetailPage-CyoqtTu1-D_fxMPFN.js → BillPayApprovalRuleDetailPage-CWCmHWbz-BO-G290w.js} +1 -1
- package/dist/assets/{BillPayApprovalRulesPage-CTRvfoZN-BFmRwDAj.js → BillPayApprovalRulesPage-0_wlhyx9-CKOGyW5d.js} +1 -1
- package/dist/assets/{BillPayPromoPage-OYlocjA7-Dk_28IQs.js → BillPayPromoPage-CKOYCq5V-C6OfnMF1.js} +5 -5
- package/dist/assets/{BillPaySetUpPage-B8_IEgff-CNh28yQl.js → BillPaySetUpPage-Dibv-FD4-kIfalP85.js} +4 -4
- package/dist/assets/{BillingSettingsPage-DqO-9dDI-Dn4gcjrL.js → BillingSettingsPage-CG9gklV0-CGGGPaut.js} +1 -1
- package/dist/assets/{BillsBulkReviewDrawerPage-B-nfpiM2-jLMe8utH.js → BillsBulkReviewDrawerPage-Cgof7dpG-BwYBq9-d.js} +1 -1
- package/dist/assets/{BoxItem-C-LLQ7NS-CetZc7bf.js → BoxItem-DD7d5_ky-D2d9aLr-.js} +5 -5
- package/dist/assets/{BusinessVerificationPage-BD-G0QbW-DwQy6YJY.js → BusinessVerificationPage-KfKed7nf-Bzkiryv0.js} +1 -1
- package/dist/assets/{CardNumberSubText-CPcuTV6V-BAIo0CeO.js → CardNumberSubText-sE2DGwYG-B174guLL.js} +1 -1
- package/dist/assets/{CashbackDetailPage-CzEHO7NM-DUEG4moa.js → CashbackDetailPage-D1ejnH4R-BltiUdCI.js} +1 -1
- package/dist/assets/{ChargeCardDetailPage-DpA9C48D-DCli43eP.js → ChargeCardDetailPage-Cvs-BEKp-Bqa3oM5k.js} +1 -1
- package/dist/assets/{ChargeCardListPage-igseWp-z-Dd9P_YWL.js → ChargeCardListPage-CW0WF8w6-DBIJI8Xw.js} +1 -1
- package/dist/assets/{ChargeCardListTable-C-nM1SEM-CwYUuouK.js → ChargeCardListTable-43l6tEOp-BbcKoGZ2.js} +1 -1
- package/dist/assets/{ChargeCardPaymentHistoryPage-TCuBt2Cv-DlbhZqYa.js → ChargeCardPaymentHistoryPage-fpQhp74g-BLq-AFt8.js} +1 -1
- package/dist/assets/ChargeCardPromoPage-D0np03A--Bpq9wCjH.js +222 -0
- package/dist/assets/{ChargeCardSetupPage-zdLpdeJV-DFnI87EV.js → ChargeCardSetupPage-CFR2KfLW-Bj3pYNfL.js} +1 -1
- package/dist/assets/{ChargeCardStatementsPage-D42XfAtE-BjUTAyJ7.js → ChargeCardStatementsPage-BMYUlzTk-CZ02SfTF.js} +2 -2
- package/dist/assets/{CheckDepositDrawerPage-DC1L83fB-B0xBmV3f.js → CheckDepositDrawerPage-BXWeeMR7-BYN5c48i.js} +1 -1
- package/dist/assets/{CollapsableReportTable-BWfFYJbH-Csx3Wpo7.js → CollapsableReportTable-CZJ_4MUf-TH_6P-Y_.js} +1 -1
- package/dist/assets/{CompanyOfficerDetailsSection-TNyVByDX-Bd8oGVxr.js → CompanyOfficerDetailsSection-b2itwQOK-DbOlSBag.js} +1 -1
- package/dist/assets/{CompanyPassportCard-DjBkQwpn-BuDYLpsd.js → CompanyPassportCard-C5C3AykH-DcHAKmoT.js} +2 -2
- package/dist/assets/{CompanyPassportPage-CrqL6_wm-eHOcpVG-.js → CompanyPassportPage-D9zWgLlj-CWyCqrqW.js} +12 -12
- package/dist/assets/{CompleteProfile-BP-MRXpZ-BsRg3cEA.js → CompleteProfile-CMnTwbXr-DZqd8rFQ.js} +1 -1
- package/dist/assets/{ConfettiBurst-D2FdlxTA-BHxreRuI.js → ConfettiBurst-BRie0bid-CKCgsLzT.js} +1 -1
- package/dist/assets/{CreateOrEditVendorPage-D2Cuyhtu-Bu3-s1BO.js → CreateOrEditVendorPage-CthcMxEa-PQhPjSjB.js} +1 -1
- package/dist/assets/{CreditCardPaymentDrawerPage-LQiWqyEO-8lUSxdSh.js → CreditCardPaymentDrawerPage-LD349Ert-C4Wbd8yP.js} +1 -1
- package/dist/assets/{CurrencySelectField-Dpcv7_rA-CvKH35Va.js → CurrencySelectField-iXGB-cNy-BRjQHy5W.js} +1 -1
- package/dist/assets/{CustomerOnboardingActivationPage-BRWiLUVc-D_n61q9B.js → CustomerOnboardingActivationPage-BuZrVCRr-DQvZbF43.js} +1 -1
- package/dist/assets/CustomerOnboardingContainerPage-DrNstqxI-DBMIRSp3.js +1 -0
- package/dist/assets/{CustomerOnboardingDetailPageSkeleton-D4fUQLXG-kIqkIxNG.js → CustomerOnboardingDetailPageSkeleton-L4WssPjU-BL2-a44j.js} +1 -1
- package/dist/assets/{CustomerOnboardingNoStepsPage-CxF6ZEAa-poyeACv-.js → CustomerOnboardingNoStepsPage-Bqv6vbYJ-B4xhs9JC.js} +1 -1
- package/dist/assets/{CustomerOnboardingPage-DKcr5stz-Bki5C5w9.js → CustomerOnboardingPage-D7YVlzdy-GqcXPa-d.js} +1 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-DLzC-lxj-pVKJNYgp.js +202 -0
- package/dist/assets/{Dashboard-DMAOn7Hi-D-lic6Dc.js → Dashboard-BgpeTLE--ZF2wZzkh.js} +1 -1
- package/dist/assets/{DashboardReportPage-UUd1-ITz-CmjHwIrB.js → DashboardReportPage-DJtJdsj5-D0j90p2O.js} +1 -1
- package/dist/assets/{DashboardSidebarBackgroundAnimation-BuINHqA--Cg5tOJ8w.js → DashboardSidebarBackgroundAnimation-CL6vWi6p-DaXPDfmE.js} +1 -1
- package/dist/assets/{DepositAccTransactionItem-BE8LeqlM-BNISEok7.js → DepositAccTransactionItem-B8Kledeo-BlVCqg6w.js} +1 -1
- package/dist/assets/{DepositAccTransactionListPage-DyH-aZDX-BNK9hZEk.js → DepositAccTransactionListPage-DYBIAd7n-gVv7-TK3.js} +2 -2
- package/dist/assets/{DomesticWireDetailsPage-Bk5AZOQt-5diXeWri.js → DomesticWireDetailsPage-Bm-bfxSa-rYZYhMWI.js} +1 -1
- package/dist/assets/{DownloadOverlay-BOYOF8Po-Cu31pFas.js → DownloadOverlay-CAfyh0W2-BJk2KPOA.js} +1 -1
- package/dist/assets/{DrawerPage-BGGHNo0X-D8g-Zhq1.js → DrawerPage-DUeVKq0Q-DB8bkP9s.js} +1 -1
- package/dist/assets/{EditPeoplePage-CEiwvizd-BZD3AgrU.js → EditPeoplePage-dVrpOcc1-DgbweCi9.js} +1 -1
- package/dist/assets/{EditReimbursementDetailPage-DBLDLvqO-DCMCC4Ue.js → EditReimbursementDetailPage-xWwm-k8T-Hs0cdO6C.js} +1 -1
- package/dist/assets/EntityDetailPage-Cpdbw3XR-C8k1xBJc.js +18 -0
- package/dist/assets/{EntitySummarySection-Ddaj1RmO-CgAsx02e.js → EntitySummarySection-CTU-YsQl-CSwZth_c.js} +1 -1
- package/dist/assets/{ExpenseAutomationOverviewPage-B_BlqiWf-taw0ogpA.js → ExpenseAutomationOverviewPage-DCbcWM84-DHrtqP9f.js} +1 -1
- package/dist/assets/{ExpenseAutomationPage-DfUf0zEN-CiL6ukAq.js → ExpenseAutomationPage-DbFQ6EeA-C0i_UBmZ.js} +1 -1
- package/dist/assets/{ExpressPayPage-Da8lLZso-B2DVYVBn.js → ExpressPayPage-DMLKT4Nf-6YIrNvk0.js} +1 -1
- package/dist/assets/{FeaturePreviewPage-CmrPDUFU-tUrE4OCj.js → FeaturePreviewPage-DFsZRRmZ-KGYTIegX.js} +1 -1
- package/dist/assets/{FollowStepsSection-DbxSUIzC-DnJhR0Pi.js → FollowStepsSection-DkBj9-hs-mJdSbXed.js} +1 -1
- package/dist/assets/{GlobalReviewListPage-Du_3tupM-TtvcUWAH.js → GlobalReviewListPage-D1fbfssG-CByDE9EN.js} +1 -1
- package/dist/assets/{InformationCardStack-Bx_9X95v-ReoH-Wcd.js → InformationCardStack-CBsOTiOc-CgAe3fDD.js} +2 -2
- package/dist/assets/{InsightsCardStack-Xn2rGwX0-C4QlW2rC.js → InsightsCardStack-BEpCIgoE-Bd7MJjyH.js} +2 -2
- package/dist/assets/{InsightsSection-CwyGEE7C-BgQsSBC8.js → InsightsSection-DcKb1p5B-QoDxUPcZ.js} +2 -2
- package/dist/assets/{IntegrationsSettingsPage-CEL26-eE-BidGkM4L.js → IntegrationsSettingsPage-CMEV5P0b-3g_v4D8X.js} +2 -2
- package/dist/assets/{InternationalWireSwiftDetailsPage-IUz-DwAH-xlIyq_2u.js → InternationalWireSwiftDetailsPage-Bukfo0LC-DGIPKWPe.js} +4 -4
- package/dist/assets/{InternationalWireVerificationPage-C66rHdsi-BnclPAnn.js → InternationalWireVerificationPage-nZvCemaM-DntrzxyD.js} +1 -1
- package/dist/assets/{InviteFormPage-Do-6PG8h-CuaaGEub.js → InviteFormPage-BpgeFttq-BbrTw2ZL.js} +1 -1
- package/dist/assets/{InvitePageListView-DYKcMtIL-BfWc8uTZ.js → InvitePageListView-B6wJomGk-pTRfOIaC.js} +1 -1
- package/dist/assets/{InvitePeoplePage-C2SmS7y8-DYM50qpK.js → InvitePeoplePage-BArRXjlz-BHQlwXvg.js} +1 -1
- package/dist/assets/{InvoiceUploadSection-rCCcSbbj-BXDZYW2T.js → InvoiceUploadSection-CTqSftrm-CyVrgEkl.js} +1 -1
- package/dist/assets/{IssueChargeCardPage-DZvVosb3-D0tVdJ6A.js → IssueChargeCardPage-DYG5IXrC-D-2m3p9R.js} +1 -1
- package/dist/assets/{LabeledAddressValue-CAX5YTSE-zBK_OJ4a.js → LabeledAddressValue-D09c5wJR-784mespz.js} +1 -1
- package/dist/assets/{LabeledAddressValueField-BraOMDrG-CIfzW6iS.js → LabeledAddressValueField-Cac2YPpN-Ba7qdzlE.js} +1 -1
- package/dist/assets/{LabeledControlledCheckBoxField-DBcPQa79-Dm3g8Rx5.js → LabeledControlledCheckBoxField--EmdYCME-BUoRkObt.js} +1 -1
- package/dist/assets/{LabeledCountryMultiSelectField-DYid8vvM-CHu1M3vr.js → LabeledCountryMultiSelectField-DdqOGBwp-DSHkYk9h.js} +1 -1
- package/dist/assets/{LabeledCreatableSingleSelectField-DzB7KPXf-B4UxeEYu.js → LabeledCreatableSingleSelectField-K0xUavli-THytCXMe.js} +1 -1
- package/dist/assets/{LabeledDocumentField-BdQjt44W-BJ3GcTL_.js → LabeledDocumentField--JZn0qDn-Ck_rkdmF.js} +1 -1
- package/dist/assets/{LabeledDropDownFormattedTextField-BheK7sFg-DRz45mr_.js → LabeledDropDownFormattedTextField-Dms9ziRv-CJQkVxrk.js} +1 -1
- package/dist/assets/{LabeledMultiSelectField-m2Y_IFK_-Dgpx_QwD.js → LabeledMultiSelectField-X5GGPnfG-0qUfOlj0.js} +1 -1
- package/dist/assets/{LabeledText-C6M4paXi-CF38LKMP.js → LabeledText-BJrI_PVT-oE-g3K8U.js} +1 -1
- package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-i7qOybJ3-bSlpKmiR.js → LabeledUserSingleSelectWithSubtitlesField-BmMN3W3F-BzPJ9P_-.js} +1 -1
- package/dist/assets/{LabeledZeniRolesDropDownField-BhNbXDjb-Dujasvos.js → LabeledZeniRolesDropDownField-PsaKyCCY-EbSrXIJy.js} +1 -1
- package/dist/assets/{LinkJETransactionPage--sqluuih-wy7uGmyh.js → LinkJETransactionPage-BDIpw0zn-B_cGLw9N.js} +1 -1
- package/dist/assets/{LockCardPage-Bq0Tu8g8-DVKXgz4m.js → LockCardPage-ChGk6VJX-BzQI96FY.js} +6 -6
- package/dist/assets/{LowBalancePopup-hlu_jjTZ-BtKXHVoq.js → LowBalancePopup-Bv3kKmAV-DSB2Ymlf.js} +1 -1
- package/dist/assets/MagicLinkACHDetailsPage-D4Vmz8ms-ItRZ63_N.js +1 -0
- package/dist/assets/MagicLinkDomesticWireDetailsPage-B7C30ROh-C843OBvj.js +1 -0
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DVFrpmvm-COXfeIQs.js +1 -0
- package/dist/assets/{MagicLinkSuccessPage-D6ZDRs5F-Bm6H-4K4.js → MagicLinkSuccessPage-ySlQc8oV-BspPWH9Z.js} +1 -1
- package/dist/assets/{MagicLinkTitleSection-e9WYeJQA-oFDVq4Q3.js → MagicLinkTitleSection-C_OYT1do-NbVFRCAZ.js} +1 -1
- package/dist/assets/MailingDetailsSection-CTPCXpZR-Dv3Iye8Q.js +21 -0
- package/dist/assets/{MyBankConnectionsSettingsPage-Bb7UZRJf-BUyi3j3X.js → MyBankConnectionsSettingsPage-CxaXh1Aj-CwKK_h51.js} +1 -1
- package/dist/assets/{MyPendingActivationChargeCardListPage-BToJWGM8-DpXTg4m3.js → MyPendingActivationChargeCardListPage-B9mNbLDd-Db1Atl2l.js} +1 -1
- package/dist/assets/{MyProfileSettingsPage-CGxf42bP-BtWaSU77.js → MyProfileSettingsPage-DDERIXlZ-CjalvgMv.js} +1 -1
- package/dist/assets/{NavBarWithPicker-DcDs1pe7-DsVVosIY.js → NavBarWithPicker-BJ_8PHPv-B6R9nMuM.js} +1 -1
- package/dist/assets/{NavigationArrow-DGSdnTKQ-DfQn-lGU.js → NavigationArrow-9HOMBxoh-CWFuMeOE.js} +1 -1
- package/dist/assets/{NavigationDots-BPsFQiss-DRnWaEzO.js → NavigationDots-DPf5iy8f-DNlf5jCf.js} +1 -1
- package/dist/assets/{NewGlobalMerchantPage-od2IF__o-CtWz6efC.js → NewGlobalMerchantPage-1MfUlwkA-Dx3DZ-ZO.js} +1 -1
- package/dist/assets/{NoDataChart-qG0jmc8Z-B_hbU-ac.js → NoDataChart-CDHiYyiO-DHWgty-U.js} +1 -1
- package/dist/assets/{NoDataTable-CgKT7NGU-BpL_-uTW.js → NoDataTable-BoAJZxdS-ClNYPP1-.js} +1 -1
- package/dist/assets/{NotFoundPage-CdUJ7M5p-wpuUnTnF.js → NotFoundPage-C-EoeDss-DqOvJ6YN.js} +6 -6
- package/dist/assets/{NotificationSettingsPage-D1PKq-ED-DVGiVyPe.js → NotificationSettingsPage-BfFNx-vu-Byo7BJZr.js} +1 -1
- package/dist/assets/{NotificationsListConfig-Ctfr3h3b-BRM4cnLo.js → NotificationsListConfig-CBQwRqMo-DVBdjTys.js} +1 -1
- package/dist/assets/{NotificationsPage-_5Yn9uTy-CcENjSZ1.js → NotificationsPage-BPfRskWZ-_QOFXGgt.js} +1 -1
- package/dist/assets/{OpExByVendorPage-Dqr805s1-D2FsgjpQ.js → OpExByVendorPage-BLI8h8LP-PGQ9bnDo.js} +1 -1
- package/dist/assets/{OverlayContainerPage-IDTUbuAC-CGGpxgsy.js → OverlayContainerPage-IDTUbuAC-B16J5Isr.js} +1 -1
- package/dist/assets/{PandLWithForecastPage-CQ5IMW_B-Km7grtMK.js → PandLWithForecastPage-DvT1WQdL-CPylI6Uc.js} +4 -4
- package/dist/assets/{PaymentAccountSetupBillingAddressSection-DtOeyTmL-B9kEdFki.js → PaymentAccountSetupBillingAddressSection-CyfKYJV3-CnunCi1o.js} +7 -7
- package/dist/assets/{PeoplePage-DEp24LGx-CtRwEShD.js → PeoplePage-BHfn-oLF-CGOapKvG.js} +1 -1
- package/dist/assets/{Preview-XG6ky5VX.js → Preview-B9tjpKKL.js} +1 -1
- package/dist/assets/{ProductsCarousel-Dgwws_g9-CD5wt9ef.js → ProductsCarousel-ChWN6HhX-DEhcI5NW.js} +1 -1
- package/dist/assets/{PromoBaseCards-wfvFaqMw-C39IUX2b.js → PromoBaseCards-BWpqciJW-DEw7mp3r.js} +1 -1
- package/dist/assets/{QBOConnectionDialog-CSMrKgrY-DsO1m0F5.js → QBOConnectionDialog-D9wVm2ga-jv2cIUQM.js} +1 -1
- package/dist/assets/{QBOSetupSection--FQKYLxN-CLUWgqk6.js → QBOSetupSection-CR7JQ_H9-CokKwnfI.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailPage-Dzg2pNcJ-CjlYXjNP.js → ReimbursementApprovalRuleDetailPage-RTvnT_vl-D0AOYl_B.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRulesPage-eyZWsjXs-ntYifLKs.js → ReimbursementApprovalRulesPage-Dbs4lLSo-5JjLiWWQ.js} +1 -1
- package/dist/assets/{ReimbursementDetailPage-DnSo6uTd-lGWR6kLS.js → ReimbursementDetailPage-COF-QqKR-BLj9_Zcn.js} +1 -1
- package/dist/assets/{ReimbursementPromoPage-0st3rBmg-BNpI0vNz.js → ReimbursementPromoPage-DSHynwPv-CMfUTDoh.js} +8 -8
- package/dist/assets/{ReimbursementSetUpPage-DCMgwGAM-Ck06jKGh.js → ReimbursementSetUpPage-CafAtAVr-BdH5_Uu6.js} +7 -7
- package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cx7BlVAb-C4fmpZqf.js → ReimbursementsBulkReviewDrawerPage-Cz8keUEO-C42JglzT.js} +1 -1
- package/dist/assets/{ReloadCard-8Tiu9Mq9-B5a-0HR6.js → ReloadCard-Bf1jxC4B-CjPHohhm.js} +1 -1
- package/dist/assets/{ReportTableViewSelector-BwBEG73W-CV7HMyUw.js → ReportTableViewSelector-DOQm7O9r-DcS436ql.js} +1 -1
- package/dist/assets/{ReportsPage-BxXxsNBv-BCUQ0RAm.js → ReportsPage-Deg59aYB-VaMTaqOC.js} +5 -5
- package/dist/assets/{RevenueChart-D13bncyo-Buwd2M8n.js → RevenueChart-C1RR_51e-Bn1LRvSc.js} +14 -14
- package/dist/assets/{ReviewDetailsPage-C5q0Abn_-t-fqvI1P.js → ReviewDetailsPage-D3bqGZYb-DmpMCAqo.js} +52 -52
- package/dist/assets/{ReviewOverlay-BNnNWFdW-idP0Dl0H.js → ReviewOverlay-CKB9LulM-CUNk2W-s.js} +1 -1
- package/dist/assets/{RoleWithToolTip-DvYf0VUz-CCXcCA1t.js → RoleWithToolTip-BGlbeXtJ-BQ5iinOT.js} +1 -1
- package/dist/assets/{ScheduleDetailsFixedAssetsPage-DqrwF4kG-CbQilLNT.js → ScheduleDetailsFixedAssetsPage-D4OkyPNa-6prKuM88.js} +1 -1
- package/dist/assets/{ScheduleDetailsPage-CH2lKmlN-BsAj8OwQ.js → ScheduleDetailsPage-9oUScaFD-Czq02-r0.js} +1 -1
- package/dist/assets/{ScheduleSequenceTable-BzDIvZ9H-CBGDuoMj.js → ScheduleSequenceTable-CuOC0Niz-BzAvMkBB.js} +1 -1
- package/dist/assets/{ScreenRoutes-COJmE7BV.js → ScreenRoutes-DhG0rKVC.js} +1 -1
- package/dist/assets/{SetUpAccountSection-DOvqcC8t-DY7o_nqL.js → SetUpAccountSection-CK2Ibij3-DvyPJ8FZ.js} +1 -1
- package/dist/assets/{SignIn-CBRwaiPC-FsqeJ7yA.js → SignIn-CLLS0cqt-G1jKv-f1.js} +1 -1
- package/dist/assets/{SignInScreen-CFntR-Lc.js → SignInScreen-BdhVUUiU.js} +1 -1
- package/dist/assets/{SpendManagementListViewPage-BjdD7zHz-BZgeDSu_.js → SpendManagementListViewPage-C1hg05PB-BMXGChah.js} +3 -3
- package/dist/assets/{SpendManagementPerTabPage-S5zX9fWg-D-QkrOXi.js → SpendManagementPerTabPage-7uggjzlM-BBdEOhcD.js} +1 -1
- package/dist/assets/{SpendManagementSection-vo9WEGWQ-DBmX8h6K.js → SpendManagementSection-DFiL_yNI-ca-vlRub.js} +1 -1
- package/dist/assets/StatementItem-CdytKcBE-CavJc8fo.js +31 -0
- package/dist/assets/{StatementsPage-0BpH6B2F-_YEmXC1o.js → StatementsPage-DU32IYXF-Dj_pMhMm.js} +1 -1
- package/dist/assets/{StatusSwitcher-Cj2oyfqn-zIIV8OEL.js → StatusSwitcher-DPzwQ_o1-DkaIBc47.js} +1 -1
- package/dist/assets/{SubTabSwitcher-B-gfkK-k-moeS1gnJ.js → SubTabSwitcher-Dztt2rN9-DqHo5u0Z.js} +1 -1
- package/dist/assets/SummaryCard-D3ev0zFr-CHfcyxTY.js +1 -0
- package/dist/assets/{TaskManagementPage-DND-MEly-B5dK2msu.js → TaskManagementPage-BRAt26fv-om-zuIgh.js} +1 -1
- package/dist/assets/{TimeRangeSwitcher-BCfDT5nQ-CyE38Dxo.js → TimeRangeSwitcher-DMCbeOcI-C4mgjK4U.js} +11 -11
- package/dist/assets/{TimeframeSwitcher-CCMyvSSI-DstqujKu.js → TimeframeSwitcher-YCgPbEnk-CJUz-kg1.js} +1 -1
- package/dist/assets/{TimeframeSwitcherWithToggle-Di1hQ-WC-BER3YD8I.js → TimeframeSwitcherWithToggle-BBJP1nmh-D1jTbV4O.js} +2 -2
- package/dist/assets/{TopExCard-B4CpuO-v-K-hQswGF.js → TopExCard-LesAF7Ot-CWhGtv9n.js} +1 -1
- package/dist/assets/{TopExDetailPage-BWdJnu-c-jydYbyNX.js → TopExDetailPage-BTG2W95T-CAgJv3QR.js} +5 -5
- package/dist/assets/{TransactionDetailPage-CL_VbaJy-uSq6HmXp.js → TransactionDetailPage-BqHVfK2K-CBoMen48.js} +1 -1
- package/dist/assets/{TransactionList-CSfzB0gM-BBDl0CVZ.js → TransactionList-CGmpQyNM-BGohJsUE.js} +1 -1
- package/dist/assets/{TransactionListBig-Dkdt0pvn-Dkg0pG-j.js → TransactionListBig-CSYpIxGa-Bd2xJZzC.js} +1 -1
- package/dist/assets/{TransactionListPage-DBAqpKkc-WPXU9uRR.js → TransactionListPage-CV5U_pA6-DsUhS_R3.js} +2 -2
- package/dist/assets/{TransactionVendorDetailPage-BPb6IGMd-DsSYdwld.js → TransactionVendorDetailPage-DvqHmq7y-C8mjIShR.js} +1 -1
- package/dist/assets/{TransferDrawerPage-oyNu_G0D-BGNoYXDH.js → TransferDrawerPage-Cm5reG35-B5qd6-NU.js} +1 -1
- package/dist/assets/{TreasuryOverviewPage-DIPEykKC-WU-gNw4W.js → TreasuryOverviewPage-CwcehiRb-BBfaI9Ls.js} +9 -9
- package/dist/assets/{TreasuryPromoPage-wmxtzW1N-BRuIoreO.js → TreasuryPromoPage-BagqhZgO-BswlnynL.js} +1 -1
- package/dist/assets/{TreasuryStatementsPage-vHS-mb3R-Bz0qtPhg.js → TreasuryStatementsPage-o-ID2nvn-DTg8AAgQ.js} +1 -1
- package/dist/assets/{TreasuryTaxLetterPage-3fiYxv2D-DzI3SHjy.js → TreasuryTaxLetterPage-D9f3ohGF-DEP20r26.js} +2 -2
- package/dist/assets/{TrendChart-dVd4QdGQ-BJjG22Ov.js → TrendChart-CqxpheW7-DiPHNgeC.js} +1 -1
- package/dist/assets/{TrendWithTransactions-zZUv_Qrs-BCC3U8tC.js → TrendWithTransactions-CK_je__x-C1Qk91i9.js} +3 -3
- package/dist/assets/{UncategorizedAccountsMappingPage-CcyG64pA-DuQQVPLE.js → UncategorizedAccountsMappingPage-BBYQFJxE-nEmuJTEW.js} +5 -5
- package/dist/assets/{UnitIntegrationPage-BL6g4XY0-DjP1Ctgu.js → UnitIntegrationPage-ULhazfl5-DPlYAGvC.js} +1 -1
- package/dist/assets/{UploadAdditionalDocumentOverlay-CBg0WhaZ-DBuHt0rj.js → UploadAdditionalDocumentOverlay-BPNLdaLG-DQNAWd7N.js} +1 -1
- package/dist/assets/{Vendor2FAPopup-CF5AV8a5-BShWHZIx.js → Vendor2FAPopup-C3Z-3poJ-Cxx265s1.js} +1 -1
- package/dist/assets/VendorACHDetailsPage-DnB2b-v_-C755XLlO.js +1 -0
- package/dist/assets/{VendorDetailPage-C168zV-E-DIP_aGAZ.js → VendorDetailPage-DPiVnh93-CAOlBr9d.js} +5 -5
- package/dist/assets/VendorDomesticWireDetailsPage-BbfatdWd-DhsLa-3A.js +1 -0
- package/dist/assets/{VendorFiling1099EditablePage-DVrk7af6-DDztFsX5.js → VendorFiling1099EditablePage-CFrvW8qi-C-v6Mx4-.js} +32 -32
- package/dist/assets/{VendorFirstReviewPage-kiMBuYID-OfVFvljK.js → VendorFirstReviewPage-CRLGuw2s-wfeT2fAg.js} +1 -1
- package/dist/assets/{VendorInternationalWireDetailsPage-CtGJurq9-BDxbxP3S.js → VendorInternationalWireDetailsPage-CV11lzdw-BWhlaMax.js} +1 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-D3asjWH_-BXIinpkC.js +1 -0
- package/dist/assets/{VendorsAccountsSection-B9Ik1T2V-DqGOolpT.js → VendorsAccountsSection-vd0V4UXY-BNPavepY.js} +1 -1
- package/dist/assets/{VerifyDevice-DfX9VA7b-VUfmXFaX.js → VerifyDevice-DbyjJVTH-_0YHPiw6.js} +3 -3
- package/dist/assets/{VideoPlayer-_FcQClfH-CRE4D3aI.js → VideoPlayer-CoI7aj8a-B3tmTxCF.js} +2 -2
- package/dist/assets/{VideoPopup-D0XTfD6q-qtGSnice.js → VideoPopup-Bp7fCV1r-BulLqsQx.js} +4 -4
- package/dist/assets/{WarningsDrawerPage-DIwWkX4B-3NfFweDe.js → WarningsDrawerPage-jMslD0FX-CrUmOPLP.js} +1 -1
- package/dist/assets/{ZeniAccountDetailPage-mo0trXHB-DYo24dJH.js → ZeniAccountDetailPage-C1Vq8cMd-BzjwyTwn.js} +1 -1
- package/dist/assets/{ZeniAccountListViewPage-CVzyx1Sx-Dq_Wq9hu.js → ZeniAccountListViewPage-BNTb04x5-DcvhdCN4.js} +1 -1
- package/dist/assets/{ZeniAccountNavBarPieces-CbXVnnp9-B-qIpckN.js → ZeniAccountNavBarPieces-ByYrxg3x-w6kmpmKh.js} +1 -1
- package/dist/assets/{ZeniAccountPromoPage-gZMYr_Ux-8GrkVROm.js → ZeniAccountPromoPage-BCkk0NbR-juw5u7mQ.js} +1 -1
- package/dist/assets/{ZeniAccountSetupPage-DPOLAjZV-Dw8Ao_So.js → ZeniAccountSetupPage-ClZTjZhF-C_sOqJTM.js} +1 -1
- package/dist/assets/{ZeniCopyright-BDUQdaKP-1S-2nFq7.js → ZeniCopyright-C8wXM9Gr-qMGnv8al.js} +1 -1
- package/dist/assets/{ZeniTransferAmountSlider-B-nq8t_K-D2lG7qBv.js → ZeniTransferAmountSlider-NAR_1h8K-DARDrTsk.js} +1 -1
- package/dist/assets/{add-to-wallet-DgdBD8_G-BBEivBdQ.js → add-to-wallet-DgdBD8_G-flwj0i1s.js} +1 -1
- package/dist/assets/{analytics-DO1unY4G.js → analytics-EizVTK6x.js} +1 -1
- package/dist/assets/{analyticsHelper-Ecsp3tOS.js → analyticsHelper-BRPQgKH6.js} +1 -1
- package/dist/assets/{analyticsHelper-7cF4XxuH-DLvrIzdF.js → analyticsHelper-DjynPp_X-s29on7ka.js} +1 -1
- package/dist/assets/{arrow-south-east-round-PEovUgvH-CV7FSM6U.js → arrow-south-east-round-PEovUgvH-DbFUNUBk.js} +1 -1
- package/dist/assets/{auto-transfer-rule-mbafm5D3-CJUhOMj-.js → auto-transfer-rule-mbafm5D3-T83isyAA.js} +1 -1
- package/dist/assets/{chartTypes-DjzTOuyH--xZuCRkY.js → chartTypes-CXNoxZp_-CJ_wyUtd.js} +1 -1
- package/dist/assets/{commonDimensions-CtIrih5r-B1EQ7y18.js → commonDimensions-i9Qxk1O2-XYIUogON.js} +1 -1
- package/dist/assets/{commonTypes-9h2Y-L4i-BZ0UmTpg.js → commonTypes-CcEHeA3z-sEqnsPbS.js} +1 -1
- package/dist/assets/{constants-pYZADjo8.js → constants-BGXrwDfx.js} +1 -1
- package/dist/assets/{core-B9Znwqny.js → core-C5wq1_Bk.js} +1 -1
- package/dist/assets/{dash.all.min-CS5kHJkT.js → dash.all.min-B4_top4V.js} +1 -1
- package/dist/assets/{detailCommon-CEOeZl26-B1iXLHB6.js → detailCommon-DVTOw71--Wk0Evzej.js} +5 -5
- package/dist/assets/{downloadPdf-Pyk_BhF7-DBVN6DcC.js → downloadPdf-1-N8Pf0G-CMW67koi.js} +1 -1
- package/dist/assets/{empty-CpGZk5F5.js → empty-DuP8pCf7.js} +1 -1
- package/dist/assets/{empty-ChJVx-YB.js → empty-fb3xJ2Vb.js} +1 -1
- package/dist/assets/{epic-C_GKKQik.js → epic-4LjfR2JF.js} +1 -1
- package/dist/assets/{gift-box-Cmt9OgIZ-DNEMczKk.js → gift-box-Cmt9OgIZ-BtixTK1k.js} +1 -1
- package/dist/assets/{graphic-no-data-l-DU4J8fDt-Bx_mQw5e.js → graphic-no-data-l-DU4J8fDt--UnjJCr0.js} +1 -1
- package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-C46dJM7J.js → graphic-no-data-net-burn-l-CzmycA0m-8oQBXM_J.js} +1 -1
- package/dist/assets/{handshake-BPg58FML-C6X_P0qB.js → handshake-BPg58FML-BSCdA5zo.js} +1 -1
- package/dist/assets/{index-1k0W8uO3.js → index-CzJUh-iK.js} +1 -1
- package/dist/assets/{index-DYltSVfB.js → index-DVgY55Ab.js} +8 -8
- package/dist/assets/{index-POT-Iy9l.js → index-DqRCO-H6.js} +1 -1
- package/dist/assets/{index-CfJ2tiIp.js → index-J8KI2Uyc.js} +1 -1
- package/dist/assets/{index-BFgzVTwo.js → index-Ko3PkHk3.js} +1 -1
- package/dist/assets/{index-DpdT_X0L.js → index-_TIifI_v.js} +1 -1
- package/dist/assets/{index-CPEwTrV2.js → index-tW1FBxGF.js} +1 -1
- package/dist/assets/{lexical-DSIpBzCF.js → lexical-xuKHFvUb.js} +1 -1
- package/dist/assets/{liveblocks-BqcT5iTZ.js → liveblocks-B14TpO3l.js} +1 -1
- package/dist/assets/{lottie-oQfNS8l-.js → lottie-BIQaRIZs.js} +1 -1
- package/dist/assets/{mapLoadingInProgressToTreeNode-DoHalh0I-gsXyYQpy.js → mapLoadingInProgressToTreeNode-UA-QQZJo-DsDuha6V.js} +1 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode--y3nO5uZ-DP42yTzT.js +1 -0
- package/dist/assets/mapSpacerToTreeNode-BOG_274U-C0W1M9EX.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-Btd_0ZvL-CEgQnhXV.js +1 -0
- package/dist/assets/mapTimeframeBalancesToTreeNode-LWHXAvJU-B42MwYQ_.js +1 -0
- package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Bz1bR9oN-Dre2GwgF.js → mapTimeframeHeaderLoadingInProgressToTreeNode-aD-96xtj-BAIV3Qln.js} +1 -1
- package/dist/assets/{mui-DqYnCiYu.js → mui-CR-wYMmN.js} +1 -1
- package/dist/assets/{page-detail-CWX5S47F-C4YmGfRe.js → page-detail-CWX5S47F-Dp0GDjdb.js} +1 -1
- package/dist/assets/{radio-default-CiSgisfh-C5tnzklf.js → radio-default-CiSgisfh-CInIhD3e.js} +1 -1
- package/dist/assets/{react-xLrt57tQ.js → react-BHi_eEiU.js} +1 -1
- package/dist/assets/{react-D2eQzOPv.js → react-BW87X3sj.js} +1 -1
- package/dist/assets/{react-Bu5BHG8O.js → react-C8urvt-z.js} +1 -1
- package/dist/assets/{react-DbRD5tNt.js → react-CCZeJYV_.js} +1 -1
- package/dist/assets/{react-CBiOQOL3.js → react-CcqTmi2W.js} +1 -1
- package/dist/assets/{react-B-LXbQdG.js → react-D2cRiLcJ.js} +1 -1
- package/dist/assets/{react-DEOv3QaS.js → react-DHV7aTmN.js} +2 -2
- package/dist/assets/{react-BPazyT0C.js → react-D_2r5dmn.js} +1 -1
- package/dist/assets/{recharts-D7E0WJGk.js → recharts-C3mrSjO2.js} +1 -1
- package/dist/assets/{sentry-DgGQRl6g.js → sentry-DMXY90dB.js} +1 -1
- package/dist/assets/{shield-DOlUxcFf-DK1OxwF6.js → shield-DOlUxcFf-BYs2EC5i.js} +1 -1
- package/dist/assets/toCOABalancesWithID-C_7wlYeT-C3P4q5bp.js +1 -0
- package/dist/assets/{toChartData-BFuIgA2L-BBySQ0d2.js → toChartData-Dv-QcYgv-C4sd-ifC.js} +1 -1
- package/dist/assets/{uploadAttachment-ux9baWqa-G8p-50iG.js → uploadAttachment-DSmux1Yp-Dl4ms4pR.js} +1 -1
- package/dist/assets/{uploadReceipts-DJRtId-4-Ck-2fUTH.js → uploadReceipts-DJRtId-4-CHJq-raT.js} +1 -1
- package/dist/assets/{url-CW650CMO.js → url-20Ls3nS_.js} +1 -1
- package/dist/assets/{url-DxcM52GB.js → url-DojBAuFA.js} +1 -1
- package/dist/assets/{useLongPress-GCK2COYQ-D9KvmRO7.js → useLongPress-GCK2COYQ-C5_U_XBl.js} +1 -1
- package/dist/assets/{usp-line-BBd1wKwW-EmNWFdhU.js → usp-line-BBd1wKwW-l2et8N9o.js} +1 -1
- package/dist/assets/{utils-C_quS4m3.js → utils-BCuN6woZ.js} +1 -1
- package/dist/assets/{zeni-epic-state-WWg2r7iB.js → zeni-epic-state-BXMuLX_S.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +2 -2
- package/dist/assets/ChargeCardPromoPage-DEjWh0Ax-CKnAvVum.js +0 -222
- package/dist/assets/CustomerOnboardingContainerPage-BLGGDdc6-Dsct_2mh.js +0 -1
- package/dist/assets/CustomerOnboardingProductSuitePage-B84wAHDe-C7FRvOhH.js +0 -202
- package/dist/assets/EntityDetailPage-Cd3eku5o-BzkM9HDo.js +0 -18
- package/dist/assets/MagicLinkACHDetailsPage-C1pJBTPa-lXEPNfls.js +0 -1
- package/dist/assets/MagicLinkDomesticWireDetailsPage-C77X02bo-2X6y-hYy.js +0 -1
- package/dist/assets/MagicLinkInternationalWireDetailsPage-DUHpAm8_-DdkoLfBl.js +0 -1
- package/dist/assets/MailingDetailsSection--Lx7QBGW-DZvTXReS.js +0 -21
- package/dist/assets/StatementItem-BxnOzchG-Jqyfs7Z-.js +0 -31
- package/dist/assets/SummaryCard-D92z4WU0-zmpilX3L.js +0 -1
- package/dist/assets/VendorACHDetailsPage-B_wVoMw5-DCiPWwWE.js +0 -1
- package/dist/assets/VendorDomesticWireDetailsPage-cAu_hGIj-D8-MuSlB.js +0 -1
- package/dist/assets/VendorInternationalWireSwiftDetailsPage-Cy8QoA_b-CGyz_V8v.js +0 -1
- package/dist/assets/mapSectionWithAcOnlyToTreeNode-CjiNTI8L-BMuLdMWD.js +0 -1
- package/dist/assets/mapSpacerToTreeNode-Di-_Qhw7-8iQraUSQ.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-BaIl_VbE-BRXeEdrt.js +0 -1
- package/dist/assets/mapTimeframeBalancesToTreeNode-mMtwXmJx-CXxOT-wX.js +0 -1
- package/dist/assets/toCOABalancesWithID-CjVmQxAs-DiJZXqdL.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as b,co as V,cp as q,cq as M,k6 as W,aY as Y,F as z}from"./index-
|
|
1
|
+
import{V as b,co as V,cp as q,cq as M,k6 as W,aY as Y,F as z}from"./index-DVgY55Ab.js";import{a as f}from"./sentry-DMXY90dB.js";import{Gd as G}from"./zeni-epic-state-BXMuLX_S.js";import{p as J}from"./ReviewOverlay-CKB9LulM-CUNk2W-s.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./mui-CR-wYMmN.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.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]="d34f947f-845b-4938-a75c-42de971c8dd1",e._sentryDebugIdIdentifier="sentry-dbid-d34f947f-845b-4938-a75c-42de971c8dd1")}catch{}})();const{common:s,spendManagement:{billPay:I}}=z.getLocalizedStrings(),o=I.bulkActions;let x;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&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(x)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(x)}),[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(J,{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:I.billDetails.newBillTitle,subTitle:`${I.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:K(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?I.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}},K=(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,7 +1,7 @@
|
|
|
1
|
-
import{Q as
|
|
1
|
+
import{Q as l,V as s,aP as b,o as e}from"./index-DVgY55Ab.js";import{n as a}from"./mui-CR-wYMmN.js";import{o as p}from"./commonDimensions-i9Qxk1O2-XYIUogON.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]="edb0ba57-1a99-40f8-a9a7-434ec7e01e66",o._sentryDebugIdIdentifier="sentry-dbid-edb0ba57-1a99-40f8-a9a7-434ec7e01e66")}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
|
-
min-height: ${o=>
|
|
4
|
+
min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
|
|
5
5
|
display: flex;
|
|
6
6
|
border: 1px solid;
|
|
7
7
|
border-radius: ${e.sp2};
|
|
@@ -12,7 +12,7 @@ import{Q as p,V as s,aP as b,o as e}from"./index-DYltSVfB.js";import{n}from"./mu
|
|
|
12
12
|
border-color: ${o=>o.isDisabled?o.theme.colors.grey3:o.theme.colors.primary};
|
|
13
13
|
color: ${o=>o.isDisabled?o.theme.colors.hero:o.theme.colors.primary};
|
|
14
14
|
}
|
|
15
|
-
`,h=n
|
|
15
|
+
`,h=a(n)`
|
|
16
16
|
display: flex;
|
|
17
17
|
border-top-width: 1px;
|
|
18
18
|
border-right-width: 1px;
|
|
@@ -26,7 +26,7 @@ import{Q as p,V as s,aP as b,o as e}from"./index-DYltSVfB.js";import{n}from"./mu
|
|
|
26
26
|
&:hover {
|
|
27
27
|
border-bottom-width: 1px;
|
|
28
28
|
}
|
|
29
|
-
`,u=n
|
|
29
|
+
`,u=a(n)`
|
|
30
30
|
display: flex;
|
|
31
31
|
border-top-width: 0.5px;
|
|
32
32
|
border-right-width: 1px;
|
|
@@ -39,7 +39,7 @@ import{Q as p,V as s,aP as b,o as e}from"./index-DYltSVfB.js";import{n}from"./mu
|
|
|
39
39
|
&:hover {
|
|
40
40
|
border-top-width: 1px;
|
|
41
41
|
}
|
|
42
|
-
`,x=n
|
|
42
|
+
`,x=a(n)`
|
|
43
43
|
display: flex;
|
|
44
44
|
border-radius: ${e.sp0};
|
|
45
45
|
border-top-width: 0.5px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ct,Q as dt,aQ as Te,V as i,ae as W,a9 as pt,cU as ut,ay as mt,cE as ft,aY as Oe,aO as ve,g8 as yt,r as ht,bB as gt,aP as xt,cF as St,co as wt,cp as bt,cq as Ct,T as Dt,ac as Tt,aR as Ot,o as r,y as F,am as Pe,F as Ve,g9 as vt,fw as Ie,eX as It,M as $t,x as kt,al as Le,a as Nt,d as jt,u as $}from"./index-DYltSVfB.js";import{a as P}from"./sentry-DgGQRl6g.js";import{n as d}from"./mui-DqYnCiYu.js";import{EN as Ft,bi as G}from"./zeni-epic-state-WWg2r7iB.js";import{n as Pt,z as Vt}from"./CompanyOfficerDetailsSection-TNyVByDX-Bd8oGVxr.js";import"./liveblocks-BqcT5iTZ.js";import"./core-B9Znwqny.js";import"./recharts-D7E0WJGk.js";import"./lottie-oQfNS8l-.js";import"./analytics-DO1unY4G.js";import"./lexical-DSIpBzCF.js";import"./utils-C_quS4m3.js";import"./LabeledAddressValueField-BraOMDrG-CIfzW6iS.js";import"./LabeledCountryMultiSelectField-DYid8vvM-CHu1M3vr.js";import"./LabeledCreatableSingleSelectField-DzB7KPXf-B4UxeEYu.js";import"./LabeledDocumentField-BdQjt44W-BJ3GcTL_.js";import"./LabeledMultiSelectField-m2Y_IFK_-Dgpx_QwD.js";import"./commonTypes-9h2Y-L4i-BZ0UmTpg.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]="dc2b4192-dcca-4829-a04f-590955702aa4",e._sentryDebugIdIdentifier="sentry-dbid-dc2b4192-dcca-4829-a04f-590955702aa4")}catch{}})();const x={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,$[3]),subTitlePaddingBottom:new F($[3],$[3]),verificationDetailsRowGap:new F(12,$[5],$[5]),termsPaddingLeftRight:new F($[0],$[3])},Lt={stepTitle:new Nt("h6Regular","h5Regular")},$e="businessVerificationPage",D="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:At,currency:ke,footer:Ne,strings:{empty:_t}}}=Ve.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:S,verficationDetailsFetchState:k,isRefreshingViewInBackground:_,filesEndPoint:s,authParams:B,productType:y,allIndustries:V,companyTitles:E,maxInsuredAmount:u,isDisabled:N,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Je=Te(R.fetchState),U=A?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=U==="unit"?i.jsxs(qt,{children:[a.terms.term1,i.jsx(W,{href:a.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,i.jsx(W,{href:a.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,i.jsx(W,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,i.jsx(W,{href:a.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ke,Q]=P.useState(!1),[M,re]=P.useState("save"),[X,Ze]=P.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,V,E,S)}),{isValid:He}=m.formState,J=A?.company.company.companyBillPayInfo,Y=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Y?.companyVerificationStatus:J?.companyVerificationStatus,O=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),v=`Officer_${O<0?1:O+1}`,et=()=>{const t=b[v],n=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,C=t?.firstName,I=t?.lastName,pe=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,me=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;n!=null&&f!=null&&C!=null&&I!=null&&c!=null&&pe!=null&&me!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:pe,phone:me,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,o?"Settings":void 0)},tt=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,C=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&m.trigger(`${T}.${O<0?0:O}.name`,{shouldFocus:!0}),!1):C&&!I?((!n?.firstName||!n?.lastName)&&m.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&m.trigger(`${D}.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||K!=null&&K?.length>0)return m.trigger(`${T}.${O<0?0:O}.email`,{shouldFocus:!0}),!1;return!0},it=m.handleSubmit(()=>{if(M!=="verification"&&re("verification"),U==="unit"&&b[v]?.isPhoneVerified!==!0){m.setError(`${T}.${O}.phone`,{type:"custom"});return}const t=ut(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ft(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Qe?.())}),st=async(t,n)=>{t.includes(D)?Ue?.(n[D]):t.includes(T)&&We?.(n[T])},nt=P.useCallback(mt((t,n)=>{st(t,n)},300),[]);P.useEffect(()=>{const t=m.watch((n,{name:c})=>{c!=null&&n!=null&&ft(()=>nt(c,n))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),m.setValue(`${D}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,oe,m]);const ce=A?.companyOfficers.slice(0,10).sort((t,n)=>t.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),K=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{Q(!1),L();const t=[],n=A?.company.company.incInfo.fileIds??[];m.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||t.push(c)}),ot?.forEach((c,f)=>{const C=c?.fileIds??[];m.getValues(`${T}.${f}.fileIds`).forEach(I=>{C.includes(I)||t.push(I)})}),t.length!==0&&Me?.(t)},onCancelClick:()=>{Q(!1)}},lt=Oe(ve(u),u,ke.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Ht,{children:[i.jsxs(ea,{children:[i.jsx(yt,{}),i.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Oe(ve(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,ke.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),i.jsx(ht,{label:a.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):i.jsxs(Et,{isSettings:o,children:[i.jsx(gt,{title:h&&w===!0?_t:a.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(m.formState.dirtyFields)?Q(!0):L()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?i.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?i.jsx(wt,{titleComponent:i.jsx(Ct,{children:a.discardTitle}),descriptionComponent:i.jsx(bt,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:rt}):null,i.jsxs(Ut,{windowSize:p,children:[(!h||w===!1)&&i.jsx(Rt,{windowSize:p,children:o?At.infoText.businessVerification:a.title}),k==="In-Progress"||k==="Not-Started"?i.jsx(Mt,{children:i.jsx(Dt,{size:"ExtraLarge",start:!0})}):i.jsx(Tt,{...m,children:i.jsxs("form",{id:je($e),onSubmit:it,children:[h&&w===!0&&i.jsxs(zt,{children:[i.jsxs(Qt,{windowSize:p,children:[i.jsx(Xt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Jt,{children:i.jsxs(Yt,{children:[i.jsx(Fe,{}),de&&i.jsx(Fe,{}),i.jsx(Kt,{})]})})]}),i.jsx(Ae,{isReadonly:Z,children:a.verifyBusinessDetailsDescription})]}),i.jsxs(Wt,{children:[i.jsx(Pt,{companyOfficerData:b,allNationalityCountries:S,allOfficers:K??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:s,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:D,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:s,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:U,allIndustries:V,allNationalityCountries:S})]}),y==="zeni_accounts"?i.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),k==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?i.jsx(Ot,{formId:je($e),primaryBtn:{label:w?Ne.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?x.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?x.width.valuePx(p):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(p),paddingRight:x.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?Ne.back:a.saveDetailsButton,style:{width:p==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)L();else{const t=b[v],n=l?.primaryContactLocalData;M!=="save"&&re("save");const c=t?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),Ge?.(v))}}},helperText:Ye,style:{padding:`12px ${r.sp3}`,zIndex:X?0:4}}):null]})},Bt=(e,S,k,_)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=e,V=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:S?.map(u=>u.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:V.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:V.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(a.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:Object.keys(a.transactionVolumeOptions??{})},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:Object.keys(a.purposeOfAccountOptions??{})},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:(s?.usNexusTypes??[]).map(u=>a.usNexusOptions?.[u]??u),allOptions:Object.values(a.usNexusOptions??{})},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[T]:Object.values(B).map((u,N)=>{const o=u,h=vt(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${N+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:It(o?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:k?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},je=e=>`${e}_form`,Et=d.div`
|
|
1
|
+
import{g as ct,Q as dt,aQ as Te,V as i,ae as W,a9 as pt,cU as ut,ay as mt,cE as ft,aY as Oe,aO as ve,g8 as yt,r as ht,bB as gt,aP as xt,cF as St,co as wt,cp as bt,cq as Ct,T as Dt,ac as Tt,aR as Ot,o as r,y as F,am as Pe,F as Ve,g9 as vt,fw as Ie,eX as It,M as $t,x as kt,al as Le,a as Nt,d as jt,u as $}from"./index-DVgY55Ab.js";import{a as P}from"./sentry-DMXY90dB.js";import{n as d}from"./mui-CR-wYMmN.js";import{EN as Ft,bi as G}from"./zeni-epic-state-BXMuLX_S.js";import{n as Pt,z as Vt}from"./CompanyOfficerDetailsSection-b2itwQOK-DbOlSBag.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";import"./LabeledAddressValueField-Cac2YPpN-Ba7qdzlE.js";import"./LabeledCountryMultiSelectField-DdqOGBwp-DSHkYk9h.js";import"./LabeledCreatableSingleSelectField-K0xUavli-THytCXMe.js";import"./LabeledDocumentField--JZn0qDn-Ck_rkdmF.js";import"./LabeledMultiSelectField-X5GGPnfG-0qUfOlj0.js";import"./commonTypes-CcEHeA3z-sEqnsPbS.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]="41efd6bb-818a-45d7-a862-a8d76b282f10",e._sentryDebugIdIdentifier="sentry-dbid-41efd6bb-818a-45d7-a862-a8d76b282f10")}catch{}})();const x={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,$[3]),subTitlePaddingBottom:new F($[3],$[3]),verificationDetailsRowGap:new F(12,$[5],$[5]),termsPaddingLeftRight:new F($[0],$[3])},Lt={stepTitle:new Nt("h6Regular","h5Regular")},$e="businessVerificationPage",D="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:At,currency:ke,footer:Ne,strings:{empty:_t}}}=Ve.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:S,verficationDetailsFetchState:k,isRefreshingViewInBackground:_,filesEndPoint:s,authParams:B,productType:y,allIndustries:V,companyTitles:E,maxInsuredAmount:u,isDisabled:N,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:q=!1,transferDetails:z,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Je=Te(R.fetchState),U=A?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=U==="unit"?i.jsxs(qt,{children:[a.terms.term1,i.jsx(W,{href:a.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.consent}),a.terms.term2,i.jsx(W,{href:a.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.depositTerms}),a.terms.term3,i.jsx(W,{href:a.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:a.terms.privacy}),a.terms.term4,i.jsx(W,{href:a.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:a.terms.tos}),a.terms.term5]}):a.terms.termsForStripe,[Ke,Q]=P.useState(!1),[M,re]=P.useState("save"),[X,Ze]=P.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,V,E,S)}),{isValid:He}=m.formState,J=A?.company.company.companyBillPayInfo,Y=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Y?.companyVerificationStatus:J?.companyVerificationStatus,O=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),v=`Officer_${O<0?1:O+1}`,et=()=>{const t=b[v],n=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,C=t?.firstName,I=t?.lastName,pe=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,me=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,De=ee?.email;n!=null&&f!=null&&C!=null&&I!=null&&c!=null&&pe!=null&&me!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:I,companyRole:pe,phone:me,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:De},y,o?"Settings":void 0)},tt=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,C=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&m.trigger(`${T}.${O<0?0:O}.name`,{shouldFocus:!0}),!1):C&&!I?((!n?.firstName||!n?.lastName)&&m.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=b[v],n=l?.primaryContactLocalData,c=t?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&m.trigger(`${D}.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||K!=null&&K?.length>0)return m.trigger(`${T}.${O<0?0:O}.email`,{shouldFocus:!0}),!1;return!0},it=m.handleSubmit(()=>{if(M!=="verification"&&re("verification"),U==="unit"&&b[v]?.isPhoneVerified!==!0){m.setError(`${T}.${O}.phone`,{type:"custom"});return}const t=ut(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ft(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Qe?.())}),st=async(t,n)=>{t.includes(D)?Ue?.(n[D]):t.includes(T)&&We?.(n[T])},nt=P.useCallback(mt((t,n)=>{st(t,n)},300),[]);P.useEffect(()=>{const t=m.watch((n,{name:c})=>{c!=null&&n!=null&&ft(()=>nt(c,n))});return()=>{t.unsubscribe()}});const le=Te(e.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),m.setValue(`${D}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,oe,m]);const ce=A?.companyOfficers.slice(0,10).sort((t,n)=>t.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),K=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{Q(!1),L();const t=[],n=A?.company.company.incInfo.fileIds??[];m.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||t.push(c)}),ot?.forEach((c,f)=>{const C=c?.fileIds??[];m.getValues(`${T}.${f}.fileIds`).forEach(I=>{C.includes(I)||t.push(I)})}),t.length!==0&&Me?.(t)},onCancelClick:()=>{Q(!1)}},lt=Oe(ve(u),u,ke.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Ht,{children:[i.jsxs(ea,{children:[i.jsx(yt,{}),i.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Oe(ve(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,ke.currencySymbol)).replace("__account__",z?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):a.submittedDescription})]}),i.jsx(ht,{label:a.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):i.jsxs(Et,{isSettings:o,children:[i.jsx(gt,{title:h&&w===!0?_t:a.header,backgroundColor:Xe.colors.grey5,style:{zIndex:X?1:4},onBackClick:()=>{St(m.formState.dirtyFields)?Q(!0):L()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?i.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?i.jsx(wt,{titleComponent:i.jsx(Ct,{children:a.discardTitle}),descriptionComponent:i.jsx(bt,{children:a.discardDescription}),primaryButtonText:a.discard,secondaryButtonText:a.cancel,action:rt}):null,i.jsxs(Ut,{windowSize:p,children:[(!h||w===!1)&&i.jsx(Rt,{windowSize:p,children:o?At.infoText.businessVerification:a.title}),k==="In-Progress"||k==="Not-Started"?i.jsx(Mt,{children:i.jsx(Dt,{size:"ExtraLarge",start:!0})}):i.jsx(Tt,{...m,children:i.jsxs("form",{id:je($e),onSubmit:it,children:[h&&w===!0&&i.jsxs(zt,{children:[i.jsxs(Qt,{windowSize:p,children:[i.jsx(Xt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Jt,{children:i.jsxs(Yt,{children:[i.jsx(Fe,{}),de&&i.jsx(Fe,{}),i.jsx(Kt,{})]})})]}),i.jsx(Ae,{isReadonly:Z,children:a.verifyBusinessDetailsDescription})]}),i.jsxs(Wt,{children:[i.jsx(Pt,{companyOfficerData:b,allNationalityCountries:S,allOfficers:K??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:N,filesEndPoint:s,authParams:B,isPopupOpen:X,openPopup:Ze,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),i.jsx(Vt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:D,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":N,fileProps:{authParams:B,filesEndPoint:s,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:U,allIndustries:V,allNationalityCountries:S})]}),y==="zeni_accounts"?i.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),k==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?i.jsx(Ot,{formId:je($e),primaryBtn:{label:w?Ne.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":w?"83px":"181px"},isLoading:M==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?x.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?x.width.valuePx(p):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(p),paddingRight:x.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?Ne.back:a.saveDetailsButton,style:{width:p==="small"?"auto":w?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)L();else{const t=b[v],n=l?.primaryContactLocalData;M!=="save"&&re("save");const c=t?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?G(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?G(l?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),Ge?.(v))}}},helperText:Ye,style:{padding:`12px ${r.sp3}`,zIndex:X?0:4}}):null]})},Bt=(e,S,k,_)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=e,V=Ve.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(u=>u.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:S?.map(u=>u.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(u=>u.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:V.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:V.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(a.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(a.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:Object.keys(a.transactionVolumeOptions??{})},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:Object.keys(a.purposeOfAccountOptions??{})},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:(s?.usNexusTypes??[]).map(u=>a.usNexusOptions?.[u]??u),allOptions:Object.values(a.usNexusOptions??{})},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[T]:Object.values(B).map((u,N)=>{const o=u,h=vt(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${N+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:It(o?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:k?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},je=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,a as w,d as x}from"./index-
|
|
1
|
+
import{Q as m,V as r,F as b,b as y,o as a,a as w,d as x}from"./index-DVgY55Ab.js";import{n as o}from"./mui-CR-wYMmN.js";import{a as n}from"./sentry-DMXY90dB.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]="e5f1569b-703d-45c9-8540-77ccb6315baf",e._sentryDebugIdIdentifier="sentry-dbid-e5f1569b-703d-45c9-8540-77ccb6315baf")}catch{}})();const $=e=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.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")},j=({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,c=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,c&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,c&&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{g as k,Q as f,V as t,bB as te,ff as z,b as u,b3 as N,b_ as ie,o as i,F as w,p as B,y as h,al as v,dg as oe,u as l,aY as re,aN as T,bQ as ae,ai as $,aP as L,jg as J,jh as X,iY as se,cy as ne,cB as de,am as O,iZ as le,i_ as ce}from"./index-
|
|
1
|
+
import{g as k,Q as f,V as t,bB as te,ff as z,b as u,b3 as N,b_ as ie,o as i,F as w,p as B,y as h,al as v,dg as oe,u as l,aY as re,aN as T,bQ as ae,ai as $,aP as L,jg as J,jh as X,iY as se,cy as ne,cB as de,am as O,iZ as le,i_ as ce}from"./index-DVgY55Ab.js";import{n as o}from"./mui-CR-wYMmN.js";import{G4 as b,bh as he}from"./zeni-epic-state-BXMuLX_S.js";import{P as Y,a as V}from"./sentry-DMXY90dB.js";import{q as pe}from"./InsightsSection-DcKb1p5B-QoDxUPcZ.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-C3mrSjO2.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";import"./NavigationDots-DPf5iy8f-DNlf5jCf.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]="9fcd38ab-efce-4966-a5e2-bd449863650a",e._sentryDebugIdIdentifier="sentry-dbid-9fcd38ab-efce-4966-a5e2-bd449863650a")}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{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ as et,V as t,h0 as ji,bB as Ii,u as l,fT as br,aN as Ge,aP as J,o as a,bS as Qt,p as d,F as ke,j2 as Sr,b as _,co as Li,j3 as Di,f9 as Ai,gO as Ti,j4 as Ei,bE as Fi,bN as yr,aT as ea,j5 as Ri,j6 as $r,j7 as ot,y as T,bJ as vr,ba as ta,c as Pi,aU as kr,a$ as zi,j8 as Mi,j9 as Vi,b7 as aa,ai as ge,eC as Oi,iS as Hi,e as gt,g$ as jr,cc as Bi,T as mt,b3 as Ni,dl as Wi,cs as _i,cp as Ui,d4 as Zi,hy as Gi,al as Oe,bU as Yi,av as Wt,ja as Ra,jb as qi,a as Pa,d as Ir,b9 as Ji,aB as Xi,iM as pt,iX as Ki,j0 as Qi,j1 as eo,dt as za,eT as to,r as Lr,cy as Dr,iV as ao,bX as ro,f as Ar,jc as io,au as vt,b_ as Ma,bx as oo,dd as no,am as st,gX as so,aq as co,x as lo,bF as ho,jd as Dt,fm as po,je as Tr,gy as Er,jf as jt,id as Fr,bQ as uo,ef as Rr,iY as mo,cB as go,dO as Co,c_ as fo,iZ as wo,i_ as xo,el as bo,cf as So,cg as yo}from"./index-
|
|
1
|
+
import{g as tt,Q as Ie,aw as It,a8 as Lt,gY as wr,hB as ki,aV as Qe,gZ as xr,aQ as et,V as t,h0 as ji,bB as Ii,u as l,fT as br,aN as Ge,aP as J,o as a,bS as Qt,p as d,F as ke,j2 as Sr,b as _,co as Li,j3 as Di,f9 as Ai,gO as Ti,j4 as Ei,bE as Fi,bN as yr,aT as ea,j5 as Ri,j6 as $r,j7 as ot,y as T,bJ as vr,ba as ta,c as Pi,aU as kr,a$ as zi,j8 as Mi,j9 as Vi,b7 as aa,ai as ge,eC as Oi,iS as Hi,e as gt,g$ as jr,cc as Bi,T as mt,b3 as Ni,dl as Wi,cs as _i,cp as Ui,d4 as Zi,hy as Gi,al as Oe,bU as Yi,av as Wt,ja as Ra,jb as qi,a as Pa,d as Ir,b9 as Ji,aB as Xi,iM as pt,iX as Ki,j0 as Qi,j1 as eo,dt as za,eT as to,r as Lr,cy as Dr,iV as ao,bX as ro,f as Ar,jc as io,au as vt,b_ as Ma,bx as oo,dd as no,am as st,gX as so,aq as co,x as lo,bF as ho,jd as Dt,fm as po,je as Tr,gy as Er,jf as jt,id as Fr,bQ as uo,ef as Rr,iY as mo,cB as go,dO as Co,c_ as fo,iZ as wo,i_ as xo,el as bo,cf as So,cg as yo}from"./index-DVgY55Ab.js";import{a as o,P as $o}from"./sentry-DMXY90dB.js";import{n as r,c as we,k as Pr}from"./mui-CR-wYMmN.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-BXMuLX_S.js";import{k as Io}from"./NavigationDots-DPf5iy8f-DNlf5jCf.js";import{A as Lo,i as Do,a as Ao,l as To,r as Eo,t as Fo,n as Ro}from"./add-to-wallet-DgdBD8_G-flwj0i1s.js";import{L as _t}from"./lottie-BIQaRIZs.js";import{j as Po}from"./CardNumberSubText-sE2DGwYG-B174guLL.js";import{r as zr}from"./core-C5wq1_Bk.js";import{l as Mr}from"./uploadReceipts-DJRtId-4-CHJq-raT.js";import{L as zo,z as Mo,k as Vo,P as Oo}from"./LockCardPage-ChGk6VJX-BzQI96FY.js";import"./liveblocks-B14TpO3l.js";import"./recharts-C3mrSjO2.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";import"./RoleWithToolTip-BGlbeXtJ-BQ5iinOT.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]="9ab341e5-e067-4152-9072-3ef935d885f5",e._sentryDebugIdIdentifier="sentry-dbid-9ab341e5-e067-4152-9072-3ef935d885f5")}catch{}})();const Vr=ke.getLocalizedStrings().spendManagement.chargeCard,Ho=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:E,setWalletType:S,setIsAddToWalletDrawerOpen:O,isDebitCard:H})=>{const v=Lt().analytics,{isIPadScreen:Y}=Mi(),{isAndroidScreen:X}=Vi(),U=It(),D=At(U.loggedInUserRoleMap);return t.jsx(Bo,{style:p,children:Y===!0?t.jsx(Kt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(k,"_blank")}}):X===!0?t.jsx(Xt,{onClick:()=>{ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(Kt,{onClick:()=>{S("apple"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}}),t.jsx(Xt,{onClick:()=>{S("google"),E.current="slide-in-right-to-left-add-to-wallet",ot({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:H,isChargeCardAdmin:D,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:y,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),O(!0)}})]})})},Xt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(No,{}),label:Vr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-google-wallet-button")})},Kt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Wo,{}),label:Vr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":J("add-to-apple-wallet-button")})},Bo=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,fS as tr,iM as W,Q as Pe,o as a,g as ta,V as t,bB as ar,g4 as rr,ff as ie,b as D,bS as nt,p,aN as me,aP as V,aY as st,F as Fe,y as H,ai as J,a as ir,d as or,cY as nr,as as aa,bJ as sr,a$ as ct,aT as dr,am as lt,a9 as cr,gR as lr,er as ur,ao as hr,ac as mr,ga as pr,r as Nt,u as _,d6 as ra,aq as Cr,al as gr,M as br,cX as fr,bv as xr,bU as yr}from"./index-
|
|
1
|
+
import{a8 as Za,aQ as z,aw as er,fS as tr,iM as W,Q as Pe,o as a,g as ta,V as t,bB as ar,g4 as rr,ff as ie,b as D,bS as nt,p,aN as me,aP as V,aY as st,F as Fe,y as H,ai as J,a as ir,d as or,cY as nr,as as aa,bJ as sr,a$ as ct,aT as dr,am as lt,a9 as cr,gR as lr,er as ur,ao as hr,ac as mr,ga as pr,r as Nt,u as _,d6 as ra,aq as Cr,al as gr,M as br,cX as fr,bv as xr,bU as yr}from"./index-DVgY55Ab.js";import{a as l}from"./sentry-DMXY90dB.js";import{n as r,c as ut,k as Sr}from"./mui-CR-wYMmN.js";import{EL as wr,G2 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-BXMuLX_S.js";import{t as vr}from"./SpendManagementSection-DFiL_yNI-ca-vlRub.js";import{D as oe,r as jr,i as Lr}from"./ChargeCardListTable-43l6tEOp-BbcKoGZ2.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-D0np03A--Bpq9wCjH.js";import{N as Er,J as Pr}from"./PromoBaseCards-BWpqciJW-DEw7mp3r.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-ChGk6VJX-BzQI96FY.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-8oQBXM_J.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-DbFUNUBk.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";import"./RoleWithToolTip-BGlbeXtJ-BQ5iinOT.js";import"./CardNumberSubText-sE2DGwYG-B174guLL.js";import"./NavigationDots-DPf5iy8f-DNlf5jCf.js";import"./usp-line-BBd1wKwW-l2et8N9o.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]="efeb19d1-ff49-465f-9e23-b5e74162f95e",e._sentryDebugIdIdentifier="sentry-dbid-efeb19d1-ff49-465f-9e23-b5e74162f95e")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Ee=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Pe(),A=$!==void 0,G=$==="rejected"?Ee.status.requestRejected:$==="under_review"?Ee.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:A,children:[t.jsxs(na,{children:[A?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),A?null:t.jsx(qr,{children:n})]}),!A&&t.jsxs(Jr,{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(Kr,{})]}),U!=null&&A?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:A,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Pe();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Ee.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Ee.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateY(0);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cc as ni,V as t,a9 as li,ac as di,F as le,Q as ie,aw as Se,a8 as ci,g as Fe,gY as hi,iN as pi,iO as ui,iP as mi,aR as gi,o as i,aP as Y,cl as xi,b as Be,p as I,b3 as wi,cs as Ci,iQ as fi,iR as yi,bS as ye,cv as Oe,bN as Si,aT as ki,y as C,eC as vi,ba as $i,iS as ji,aU as bi,e as Ii,ai as ee,g$ as Li,am as G,al as J,u as p,cI as Fi,eA as zi,iT as Ai,iU as Pi,a as ft,bX as yt,iV as St,iW as Ri,bQ as Bi,cy as Ge,iX as kt,dt as Di,du as q,aN as ce,cu as vt,T as $t,iY as _i,cB as Ei,iF as Je,bJ as jt,bL as bt,iZ as Ti,i_ as Oi,aV as $e,bt as Vi,bY as Ui,bZ as Ni,i$ as Mi}from"./index-DYltSVfB.js";import{P as pe,a as f}from"./sentry-DgGQRl6g.js";import{n as o,c as Qe}from"./mui-DqYnCiYu.js";import{T as It}from"./RoleWithToolTip-DvYf0VUz-CCXcCA1t.js";import{j as Ve}from"./CardNumberSubText-CPcuTV6V-BAIo0CeO.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]="5dad0252-9091-4eec-93e5-c4a75929dd5e",e._sentryDebugIdIdentifier="sentry-dbid-5dad0252-9091-4eec-93e5-c4a75929dd5e")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Yi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),F=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=F||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),O=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,z=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),O!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(O)}${Hi}`})}):null]}),Q=a.type.code,_=$.cardList.tooltip[Q],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Qi,{onClick:M,"data-testid":Y("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:z[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:z[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[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:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[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(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},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})`}})})})()})]})})]})})})},Ft=({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(Xi,{}),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=Fe(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $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(J)`
|
|
1
|
+
import{cc as ni,V as t,a9 as li,ac as di,F as le,Q as ie,aw as Se,a8 as ci,g as Fe,gY as hi,iN as pi,iO as ui,iP as mi,aR as gi,o as i,aP as Y,cl as xi,b as Be,p as I,b3 as wi,cs as Ci,iQ as fi,iR as yi,bS as ye,cv as Oe,bN as Si,aT as ki,y as C,eC as vi,ba as $i,iS as ji,aU as bi,e as Ii,ai as ee,g$ as Li,am as G,al as J,u as p,cI as Fi,eA as zi,iT as Ai,iU as Pi,a as ft,bX as yt,iV as St,iW as Ri,bQ as Bi,cy as Ge,iX as kt,dt as Di,du as q,aN as ce,cu as vt,T as $t,iY as _i,cB as Ei,iF as Je,bJ as jt,bL as bt,iZ as Ti,i_ as Oi,aV as $e,bt as Vi,bY as Ui,bZ as Ni,i$ as Mi}from"./index-DVgY55Ab.js";import{P as pe,a as f}from"./sentry-DMXY90dB.js";import{n as o,c as Qe}from"./mui-CR-wYMmN.js";import{T as It}from"./RoleWithToolTip-BGlbeXtJ-BQ5iinOT.js";import{j as Ve}from"./CardNumberSubText-sE2DGwYG-B174guLL.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]="7e7aed07-d807-49e6-bf4e-4a75db31a6ed",e._sentryDebugIdIdentifier="sentry-dbid-7e7aed07-d807-49e6-bf4e-4a75db31a6ed")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ze={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Xe,width:new C(0,0),value:Wi},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Yi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),F=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=F||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),O=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",V=Di(a.cardHolderUser,!1),H=a.balance,z=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),O!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(O)}${Hi}`})}):null]}),Q=a.type.code,_=$.cardList.tooltip[Q],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Ji,{windowSize:v,children:t.jsx(Qi,{onClick:M,"data-testid":Y("card-row",a.id),children:t.jsxs(Zi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:z[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:V,className:"cardHolderName",children:V===Ce.strings.empty?Ce.strings.hyphen:V})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:z[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:z[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ve,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:z[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:z[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:z[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(Oe,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Ft,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:ze=>{b||m(ze)},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})`}})})})()})]})})]})})})},Ft=({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(Xi,{}),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=Fe(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Je,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Je,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $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(J)`
|
|
2
2
|
color: inherit;
|
|
3
3
|
`,fe=o(J)`
|
|
4
4
|
color: ${I.important};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a8 as ze,aw as Re,Q as H,g as V,V as t,bB as Ie,b as I,g4 as Te,F as T,u as l,o as i,y as x,ji as De,cc as Be,jj as G,aP as O,b3 as Oe,cs as Ae,iQ as Ne,bN as Me,aT as He,al as W,du as j,gW as Y,aN as K,bS as We,cu as Ee,bQ as _e,am as M,cy as q,p as $,gX as pe,fO as me,fK as ge,ch as Ke,ai as F,iF as ue,bL as Ve,jk as Fe,iY as Ze,cB as Ue,aV as z,iZ as Ye,i_ as Qe}from"./index-
|
|
1
|
+
import{a8 as ze,aw as Re,Q as H,g as V,V as t,bB as Ie,b as I,g4 as Te,F as T,u as l,o as i,y as x,ji as De,cc as Be,jj as G,aP as O,b3 as Oe,cs as Ae,iQ as Ne,bN as Me,aT as He,al as W,du as j,gW as Y,aN as K,bS as We,cu as Ee,bQ as _e,am as M,cy as q,p as $,gX as pe,fO as me,fK as ge,ch as Ke,ai as F,iF as ue,bL as Ve,jk as Fe,iY as Ze,cB as Ue,aV as z,iZ as Ye,i_ as Qe}from"./index-DVgY55Ab.js";import{a as S,P as Q}from"./sentry-DMXY90dB.js";import{n,c as J}from"./mui-CR-wYMmN.js";import{t as Xe}from"./SpendManagementSection-DFiL_yNI-ca-vlRub.js";import{r as Ge,a as qe,i as ye,g as Je}from"./SpendManagementListViewPage-C1hg05PB-BMXGChah.js";import{ck as xe,G5 as fe}from"./zeni-epic-state-BXMuLX_S.js";import{r as et}from"./auto-transfer-rule-mbafm5D3-T83isyAA.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";import"./StatusSwitcher-DPzwQ_o1-DkaIBc47.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="39a1c72b-5871-4c40-816a-8ac7a2d533de",e._sentryDebugIdIdentifier="sentry-dbid-39a1c72b-5871-4c40-816a-8ac7a2d533de")}catch{}})();const E=T.getLocalizedStrings().spendManagement.chargeCard.paymentHistory.header,tt={key:"paymentDate",value:E.paymentDate,sortOrder:"ascending",width:new x(18,18,18,18,18)},it={key:"sourceAccount",value:E.sourceAccount,sortOrder:"ascending",width:new x(30,30,30,30,30)},nt={key:"paymentStatus",value:E.paymentStatus,sortOrder:"ascending",width:new x(22,22,22,22,22)},ot={key:"initiatedBy",value:E.initiatedBy,sortOrder:"ascending",width:new x(18,18,18,18,18)},at={key:"amount",value:E.amount,sortOrder:"ascending",width:new x(12,12,12,12,12)},we=()=>[tt,it,nt,ot,at],k={containerPaddingLeft:i.sp2,containerPaddingRight:i.sp3,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new x(l[0],l[4]),headerLastColumnRightPadding:new x(l[3],l[11]),headerLastColumnBottomPadding:new x(l[0],l[4]),headerLastColumnLeftPadding:new x(l[0],l[11]),headerHeight:new x(Ye,Qe)};function st({companyNameSticky:e,sortConfig:o,onColumnSortConfigChanged:c}){const a=V(),r=H(),[d,g]=S.useState(we());S.useEffect(()=>{const s=[...d];for(const m of s)m.key===o.sortKey?m.sortOrder=o.sortOrder:m.sortOrder="ascending";g(s)},[o.sortKey,o.sortOrder]);const y=(s,m)=>{let C=m;o.sortKey===s&&(C=m==="ascending"?"descending":"ascending"),c(s,C)},h=d.find(s=>s.key===o.sortKey)??d[0],p=s=>d.find(m=>m.key===s)?.value??"",u=d.map(s=>s.key),b=T.getLocalizedStrings().spendManagement.chargeCard.paymentHistory;return r==="small"?t.jsxs(ct,{windowSize:r,children:[t.jsxs(mt,{children:[t.jsx(ut,{children:t.jsx(gt,{})}),t.jsx(_e,{title:b.header.paymentDate,placeholder:b.header.paymentDate,pickerValues:u,valueToLabel:p,selectedValue:o.sortKey,onPickerSelectionChanged:s=>{y(s,"ascending")},optionTextStyle:I.extraSmallRegular,titleTextStyle:I.extraSmallRegular,titleColor:a.colors.primary,selectedOptionColor:a.colors.hero,optionBackgroundColor:a.colors.grey5,downChevronVisible:!1,backgroundColor:a.colors.grey4})]}),t.jsxs(ft,{onClick:()=>y(h.key,h.sortOrder),"data-testid":O("mobile-payment-history-list-sort-clicked",o.sortKey),children:[t.jsx(M,{children:h.value}),t.jsx(ee,{windowSize:r,sortDataValue:o.sortKey,headerdata:h,children:t.jsx(te,{windowSize:r,children:t.jsx(q,{})})})]})]}):t.jsx(dt,{windowSize:r,children:t.jsx(lt,{children:d.map(s=>s.width.value(r)!==0&&t.jsxs(ht,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:r,children:[t.jsxs(xt,{onClick:()=>y(s.key,s.sortOrder),"data-testid":O("payment-history-list-sort-clicked",o.sortKey),children:[t.jsx(M,{children:s.value}),t.jsx(ee,{windowSize:r,sortDataValue:o.sortKey,headerdata:s,children:t.jsx(te,{windowSize:r,children:t.jsx(q,{})})})]}),t.jsx(yt,{sortDataValue:o.sortKey,windowSize:r,isVisible:o.sortKey===s.key&&!(o.sortKey==="paymentDate"&&o.sortOrder==="ascending"),children:t.jsx(pt,{onClick:()=>y("paymentDate","ascending"),"data-testid":O("payment-history-list-sort-cancel",o.sortKey)})})]},s.key))})})}const rt=Q.memo(st),dt=n.div`
|
|
2
2
|
top: ${i.sp0};
|
|
3
3
|
left: ${i.sp0};
|
|
4
4
|
z-index: 2;
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import{Q as $,V as r,g as J,aw as ye,a8 as $e,aQ as je,aN as Se,fS as Te,bB as ze,fr as ve,r as Y,aP as ee,F as oe,o as t,M as Pe,f as O,cC as ke,aq as Be,y as u,ap as Ie,bS as Ae,iJ as Le,ai as Re,u as p,a as S,p as b,ba as _e,aU as Me,iK as Ee}from"./index-DVgY55Ab.js";import{a as T}from"./sentry-DMXY90dB.js";import{n as a,c as De,k as Fe}from"./mui-CR-wYMmN.js";import{EL as Ue}from"./zeni-epic-state-BXMuLX_S.js";import{k as Ne}from"./NavigationDots-DPf5iy8f-DNlf5jCf.js";import{J as H,N as G}from"./PromoBaseCards-BWpqciJW-DEw7mp3r.js";import{M as R}from"./usp-line-BBd1wKwW-l2et8N9o.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.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]="514adec6-e7a9-4748-8bd1-7ba27365bc05",e._sentryDebugIdIdentifier="sentry-dbid-514adec6-e7a9-4748-8bd1-7ba27365bc05")}catch{}})();const g={containerPaddingTopBottom:new u(p[0],p[0]),uspContainerMarginX:new u(p[6],p[0]),midContainerGap:new u(p[4],84),iconContainerMinHeight:new u(236,396),emptySectionHeight:new u(p[6],43),navigationBottom:new u(p[4],94),navigationLeft:new u(192,244),carouselHeight:new u(268,396),carouselMarginTop:new u(54,p[4]),carouselMarginLeft:new u(120,p[12]),buttonTrayGap:new u(p[3],p[5]),termsOfAgreementMarginTop:new u(p[5],p[10]),contactAdminContainerMarginTop:new u(p[0],p[10]),contactAdminContainerMarginBottom:new u(p[4],p[0]),contactAdminContainerMarginLeftRight:new u(p[3],p[0])},z={promoBadgeText:new S("standardRegular","largeRegular"),promoBadgeTextBold:new S("standardBold","largeBold"),cardsContent:new S("extraSmallRegular","smallRegular"),contactAdmin:new S("extraSmallRegular","largeRegular"),uspText:new S("smallRegular","standardRegular"),uspBoldText:new S("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),_r=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:c,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:x,isChargeCardSetupEnabled:w,admins:j,cashbackRate:P,cardPromoType:f="credit",isCheckingEnabled:l,onSetupButtonClick:d,onBackClick:pe,onClickMenuIcon:me,onSetupChargeCardSuccess:V,onExpressInterestClick:ge})=>{const he=J(),X=ye(),v=$(),q=$e().analytics,{chargeCardTermsDetails:_,companyChargeCardInfo:C,companyLocaleInfo:M}=i,K=je(_?.fetchStatus.fetchState),[ue,Q]=T.useState(!1),xe=()=>{q.trackCardsPromoPageClicked("schedule demo"),q.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:h,isDebitCardEnabled:x,isCreditCardEnabled:w},"Cards Promo"),Q(!0)},we=C!=null&&M!=null?Se("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:M.currencyCode,currencySymbol:M.currencySymbol}):void 0;T.useEffect(()=>{K==="In-Progress"&&_?.fetchStatus.fetchState==="Completed"&&V()},[K,V,_?.fetchStatus]);const W=Ue(X.loggedInUserRoleMap),fe=Te(X),E=f==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,Ce=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:be}=i,Z=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(Xe,{children:[r.jsx(ze,{title:o.title[f],backgroundColor:he.colors.grey4,onBackClick:pe,showBackButton:!0,showMenuIcon:v==="medium-compact"||v==="small",onClickMenuIcon:me,style:{zIndex:9},source:"ChargeCardPromoPage"}),ue===!0?r.jsx(ve,{onCancelClick:()=>{Q(!1)},meetingUrl:e}):null,r.jsx(We,{windowSize:v,children:W===!0?r.jsxs(Qe,{children:[r.jsxs(Ke,{children:[r.jsx(Ge,{isApproved:Ce,creditAmount:we,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:E,creditLimit:C?.chargeCardsCreditAccountLimit}),r.jsx(ne,{cardPromoType:f,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:E,isCheckingEnabled:l})]}):r.jsx(Je,{companyLegalName:s,cards:[],admins:j,cashbackRate:P,hasZeniFinopsRoles:fe,cardPromoType:f,isCheckingEnabled:l})}),W&&!(F||D)?r.jsxs(or,{windowSize:v,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(qe,{windowSize:v,children:o.orText}),r.jsx(Y,{variant:"primary",label:Z,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||be==="In-Progress",onClick:Z===o.getPreApprovedNow?ge:()=>d(f),"data-testid":ee("enable-card-button")})]}):null]})},He=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=$();return r.jsxs(mr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isCheckingEnabled:i,isUnderReview:n,isRejected:c,showExpressInterest:m,isCardUser:h=!1})=>{const x=$();return r.jsx(ir,{windowSize:x,children:r.jsx(Le,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:n===!0||c===!0||h===!0?void 0:m===!0?o.terms.getPreApprovedNowTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:c===!1&&h===!1&&n===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(x)},cardPromoType:e,isCheckingEnabled:i})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:c,showExpressInterest:m,creditLimit:h})=>{const x=$(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,j=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(rr,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:c?o.promoBadgeText.rejected:s==="debit_and_credit"&&h===0?null:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:x==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hasContent:j!=null,hideBadge:i==null||s==="debit",windowSize:x,children:[n||c||m?null:r.jsx(br,{}),r.jsx(er,{windowSize:x,children:j})]})]})},Je=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:c,cardPromoType:m="credit",isCheckingEnabled:h})=>{const x=$(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[x==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(pr,{windowSize:x}):r.jsx(Oe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),c?null:r.jsx(He,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:h})]})},Oe=({cards:e,companyLegalName:s})=>{const i=J(),n=$();let c="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const h=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;c=o.cardAssigned.singleCreditCard.replace("__issuing-user__",h).replace("__company-name__",s)}else c=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(hr,{children:[m!=null?r.jsx(Ze,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:h})=>{h.onerror=null,h.src=Ie},loading:"lazy"}):null,r.jsx(gr,{windowSize:n,mode:i.mode,children:r.jsx(ur,{windowSize:n,children:c})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(nr,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=$(),n=o.benefits;return r.jsxs(tr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(ar,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(I,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(I,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(cr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(I,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(I,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=$(),s=J(),[i,n]=T.useState(0),[c,m]=T.useState(!1),h=o.businessText,x=`${h} ${o.debit}`,w=[{id:1,cardType:"debit",cardText:x},{id:2,cardType:"debit",cardText:x},{id:3,cardType:"credit",cardText:h},{id:4,cardType:"credit",cardText:h}];T.useEffect(()=>(c||(k=setInterval(()=>{n(l=>{const d=l+1;return d===w.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[c,w.length]),T.useEffect(()=>{c&&k!=null&&clearInterval(k)},[c]);const j=(l,d)=>{switch((l-i+w.length)%w.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=j(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},f=l=>{c||m(!0),n(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(wr,{windowSize:e,children:w.map((l,d)=>r.jsxs(fr,{children:[r.jsx(ie,{isReflection:!1,style:{...j(d,!1)},onClick:()=>f(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),c&&r.jsx(Ne,{numberOfDots:w.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},Xe=a.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex: 1 1 auto;
|
|
4
|
+
min-height: 100%;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
background-color: ${e=>e.theme.colors.grey4};
|
|
7
|
+
`,qe=a(Re)`
|
|
8
|
+
color: ${e=>e.theme.colors.hero};
|
|
9
|
+
`,Ke=a.div`
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
`,Qe=a.div`
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
flex: 1;
|
|
18
|
+
width: 100%;
|
|
19
|
+
`,We=a.div`
|
|
20
|
+
padding-top: ${e=>g.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
21
|
+
padding-bottom: ${e=>g.containerPaddingTopBottom.valuePx(e.windowSize)};
|
|
22
|
+
text-align: center;
|
|
23
|
+
flex: 1;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
overflow-x: hidden;
|
|
27
|
+
`,se=a(ke)`
|
|
28
|
+
max-width: 927px;
|
|
29
|
+
margin: auto;
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
padding: ${t.sp7} ${t.sp0} ${t.sp0} ${t.sp0};
|
|
34
|
+
color: ${e=>e.theme.colors.primary};
|
|
35
|
+
`,de=a(Be)`
|
|
36
|
+
color: ${e=>e.theme.colors.primary};
|
|
37
|
+
margin: auto;
|
|
38
|
+
margin-top: ${t.sp2};
|
|
39
|
+
`,le=a(Pe)`
|
|
40
|
+
margin: auto;
|
|
41
|
+
max-width: 343px;
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
text-align: center;
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
padding: ${t.sp5} ${t.sp0} ${t.sp0} ${t.sp0};
|
|
47
|
+
color: ${e=>e.theme.colors.primary};
|
|
48
|
+
`,ce=a(O)`
|
|
49
|
+
max-width: 314px;
|
|
50
|
+
margin: auto;
|
|
51
|
+
color: ${e=>e.theme.colors.primary};
|
|
52
|
+
padding: 6px ${t.sp3} ${t.sp0} ${t.sp3};
|
|
53
|
+
text-align: center;
|
|
54
|
+
margin-top: 6px;
|
|
55
|
+
`,Ze=a.img`
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
color: ${e=>e.theme.colors.hero};
|
|
59
|
+
`,Ye=a.div`
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: row;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
position: relative;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
padding: ${e=>e.hasContent?`${t.sp2} ${t.sp3}`:t.sp0};
|
|
67
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
68
|
+
border-radius: 96px;
|
|
69
|
+
margin-top: ${t.sp4};
|
|
70
|
+
margin-left: ${e=>e.windowSize==="small"?t.sp3:"auto"};
|
|
71
|
+
margin-right: ${e=>e.windowSize==="small"?t.sp3:"auto"};
|
|
72
|
+
margin-bottom: ${e=>e.cardPromoType==="debit_and_credit"&&e.windowSize==="small"?t.sp0:t.sp6};
|
|
73
|
+
width: fit-content;
|
|
74
|
+
gap: ${t.sp1};
|
|
75
|
+
${e=>e.hideBadge&&`
|
|
76
|
+
visibility: hidden;
|
|
77
|
+
`}
|
|
78
|
+
`,er=a(O)`
|
|
79
|
+
color: ${e=>e.theme.mode==="dark"?b.brandColorJade:b.brandColorSapphire};
|
|
80
|
+
text-align: ${e=>e.windowSize==="small"?"left":"center"};
|
|
81
|
+
${e=>`${z.promoBadgeText.style(e.windowSize)}`};
|
|
82
|
+
span {
|
|
83
|
+
${e=>`${z.promoBadgeTextBold.style(e.windowSize)}`};
|
|
84
|
+
}
|
|
85
|
+
`,rr=a.span``,te=a.span`
|
|
86
|
+
color: ${b.success};
|
|
87
|
+
`,tr=a.div`
|
|
88
|
+
display: flex;
|
|
89
|
+
gap: ${e=>g.midContainerGap.valuePx(e.windowSize)};
|
|
90
|
+
flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
`,ir=a.div`
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
`,or=a.div`
|
|
97
|
+
border-top: 1px solid ${e=>e.theme.colors.grey3};
|
|
98
|
+
padding: ${t.sp2} ${t.sp3};
|
|
99
|
+
position: sticky;
|
|
100
|
+
bottom: 0;
|
|
101
|
+
left: 0;
|
|
102
|
+
right: 0;
|
|
103
|
+
z-index: 8;
|
|
104
|
+
display: flex;
|
|
105
|
+
justify-content: center;
|
|
106
|
+
align-items: center;
|
|
107
|
+
flex-direction: row;
|
|
108
|
+
row-gap: ${t.sp2};
|
|
109
|
+
background-color: ${e=>e.theme.colors.grey5};
|
|
110
|
+
gap: ${e=>g.buttonTrayGap.valuePx(e.windowSize)};
|
|
111
|
+
`,ar=a.div`
|
|
112
|
+
width: ${e=>e.windowSize==="small"?"auto":"288px"};
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
margin-left: ${e=>g.uspContainerMarginX.valuePx(e.windowSize)};
|
|
116
|
+
margin-right: ${e=>g.uspContainerMarginX.valuePx(e.windowSize)};
|
|
117
|
+
z-index: 8;
|
|
118
|
+
`,nr=a.div`
|
|
119
|
+
display: flex;
|
|
120
|
+
justify-content: ${e=>e.windowSize==="small"?"center":"flex-start"};
|
|
121
|
+
min-height: ${e=>g.iconContainerMinHeight.valuePx(e.windowSize)};
|
|
122
|
+
align-items: center;
|
|
123
|
+
min-width: 480px;
|
|
124
|
+
`,B=a.div`
|
|
125
|
+
border-radius: ${t.sp12};
|
|
126
|
+
border: ${e=>`1px solid ${e.theme.colors.grey2}`};
|
|
127
|
+
padding: ${e=>e.windowSize==="small"?`${t.sp2} ${t.sp4} ${t.sp2} ${t.sp0}`:`${t.sp3} ${t.sp5} ${t.sp3} ${t.sp0}`};
|
|
128
|
+
background: ${e=>e.theme.colors.grey5};
|
|
129
|
+
position: relative;
|
|
130
|
+
margin-bottom: ${t.sp3};
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
text-align: start;
|
|
134
|
+
width: ${e=>e.windowSize==="small"?"288px":"100%"};
|
|
135
|
+
min-height: ${e=>e.windowSize!=="small"?"83px":"44px"};
|
|
136
|
+
box-sizing: ${e=>e.windowSize==="small"?"unset":"border-box"};
|
|
137
|
+
`,y=a(_e)`
|
|
138
|
+
color: ${e=>e.theme.colors.champion};
|
|
139
|
+
${e=>`${z.uspText.style(e.windowSize)}`};
|
|
140
|
+
`,I=a(Me)`
|
|
141
|
+
color: ${e=>e.theme.colors.champion};
|
|
142
|
+
${e=>`${z.uspBoldText.style(e.windowSize)}`};
|
|
143
|
+
`,A=a.div``,L=a.div`
|
|
144
|
+
padding-left: ${t.sp3};
|
|
145
|
+
`,sr=a(R)`
|
|
146
|
+
color: ${b.graphColor16Dark};
|
|
147
|
+
`,dr=a(R)`
|
|
148
|
+
color: ${b.alert};
|
|
149
|
+
`,lr=a(R)`
|
|
150
|
+
color: ${b.graphColor11};
|
|
151
|
+
`,cr=a(R)`
|
|
152
|
+
color: ${b.success};
|
|
153
|
+
`,pr=a.div`
|
|
154
|
+
height: ${e=>g.emptySectionHeight.valuePx(e.windowSize)};
|
|
155
|
+
${e=>e.windowSize==="small"?null:De`
|
|
156
|
+
margin-top: ${t.sp4};
|
|
157
|
+
margin-bottom: ${t.sp6};
|
|
158
|
+
`}
|
|
159
|
+
`,mr=a(O)`
|
|
160
|
+
color: ${e=>e.theme.colors.hero};
|
|
161
|
+
margin-top: ${e=>g.contactAdminContainerMarginTop.valuePx(e.windowSize)};
|
|
162
|
+
margin-bottom: ${e=>g.contactAdminContainerMarginBottom.valuePx(e.windowSize)};
|
|
163
|
+
margin-left: ${e=>g.contactAdminContainerMarginLeftRight.valuePx(e.windowSize)};
|
|
164
|
+
margin-right: ${e=>g.contactAdminContainerMarginLeftRight.valuePx(e.windowSize)};
|
|
165
|
+
text-align: center;
|
|
166
|
+
`,N=a(Ee)`
|
|
167
|
+
${e=>`${z.contactAdmin.style(e.windowSize)}`};
|
|
168
|
+
text-decoration: ${e=>e.underline?"underline":"none"};
|
|
169
|
+
cursor: ${e=>e.underline?"default":null};
|
|
170
|
+
`,gr=a.div`
|
|
171
|
+
color: ${e=>e.mode==="dark"?e.theme.colors.brandColorJade:e.theme.colors.brandColorSapphire};
|
|
172
|
+
`,hr=a.div`
|
|
173
|
+
background-color: ${e=>e.theme.colors.grey3};
|
|
174
|
+
padding: ${t.sp2} ${t.sp3};
|
|
175
|
+
display: flex;
|
|
176
|
+
gap: ${t.sp2};
|
|
177
|
+
margin: auto;
|
|
178
|
+
max-width: fit-content;
|
|
179
|
+
border-radius: 96px;
|
|
180
|
+
margin-top: ${t.sp4};
|
|
181
|
+
margin-bottom: ${t.sp6};
|
|
182
|
+
`,ur=a.span`
|
|
183
|
+
${e=>`${z.cardsContent.style(e.windowSize)}`};
|
|
184
|
+
`,xr=a.div`
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
min-height: ${e=>g.carouselHeight.valuePx(e.windowSize)};
|
|
188
|
+
min-width: 480px;
|
|
189
|
+
position: relative;
|
|
190
|
+
`,wr=a.div`
|
|
191
|
+
position: relative;
|
|
192
|
+
margin-top: ${e=>g.carouselMarginTop.valuePx(e.windowSize)};
|
|
193
|
+
margin-left: ${e=>g.carouselMarginLeft.valuePx(e.windowSize)};
|
|
194
|
+
`,fr=a.div`
|
|
195
|
+
position: relative;
|
|
196
|
+
overflow: visible;
|
|
197
|
+
`,ie=a.div`
|
|
198
|
+
position: absolute;
|
|
199
|
+
${e=>e.isReflection&&`
|
|
200
|
+
background-color: ${e.theme.colors.grey4};
|
|
201
|
+
clip-path: inset(16% 0 0 0);
|
|
202
|
+
`}
|
|
203
|
+
`,Cr=Fe`
|
|
204
|
+
0% {
|
|
205
|
+
left: -${t.sp6};
|
|
206
|
+
}
|
|
207
|
+
50% {
|
|
208
|
+
left: calc(100% + ${t.sp6});
|
|
209
|
+
}
|
|
210
|
+
100% {
|
|
211
|
+
left: calc(100% + ${t.sp6});
|
|
212
|
+
}
|
|
213
|
+
`,br=a.div`
|
|
214
|
+
position: absolute;
|
|
215
|
+
background:
|
|
216
|
+
${b.promoCardGradient1Strong}, ${b.promoCardGradient2Strong};
|
|
217
|
+
width: ${t.sp10};
|
|
218
|
+
z-index: 3;
|
|
219
|
+
height: 100%;
|
|
220
|
+
transform: skew(15deg);
|
|
221
|
+
animation: ${Cr} 4s linear infinite;
|
|
222
|
+
`;export{Je as ChargeCardPromoUserContent,_r as default};
|