@zeniai/web-cockpit-ui 1.15.12-qa → 1.15.13-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.
Files changed (274) hide show
  1. package/dist/assets/{ACHDetailsPage-BY65AQjO-q0-VEdaA.js → ACHDetailsPage-BlujuoRH-D3z2m9vf.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-B0a7EX_p-CUKcx2_x.js → AIPerformancePage-DfgPUakC-C7_4KJtd.js} +12 -12
  3. package/dist/assets/AccountInfoPage-BYwGsz6J-ilS3p_4u.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BsSGhNw9-BWyqBMAX.js → AccountInfoPageContent-CTvsml8u-HiMO1t4f.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-uPOYP0OH-bsLRvnWB.js → AccountLockedInfoModal-DeYVMh3B-Dec8Ripp.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BgPmbG_g-Bn_SVxy6.js → AccountReconDetailsDrawerPage-D6WT5Co_-Boi6JvlJ.js} +1 -1
  7. package/dist/assets/{AccountRow-B9ZIzZy7-nqAM-ApD.js → AccountRow-FmhkZVL4-BiCaU5gp.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BLcpWU3T-BEekLLpR.js → AccountsPromoCardStack-B5Mri6qW-C55uOtTG.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-B1oucxyM-BKATlAhG.js → AddAddressForCardDrawer-Bs4dQyRL-ChMzAqlj.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-B1GVnxRf-F5GFpdse.js → AddToWalletPage-fBplELoj-BbSWfj-_.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Bpp4te8m-CjLFji3g.js → AgingReportsPage-CgeLN6Su-mjdbj-V7.js} +1 -1
  12. package/dist/assets/{AllUserItems-CzugF5fn-BYhJDkGl.js → AllUserItems-vOFCgjs7-BawEw1bw.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-CyUQeZY0-AUrs3Xvn.js → ApAgingDetailPage-CF5WKuOc-DwzZ4J6w.js} +4 -4
  14. package/dist/assets/{AppBasePage-Di7hObbX-DqNRoXJs.js → AppBasePage-DrIjva6e-BEoSV9em.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-KdrUuifo-BFEQULkA.js → AppDrawerContent-Co1DpiWD-BseTWq0X.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-BRIgTh7x-DokiC4yA.js → ApprovalRulesSettingsPage-tYbxBThK-Cp_BZtLr.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DeE5uhiT-D8be3NMH.js → ArAgingChart-B2zTJJgb-BW-4V4KX.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CFiIUBWl-O24WqKiv.js → ArAgingDetailPage-0nCr6crv-CVAwjIoB.js} +5 -5
  19. package/dist/assets/{AttachmentView-CfacSLcU-C7ky07Zs.js → AttachmentView-vlVaH4YF-DjHAa-jm.js} +1 -1
  20. package/dist/assets/{BankAccountSection-Bm8vdxFd-iMMvW9M5.js → BankAccountSection-CDKiTWgn-CtT_fqlj.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-M3w6kP33-Csqm1mAu.js → BankAccountWarningSection-tSnRJm3S-Xh7INFxm.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-Dfrp0CKz-CJ243lny.js → BankConnectionsSettingsPage-O_L8CHJf-Lbkg03Kb.js} +1 -1
  23. package/dist/assets/{BillDetailPage-BA1D1bO3-DApjnN-q.js → BillDetailPage-DR3JefXf-CT_vRh92.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DR8YzZt1-BRUIZf-H.js → BillPayApprovalRuleDetailPage-2w8HO-NU-BrDPRKpx.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CfZ4aSPM-JoH4IuAQ.js → BillPayApprovalRulesPage-yFoEpHK8-mn4XE1DW.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-CP9Nvd2Q-2b0Qc16o.js → BillPayPromoPage-DZkA_0AV-wh6M-Qtv.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BwEONKu_-CI1Rqte-.js → BillPaySetUpPage-B2j-es9G-Cgscrq-x.js} +7 -7
  28. package/dist/assets/{BillingSettingsPage-DicGyWCt-B49766hY.js → BillingSettingsPage-ayQNGWSW-BH36NbEd.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-fS3-YEdi-CTAYP-O5.js → BillsBulkReviewDrawerPage-B2LDJ9-N-Bz6yNrUs.js} +1 -1
  30. package/dist/assets/{BoxItem-Cr0Y9YBV-Bmt5X20Y.js → BoxItem-B0bHU_KA-CwJAi_XO.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-CvL9cdJm-DEZpdeeF.js → BusinessVerificationPage-DZ27apcr-60B1XBNo.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CXBKzGK5-BwltAmEE.js → CardNumberSubText-CpqumrS--C5H93W0D.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-DOdPOiws-DwTNfkbM.js → CashbackDetailPage-C3oNmfln-Cjfl1QQU.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-DfhAyysD-0xuiWfZI.js → ChargeCardDetailPage-C9XhHqSo-C6G4QIZB.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-Bnnu4TVk-CKyOvO2V.js → ChargeCardListPage-B_PxtkQX-D4XUj6S4.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-D7zGM8uo-Drwo-scW.js → ChargeCardListTable-kp0WwIZo-C7S3-nFL.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-U00GbINt-C6amBa3G.js → ChargeCardPaymentHistoryPage-D1l3Qgr_-CcXK8zox.js} +8 -8
  38. package/dist/assets/{ChargeCardPromoPage-BpBiwjfr-BtfnCKg8.js → ChargeCardPromoPage-DcmgTF8u-uElL894v.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-Duj6901M-DdgFwgus.js → ChargeCardSetupPage-BX9fPIf_-CJBf2z8R.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-IkU86L31-CmZ2Pmyo.js → ChargeCardStatementsPage-a5u9wGDg-CReuXYls.js} +4 -4
  41. package/dist/assets/{CheckDepositDrawerPage-fHeTkRJF-DwmgEJgb.js → CheckDepositDrawerPage-_DvlXSse-DhB3lKOy.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-DUo-9gOh-Cw4xLjxV.js → CollapsableReportTable-DgteU0nB-DwU6xqcB.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-DzDZe6MU-9yW_ivyy.js → CompanyOfficerDetailsSection-DG1ZQ-UL-BWPYN3Ux.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BwiwJ82k-C2q6dbpi.js → CompanyPassportCard-JfMVwFHV-DIdzwTm1.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-Bz3rzG9k-Ao6blc7S.js → CompanyPassportPage-2j8z-oge-D6U4VneL.js} +1 -1
  46. package/dist/assets/{CompleteProfile-CRXV-nNq-DoWl-XQs.js → CompleteProfile-Cm8XlcS3-h3qANDX9.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-CapRdPno-B98cKZne.js → ConfettiBurst-BtmMysff-DXW2t6JP.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-BjPotKnf-CAR8sXHy.js → CreateOrEditVendorPage-BxSAnKo6-BT1rzueh.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-BTZ2Lph6-BM88xtMu.js → CreditCardPaymentDrawerPage-a2j9Vyid-B5YbQ1Qy.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-DY0HeU0G-BVDIGiRU.js → CurrencySelectField-CbBlYqRB-D1pLCzjN.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-BIKXkkcY-DZsnHmTE.js → CustomerOnboardingActivationPage-CG508vOx-CLWU-GVx.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-CuP19GYc-BdzG4LPd.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYiAmFsM-BUeNNOfg.js → CustomerOnboardingDetailPageSkeleton-BszHZi0e-DON_7YLk.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-gssFllMT-bVWBXpNE.js → CustomerOnboardingNoStepsPage-Cg8ti5NY-DlxEJtW7.js} +9 -9
  55. package/dist/assets/{CustomerOnboardingPage-CBJHj8BH-D-kXTXkI.js → CustomerOnboardingPage-DM-gDkp1-rcTTcpJq.js} +1 -1
  56. package/dist/assets/CustomerOnboardingProductSuitePage-BryLMJRG-DDfHjs9L.js +202 -0
  57. package/dist/assets/{Dashboard-BVvkfPf9-ZblcIrM6.js → Dashboard-BRm1rkFD-sRJsQcvd.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-DHQ79h9V-WygEP18z.js → DashboardReportPage-rtbUwJSW-Cfsk6TQp.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-B8Q-YA_s-CCN0cnLd.js → DashboardSidebarBackgroundAnimation-DVTdlTEZ-LE3GU0DJ.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-DZnqI7IQ-D6E_iN90.js → DepositAccTransactionItem-BbKLxsPR-Dpo7wVCS.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-BMNdp-3Q-8Vs72QzQ.js → DepositAccTransactionListPage-0AV-fx2Z-BFJB16zN.js} +2 -2
  62. package/dist/assets/{DomesticWireDetailsPage-CCP6xoW_-mXF3TugY.js → DomesticWireDetailsPage-BKumlfKE-Cqz9aujw.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-B2bK30rG-DnbM30eK.js → DownloadOverlay-C6GFjg2N-DrkN4pip.js} +1 -1
  64. package/dist/assets/{DrawerPage-BRJDrBlv-FSUn2F7N.js → DrawerPage-BjfQ_wvz-BRg4aJBc.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-I8E1Rs3x-CD3sx5sS.js → EditPeoplePage-59PeI1Ul-cMTnU9vy.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-C7BPmFMR-7Ig8N6HD.js → EditReimbursementDetailPage-D5cPRveU--6MVI5yI.js} +1 -1
  67. package/dist/assets/{EntityDetailPage-BraBJ2k1-DJcqsMGT.js → EntityDetailPage-CiO1dOzo-BB1u6uOD.js} +2 -2
  68. package/dist/assets/{EntitySummarySection-DPmL3Bnf-C7B18nNx.js → EntitySummarySection-DBQxz0Ak-YgKNz1nX.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-CDaO_5Vj-Gf0yJA6c.js → ExpenseAutomationOverviewPage-D9JnRKeQ-bE2V-UEo.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-DUenmMQD-DtCZvWXA.js → ExpenseAutomationPage-isWf-Yjm-BEj6GzxJ.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-DxO1mXNE-yBHIybFP.js → ExpressPayPage-iL1BYLic-BqUwfpLY.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-BWPNZcYs-DGaxWzIh.js → FeaturePreviewPage-CFz7RpI6-DbRQaCew.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-DhVGeocZ-Cve1TP8k.js → FollowStepsSection-Crd9GwnW-RQu2gQ-V.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-8eiQXg7N-CW817Gtm.js → GlobalReviewListPage-xUatsnwu-Dx9d2TTm.js} +1 -1
  75. package/dist/assets/{InformationCardStack-CHVjIv01-CQbjGUU9.js → InformationCardStack-CgSYiHdK-Cf9Cjw1k.js} +2 -2
  76. package/dist/assets/{InsightsCardStack-x_tohY2Z-BhRbnJpc.js → InsightsCardStack-dkuf5D9A-Duqx5-xn.js} +2 -2
  77. package/dist/assets/{InsightsSection-D7g00fg7-BNrxlueb.js → InsightsSection-CUk29Ace-BKDJK0uo.js} +2 -2
  78. package/dist/assets/{IntegrationsSettingsPage-DVRtPRi9-BpKu2CSN.js → IntegrationsSettingsPage-As-313jz-BWoXfvd2.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-DnWbUuiD-DwG99aWQ.js → InternationalWireSwiftDetailsPage-CqMsBHlO-CbK2_2UB.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-CHvUYgd8-B0kLyPu3.js → InternationalWireVerificationPage-BJ9-Rvqo-C5xNuG17.js} +1 -1
  81. package/dist/assets/{InviteFormPage-Cw0TIkwc-CxbkYSe8.js → InviteFormPage-D7yOmbjN-B6cNY2j6.js} +1 -1
  82. package/dist/assets/{InvitePageListView-B4gEzFp2-C5MhLhQ9.js → InvitePageListView-CUeSQD7S-BB-ili2p.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-Bnsqv_IY-BBN3hPVg.js → InvitePeoplePage-BY6iz4UW-16zeXtyQ.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-CW4hHmAi-BVn8WXx-.js → InvoiceUploadSection-fjn4uF_l-DBvp2GNb.js} +20 -20
  85. package/dist/assets/{IssueChargeCardPage-sM826Uvu-BiJnDa7q.js → IssueChargeCardPage-B30u11O2-BHXfiwVd.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-AuzW29LK-Dghtfwfx.js → LabeledAddressValue-CJZ_1zh1-dIyC1ckB.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-C_KatgTA-D3T6clVz.js → LabeledAddressValueField-3BEuHr_a-BAXHOnek.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-CEd7DSmU-VOrHoRB-.js → LabeledControlledCheckBoxField-DqtbWhaH-Ct8s61sn.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-CffMX6f1-BKMXK8fg.js → LabeledCountryMultiSelectField-t7lnpz15-B8MvgThW.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-CoS6DIi_-ngKPnxm3.js → LabeledCreatableSingleSelectField-DSrFEwMO-BtK2wHhP.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-CVBhbPHv-DJhUy7mJ.js → LabeledDocumentField-CYvUm3Rk-DLfE-kKo.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-CNru68eT-D_bPtxxF.js → LabeledDropDownFormattedTextField-IohlqRi7-BoY6bhCM.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-CTqXa2Rh-C1DiyLKK.js → LabeledMultiSelectField-CveBXp8L-BAd1gTI4.js} +1 -1
  94. package/dist/assets/{LabeledText-Da0Yn6u8-CEq8NxeA.js → LabeledText-C9CoADG4-BsL6jbJB.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CE332GjA-B_uNoSAj.js → LabeledUserSingleSelectWithSubtitlesField-B6q4n0f5-BWHNFjm5.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DU4-ho4X-CcdwnXmo.js → LabeledZeniRolesDropDownField-B-0ZfQFs-BLpCJZWp.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-Dx4OE1-O-BP-Re_Mp.js → LinkJETransactionPage-CLo-jbfZ-CgODjcQ0.js} +2 -2
  98. package/dist/assets/{LockCardPage-B3P6wcK_-DXiVYe6A.js → LockCardPage-CmWzTH0n-B_X-TwZ4.js} +6 -6
  99. package/dist/assets/{LowBalancePopup-Dp1vEYQQ-CZf2OgxD.js → LowBalancePopup-BUAKDPHL-BfDsvGUL.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-v539jeyl-sH7kLHfx.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-CU9g_d2_-gcBn5f-G.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-CYupqopA-BhBR0cCB.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-Iva17nX0-BicACDFK.js → MagicLinkSuccessPage-BGSpNBaK-DRZ7k8D2.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-B726bP_P-Ds-g77rC.js → MagicLinkTitleSection-BKIOmha4-ChpstG69.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-BwgWy_VZ-Do6nH1qr.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-Ad6xGN08-DfX8Kieh.js → MyBankConnectionsSettingsPage-B3HEwRST-BMNPEzRQ.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-BYZ61huS-BBPAzIaW.js → MyPendingActivationChargeCardListPage-Cy_JIUO5-CXr2StVT.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-bEru4GQJ-DrklNR_0.js → MyProfileSettingsPage-D4XR8lj4-Cx77Yc0W.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-BAKrtv3g-BAVuswcj.js → NavBarWithPicker-Brxnh3kz-BBzh1_Q6.js} +1 -1
  110. package/dist/assets/{NavigationArrow-CKvBs9-h-DGrwATOY.js → NavigationArrow-C1HvrCIx-DFOmLMLf.js} +1 -1
  111. package/dist/assets/{NavigationDots-BdcVrwsL-DI6uVlju.js → NavigationDots-Ttv3r4BR-v2ws1TaA.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-Cx38uQAS-CVS2RS0h.js → NewGlobalMerchantPage-rrVa4Iiv-lDEd0itd.js} +1 -1
  113. package/dist/assets/{NoDataChart-BbyxZE2g-DftC8NAQ.js → NoDataChart--T7v827k-zXeqjU35.js} +1 -1
  114. package/dist/assets/{NoDataTable-BNZWGvtm-zaSGOsX8.js → NoDataTable-cJmfr934-D57XH4Vn.js} +1 -1
  115. package/dist/assets/{NotFoundPage-CssnEz-k-CscSjgs7.js → NotFoundPage-C-RS1j9W-DH4NAkkX.js} +9 -9
  116. package/dist/assets/{NotificationSettingsPage-DmgxnO9I-CblGBNGe.js → NotificationSettingsPage-Bt94GV9--r7sgcB96.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-DdMKLqFI-CuDQgdEu.js → NotificationsListConfig-CbWdzORJ-BsmAt2Aw.js} +1 -1
  118. package/dist/assets/{NotificationsPage-B9XIE39J-Dv9gZ3DU.js → NotificationsPage-kZGgGVaC-BAHmfRGl.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-5wnFvYXt-CUJLUo3V.js → OpExByVendorPage-BSoM5hsv-8kUubW4x.js} +1 -1
  120. package/dist/assets/{OverlayContainerPage-IDTUbuAC-i9WtyG5H.js → OverlayContainerPage-IDTUbuAC-C05m2YxE.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-CrtKdSaD-Cg5pRrge.js → PandLWithForecastPage-C181kEf--CfV2ma5M.js} +1 -1
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CQki5l4P-Be_S4DkR.js → PaymentAccountSetupBillingAddressSection-DqDvhQwH-C-RxqOsn.js} +7 -7
  123. package/dist/assets/{PeoplePage-BCjxJl1y-BwCs0QjE.js → PeoplePage-ByvK4lsu-B40YfrBC.js} +1 -1
  124. package/dist/assets/{Preview-DMKZka6j.js → Preview-B0RnB2Yn.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-BYvlY6Jl-COI4qyxl.js → ProductsCarousel-CCLEQfr4-D3JLfCUB.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-6vRaZnUg-DGHSU3hX.js → PromoBaseCards-BESaQCrl-gKsHUW_9.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-C-v9bhUW-D7_9Yx1q.js → QBOConnectionDialog-BhmH5aji-CM5T8oTr.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-DPhwp1AB-nomlRQHL.js → QBOSetupSection-BevEEFTb-Jbk-oPo7.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Crz8RArL-eCodUMWf.js → ReimbursementApprovalRuleDetailPage-Dklp8fND-C3LBVHUX.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-CHrPVveg-B9drd8bS.js → ReimbursementApprovalRulesPage-CCo730ny-q5c8fyV0.js} +1 -1
  131. package/dist/assets/{ReimbursementDetailPage-BlfifQuc-C5dxX6t8.js → ReimbursementDetailPage-D8G3Aoci-DIVONTh0.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-B6rhhOye-Ci78-bdN.js → ReimbursementPromoPage-B8BSm0-k-Bt9GjQuu.js} +4 -4
  133. package/dist/assets/{ReimbursementSetUpPage-BQwRjKZ5-9ywNGg0I.js → ReimbursementSetUpPage-KRQIL0VK-DR0ER4Yx.js} +4 -4
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BTaFn0Mh-C3-rGgMU.js → ReimbursementsBulkReviewDrawerPage-B77ypxnc-BkObb0RE.js} +1 -1
  135. package/dist/assets/{ReloadCard-DETUOoLJ-_Fd6TJ7d.js → ReloadCard-0KQtayY--Cg4JfrF6.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-DSDclygb-D5Zoy-OT.js → ReportTableViewSelector-wrUJSIfk-Dns-QQbX.js} +26 -26
  137. package/dist/assets/{ReportsPage-BrmMmYET-BygmNMmE.js → ReportsPage-D-r0S90r-CtLOp9ey.js} +1 -1
  138. package/dist/assets/{RevenueChart-B711QWTX-D44_xm0q.js → RevenueChart-4kIDtnAc-WBQ50ylJ.js} +14 -14
  139. package/dist/assets/{ReviewDetailsPage-Bkw0FfE--ucoSwwAH.js → ReviewDetailsPage-BqIBTewY-C8DdFF_e.js} +1 -1
  140. package/dist/assets/{ReviewOverlay-CkB3Z8hH-DQ6keQIz.js → ReviewOverlay-DjazNKfI-D9LHGfoS.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-CkpqxMzB-DW17agFY.js → RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-C-4zVu03-DYoR267j.js → ScheduleDetailsFixedAssetsPage-DBfwlnR1-bCnucyiC.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-D4mYRUnv-CjMIcOlV.js → ScheduleDetailsPage-CLEKOymC-B3NLZeIV.js} +1 -1
  144. package/dist/assets/{ScheduleSequenceTable-q-031a_C-DXAL0Amh.js → ScheduleSequenceTable-Dnapx3YK-Be50KNDE.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-C64P_VXE.js → ScreenRoutes-S2WD5yPN.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-Mm8JelXc-DfhOL8wt.js → SetUpAccountSection-D7Nf4cYj-UGNHCsDO.js} +1 -1
  147. package/dist/assets/{SignIn-faWXqi7o-YaN7ZeJL.js → SignIn-Cl1If8Mq-CvFGHXZ8.js} +15 -15
  148. package/dist/assets/{SignInScreen-BXUvBYr5.js → SignInScreen-CFwIVPDY.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-BLWEPKWO-DJ6V5hr0.js → SpendManagementListViewPage-B8AdQD7w-DscL1E8I.js} +3 -3
  150. package/dist/assets/{SpendManagementPerTabPage-vZNK6DuA-BdFiNmKW.js → SpendManagementPerTabPage-BJxGbUNp-CTR6zi4P.js} +1 -1
  151. package/dist/assets/{SpendManagementSection-CeDmloNd-BJA7uFu3.js → SpendManagementSection-CJ-vMwcf-DAIvaE36.js} +1 -1
  152. package/dist/assets/{StatementItem-CJShifEl-DRrukgl3.js → StatementItem-CCXoBC0x-B0aqg_M_.js} +2 -2
  153. package/dist/assets/StatementsPage-BaDmSL9L-t79Ai808.js +58 -0
  154. package/dist/assets/{StatusSwitcher-CPuONMOx-D0oIu0Qt.js → StatusSwitcher-BZ2svcz0-BTZEKNgF.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-ibTbIxr5-BUb197Os.js → SubTabSwitcher-C3216C6m-CK-Qtqj3.js} +1 -1
  156. package/dist/assets/{SummaryCard-vWpHXMPE-tDmDqGFE.js → SummaryCard-CSkw4qa9-i9KCkyV3.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-COs5ebo9-DcEgMhRU.js → TaskManagementPage-BO9Fcar1-BB1pU97E.js} +8 -8
  158. package/dist/assets/{TimeRangeSwitcher-fD5vvYGO-BbCK6XMB.js → TimeRangeSwitcher-C9jo91ZR-BexBx71o.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcher-BYXKRKtc-EVZ4kF7R.js → TimeframeSwitcher-453JT8qD-dl4gBr1v.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-f92qNjEk-BwCpya0J.js → TimeframeSwitcherWithToggle-CkiICrjF-BzFnMJO-.js} +2 -2
  161. package/dist/assets/{TopExCard-Bs4nI9Q9-BvGdik_r.js → TopExCard-Qae08TpE-B5FSxtbi.js} +10 -10
  162. package/dist/assets/{TopExDetailPage-B0kS11k0-C7cMKktV.js → TopExDetailPage-BpwMO-8K-qWr97Eft.js} +4 -4
  163. package/dist/assets/{TransactionDetailPage-BXl6y7sy-DWOSpAKu.js → TransactionDetailPage-CF5tZCkv-ND1Ih8Rd.js} +1 -1
  164. package/dist/assets/{TransactionList-BYXPQXN1-BM4vAbRF.js → TransactionList-BuFcrTEd-Pd5NkKsR.js} +1 -1
  165. package/dist/assets/{TransactionListBig-lrbHUS38-CE8fM-1y.js → TransactionListBig-B6-3iOkU-brDnQ-dC.js} +1 -1
  166. package/dist/assets/{TransactionListPage-OOLJzsmw-CFQFZS_d.js → TransactionListPage-cSSv81G2-C84Nagsy.js} +1 -1
  167. package/dist/assets/{TransactionVendorDetailPage-CmjrngD2-ERYJimV4.js → TransactionVendorDetailPage-BJzVtpnF-BD1O-dJA.js} +1 -1
  168. package/dist/assets/{TransferDrawerPage-CnFrzA_M-C7WYDeKL.js → TransferDrawerPage-DCxNnGwu-R8tXJhB-.js} +1 -1
  169. package/dist/assets/{TreasuryOverviewPage-CGxccIcU-CCbh6Id9.js → TreasuryOverviewPage-DfIkj3v1-DGzCSt8t.js} +9 -9
  170. package/dist/assets/{TreasuryPromoPage-BmMVa8cX-9zbF1fVS.js → TreasuryPromoPage-BBdOyiO--DBYyvSzX.js} +1 -1
  171. package/dist/assets/{TreasuryStatementsPage-DL94A9mN-DpTNh_sB.js → TreasuryStatementsPage-NgiurO36-wIt2qVvF.js} +2 -2
  172. package/dist/assets/{TreasuryTaxLetterPage-BJ9-ZsCQ-Dyu4pa2N.js → TreasuryTaxLetterPage-DcI8sKk8-CiTg5Fth.js} +2 -2
  173. package/dist/assets/{TrendChart-ClyJQTBF-D44HAeBZ.js → TrendChart-DVp0Led--C8WSZxuE.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-D4m4sVkf-QwX2lUKl.js → TrendWithTransactions-C5Zfe4RN-BXIMOZup.js} +1 -1
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BLwx8CVj-BAqznk7L.js → UncategorizedAccountsMappingPage-DKQj6Y2Z-CJmiPan8.js} +5 -5
  176. package/dist/assets/{UnitIntegrationPage-CgbOyIBt-CSgJkBuk.js → UnitIntegrationPage-DzP4Z8GG-Dy6PuJhN.js} +1 -1
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-CmVwCxA2-C7-U_wzd.js → UploadAdditionalDocumentOverlay-BGFTh8Ed-BM9KBkkU.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-DQtP0bm--BEzqoIh4.js → Vendor2FAPopup-CyeLsWVA-Bvm0fc8m.js} +1 -1
  179. package/dist/assets/VendorACHDetailsPage-Ch6V5aiE-C8mQ2zAb.js +1 -0
  180. package/dist/assets/{VendorDetailPage-CFkDOdUe-DIj0i7H9.js → VendorDetailPage-CrEIBnBt-BV5_7SzR.js} +1 -1
  181. package/dist/assets/VendorDomesticWireDetailsPage-GMtYv721-BHj1SZ-2.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-Bkn9p2Sf-88PzLnV7.js → VendorFiling1099EditablePage-Bw_Igktf-DBjJgjbY.js} +32 -32
  183. package/dist/assets/{VendorFirstReviewPage-CKvnB4Q7-DZzeN8iV.js → VendorFirstReviewPage-CCCVS8n7-E428xFy1.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage--B2XU_hP-DBzJCsVC.js → VendorInternationalWireDetailsPage-DsBGMjtN-CQvN_vWC.js} +1 -1
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BeXxE9Qn-ym6eVDNw.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-DJP1yZx7-BqI85Inv.js → VendorsAccountsSection-Bd1rg5Tw-DRUi6jIP.js} +1 -1
  187. package/dist/assets/{VerifyDevice-dFsnt44d-0hToiTH4.js → VerifyDevice-B52Vuja4-0E_pm_dD.js} +7 -7
  188. package/dist/assets/{VideoPlayer-Dy6rImBJ-Nn9JCyBx.js → VideoPlayer-Cfh9VY-B-CLXI1KSM.js} +2 -2
  189. package/dist/assets/{VideoPopup-DM5Buf4j-BT63lz9k.js → VideoPopup-BLRMOVnP-CAsXJ3um.js} +3 -3
  190. package/dist/assets/{WarningsDrawerPage-C8i8v3rq-BxiZP-Sa.js → WarningsDrawerPage-CnUUMlFZ-C2O6kI2F.js} +1 -1
  191. package/dist/assets/{ZeniAccountDetailPage-CI7znfzM-DwgvfHfU.js → ZeniAccountDetailPage-DrBVs3G5-BGnEJzEM.js} +1 -1
  192. package/dist/assets/{ZeniAccountListViewPage-CBnYQpc8-B7PVBM8v.js → ZeniAccountListViewPage-C3WwakQr-CVBB5Etq.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-sMjtAlej-BOgDzxse.js → ZeniAccountNavBarPieces-CP2pkywN-CGbioXtu.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-B_NJMHHV-CZKDfR6n.js → ZeniAccountPromoPage-DYAVwX1I-CACWm6_J.js} +1 -1
  195. package/dist/assets/{ZeniAccountSetupPage-C9cJ0F8e-BoeTxbpP.js → ZeniAccountSetupPage-D4y3RRC0-VwyN8R98.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-DzWFQiAt-FnULaX9M.js → ZeniCopyright-DxhdQ6XJ-DxZgbZ2B.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-B424bcSV-CtzwxU3E.js → ZeniTransferAmountSlider-COT3DDGF-CcOgiNdg.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-pWZi41H8.js → add-to-wallet-DgdBD8_G-DsgRUVgA.js} +1 -1
  199. package/dist/assets/{analytics-BvXI56dE.js → analytics-CSlaNB19.js} +1 -1
  200. package/dist/assets/{analyticsHelper-BRAy7K8G.js → analyticsHelper-BSMq6Y2P.js} +1 -1
  201. package/dist/assets/{analyticsHelper-CzevEN9D-C9y7y7M8.js → analyticsHelper-C35dM-yG-D6b8wU4U.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-B9_UwdI_.js → arrow-south-east-round-PEovUgvH-yHNADvS4.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-CRwly3T1.js → auto-transfer-rule-mbafm5D3-Ccdjr6D8.js} +1 -1
  204. package/dist/assets/{chartTypes-n3TS0IBf-WFvbt09f.js → chartTypes-BDwrrz9S-CO6_cPbC.js} +1 -1
  205. package/dist/assets/{commonDimensions-6BcP8EhU-Dj5Bh5k0.js → commonDimensions-Pu55v5lV-fIykEmeD.js} +1 -1
  206. package/dist/assets/{commonTypes-Q1WP-Ym3-DAex-kP3.js → commonTypes-BElGElM--Bg_ac7b3.js} +1 -1
  207. package/dist/assets/{constants-B97TsRRb.js → constants-D-PeI_mM.js} +1 -1
  208. package/dist/assets/{core-CIefpDlV.js → core-CqdPXR9B.js} +1 -1
  209. package/dist/assets/{dash.all.min-RUznf6Xj.js → dash.all.min-DbcV3v7u.js} +1 -1
  210. package/dist/assets/{detailCommon-D3YbmSu3-DW6HHLj8.js → detailCommon-CM8F8nQy-BjrXwaKv.js} +3 -3
  211. package/dist/assets/{downloadPdf-Bf11NXjY-ge3y_x4j.js → downloadPdf-BF8--IAB-lQpphdcn.js} +1 -1
  212. package/dist/assets/{empty-BQQX0XD1.js → empty-DPq645sP.js} +1 -1
  213. package/dist/assets/{empty-DJIJO66a.js → empty-DTh_Ij2M.js} +1 -1
  214. package/dist/assets/{epic-C6ygjjdM.js → epic-96Yt9tV8.js} +1 -1
  215. package/dist/assets/{gift-box-Cmt9OgIZ-BWCTqneo.js → gift-box-Cmt9OgIZ-Bn-y1hvl.js} +1 -1
  216. package/dist/assets/{graphic-no-data-l-DU4J8fDt-C8GXOUxr.js → graphic-no-data-l-DU4J8fDt-a_iKaRv1.js} +1 -1
  217. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BQAFQuCs.js → graphic-no-data-net-burn-l-CzmycA0m-C9dTXMJH.js} +1 -1
  218. package/dist/assets/{handshake-BPg58FML-BCnezDN8.js → handshake-BPg58FML-DqlUuE7u.js} +1 -1
  219. package/dist/assets/{index-smQbM7l5.js → index-BTSZX0gU.js} +1 -1
  220. package/dist/assets/{index-BzA0Xv0P.js → index-Bs6vtzGR.js} +1 -1
  221. package/dist/assets/{index-Dnx8_gCi.js → index-D4DdpT1f.js} +8 -8
  222. package/dist/assets/{index-rikpsdq-.js → index-DQJyhSzl.js} +1 -1
  223. package/dist/assets/{index-CQs92n2L.js → index-DeNk0spl.js} +1 -1
  224. package/dist/assets/{index-DAj0zPwk.js → index-DfNzwEf5.js} +1 -1
  225. package/dist/assets/{index-DtRGsySN.js → index-DzUx431K.js} +1 -1
  226. package/dist/assets/{lexical-Dp1JhPKz.js → lexical-D6mU3oV8.js} +1 -1
  227. package/dist/assets/{liveblocks-CrODURpx.js → liveblocks-DXNKZvWw.js} +1 -1
  228. package/dist/assets/{lottie-hIwSKdQS.js → lottie-BGCmjFH9.js} +1 -1
  229. package/dist/assets/{mapLoadingInProgressToTreeNode-BArKDqgr-DI-rDhH2.js → mapLoadingInProgressToTreeNode-4ruPPd2Y-CXJTu75z.js} +1 -1
  230. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BCmFQbuz-BKHYuXjj.js → mapSectionWithAcOnlyToTreeNode-B77EOrVX-heqCPLrc.js} +1 -1
  231. package/dist/assets/mapSpacerToTreeNode-DbVBrfUp-DCvPMvjH.js +1 -0
  232. package/dist/assets/{mapTimeframeBalancesToTreeNode-ClmNRrTo-CsvdIbZF.js → mapTimeframeBalancesToTreeNode-DA60r528-sldeiWG8.js} +1 -1
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-IkKV62Jb-JqYi47LI.js +1 -0
  234. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DT4LUXl9-oCV9zxla.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BPtN2Cj0-BxEY8256.js} +1 -1
  235. package/dist/assets/{mui-BTtN6lbG.js → mui-CooLgaJO.js} +1 -1
  236. package/dist/assets/{page-detail-CWX5S47F-vL4oE1Hd.js → page-detail-CWX5S47F-D0SYshoo.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-CzTG_UVX.js → radio-default-CiSgisfh-aKay5Aup.js} +1 -1
  238. package/dist/assets/{react-DTawl0rf.js → react-B3adtom7.js} +1 -1
  239. package/dist/assets/{react-RUf-G1wy.js → react-BBgs2Til.js} +1 -1
  240. package/dist/assets/{react-dGc0O2tO.js → react-BOYN8kx1.js} +1 -1
  241. package/dist/assets/{react-D8h_J9ua.js → react-CEyM_Slo.js} +1 -1
  242. package/dist/assets/{react-yNxKnTJa.js → react-CrELMTJL.js} +1 -1
  243. package/dist/assets/{react-BZDhaeWn.js → react-DHuOianZ.js} +1 -1
  244. package/dist/assets/{react-FdUpWGdd.js → react-MtwZeeNV.js} +2 -2
  245. package/dist/assets/{react-CZT8R2xg.js → react-_XrYtXDi.js} +1 -1
  246. package/dist/assets/{recharts-BfU_srYC.js → recharts-DHPcYqKb.js} +1 -1
  247. package/dist/assets/{sentry-B0WgNUxa.js → sentry-Dlcq8VjX.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-Z1Xg2OMK.js → shield-DOlUxcFf-D8h0VGFI.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-C8uaUoxX-n7EZ1iwJ.js +1 -0
  250. package/dist/assets/{toChartData-Bl-lEYbQ-DPT0fPCU.js → toChartData-CTG-a8va-B2RC0Eyi.js} +1 -1
  251. package/dist/assets/{uploadAttachment-B_0cN84g-Ckl6Bt52.js → uploadAttachment-n14_2p7o-3Yaegacg.js} +1 -1
  252. package/dist/assets/{uploadReceipts-DJRtId-4-C4iSXmi-.js → uploadReceipts-DJRtId-4-D8fSq3Gx.js} +1 -1
  253. package/dist/assets/{url-D-l_68oE.js → url-CfIahVCp.js} +1 -1
  254. package/dist/assets/{url-CHEcUoer.js → url-d3WjAGv6.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-BysG3lqG.js → useLongPress-GCK2COYQ-B0lPuhDh.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-ZROsAmzr.js → usp-line-BBd1wKwW-CZ22OQAj.js} +1 -1
  257. package/dist/assets/{utils-DZQMbqmw.js → utils-CXbV7y1T.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-DnAAAEmj.js → zeni-epic-state-pmiItBju.js} +3 -3
  259. package/dist/index.html +1 -1
  260. package/package.json +2 -2
  261. package/dist/assets/AccountInfoPage-DUYpaV3v-D8V_x8JO.js +0 -18
  262. package/dist/assets/CustomerOnboardingContainerPage-DZfFYnVw-CcQtO8ja.js +0 -1
  263. package/dist/assets/CustomerOnboardingProductSuitePage-2V3vSjB8-CrV4E8jt.js +0 -202
  264. package/dist/assets/MagicLinkACHDetailsPage-BeRQFYX3-CqJj4aaT.js +0 -1
  265. package/dist/assets/MagicLinkDomesticWireDetailsPage-C1DDZC2_-DOjgkjgD.js +0 -1
  266. package/dist/assets/MagicLinkInternationalWireDetailsPage-DyDp04Vn-CqH7JVCF.js +0 -1
  267. package/dist/assets/MailingDetailsSection-IQJY4Yl0-Do7gR0xz.js +0 -21
  268. package/dist/assets/StatementsPage-BRxP-Jwn-CGUonpt7.js +0 -58
  269. package/dist/assets/VendorACHDetailsPage-CuCteqbL-Dv65rfW2.js +0 -1
  270. package/dist/assets/VendorDomesticWireDetailsPage-Cr1fyB0u-3kSZSoJb.js +0 -1
  271. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJFB7SEO-3h4SwLlt.js +0 -1
  272. package/dist/assets/mapSpacerToTreeNode-DdwRxjlP-CUGNOSas.js +0 -1
  273. package/dist/assets/mapTimeframeBalancesToTreeNode-CR-gDA51-BV8MPG6G.js +0 -1
  274. package/dist/assets/toCOABalancesWithID-BzzH0Io4-bO3H7SPc.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as we,J as be,a9 as Ce,cE as Pe,aV as j,F as xe,V as t,y as P,bB as Ie,T as Ae,ac as ve,bw as ke,cF as je,aR as Te,o as s,hK as Ve,eX as $e,eY as Be,u as x,al as De,gT as Ee,p as ze,a as Le}from"./index-Dnx8_gCi.js";import{a as F}from"./sentry-B0WgNUxa.js";import{n as r}from"./mui-BTtN6lbG.js";import{M as Oe,o as R,t as Me}from"./PaymentAccountSetupBillingAddressSection-CQki5l4P-Be_S4DkR.js";import{F as _e}from"./SetUpAccountSection-Mm8JelXc-DfhOL8wt.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./zeni-epic-state-DnAAAEmj.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./commonTypes-Q1WP-Ym3-DAex-kP3.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]="c0f3c5ce-94df-44c2-bc16-3c89045006e9",e._sentryDebugIdIdentifier="sentry-dbid-c0f3c5ce-94df-44c2-bc16-3c89045006e9")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Fe={title:new Le("standardSemiBold","largeSemiBold")},H="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:K,stripeKey:N,googleAPIKey:J,companyId:q,onUpdateAccountClick:G,onFetchLinkTokenClick:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Y,onEstablishConnectionClick:Z,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:T,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:V},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,$=y?.providerVerificationStatus,ue=V.fetchState==="In-Progress"||V.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:W(i),values:W(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(q)}),B=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:w}=a[n].street,k=$e(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Be(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&G(g.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const D=b.mode==="light"?new j(b.colors.brandColorJadeLight):new j(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,z=h.cardsList.length>0,L=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(S.header,S.titleText,S.protectedCardNo,h);let M;z&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:R(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:R(L).name}),color:new j(D)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=F.useState(!1);return t.jsxs(He,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(Re,{windowSize:o,children:[t.jsx(We,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Ge,{children:t.jsx("form",{id:U(H),onSubmit:pe,children:t.jsxs(Ke,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:X,onEstablishConnectionClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Y,onEstablishConnectionSuccess:ee,isError:$?.code==="require_info"||$?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:D},analytics:e,productType:"billing",updateCardPaymentModalState:T,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ne(o,l.headers.billingAddress,ce,J,d)]})})})}),je(f.formState.dirtyFields)?t.jsx(Te,{formId:U(H),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:B?.fetchState==="In-Progress",isDisabled:B?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:T,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},W=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Ve(n,e.subscriptionBillingAddress)[n]}},Re=r.div`
1
+ import{g as Se,J as we,a9 as Ce,cE as Pe,aV as j,F as xe,V as t,y as P,bB as Ie,T as Ae,ac as ve,bw as ke,cF as je,aR as Te,o as s,hK as Ve,eX as $e,eY as Be,u as x,al as De,gT as Ee,p as ze,a as Le}from"./index-D4DdpT1f.js";import{a as F}from"./sentry-Dlcq8VjX.js";import{n as r}from"./mui-CooLgaJO.js";import{M as Oe,o as R,t as Me}from"./PaymentAccountSetupBillingAddressSection-DqDvhQwH-C-RxqOsn.js";import{F as _e}from"./SetUpAccountSection-D7Nf4cYj-UGNHCsDO.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./zeni-epic-state-pmiItBju.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./commonTypes-BElGElM--Bg_ac7b3.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]="5b97baaf-1dd5-428b-96d0-7f6bc6162561",e._sentryDebugIdIdentifier="sentry-dbid-5b97baaf-1dd5-428b-96d0-7f6bc6162561")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Fe={title:new Le("standardSemiBold","largeSemiBold")},H="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:K,stripeKey:N,googleAPIKey:J,companyId:q,onUpdateAccountClick:G,onFetchLinkTokenClick:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Y,onEstablishConnectionClick:Z,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:T,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const w=Se(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:V},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,$=y?.providerVerificationStatus,ue=V.fetchState==="In-Progress"||V.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:W(i),values:W(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(q)}),B=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:S}=a[n].street,k=$e(S?.country);u={street:a[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:k,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==k.selectedOption&&(u={...u,country:k})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Be(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&G(g.account.selectedOption,y.paymentAccountId)};F.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const D=w.mode==="light"?new j(w.colors.brandColorJadeLight):new j(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:b}},common:l,billingSetupPage:E}=xe.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:fe}=he,z=h.cardsList.length>0,L=h?.cardsList[0]?.brand??"other",O=h?.addCardPaymentSourceStatus.fetchState,C=Oe(b.header,b.titleText,b.protectedCardNo,h);let M;z&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:t.jsx("img",{src:R(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:R(L).name}),color:new j(D)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,be]=F.useState(!1);return t.jsxs(He,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(Re,{windowSize:o,children:[t.jsx(We,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Ge,{children:t.jsx("form",{id:U(H),onSubmit:pe,children:t.jsxs(Ke,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:b.header,sectionTitle:b.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:X,onEstablishConnectionClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:Y,onEstablishConnectionSuccess:ee,isError:$?.code==="require_info"||$?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:D},analytics:e,productType:"billing",updateCardPaymentModalState:T,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ne(o,l.headers.billingAddress,ce,J,d)]})})})}),je(f.formState.dirtyFields)?t.jsx(Te,{formId:U(H),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:B?.fetchState==="In-Progress",isDisabled:B?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:T,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:_,setCardSetupInProgress:be})]})},W=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Ve(n,e.subscriptionBillingAddress)[n]}},Re=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{V as b,co as V,cp as q,cq as M,k6 as W,aY as Y,F as z}from"./index-Dnx8_gCi.js";import{a as g}from"./sentry-B0WgNUxa.js";import{Gd as G}from"./zeni-epic-state-DnAAAEmj.js";import{p as J}from"./ReviewOverlay-CkB3Z8hH-DQ6keQIz.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./mui-BTtN6lbG.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.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]="212ed240-20eb-495e-b860-98ce779a07ad",e._sentryDebugIdIdentifier="sentry-dbid-212ed240-20eb-495e-b860-98ce779a07ad")}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:f,currentSubTab:_}=e,u=i==="review",[C,w]=g.useState(!1),[n,v]=g.useState(T(e,u)),[p,k]=g.useState(u),[B,E]=g.useState(0),[y,j]=g.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});g.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,f,_),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,f,_,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,f,_),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:f,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?f:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},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
+ import{V as v,co as V,cp as q,cq as M,k6 as W,aY as Y,F as z}from"./index-D4DdpT1f.js";import{a as f}from"./sentry-Dlcq8VjX.js";import{Gd as G}from"./zeni-epic-state-pmiItBju.js";import{p as J}from"./ReviewOverlay-DjazNKfI-D9LHGfoS.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./mui-CooLgaJO.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.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]="f0753024-0432-4a7e-8ab4-b89ebf3e9e0b",e._sentryDebugIdIdentifier="sentry-dbid-f0753024-0432-4a7e-8ab4-b89ebf3e9e0b")}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,b]=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(()=>{b(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"&&b(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 v.jsxs(v.Fragment,{children:[C?v.jsx(V,{titleComponent:v.jsx(M,{children:y.title}),descriptionComponent:v.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,v.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 b="",p="";return e==="Completed"&&!t?(b=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:_)}`):(b=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:b,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,4 +1,4 @@
1
- import{J as l,V as s,aP as b,o as e}from"./index-Dnx8_gCi.js";import{n as a}from"./mui-BTtN6lbG.js";import{o as p}from"./commonDimensions-6BcP8EhU-Dj5Bh5k0.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]="da9b0cdd-7498-448f-a062-139857d832f4",o._sentryDebugIdIdentifier="sentry-dbid-da9b0cdd-7498-448f-a062-139857d832f4")}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`
1
+ import{J as l,V as s,aP as b,o as e}from"./index-D4DdpT1f.js";import{n as a}from"./mui-CooLgaJO.js";import{o as p}from"./commonDimensions-Pu55v5lV-fIykEmeD.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]="7689f574-5724-45b0-a7e3-c8cdfd0846ad",o._sentryDebugIdIdentifier="sentry-dbid-7689f574-5724-45b0-a7e3-c8cdfd0846ad")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
2
2
  box-sizing: border-box;
3
3
  cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
4
4
  min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
@@ -1,4 +1,4 @@
1
- import{g as ct,J 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-Dnx8_gCi.js";import{a as P}from"./sentry-B0WgNUxa.js";import{n as d}from"./mui-BTtN6lbG.js";import{EN as Ft,bi as G}from"./zeni-epic-state-DnAAAEmj.js";import{n as Pt,z as Vt}from"./CompanyOfficerDetailsSection-DzDZe6MU-9yW_ivyy.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./LabeledAddressValueField-C_KatgTA-D3T6clVz.js";import"./LabeledCountryMultiSelectField-CffMX6f1-BKMXK8fg.js";import"./LabeledCreatableSingleSelectField-CoS6DIi_-ngKPnxm3.js";import"./LabeledDocumentField-CVBhbPHv-DJhUy7mJ.js";import"./LabeledMultiSelectField-CTqXa2Rh-C1DiyLKK.js";import"./commonTypes-Q1WP-Ym3-DAex-kP3.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]="5d30d64c-af89-4ad0-8492-bd2a650927ea",e._sentryDebugIdIdentifier="sentry-dbid-5d30d64c-af89-4ad0-8492-bd2a650927ea")}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:Je})=>{const Xe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Qe=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,J]=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,Q=A?.company.company.companyBillPayInfo,Y=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Y?.companyVerificationStatus:Q?.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&&Je?.())}),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:()=>{J(!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:()=>{J(!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"&&Qe==="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)?J(!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(Jt,{windowSize:p,children:[i.jsx(Xt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Qt,{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":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.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,J 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-D4DdpT1f.js";import{a as P}from"./sentry-Dlcq8VjX.js";import{n as d}from"./mui-CooLgaJO.js";import{EN as Ft,bi as G}from"./zeni-epic-state-pmiItBju.js";import{n as Pt,z as Vt}from"./CompanyOfficerDetailsSection-DG1ZQ-UL-BWPYN3Ux.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./LabeledAddressValueField-3BEuHr_a-BAXHOnek.js";import"./LabeledCountryMultiSelectField-t7lnpz15-B8MvgThW.js";import"./LabeledCreatableSingleSelectField-DSrFEwMO-BtK2wHhP.js";import"./LabeledDocumentField-CYvUm3Rk-DLfE-kKo.js";import"./LabeledMultiSelectField-CveBXp8L-BAd1gTI4.js";import"./commonTypes-BElGElM--Bg_ac7b3.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]="a5692227-9b94-40df-a467-50edba732ae3",e._sentryDebugIdIdentifier="sentry-dbid-a5692227-9b94-40df-a467-50edba732ae3")}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:Je})=>{const Xe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Qe=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,J]=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,Q=A?.company.company.companyBillPayInfo,Y=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?Y?.companyVerificationStatus:Q?.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&&Je?.())}),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:()=>{J(!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:()=>{J(!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"&&Qe==="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)?J(!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(Jt,{windowSize:p,children:[i.jsx(Xt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Qt,{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":Q?.businessVerificationStatus?.code!=="pending_review"&&Q?.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{J as m,V as r,F as y,b as w,o as s,a as b,d as x}from"./index-Dnx8_gCi.js";import{n as o}from"./mui-BTtN6lbG.js";import{a as c}from"./sentry-B0WgNUxa.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]="668d3afa-68a6-460f-9fa6-9a62b1a2d6df",e._sentryDebugIdIdentifier="sentry-dbid-668d3afa-68a6-460f-9fa6-9a62b1a2d6df")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:a,styles:l})=>{const f=m(),g=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,h=e.status.code==="request_on_hold"||!a?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:f,forDetailPage:a,className:"cardName",title:`${h}`,children:[g,r.jsx(H,{}),d,n&&!a?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,n&&a?r.jsx(u,{}):null]})},v=o(x)`
1
+ import{J as m,V as r,F as y,b as w,o as s,a as b,d as x}from"./index-D4DdpT1f.js";import{n as o}from"./mui-CooLgaJO.js";import{a as c}from"./sentry-Dlcq8VjX.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]="668d3afa-68a6-460f-9fa6-9a62b1a2d6df",e._sentryDebugIdIdentifier="sentry-dbid-668d3afa-68a6-460f-9fa6-9a62b1a2d6df")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:a,styles:l})=>{const f=m(),g=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,h=e.status.code==="request_on_hold"||!a?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:f,forDetailPage:a,className:"cardName",title:`${h}`,children:[g,r.jsx(H,{}),d,n&&!a?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,n&&a?r.jsx(u,{}):null]})},v=o(x)`
2
2
  ${e=>e.forDetailPage?{...w.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;
@@ -1,4 +1,4 @@
1
- import{g as k,J 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 Q,jh as X,iY as se,cy as ne,cB as de,am as O,iZ as le,i_ as ce}from"./index-Dnx8_gCi.js";import{n as o}from"./mui-BTtN6lbG.js";import{G4 as b,bh as he}from"./zeni-epic-state-DnAAAEmj.js";import{P as Y,a as V}from"./sentry-B0WgNUxa.js";import{q as pe}from"./InsightsSection-D7g00fg7-BNrxlueb.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-BfU_srYC.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./NavigationDots-BdcVrwsL-DI6uVlju.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]="e40e23fe-1070-4455-acc9-1a93faf1dc51",e._sentryDebugIdIdentifier="sentry-dbid-e40e23fe-1070-4455-acc9-1a93faf1dc51")}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`
1
+ import{g as k,J 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 Q,jh as X,iY as se,cy as ne,cB as de,am as O,iZ as le,i_ as ce}from"./index-D4DdpT1f.js";import{n as o}from"./mui-CooLgaJO.js";import{G4 as b,bh as he}from"./zeni-epic-state-pmiItBju.js";import{P as Y,a as V}from"./sentry-Dlcq8VjX.js";import{q as pe}from"./InsightsSection-CUk29Ace-BKDJK0uo.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-DHPcYqKb.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./NavigationDots-Ttv3r4BR-v2ws1TaA.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]="0af99316-8075-4dbb-9e78-2e74ee3e361d",e._sentryDebugIdIdentifier="sentry-dbid-0af99316-8075-4dbb-9e78-2e74ee3e361d")}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,J 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-Dnx8_gCi.js";import{a as o,P as $o}from"./sentry-B0WgNUxa.js";import{n as r,c as we,k as Pr}from"./mui-BTtN6lbG.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-DnAAAEmj.js";import{k as Io}from"./NavigationDots-BdcVrwsL-DI6uVlju.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-pWZi41H8.js";import{L as _t}from"./lottie-hIwSKdQS.js";import{j as Po}from"./CardNumberSubText-CXBKzGK5-BwltAmEE.js";import{r as zr}from"./core-CIefpDlV.js";import{l as Mr}from"./uploadReceipts-DJRtId-4-C4iSXmi-.js";import{L as zo,z as Mo,k as Vo,P as Oo}from"./LockCardPage-B3P6wcK_-DXiVYe6A.js";import"./liveblocks-CrODURpx.js";import"./recharts-BfU_srYC.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./RoleWithToolTip-CkpqxMzB-DW17agFY.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]="a99839f1-1b99-4c8a-81c4-2a8fe89d0db3",e._sentryDebugIdIdentifier="sentry-dbid-a99839f1-1b99-4c8a-81c4-2a8fe89d0db3")}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`
1
+ import{g as tt,J 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-D4DdpT1f.js";import{a as o,P as $o}from"./sentry-Dlcq8VjX.js";import{n as r,c as we,k as Pr}from"./mui-CooLgaJO.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-pmiItBju.js";import{k as Io}from"./NavigationDots-Ttv3r4BR-v2ws1TaA.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-DsgRUVgA.js";import{L as _t}from"./lottie-BGCmjFH9.js";import{j as Po}from"./CardNumberSubText-CpqumrS--C5H93W0D.js";import{r as zr}from"./core-CqdPXR9B.js";import{l as Mr}from"./uploadReceipts-DJRtId-4-D8fSq3Gx.js";import{L as zo,z as Mo,k as Vo,P as Oo}from"./LockCardPage-CmWzTH0n-B_X-TwZ4.js";import"./liveblocks-DXNKZvWw.js";import"./recharts-DHPcYqKb.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./RoleWithToolTip-CjvIxkPO-Bi_70Hu8.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]="eebd0bcf-7c2a-4f90-933c-a33d72069089",e._sentryDebugIdIdentifier="sentry-dbid-eebd0bcf-7c2a-4f90-933c-a33d72069089")}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,J 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 q,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-Dnx8_gCi.js";import{a as l}from"./sentry-B0WgNUxa.js";import{n as r,c as ut,k as Sr}from"./mui-BTtN6lbG.js";import{EL as wr,G2 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-DnAAAEmj.js";import{t as vr}from"./SpendManagementSection-CeDmloNd-BJA7uFu3.js";import{D as oe,r as jr,i as Lr}from"./ChargeCardListTable-D7zGM8uo-Drwo-scW.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-BpBiwjfr-BtfnCKg8.js";import{N as Er,J as Pr}from"./PromoBaseCards-6vRaZnUg-DGHSU3hX.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-B3P6wcK_-DXiVYe6A.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-BQAFQuCs.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-B9_UwdI_.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./RoleWithToolTip-CkpqxMzB-DW17agFY.js";import"./CardNumberSubText-CXBKzGK5-BwltAmEE.js";import"./NavigationDots-BdcVrwsL-DI6uVlju.js";import"./usp-line-BBd1wKwW-ZROsAmzr.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]="caaab020-a100-4c51-88e5-eb483519e626",e._sentryDebugIdIdentifier="sentry-dbid-caaab020-a100-4c51-88e5-eb483519e626")}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,J=$==="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:J}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),A?null:t.jsx(Gr,{children:n})]}),!A&&t.jsxs(qr,{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(Xr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Qr,{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(Jr,{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=`
1
+ import{a8 as Za,aQ as z,aw as er,fS as tr,iM as W,J 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 q,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-D4DdpT1f.js";import{a as l}from"./sentry-Dlcq8VjX.js";import{n as r,c as ut,k as Sr}from"./mui-CooLgaJO.js";import{EL as wr,G2 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-pmiItBju.js";import{t as vr}from"./SpendManagementSection-CJ-vMwcf-DAIvaE36.js";import{D as oe,r as jr,i as Lr}from"./ChargeCardListTable-kp0WwIZo-C7S3-nFL.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-DcmgTF8u-uElL894v.js";import{N as Er,J as Pr}from"./PromoBaseCards-BESaQCrl-gKsHUW_9.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-CmWzTH0n-B_X-TwZ4.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-C9dTXMJH.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-yHNADvS4.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js";import"./CardNumberSubText-CpqumrS--C5H93W0D.js";import"./NavigationDots-Ttv3r4BR-v2ws1TaA.js";import"./usp-line-BBd1wKwW-CZ22OQAj.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]="60572e2a-c1a6-4bdf-8602-01fc5b37c858",e._sentryDebugIdIdentifier="sentry-dbid-60572e2a-c1a6-4bdf-8602-01fc5b37c858")}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,J=$==="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:J}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),A?null:t.jsx(Gr,{children:n})]}),!A&&t.jsxs(qr,{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(Xr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Qr,{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(Jr,{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,J 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 J,al as G,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 Je,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 Ge,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-Dnx8_gCi.js";import{P as pe,a as f}from"./sentry-B0WgNUxa.js";import{n as o,c as Xe}from"./mui-BTtN6lbG.js";import{T as It}from"./RoleWithToolTip-CkpqxMzB-DW17agFY.js";import{j as Ve}from"./CardNumberSubText-CXBKzGK5-BwltAmEE.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]="052dadf9-1363-4c5e-bd42-be62d4a02852",e._sentryDebugIdIdentifier="sentry-dbid-052dadf9-1363-4c5e-bd42-be62d4a02852")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Ze={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Qe={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Ze,width:new C(0,0),value:Wi},Qe,et,tt,it,ot]:[Ze,Qe,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]}),X=a.type.code,_=$.cardList.tooltip[X],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Gi,{windowSize:v,children:t.jsx(Xi,{onClick:M,"data-testid":Y("card-row",a.id),children:t.jsxs(Qi,{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(Zi,{}),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=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ge,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ge,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(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(G)`
1
+ import{cc as ni,V as t,a9 as li,ac as di,F as le,J 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 J,al as G,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 Je,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 Ge,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-D4DdpT1f.js";import{P as pe,a as f}from"./sentry-Dlcq8VjX.js";import{n as o,c as Xe}from"./mui-CooLgaJO.js";import{T as It}from"./RoleWithToolTip-CjvIxkPO-Bi_70Hu8.js";import{j as Ve}from"./CardNumberSubText-CpqumrS--C5H93W0D.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]="2f48d348-05b4-40dc-b403-559fc06ddf99",e._sentryDebugIdIdentifier="sentry-dbid-2f48d348-05b4-40dc-b403-559fc06ddf99")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Ze={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Qe={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Ze,width:new C(0,0),value:Wi},Qe,et,tt,it,ot]:[Ze,Qe,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]}),X=a.type.code,_=$.cardList.tooltip[X],de=_!=null?W?_.self:`${V} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Gi,{windowSize:v,children:t.jsx(Xi,{onClick:M,"data-testid":Y("card-row",a.id),children:t.jsxs(Qi,{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(Zi,{}),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=Ji(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ge,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ge,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Ji=(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(G)`
2
2
  color: inherit;
3
3
  `,fe=o(G)`
4
4
  color: ${I.important};
@@ -1,4 +1,4 @@
1
- import{a8 as ze,aw as Re,J 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 Me,bN as Ne,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 N,cy as J,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-Dnx8_gCi.js";import{a as S,P as Q}from"./sentry-B0WgNUxa.js";import{n,c as q}from"./mui-BTtN6lbG.js";import{t as Xe}from"./SpendManagementSection-CeDmloNd-BJA7uFu3.js";import{r as Ge,a as Je,i as ye,g as qe}from"./SpendManagementListViewPage-BLWEPKWO-DJ6V5hr0.js";import{ck as xe,G5 as fe}from"./zeni-epic-state-DnAAAEmj.js";import{r as et}from"./auto-transfer-rule-mbafm5D3-CRwly3T1.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./StatusSwitcher-CPuONMOx-D0oIu0Qt.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]="62a4f1a4-4fbc-4279-b7ff-c34e89a40d80",e._sentryDebugIdIdentifier="sentry-dbid-62a4f1a4-4fbc-4279-b7ff-c34e89a40d80")}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(N,{children:h.value}),t.jsx(ee,{windowSize:r,sortDataValue:o.sortKey,headerdata:h,children:t.jsx(te,{windowSize:r,children:t.jsx(J,{})})})]})]}):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(N,{children:s.value}),t.jsx(ee,{windowSize:r,sortDataValue:o.sortKey,headerdata:s,children:t.jsx(te,{windowSize:r,children:t.jsx(J,{})})})]}),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`
1
+ import{a8 as ze,aw as Re,J 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 Me,bN as Ne,aT as He,al as W,du as b,gW as Y,aN as K,bS as We,cu as Ee,bQ as _e,am as N,cy as J,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-D4DdpT1f.js";import{a as S,P as Q}from"./sentry-Dlcq8VjX.js";import{n,c as q}from"./mui-CooLgaJO.js";import{t as Xe}from"./SpendManagementSection-CJ-vMwcf-DAIvaE36.js";import{r as Ge,a as Je,i as ye,g as qe}from"./SpendManagementListViewPage-B8AdQD7w-DscL1E8I.js";import{ck as xe,G5 as fe}from"./zeni-epic-state-pmiItBju.js";import{r as et}from"./auto-transfer-rule-mbafm5D3-Ccdjr6D8.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.js";import"./StatusSwitcher-BZ2svcz0-BTZEKNgF.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]="b354db50-349b-4b0f-bcc1-9b656f878700",e._sentryDebugIdIdentifier="sentry-dbid-b354db50-349b-4b0f-bcc1-9b656f878700")}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),j=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:j.header.paymentDate,placeholder:j.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(N,{children:h.value}),t.jsx(ee,{windowSize:r,sortDataValue:o.sortKey,headerdata:h,children:t.jsx(te,{windowSize:r,children:t.jsx(J,{})})})]})]}):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(N,{children:s.value}),t.jsx(ee,{windowSize:r,sortDataValue:o.sortKey,headerdata:s,children:t.jsx(te,{windowSize:r,children:t.jsx(J,{})})})]}),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;
@@ -91,7 +91,7 @@ import{a8 as ze,aw as Re,J as H,g as V,V as t,bB as Ie,b as I,g4 as Te,F as T,u
91
91
  cursor: pointer;
92
92
  gap: 5px;
93
93
  color: ${e=>e.theme.colors.primary};
94
- `,B={containerPaddingLeft:new x(l[3],l[2]),containerPaddingRight:new x(l[2],l[3]),containerPaddingTop:new x(l[2],l[3]),containerPaddingBottom:new x(l[2],l[3]),containerMarginLeft:new x(l[4],l[0]),containerMarginRight:new x(l[4],l[0])},{spendManagement:{chargeCard:{paymentHistory:A}}}=T.getLocalizedStrings(),wt=e=>e.base64!==void 0?`${me}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",$t=({repayment:e,accountInfo:o,isLatestFailedPayment:c=!1,isLoading:a=!1,isZeniTenant:r,onRetryPaymentClick:d})=>{const{accountLogo:g,accountType:y,depositAccountLast4:h,depositAccountName:p}=o??{},u=H(),b=S.useCallback(U=>{U.stopPropagation(),d&&d(e.cardRepaymentId)},[d,e.cardRepaymentId]),s=T.getLocalizedStrings(),m=e.repaymentDate.format(s.dateFormat.visual.MMMDCommaYYYYformat),C=qe(p,h,A.sourceAccountUnknown),v=ye(e),w=e.paidByUser?.email?.endsWith("@zeni.ai")??!1,f=v||!r&&w,R=f?A.autopay:xe(e.paidByUser),D=e.status==="Rejected"||e.status==="Returned",_=e.status==="Sent",Z=e.updateTime.format(s.dateFormat.visual.MMMDCommaYYYYformat),P=we();return t.jsx(St,{windowSize:u,children:t.jsx(Ct,{children:t.jsxs(Pt,{children:[t.jsx(kt,{windowSize:u,responsiveWidth:P[0].width,children:t.jsx(j,{isLoading:a,customStyle:{width:"100px",height:"20px",borderRadius:i.sp1},children:_?t.jsx(We,{placement:"bottom-start",title:t.jsxs(Qt,{children:[t.jsxs(oe,{children:[t.jsx(ae,{children:A.initiatedOn}),t.jsx(se,{children:m})]}),t.jsxs(oe,{children:[t.jsx(ae,{children:A.completedOn}),t.jsx(se,{children:Z})]})]}),style:{padding:"12px 16px"},display:"block",children:t.jsx(ie,{className:"paymentDate",children:m})}):t.jsx(ie,{className:"paymentDate",children:m})})}),t.jsxs(Lt,{windowSize:u,responsiveWidth:P[1].width,children:[t.jsx(j,{isLoading:a,customStyle:{width:i.sp4,height:i.sp4,borderRadius:"50%"},children:t.jsx(zt,{children:y==="depositAccount"&&p!=null&&p!==""?t.jsx(Rt,{children:t.jsx(It,{color:Y(0)})}):y==="paymentAccount"&&g!==void 0&&(g.base64||g.url)?t.jsx(Bt,{src:wt(g),loading:"lazy"}):t.jsx(Tt,{children:t.jsx(Dt,{})})})}),t.jsx(Ot,{children:t.jsx(j,{isLoading:a,customStyle:{width:"150px",height:"20px",borderRadius:i.sp1},children:p!=null&&p!==""?t.jsxs(ne,{className:"sourceAccount",children:[t.jsx(At,{children:p}),h!=null&&h!==""&&t.jsx(Mt,{children:`•••• ${h}`})]}):t.jsx(ne,{className:"sourceAccount",children:C})})})]}),t.jsx(Nt,{windowSize:u,isLoading:a,responsiveWidth:P[2].width,children:t.jsx(j,{isLoading:a,customStyle:{width:"120px",height:i.sp4,borderRadius:i.sp1},children:t.jsxs(Ht,{children:[t.jsx(Wt,{children:t.jsx(vt,{status:e.status})}),D===!0&&c===!0&&d!=null&&t.jsxs(t.Fragment,{children:[t.jsx(bt,{}),t.jsx(Et,{onClick:b,"data-testid":O("retry-payment",e.cardRepaymentId),children:A.retryPayment})]})]})})}),t.jsxs(_t,{windowSize:u,responsiveWidth:P[3].width,children:[t.jsx(j,{isLoading:a,customStyle:{width:i.sp4,height:i.sp4,borderRadius:"50%"},children:f?t.jsx(Kt,{children:t.jsx(Vt,{})}):t.jsx(Ft,{children:t.jsx(Ee,{personBasic:e.paidByUser,styles:{height:i.sp4,width:i.sp4,minWidth:i.sp4}})})}),t.jsx(j,{isLoading:a,customStyle:{width:"80px",height:"20px",borderRadius:i.sp1,marginLeft:i.sp2},children:t.jsx(Zt,{className:"initiatedBy",children:R})})]}),t.jsx(Ut,{windowSize:u,responsiveWidth:P[4].width,children:t.jsx(j,{isLoading:a,customStyle:{width:"100px",height:"20px",borderRadius:i.sp1},children:t.jsx(Yt,{className:"amount",windowSize:u,title:K("0,0.00",e.amount),children:K("0,0.00",e.amount)})})})]})})})},vt=({status:e,style:o})=>{const c=V(),a=jt(e,c),r=fe(e);return t.jsx(ue,{textColor:a,borderColor:a,text:r,tagStyles:{padding:"1px 6px",...o}})},jt=(e,o)=>{switch(e){case"Sent":return new z($.success);case"Clearing":case"Pending":case"PendingReview":return new z($.alert);case"Rejected":case"Returned":return new z($.important);default:return new z(o.colors.grey1)}},bt=n.div`
94
+ `,B={containerPaddingLeft:new x(l[3],l[2]),containerPaddingRight:new x(l[2],l[3]),containerPaddingTop:new x(l[2],l[3]),containerPaddingBottom:new x(l[2],l[3]),containerMarginLeft:new x(l[4],l[0]),containerMarginRight:new x(l[4],l[0])},{spendManagement:{chargeCard:{paymentHistory:A}}}=T.getLocalizedStrings(),wt=e=>e.base64!==void 0?`${me}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",$t=({repayment:e,accountInfo:o,isLatestFailedPayment:c=!1,isLoading:a=!1,isZeniTenant:r,onRetryPaymentClick:d})=>{const{accountLogo:g,accountType:y,depositAccountLast4:h,depositAccountName:p}=o??{},u=H(),j=S.useCallback(U=>{U.stopPropagation(),d&&d(e.cardRepaymentId)},[d,e.cardRepaymentId]),s=T.getLocalizedStrings(),m=e.repaymentDate.format(s.dateFormat.visual.MMMDCommaYYYYformat),C=qe(p,h,A.sourceAccountUnknown),v=ye(e),w=e.paidByUser?.email?.endsWith("@zeni.ai")??!1,f=v||!r&&w,R=f?A.autopay:xe(e.paidByUser),D=e.status==="Rejected"||e.status==="Returned",_=e.status==="Sent",Z=e.updateTime.format(s.dateFormat.visual.MMMDCommaYYYYformat),P=we();return t.jsx(St,{windowSize:u,children:t.jsx(Ct,{children:t.jsxs(Pt,{children:[t.jsx(kt,{windowSize:u,responsiveWidth:P[0].width,children:t.jsx(b,{isLoading:a,customStyle:{width:"100px",height:"20px",borderRadius:i.sp1},children:_?t.jsx(We,{placement:"bottom-start",title:t.jsxs(Qt,{children:[t.jsxs(oe,{children:[t.jsx(ae,{children:A.initiatedOn}),t.jsx(se,{children:m})]}),t.jsxs(oe,{children:[t.jsx(ae,{children:A.completedOn}),t.jsx(se,{children:Z})]})]}),style:{padding:"12px 16px"},display:"block",children:t.jsx(ie,{className:"paymentDate",children:m})}):t.jsx(ie,{className:"paymentDate",children:m})})}),t.jsxs(Lt,{windowSize:u,responsiveWidth:P[1].width,children:[t.jsx(b,{isLoading:a,customStyle:{width:i.sp4,height:i.sp4,borderRadius:"50%"},children:t.jsx(zt,{children:y==="depositAccount"&&p!=null&&p!==""?t.jsx(Rt,{children:t.jsx(It,{color:Y(0)})}):y==="paymentAccount"&&g!==void 0&&(g.base64||g.url)?t.jsx(Bt,{src:wt(g),loading:"lazy"}):t.jsx(Tt,{children:t.jsx(Dt,{})})})}),t.jsx(Ot,{children:t.jsx(b,{isLoading:a,customStyle:{width:"150px",height:"20px",borderRadius:i.sp1},children:p!=null&&p!==""?t.jsxs(ne,{className:"sourceAccount",children:[t.jsx(At,{children:p}),h!=null&&h!==""&&t.jsx(Mt,{children:`•••• ${h}`})]}):t.jsx(ne,{className:"sourceAccount",children:C})})})]}),t.jsx(Nt,{windowSize:u,isLoading:a,responsiveWidth:P[2].width,children:t.jsx(b,{isLoading:a,customStyle:{width:"120px",height:i.sp4,borderRadius:i.sp1},children:t.jsxs(Ht,{children:[t.jsx(Wt,{children:t.jsx(vt,{status:e.status})}),D===!0&&c===!0&&d!=null&&t.jsxs(t.Fragment,{children:[t.jsx(jt,{}),t.jsx(Et,{onClick:j,"data-testid":O("retry-payment",e.cardRepaymentId),children:A.retryPayment})]})]})})}),t.jsxs(_t,{windowSize:u,responsiveWidth:P[3].width,children:[t.jsx(b,{isLoading:a,customStyle:{width:i.sp4,height:i.sp4,borderRadius:"50%"},children:f?t.jsx(Kt,{children:t.jsx(Vt,{})}):t.jsx(Ft,{children:t.jsx(Ee,{personBasic:e.paidByUser,styles:{height:i.sp4,width:i.sp4,minWidth:i.sp4}})})}),t.jsx(b,{isLoading:a,customStyle:{width:"80px",height:"20px",borderRadius:i.sp1,marginLeft:i.sp2},children:t.jsx(Zt,{className:"initiatedBy",children:R})})]}),t.jsx(Ut,{windowSize:u,responsiveWidth:P[4].width,children:t.jsx(b,{isLoading:a,customStyle:{width:"100px",height:"20px",borderRadius:i.sp1},children:t.jsx(Yt,{className:"amount",windowSize:u,title:K("0,0.00",e.amount),children:K("0,0.00",e.amount)})})})]})})})},vt=({status:e,style:o})=>{const c=V(),a=bt(e,c),r=fe(e);return t.jsx(ue,{textColor:a,borderColor:a,text:r,tagStyles:{padding:"1px 6px",...o}})},bt=(e,o)=>{switch(e){case"Sent":return new z($.success);case"Clearing":case"Pending":case"PendingReview":return new z($.alert);case"Rejected":case"Returned":return new z($.important);default:return new z(o.colors.grey1)}},jt=n.div`
95
95
  width: ${i.sp1};
96
96
  height: ${i.sp1};
97
97
  background-color: ${e=>e.theme.colors.grey1};
@@ -304,7 +304,7 @@ import{a8 as ze,aw as Re,J as H,g as V,V as t,bB as Ie,b as I,g4 as Te,F as T,u
304
304
  color: ${e=>e.theme.colors.hero};
305
305
  `,se=n(F)`
306
306
  color: ${$.brandColorPearl};
307
- `,Xt=new z(Y(0)).lighten(.3).hex(),{spendManagement:{chargeCard:{paymentHistory:M}}}=T.getLocalizedStrings(),Gt=e=>e.base64!==void 0?`${me}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Jt=({repayment:e,accountInfo:o,isLatestFailedPayment:c=!1,isLoading:a=!1,isZeniTenant:r,onRetryPaymentClick:d})=>{const{accountLogo:g,accountType:y,depositAccountLast4:h,depositAccountName:p}=o??{},u=S.useCallback(f=>{f.stopPropagation(),d&&d(e.cardRepaymentId)},[d,e.cardRepaymentId]),b=T.getLocalizedStrings(),s=e.repaymentDate.format(b.dateFormat.visual.MMMDCommaYYYYformat),m=ye(e),C=e.paidByUser?.email?.endsWith("@zeni.ai")??!1,v=m||!r&&C?M.autopay:xe(e.paidByUser),w=e.status==="Rejected"||e.status==="Returned";return t.jsx(ti,{children:t.jsxs(ii,{children:[t.jsxs(ni,{children:[t.jsx(oi,{children:t.jsx(j,{isLoading:a,customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:y==="depositAccount"&&p!=null&&p!==""?t.jsx(ai,{children:t.jsx(si,{color:Y(0)})}):y==="paymentAccount"&&g!==void 0&&(g.base64||g.url)?t.jsx(li,{src:Gt(g),loading:"lazy"}):t.jsx(ri,{children:t.jsx(di,{})})})}),t.jsxs(ci,{children:[t.jsx(hi,{children:t.jsx(j,{isLoading:a,customStyle:{width:"150px",height:"20px",borderRadius:i.sp1},children:t.jsx(pi,{className:"sourceAccount",children:p!=null&&p!==""?p:M.sourceAccountUnknown})})}),t.jsx(mi,{children:t.jsx(j,{isLoading:a,customStyle:{width:"120px",height:"16px",borderRadius:i.sp1},children:t.jsx(gi,{children:h!=null&&h!==""?`Checking •••• ${h}`:""})})}),t.jsx(ui,{children:t.jsx(j,{isLoading:a,customStyle:{width:"150px",height:"16px",borderRadius:i.sp1},children:t.jsxs(yi,{children:[M.header.initiatedBy,":"," ",t.jsx(xi,{className:"initiatedBy",children:v})]})})}),t.jsx(fi,{children:t.jsx(j,{isLoading:a,customStyle:{width:"150px",height:"16px",borderRadius:i.sp1},children:t.jsxs(wi,{children:[M.header.paymentDate,":"," ",t.jsx($i,{className:"paymentDate",children:s})]})})})]})]}),t.jsxs(vi,{children:[t.jsx(ji,{children:t.jsx(j,{isLoading:a,customStyle:{width:"100px",height:"20px",borderRadius:i.sp1},children:t.jsx(bi,{className:"amount",title:K("0,0.[00]",e.amount),children:K("0,0.[00]",e.amount)})})}),t.jsx(Si,{children:t.jsx(j,{isLoading:a,customStyle:{width:"120px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ci,{children:t.jsx(Pi,{children:t.jsx(qt,{status:e.status})})})})}),w===!0&&c===!0&&d!=null&&t.jsx(ki,{children:t.jsx(Li,{onClick:u,"data-testid":O("retry-payment",e.cardRepaymentId),children:M.retryPayment})})]})]})})},qt=({status:e,style:o})=>{const c=V(),a=ei(e,c),r=fe(e);return t.jsx(ue,{textColor:a,borderColor:a,text:r,tagStyles:{padding:"1px 6px",...o}})},ei=(e,o)=>{switch(e){case"Sent":return new z($.success);case"Clearing":case"Pending":case"PendingReview":return new z($.alert);case"Rejected":case"Returned":return new z($.important);default:return new z(o.colors.grey1)}},ti=n.div`
307
+ `,Xt=new z(Y(0)).lighten(.3).hex(),{spendManagement:{chargeCard:{paymentHistory:M}}}=T.getLocalizedStrings(),Gt=e=>e.base64!==void 0?`${me}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Jt=({repayment:e,accountInfo:o,isLatestFailedPayment:c=!1,isLoading:a=!1,isZeniTenant:r,onRetryPaymentClick:d})=>{const{accountLogo:g,accountType:y,depositAccountLast4:h,depositAccountName:p}=o??{},u=S.useCallback(f=>{f.stopPropagation(),d&&d(e.cardRepaymentId)},[d,e.cardRepaymentId]),j=T.getLocalizedStrings(),s=e.repaymentDate.format(j.dateFormat.visual.MMMDCommaYYYYformat),m=ye(e),C=e.paidByUser?.email?.endsWith("@zeni.ai")??!1,v=m||!r&&C?M.autopay:xe(e.paidByUser),w=e.status==="Rejected"||e.status==="Returned";return t.jsx(ti,{children:t.jsxs(ii,{children:[t.jsxs(ni,{children:[t.jsx(oi,{children:t.jsx(b,{isLoading:a,customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:y==="depositAccount"&&p!=null&&p!==""?t.jsx(ai,{children:t.jsx(si,{color:Y(0)})}):y==="paymentAccount"&&g!==void 0&&(g.base64||g.url)?t.jsx(li,{src:Gt(g),loading:"lazy"}):t.jsx(ri,{children:t.jsx(di,{})})})}),t.jsxs(ci,{children:[t.jsx(hi,{children:t.jsx(b,{isLoading:a,customStyle:{width:"150px",height:"20px",borderRadius:i.sp1},children:t.jsx(pi,{className:"sourceAccount",children:p!=null&&p!==""?p:M.sourceAccountUnknown})})}),t.jsx(mi,{children:t.jsx(b,{isLoading:a,customStyle:{width:"120px",height:"16px",borderRadius:i.sp1},children:t.jsx(gi,{children:h!=null&&h!==""?`Checking •••• ${h}`:""})})}),t.jsx(ui,{children:t.jsx(b,{isLoading:a,customStyle:{width:"150px",height:"16px",borderRadius:i.sp1},children:t.jsxs(yi,{children:[M.header.initiatedBy,":"," ",t.jsx(xi,{className:"initiatedBy",children:v})]})})}),t.jsx(fi,{children:t.jsx(b,{isLoading:a,customStyle:{width:"150px",height:"16px",borderRadius:i.sp1},children:t.jsxs(wi,{children:[M.header.paymentDate,":"," ",t.jsx($i,{className:"paymentDate",children:s})]})})})]})]}),t.jsxs(vi,{children:[t.jsx(bi,{children:t.jsx(b,{isLoading:a,customStyle:{width:"100px",height:"20px",borderRadius:i.sp1},children:t.jsx(ji,{className:"amount",title:K("0,0.[00]",e.amount),children:K("0,0.[00]",e.amount)})})}),t.jsx(Si,{children:t.jsx(b,{isLoading:a,customStyle:{width:"120px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ci,{children:t.jsx(Pi,{children:t.jsx(qt,{status:e.status})})})})}),w===!0&&c===!0&&d!=null&&t.jsx(ki,{children:t.jsx(Li,{onClick:u,"data-testid":O("retry-payment",e.cardRepaymentId),children:M.retryPayment})})]})]})})},qt=({status:e,style:o})=>{const c=V(),a=ei(e,c),r=fe(e);return t.jsx(ue,{textColor:a,borderColor:a,text:r,tagStyles:{padding:"1px 6px",...o}})},ei=(e,o)=>{switch(e){case"Sent":return new z($.success);case"Clearing":case"Pending":case"PendingReview":return new z($.alert);case"Rejected":case"Returned":return new z($.important);default:return new z(o.colors.grey1)}},ti=n.div`
308
308
  display: flex;
309
309
  background-color: ${e=>e.theme.colors.grey5};
310
310
  padding: ${i.sp3};
@@ -437,11 +437,11 @@ import{a8 as ze,aw as Re,J as H,g as V,V as t,bB as Ie,b as I,g4 as Te,F as T,u
437
437
  align-items: flex-end;
438
438
  justify-content: flex-start;
439
439
  flex-shrink: 0;
440
- `,ji=n.div`
440
+ `,bi=n.div`
441
441
  display: flex;
442
442
  align-items: center;
443
443
  justify-content: flex-end;
444
- `,bi=n(N)`
444
+ `,ji=n(N)`
445
445
  color: ${e=>e.theme.colors.hero};
446
446
  max-width: 100%;
447
447
  overflow: hidden;
@@ -481,7 +481,7 @@ import{a8 as ze,aw as Re,J as H,g as V,V as t,bB as Ie,b as I,g4 as Te,F as T,u
481
481
  &:hover {
482
482
  text-decoration: underline;
483
483
  }
484
- `,zi={lastListItemHeight:new x(200,114)},Ri=T.getLocalizedStrings(),{spendManagement:{chargeCard:re},common:Ii}=Ri,de=50,Ti=64,Di=351,Bi=86,$e=Q.memo(({fetchState:e,repaymentListWithAccountInfo:o,sortConfig:c,searchText:a,isZeniTenant:r,onColumnSortConfigChanged:d,onReloadPayments:g,onRetryPaymentClick:y})=>{const h=H(),p=S.useCallback(v=>v===0?de:h==="small"?132:G,[h]),u=S.useMemo(()=>{let v=de+Ti;for(let w=1;w<=o.length;w++)v+=p(w);return v},[o.length,p]),b=S.useMemo(()=>window.innerHeight-Di,[]),s=u>b,m=S.useRef(null);S.useEffect(()=>{m.current?.resetAfterIndex(0)},[h]);const C=()=>e==="Error"?t.jsxs(Hi,{children:[t.jsx(Wi,{onClick:g,"data-testid":O("payment-history-list-reload"),children:t.jsx(Ei,{})}),t.jsx(_i,{children:Ii.reloadPage.label})]}):e==="Completed"&&o.length===0?t.jsx(Fi,{children:t.jsx(Zi,{children:a!==""?re.paymentHistory.noPaymentHistoryMatchedSearch:re.paymentHistory.noPaymentHistoryAvailable})}):t.jsx(je,{children:t.jsx(Ki,{windowSize:h,availableHeight:b,isListTooLarge:s,children:t.jsx(Oe,{children:({height:v,width:w})=>t.jsx(Ae,{ref:m,height:v,itemCount:o.length+1,innerElementType:ve,itemSize:p,estimatedItemSize:G,itemKey:f=>f===0?"header":o[f-1].repayment.cardRepaymentId,width:w,overscanCount:Me,initialScrollOffset:0,children:f=>t.jsx(Oi,{...f,repaymentListWithAccountInfo:o,sortConfig:c,isZeniTenant:r,onColumnSortConfigChanged:d,onRetryPaymentClick:y})})})})});return t.jsx(Ni,{fetchState:e,children:C()})},(e,o)=>e.repaymentListWithAccountInfo===o.repaymentListWithAccountInfo&&e.fetchState===o.fetchState&&e.sortConfig.sortKey===o.sortConfig.sortKey&&e.sortConfig.sortOrder===o.sortConfig.sortOrder&&e.searchText===o.searchText&&e.isZeniTenant===o.isZeniTenant);$e.displayName="ChargeCardPaymentHistoryContent";const ve=S.forwardRef((e,o)=>{const{children:c,style:a,...r}=e;return t.jsx(je,{ref:o,style:{...a,width:"auto"},...r,children:t.jsx(Vi,{children:c})})});ve.displayName="ChargeCardPaymentHistoryInnerElement";const Oi=({index:e,style:o,repaymentListWithAccountInfo:c,sortConfig:a,isZeniTenant:r,onColumnSortConfigChanged:d,onRetryPaymentClick:g})=>{const y=H(),h=e===0,p=h?null:c[e-1],u=p?.repayment??null,b=p?.accountInfo,s=S.useMemo(()=>{if(c.length===0)return null;const w=c.map(R=>R.repayment),f=w.slice(1).reduce((R,D)=>D.repaymentDate.isAfter(R.repaymentDate)?D:R,w[0]);return f.status==="Rejected"||f.status==="Returned"?f.cardRepaymentId:null},[c]),m={...o,width:"100%"};if(h)return t.jsx(le,{style:m,className:"spend-management-list-item",children:t.jsx(rt,{companyNameSticky:!1,sortConfig:a,onColumnSortConfigChanged:d})});if(u==null)return null;const C=s!==null&&u.cardRepaymentId===s,v=y==="small"?Jt:$t;return t.jsx(le,{style:m,className:"spend-management-list-item",children:t.jsx(v,{repayment:u,accountInfo:b,isLatestFailedPayment:C,isZeniTenant:r,onRetryPaymentClick:g})})},Ai=({fetchState:e,repaymentListWithAccountInfo:o,sortConfig:c,onColumnSortConfigChanged:a,onReloadPayments:r,searchText:d,isZeniTenant:g,onRetryPaymentClick:y})=>(Be({componentName:"charge_card_payment_history.list",enabled:e==="Completed"}),t.jsx($e,{fetchState:e,repaymentListWithAccountInfo:o,sortConfig:c,onColumnSortConfigChanged:a,onReloadPayments:r,searchText:d,isZeniTenant:g,onRetryPaymentClick:y})),Mi=Q.memo(Ai),Ni=n.div`
484
+ `,zi={lastListItemHeight:new x(200,114)},Ri=T.getLocalizedStrings(),{spendManagement:{chargeCard:re},common:Ii}=Ri,de=50,Ti=64,Di=351,Bi=86,$e=Q.memo(({fetchState:e,repaymentListWithAccountInfo:o,sortConfig:c,searchText:a,isZeniTenant:r,onColumnSortConfigChanged:d,onReloadPayments:g,onRetryPaymentClick:y})=>{const h=H(),p=S.useCallback(v=>v===0?de:h==="small"?132:G,[h]),u=S.useMemo(()=>{let v=de+Ti;for(let w=1;w<=o.length;w++)v+=p(w);return v},[o.length,p]),j=S.useMemo(()=>window.innerHeight-Di,[]),s=u>j,m=S.useRef(null);S.useEffect(()=>{m.current?.resetAfterIndex(0)},[h]);const C=()=>e==="Error"?t.jsxs(Hi,{children:[t.jsx(Wi,{onClick:g,"data-testid":O("payment-history-list-reload"),children:t.jsx(Ei,{})}),t.jsx(_i,{children:Ii.reloadPage.label})]}):e==="Completed"&&o.length===0?t.jsx(Fi,{children:t.jsx(Zi,{children:a!==""?re.paymentHistory.noPaymentHistoryMatchedSearch:re.paymentHistory.noPaymentHistoryAvailable})}):t.jsx(be,{children:t.jsx(Ki,{windowSize:h,availableHeight:j,isListTooLarge:s,children:t.jsx(Oe,{children:({height:v,width:w})=>t.jsx(Ae,{ref:m,height:v,itemCount:o.length+1,innerElementType:ve,itemSize:p,estimatedItemSize:G,itemKey:f=>f===0?"header":o[f-1].repayment.cardRepaymentId,width:w,overscanCount:Me,initialScrollOffset:0,children:f=>t.jsx(Oi,{...f,repaymentListWithAccountInfo:o,sortConfig:c,isZeniTenant:r,onColumnSortConfigChanged:d,onRetryPaymentClick:y})})})})});return t.jsx(Ni,{fetchState:e,children:C()})},(e,o)=>e.repaymentListWithAccountInfo===o.repaymentListWithAccountInfo&&e.fetchState===o.fetchState&&e.sortConfig.sortKey===o.sortConfig.sortKey&&e.sortConfig.sortOrder===o.sortConfig.sortOrder&&e.searchText===o.searchText&&e.isZeniTenant===o.isZeniTenant);$e.displayName="ChargeCardPaymentHistoryContent";const ve=S.forwardRef((e,o)=>{const{children:c,style:a,...r}=e;return t.jsx(be,{ref:o,style:{...a,width:"auto"},...r,children:t.jsx(Vi,{children:c})})});ve.displayName="ChargeCardPaymentHistoryInnerElement";const Oi=({index:e,style:o,repaymentListWithAccountInfo:c,sortConfig:a,isZeniTenant:r,onColumnSortConfigChanged:d,onRetryPaymentClick:g})=>{const y=H(),h=e===0,p=h?null:c[e-1],u=p?.repayment??null,j=p?.accountInfo,s=S.useMemo(()=>{if(c.length===0)return null;const w=c.map(R=>R.repayment),f=w.slice(1).reduce((R,D)=>D.repaymentDate.isAfter(R.repaymentDate)?D:R,w[0]);return f.status==="Rejected"||f.status==="Returned"?f.cardRepaymentId:null},[c]),m={...o,width:"100%"};if(h)return t.jsx(le,{style:m,className:"spend-management-list-item",children:t.jsx(rt,{companyNameSticky:!1,sortConfig:a,onColumnSortConfigChanged:d})});if(u==null)return null;const C=s!==null&&u.cardRepaymentId===s,v=y==="small"?Jt:$t;return t.jsx(le,{style:m,className:"spend-management-list-item",children:t.jsx(v,{repayment:u,accountInfo:j,isLatestFailedPayment:C,isZeniTenant:r,onRetryPaymentClick:g})})},Ai=({fetchState:e,repaymentListWithAccountInfo:o,sortConfig:c,onColumnSortConfigChanged:a,onReloadPayments:r,searchText:d,isZeniTenant:g,onRetryPaymentClick:y})=>(Be({componentName:"charge_card_payment_history.list",enabled:e==="Completed"}),t.jsx($e,{fetchState:e,repaymentListWithAccountInfo:o,sortConfig:c,onColumnSortConfigChanged:a,onReloadPayments:r,searchText:d,isZeniTenant:g,onRetryPaymentClick:y})),Mi=Q.memo(Ai),Ni=n.div`
485
485
  margin: ${e=>e.fetchState==="Error"?"auto":"unset"};
486
486
  display: block;
487
487
  height: 100%;
@@ -541,7 +541,7 @@ import{a8 as ze,aw as Re,J as H,g as V,V as t,bB as Ie,b as I,g4 as Te,F as T,u
541
541
  position: relative;
542
542
  width: auto;
543
543
  height: 100%;
544
- `,je=n.div``,Fi=n.div`
544
+ `,be=n.div``,Fi=n.div`
545
545
  display: flex;
546
546
  height: 100%;
547
547
  flex: 1 1 auto;
@@ -551,7 +551,7 @@ import{a8 as ze,aw as Re,J as H,g as V,V as t,bB as Ie,b as I,g4 as Te,F as T,u
551
551
  `,Zi=n(W)`
552
552
  display: flex;
553
553
  color: ${e=>e.theme.colors.grey2};
554
- `,ce={contentContainerMargin:new x(l[3],l[4],l[8])},{spendManagement:{chargeCard:{paymentHistory:he}},common:Ui}=T.getLocalizedStrings(),pn=({repaymentList:e,fetchState:o,sortConfig:c,accountInfoByAccountId:a,searchText:r,filters:d,isZeniTenant:g,onBackClick:y,repaymentHistoryUsers:h,onColumnSortConfigChanged:p,onFiltersChange:u,onReloadPayments:b,onRetryPaymentClick:s,onSearchTextChanged:m,onClickMenuIcon:C,downloadParams:v,downloadState:w,updateDownloadStateHandler:f})=>{const R=ze().analytics,D=Re(),[_,Z]=S.useState(!1),P=H(),U=V(),be=r===""&&(d?.categories==null||d.categories.length===0||d.categories.every(L=>L.values==null||L.values.length===0)),X=o==="Completed"&&be&&e.length===0,Se=L=>{Z(L)},Ce={entity:"charge_card_payment_history",showNewButtonOnNavbar:!1,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:Ui.strings.empty,hideSearchBtn:!1,disableSearch:X,disableFilters:X,searchTextBoxStyle:{right:"86px"},moreIconContainerStyle:{paddingRight:l[4]},isSearchOpen:_,searchPlaceHolder:he.searchPlaceHolder,searchText:r,showSettingsIcon:!1,showSettingsIconOnNavbar:!1,showStatementButtonOnNavbar:!1,showPayEarlyButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,showDownloadIcon:!0,onDownloadClick:async()=>{f("In-Progress");try{await De({localeID:"en-US",fileType:"excel",entity:"charge_card_payment_history",filter:{filters:d,searchText:r},...v})}finally{f("Completed")}},disableDownloadButton:w==="In-Progress"||o!=="Completed"||e.length===0,analytics:R,onSearchOpen:Se,filterIconContainerStyle:{...P==="small"&&{position:"static",paddingRight:"10px"}},onSearchTextChanged:m,onClickSetupIcon:()=>{},onClickStatementsIcon:()=>{},downloadState:w,onNewButtonClick:()=>{},onClickPayEarlyIcon:()=>{},onMenuOpen:()=>{},filters:d,onFiltersChange:u,createdByUserListLoaded:o==="Completed",getFilterOptions:()=>Je("charge_card_payment_history",h,D.loggedInUserRole??[],[],a),renderDropdownOptionIcon:Ge},Pe=t.jsx(Xe,{spendManagementSectionProps:Ce}),ke=he.pageTitle,Le=S.useMemo(()=>e.map(L=>({repayment:L,accountInfo:L.paymentAccountId!=null&&L.paymentAccountId!==""?a?.[L.paymentAccountId]:void 0})),[e,a]);return t.jsxs(Yi,{children:[t.jsx(Ie,{title:ke,showBackButton:!0,showMenuIcon:P==="medium-compact"||P==="small",onClickMenuIcon:C,titleTextStyles:P==="small"?{...I.standardMedium.cssObject}:void 0,style:{zIndex:3},onBackClick:y,rightSideComponent:Pe,isSearchOpen:_,hideSearchBtn:!1,scrollableContent:void 0,source:"ChargeCardPaymentHistoryPage",backgroundColor:U.colors.grey4}),o==="Not-Started"||o==="In-Progress"?t.jsx(Te,{fetchState:o,styles:{margin:"auto"}}):t.jsx(Qi,{windowSize:P,children:t.jsx(Mi,{fetchState:o,repaymentListWithAccountInfo:Le,sortConfig:c,onColumnSortConfigChanged:p,onReloadPayments:b,searchText:r,isZeniTenant:g,onRetryPaymentClick:s})})]})},Yi=n.div`
554
+ `,ce={contentContainerMargin:new x(l[3],l[4],l[8])},{spendManagement:{chargeCard:{paymentHistory:he}},common:Ui}=T.getLocalizedStrings(),pn=({repaymentList:e,fetchState:o,sortConfig:c,accountInfoByAccountId:a,searchText:r,filters:d,isZeniTenant:g,onBackClick:y,repaymentHistoryUsers:h,onColumnSortConfigChanged:p,onFiltersChange:u,onReloadPayments:j,onRetryPaymentClick:s,onSearchTextChanged:m,onClickMenuIcon:C,downloadParams:v,downloadState:w,updateDownloadStateHandler:f})=>{const R=ze().analytics,D=Re(),[_,Z]=S.useState(!1),P=H(),U=V(),je=r===""&&(d?.categories==null||d.categories.length===0||d.categories.every(L=>L.values==null||L.values.length===0)),X=o==="Completed"&&je&&e.length===0,Se=L=>{Z(L)},Ce={entity:"charge_card_payment_history",showNewButtonOnNavbar:!1,showEntityEmailInfoIconOnNavbar:!1,newButtonLabel:Ui.strings.empty,hideSearchBtn:!1,disableSearch:X,disableFilters:X,searchTextBoxStyle:{right:"86px"},moreIconContainerStyle:{paddingRight:l[4]},isSearchOpen:_,searchPlaceHolder:he.searchPlaceHolder,searchText:r,showSettingsIcon:!1,showSettingsIconOnNavbar:!1,showStatementButtonOnNavbar:!1,showPayEarlyButtonOnNavbar:!1,showDownloadButtonOnNavbar:!1,showDownloadIcon:!0,onDownloadClick:async()=>{f("In-Progress");try{await De({localeID:"en-US",fileType:"excel",entity:"charge_card_payment_history",filter:{filters:d,searchText:r},...v})}finally{f("Completed")}},disableDownloadButton:w==="In-Progress"||o!=="Completed"||e.length===0,analytics:R,onSearchOpen:Se,filterIconContainerStyle:{...P==="small"&&{position:"static",paddingRight:"10px"}},onSearchTextChanged:m,onClickSetupIcon:()=>{},onClickStatementsIcon:()=>{},downloadState:w,onNewButtonClick:()=>{},onClickPayEarlyIcon:()=>{},onMenuOpen:()=>{},filters:d,onFiltersChange:u,createdByUserListLoaded:o==="Completed",getFilterOptions:()=>Je("charge_card_payment_history",h,D.loggedInUserRole??[],[],a),renderDropdownOptionIcon:Ge},Pe=t.jsx(Xe,{spendManagementSectionProps:Ce}),ke=he.pageTitle,Le=S.useMemo(()=>e.map(L=>({repayment:L,accountInfo:L.paymentAccountId!=null&&L.paymentAccountId!==""?a?.[L.paymentAccountId]:void 0})),[e,a]);return t.jsxs(Yi,{children:[t.jsx(Ie,{title:ke,showBackButton:!0,showMenuIcon:P==="medium-compact"||P==="small",onClickMenuIcon:C,titleTextStyles:P==="small"?{...I.standardMedium.cssObject}:void 0,style:{zIndex:3},onBackClick:y,rightSideComponent:Pe,isSearchOpen:_,hideSearchBtn:!1,scrollableContent:void 0,source:"ChargeCardPaymentHistoryPage",backgroundColor:U.colors.grey4}),o==="Not-Started"||o==="In-Progress"?t.jsx(Te,{fetchState:o,styles:{margin:"auto"}}):t.jsx(Qi,{windowSize:P,children:t.jsx(Mi,{fetchState:o,repaymentListWithAccountInfo:Le,sortConfig:c,onColumnSortConfigChanged:p,onReloadPayments:j,searchText:r,isZeniTenant:g,onRetryPaymentClick:s})})]})},Yi=n.div`
555
555
  display: flex;
556
556
  flex-direction: column;
557
557
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{J as $,V as r,g as G,aw as be,a8 as $e,aQ as je,aN as Se,fS as Te,bB as ze,fr as ve,r as Z,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 y,ba as _e,aU as Me,iK as Ee}from"./index-Dnx8_gCi.js";import{a as T}from"./sentry-B0WgNUxa.js";import{n,c as De,k as Fe}from"./mui-BTtN6lbG.js";import{EL as Ue}from"./zeni-epic-state-DnAAAEmj.js";import{k as Ne}from"./NavigationDots-BdcVrwsL-DI6uVlju.js";import{J as H,N as J}from"./PromoBaseCards-6vRaZnUg-DGHSU3hX.js";import{M as R}from"./usp-line-BBd1wKwW-ZROsAmzr.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.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]="c794479f-3895-4bd0-be84-813afd90660f",e._sentryDebugIdIdentifier="sentry-dbid-c794479f-3895-4bd0-be84-813afd90660f")}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:a,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=G(),q=be(),v=$(),K=$e().analytics,{chargeCardTermsDetails:_,companyChargeCardInfo:C,companyLocaleInfo:M}=i,W=je(_?.fetchStatus.fetchState),[ue,X]=T.useState(!1),xe=()=>{K.trackCardsPromoPageClicked("schedule demo"),K.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:h,isDebitCardEnabled:x,isCreditCardEnabled:w},"Cards Promo"),X(!0)},we=C!=null&&M!=null?Se("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:M.currencyCode,currencySymbol:M.currencySymbol}):void 0;T.useEffect(()=>{W==="In-Progress"&&_?.fetchStatus.fetchState==="Completed"&&V()},[W,V,_?.fetchStatus]);const Q=Ue(q.loggedInUserRoleMap),fe=Te(q),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:ye}=i,Y=E?o.getPreApprovedNow:a?o.enableCardsButton:o.setupCardsButton;return r.jsxs(qe,{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:()=>{X(!1)},meetingUrl:e}):null,r.jsx(Qe,{windowSize:v,children:Q===!0?r.jsxs(Xe,{children:[r.jsxs(We,{children:[r.jsx(Je,{isApproved:Ce,creditAmount:we,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:E,creditLimit:C?.chargeCardsCreditAccountLimit}),r.jsx(ae,{cardPromoType:f,cashbackRate:P})]}),r.jsx(ne,{showEnableCardButton:a,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:E,isCheckingEnabled:l})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:j,cashbackRate:P,hasZeniFinopsRoles:fe,cardPromoType:f,isCheckingEnabled:l})}),Q&&!(F||D)?r.jsxs(or,{windowSize:v,children:[r.jsx(Z,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(Ke,{windowSize:v,children:o.orText}),r.jsx(Z,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||ye==="In-Progress",onClick:Y===o.getPreApprovedNow?ge:()=>d(f),"data-testid":ee("enable-card-button")})]}):null]})},He=({admins:e})=>{const s=e.flatMap(a=>a.user?.firstName+" "+a.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})]})},ne=({cardPromoType:e,showEnableCardButton:s,isCheckingEnabled:i,isUnderReview:a,isRejected:c,showExpressInterest:m,isCardUser:h=!1})=>{const x=$();return r.jsx(ir,{windowSize:x,children:r.jsx(Le,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:a===!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&&a===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(x)},cardPromoType:e,isCheckingEnabled:i})})},Je=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:a,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]}):a?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(Ze,{cardPromoType:s,hasContent:j!=null,hideBadge:i==null||s==="debit",windowSize:x,children:[a||c||m?null:r.jsx(yr,{}),r.jsx(er,{windowSize:x,children:j})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:a,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(ae,{cardPromoType:m,cashbackRate:a}),c?null:r.jsx(He,{admins:i}),r.jsx(ne,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:h})]})},Oe=({cards:e,companyLegalName:s})=>{const i=G(),a=$();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(Ye,{width:t.sp5,height:t.sp5,style:{paddingTop:a==="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:a,mode:i.mode,children:r.jsx(ur,{windowSize:a,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(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(J,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ae=({cardPromoType:e,cashbackRate:s})=>{const i=$(),a=o.benefits;return r.jsxs(tr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(nr,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item1.pre}),r.jsx(I,{windowSize:i,children:a.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(b,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?a.singleStarred:""}${a.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item2.pre}),r.jsx(I,{windowSize:i,children:a.item2.bold}),r.jsx(b,{windowSize:i,children:a.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(cr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item3.pre}),r.jsx(I,{windowSize:i,children:a.item3.bold}),r.jsx(b,{windowSize:i,children:a.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item4.pre}),r.jsx(I,{windowSize:i,children:a.item4.bold}),r.jsx(b,{windowSize:i,children:a.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=$(),s=G(),[i,a]=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(()=>{a(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),a(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(J,{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(J,{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:a,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}})]})},qe=n.div`
1
+ import{J as $,V as r,g as G,aw as be,a8 as $e,aQ as je,aN as Se,fS as Te,bB as ze,fr as ve,r as Z,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 y,ba as _e,aU as Me,iK as Ee}from"./index-D4DdpT1f.js";import{a as T}from"./sentry-Dlcq8VjX.js";import{n,c as De,k as Fe}from"./mui-CooLgaJO.js";import{EL as Ue}from"./zeni-epic-state-pmiItBju.js";import{k as Ne}from"./NavigationDots-Ttv3r4BR-v2ws1TaA.js";import{J as H,N as J}from"./PromoBaseCards-BESaQCrl-gKsHUW_9.js";import{M as R}from"./usp-line-BBd1wKwW-CZ22OQAj.js";import"./liveblocks-DXNKZvWw.js";import"./core-CqdPXR9B.js";import"./recharts-DHPcYqKb.js";import"./lottie-BGCmjFH9.js";import"./analytics-CSlaNB19.js";import"./lexical-D6mU3oV8.js";import"./utils-CXbV7y1T.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]="97e9b4fc-c429-42e3-ba13-8ed81c2739c6",e._sentryDebugIdIdentifier="sentry-dbid-97e9b4fc-c429-42e3-ba13-8ed81c2739c6")}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:a,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=G(),q=be(),v=$(),K=$e().analytics,{chargeCardTermsDetails:_,companyChargeCardInfo:C,companyLocaleInfo:M}=i,W=je(_?.fetchStatus.fetchState),[ue,X]=T.useState(!1),xe=()=>{K.trackCardsPromoPageClicked("schedule demo"),K.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:h,isDebitCardEnabled:x,isCreditCardEnabled:w},"Cards Promo"),X(!0)},we=C!=null&&M!=null?Se("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:M.currencyCode,currencySymbol:M.currencySymbol}):void 0;T.useEffect(()=>{W==="In-Progress"&&_?.fetchStatus.fetchState==="Completed"&&V()},[W,V,_?.fetchStatus]);const Q=Ue(q.loggedInUserRoleMap),fe=Te(q),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:ye}=i,Y=E?o.getPreApprovedNow:a?o.enableCardsButton:o.setupCardsButton;return r.jsxs(qe,{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:()=>{X(!1)},meetingUrl:e}):null,r.jsx(Qe,{windowSize:v,children:Q===!0?r.jsxs(Xe,{children:[r.jsxs(We,{children:[r.jsx(Je,{isApproved:Ce,creditAmount:we,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:E,creditLimit:C?.chargeCardsCreditAccountLimit}),r.jsx(ae,{cardPromoType:f,cashbackRate:P})]}),r.jsx(ne,{showEnableCardButton:a,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:E,isCheckingEnabled:l})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:j,cashbackRate:P,hasZeniFinopsRoles:fe,cardPromoType:f,isCheckingEnabled:l})}),Q&&!(F||D)?r.jsxs(or,{windowSize:v,children:[r.jsx(Z,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(Ke,{windowSize:v,children:o.orText}),r.jsx(Z,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||ye==="In-Progress",onClick:Y===o.getPreApprovedNow?ge:()=>d(f),"data-testid":ee("enable-card-button")})]}):null]})},He=({admins:e})=>{const s=e.flatMap(a=>a.user?.firstName+" "+a.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})]})},ne=({cardPromoType:e,showEnableCardButton:s,isCheckingEnabled:i,isUnderReview:a,isRejected:c,showExpressInterest:m,isCardUser:h=!1})=>{const x=$();return r.jsx(ir,{windowSize:x,children:r.jsx(Le,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:a===!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&&a===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(x)},cardPromoType:e,isCheckingEnabled:i})})},Je=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:a,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]}):a?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(Ze,{cardPromoType:s,hasContent:j!=null,hideBadge:i==null||s==="debit",windowSize:x,children:[a||c||m?null:r.jsx(yr,{}),r.jsx(er,{windowSize:x,children:j})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:a,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(ae,{cardPromoType:m,cashbackRate:a}),c?null:r.jsx(He,{admins:i}),r.jsx(ne,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:h})]})},Oe=({cards:e,companyLegalName:s})=>{const i=G(),a=$();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(Ye,{width:t.sp5,height:t.sp5,style:{paddingTop:a==="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:a,mode:i.mode,children:r.jsx(ur,{windowSize:a,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(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(J,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ae=({cardPromoType:e,cashbackRate:s})=>{const i=$(),a=o.benefits;return r.jsxs(tr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(nr,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item1.pre}),r.jsx(I,{windowSize:i,children:a.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(b,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?a.singleStarred:""}${a.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item2.pre}),r.jsx(I,{windowSize:i,children:a.item2.bold}),r.jsx(b,{windowSize:i,children:a.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(cr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item3.pre}),r.jsx(I,{windowSize:i,children:a.item3.bold}),r.jsx(b,{windowSize:i,children:a.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(A,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item4.pre}),r.jsx(I,{windowSize:i,children:a.item4.bold}),r.jsx(b,{windowSize:i,children:a.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=$(),s=G(),[i,a]=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(()=>{a(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),a(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(J,{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(J,{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:a,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}})]})},qe=n.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;