@zeniai/web-cockpit-ui 1.15.5-qa → 1.15.6-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 (279) hide show
  1. package/dist/assets/{ACHDetailsPage-BLKhKkZC-B6yajpe4.js → ACHDetailsPage-DDuW5spI-DmIOfZaQ.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-J3dtNEgn-CyCBRrSq.js → AIPerformancePage-Bbk-pUwz-C4OuKpoP.js} +1 -1
  3. package/dist/assets/AccountInfoPage-D0Kzx5mY-BAk7_PwQ.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-D8oVcn1T-CzQ3IzP7.js → AccountInfoPageContent-BA3WBfD4-D0j1Octx.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-B9_FdrYm-BwA3_wO5.js → AccountLockedInfoModal-Bs1ImO2L-DxzozOh-.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DFjW0u9--yCg_Nq2n.js → AccountReconDetailsDrawerPage-Ci_Eb0_d-BUE92sWn.js} +12 -12
  7. package/dist/assets/{AccountRow-Bq6uJ1hA-CcRQ_R2_.js → AccountRow-BWclqiQh-CE6dTXhw.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DQmHrc8b-4RlJ7dsg.js → AccountsPromoCardStack-BHgGIeBG-CmkZoBWh.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-O987RTn2-BZzZn_Kw.js → AddAddressForCardDrawer-C_QsOhGT-DsebdApi.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-C2Z6f8Y6--FPE1uf9.js → AddToWalletPage-Dllxg_0u-Dx42ctyC.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BlPqvXdx-cDHArZjn.js → AgingReportsPage-CBHhfTKI-C6o1AzEa.js} +1 -1
  12. package/dist/assets/{AllUserItems-CL17FcAl-BcuiUm6t.js → AllUserItems-Bdv9AIQ9-CmD4bDJM.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-CHVwRH_g-CDcR5kBk.js → ApAgingDetailPage-EE3MrY5l-GTVFM97s.js} +5 -5
  14. package/dist/assets/{AppBasePage-CnlPnTBn-C2N-RLb9.js → AppBasePage-02I6V3Np-CCphkJYy.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-C2CNe5yn-CVDhTyQq.js → AppDrawerContent-DbBd9m20-CkGtqH-e.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-XsMzIe4e-BshSh3vL.js → ApprovalRulesSettingsPage-5bJIKss7-Bq1QuSO5.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Ck1uAv_a-CY0UAZzE.js → ArAgingChart-BqBx1Gj1-Dtyx3ykG.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-KRWJzbCq-ENUC0XH0.js → ArAgingDetailPage-D9rI5yue-CC_VXcgM.js} +5 -5
  19. package/dist/assets/{AttachmentView-uaen0kuU-BLtDvJym.js → AttachmentView-CeblaMyI-BGuVsAFd.js} +1 -1
  20. package/dist/assets/{BankAccountSection-CwOhGEgT-HsgZBFUH.js → BankAccountSection-B3v3BDPK-D84yJmse.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-D7BVcqIu-CAilro7y.js → BankAccountWarningSection-DCi9o7_J-CCUXAbXm.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BOdlcBfa-B862853q.js → BankConnectionsSettingsPage-Csbc7IYe-FYIp5A-6.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Ct4Q960V-CcQXypWc.js → BillDetailPage-ByPP2r-L-Dy5TaPD-.js} +6 -6
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DUU4rXuM-CxDkFcxJ.js → BillPayApprovalRuleDetailPage-GDOnscxH-CWuGDMqT.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-C0pcFzje-C_8luS6Q.js → BillPayApprovalRulesPage-BqDyhnz3-B0_T4q5D.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-BsEtxcjB-Cdf_GDEd.js → BillPayPromoPage-B1_ugFQw-BTaNERS7.js} +10 -10
  27. package/dist/assets/{BillPaySetUpPage-B-rBYCtR-DgaQzPx9.js → BillPaySetUpPage-Cx2vQIL8-CS_5d8G2.js} +6 -6
  28. package/dist/assets/{BillingSettingsPage-BadzsZdt-BWSUJGLs.js → BillingSettingsPage-BiKaSV4T-CKmWrEJ5.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CbA-LUIt-0sYnn4IM.js → BillsBulkReviewDrawerPage-B8KhD0xH-39Z7_l7K.js} +1 -1
  30. package/dist/assets/{BoxItem-BoanamYM-LrJX4JYX.js → BoxItem-CqsCCOrk-3dsq5OCh.js} +3 -3
  31. package/dist/assets/{BusinessVerificationPage-B9hjIdCd-CJiJbU9u.js → BusinessVerificationPage-8tFxbXGC-DJTKBkwq.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-DFO_EKrs-cO_HCGSk.js → CardNumberSubText-ByPbO0F8-NoIjeblD.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-Bp85-5Ie-DVTl8leg.js → CashbackDetailPage-Ve3JZpeP-CIU9Z6Ud.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-D8dY9X8Q-CxLkHRJg.js → ChargeCardDetailPage-D7zLKDQo-BKsWUNwo.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-CxplfJ1W-DYMc5T_c.js → ChargeCardListPage-Cnm7GqIj-Bo3bzB3t.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-scY11ryy-DiQBQtP0.js → ChargeCardListTable-bTR8Mmj4-OJHIEg6M.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-Brh4ot5q-DDUd6_3s.js → ChargeCardPaymentHistoryPage-Cufm-hgn-6YH6ILTO.js} +1 -1
  38. package/dist/assets/ChargeCardPromoPage-BUGGPnco-Gkf99GV0.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-Bumq17f6-D0WQyKKN.js → ChargeCardSetupPage-B-jcdCNM-LK6iT6P8.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-DbU7LEIP-CRit8Q5S.js → ChargeCardStatementsPage-CyVlO8hd-CSdH-m0s.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-CFl7Vr_I-CweAWiZj.js → CheckDepositDrawerPage-BmG5ma6K-BUju2PKA.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-CRaZZnGr-BljjGZjn.js → CollapsableReportTable-LB-wYzj1-B7gXwkx1.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-C4rN7mXr-DGQrC1mq.js → CompanyOfficerDetailsSection-CMl5cDNs-DXQkvQJO.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-I21kA_Ir-DJjRvGKO.js → CompanyPassportCard-BwHjmTyn-DTj-m8EW.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-BSDnF5-7-BU5nHQfj.js → CompanyPassportPage-BlDBD5EG-C-1jtLrK.js} +1 -1
  46. package/dist/assets/{CompleteProfile-uultMZ5R-B4uDmeYB.js → CompleteProfile-H7UexvAo-DS_U9ezr.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-CpmYtgfk-BNp_aNl4.js → ConfettiBurst-nOkNOTPr-CU4839EQ.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-AfKsEb9G-DJP3ueZ2.js → CreateOrEditVendorPage-Bt2itRHK-lFE26i6l.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-D0Lh5Tw1-DD5m0ddI.js → CreditCardPaymentDrawerPage-B8eb8Q0G-CaFYQ2DA.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-BvNBUOqg-CsBuJI1p.js → CurrencySelectField-DIh7_ile-X1kVuNeI.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-OtCugBPI-D91o4aDd.js → CustomerOnboardingActivationPage-B3t4tiur-DjVPHMY9.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-Dq7dnrBC-CYcBYKlf.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CMqEIIWe-DKTuqAzn.js → CustomerOnboardingDetailPageSkeleton-JE_MoyoU-Bsgy0GZh.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-p062pNc5-BNSIkJLR.js → CustomerOnboardingNoStepsPage-D1XU-7jk-Cn22BABs.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-Byojt-WN-BI89EQZZ.js → CustomerOnboardingPage-DFky4iQx-BxCGJxNC.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingProductSuitePage-C9W7h_tT-DDpX8IWO.js → CustomerOnboardingProductSuitePage-DZLKr3qq-COlAJTzv.js} +3 -3
  57. package/dist/assets/{Dashboard-Dkwr9npN-DOlsnBvO.js → Dashboard-z7EuNcjw-UzQuGNor.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-Qk5_OFw7-45oSqJmy.js → DashboardReportPage-BX2xSgwt-CtMCy2_m.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-BiD26wyg-BRXfEvXl.js → DashboardSidebarBackgroundAnimation-fiNmHYV3-bIt2Kc3t.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-13TnlK6P-psKtbL0Y.js → DepositAccTransactionItem-CmlUJZgz-bnmz8rhM.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-Dc3G81fB-B2QZVX7l.js → DepositAccTransactionListPage-MLQJ9urd-BDlhd475.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-CCIoGmZO-B9flQJrp.js → DomesticWireDetailsPage-D-SBQqbR-DQWXll-f.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-Nc_Ra7Co-CsNXZ-X3.js → DownloadOverlay-DznbXeUZ-D1NoRQ5k.js} +1 -1
  64. package/dist/assets/{DrawerPage-Bq1naYya-CbTI2Oir.js → DrawerPage-8d8mdD3v-Dfra5TT0.js} +1 -1
  65. package/dist/assets/{EditPeoplePage-BnYTxq_9-Bs1JHHVK.js → EditPeoplePage-CTwY7ePr-D0nnt0-I.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-D-uH9OV3-Cq2uYRbN.js → EditReimbursementDetailPage-DVg6dH7p-CjarxZTI.js} +1 -1
  67. package/dist/assets/EntityDetailPage-Bj5lQ0PH-CGebRb13.js +18 -0
  68. package/dist/assets/{EntitySummarySection-BI44dDjO-B-d9qKtl.js → EntitySummarySection-CloCPwyO-CgnOdasB.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-XA0L4mZw-CpnZngC7.js → ExpenseAutomationOverviewPage-dHZEdK4L-elD22oh3.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-CGkJWoKY-BRMhK3VV.js → ExpenseAutomationPage-CWyP8ETl-CY2GVa2F.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-BX3rmT8V-CwR2-MHb.js → ExpressPayPage-liflPa6J-BKtQJoOF.js} +8 -8
  72. package/dist/assets/{FeaturePreviewPage-W5YS3_F--oZdslOzE.js → FeaturePreviewPage-DhSoy4IL-CDDhl9rE.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-C1Nmspra-g1QKZ2WI.js → FollowStepsSection-DW5HuzRR-DcJNUD9X.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-BfVSGVJe-nrO0MSCI.js → GlobalReviewListPage-CGCdgQFw-qnxwU5hv.js} +1 -1
  75. package/dist/assets/{InformationCardStack-BwgEyJER-DBUBT-P7.js → InformationCardStack-D6xiRsRy-BhoVOIXn.js} +2 -2
  76. package/dist/assets/{InsightsCardStack-BnEWSQ0m-BuxHTIEs.js → InsightsCardStack-D1eIlMkU-ukmVGuFg.js} +5 -5
  77. package/dist/assets/{InsightsSection-hFNVHtei-DFkdhpSF.js → InsightsSection-BT0lHMo3-BgjHvnt6.js} +2 -2
  78. package/dist/assets/{IntegrationsSettingsPage-De8DEt0a-CU8Pbtf9.js → IntegrationsSettingsPage-CRZfnPIT-XEzkhiGZ.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-Dri_Nj57-C0blfNRG.js → InternationalWireSwiftDetailsPage-DouGaVny-CRo_03LB.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-CPIRgDy5-BkL1JOGT.js → InternationalWireVerificationPage-B0ha4dEA-D2bWiaRf.js} +3 -3
  81. package/dist/assets/{InviteFormPage-Ca_tdccZ-CGjMuOAB.js → InviteFormPage-dCGpLoBC-CnwRO6GR.js} +1 -1
  82. package/dist/assets/{InvitePageListView-BQbRhQ6V-CRXbgx-s.js → InvitePageListView-DhV6Pw56-Dy7_3oOM.js} +1 -1
  83. package/dist/assets/{InvitePeoplePage-BKffwOP--V5gE16hl.js → InvitePeoplePage-J-HYw9MC-DQIPfQK0.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-H-JhX_DQ-Cg45FklV.js → InvoiceUploadSection-BJLLf4x5-BYeTjPlO.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-rinAPB-d-DG3ZhygF.js → IssueChargeCardPage-hEaegmyi-DePIbfxK.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-kPYLLOgv-Ca8uDguJ.js → LabeledAddressValue-PXtKo31O-B1dTxAsd.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-B_N4O3Mv-CPUPG_5z.js → LabeledAddressValueField-D0Ow_UPE-BHdlfsNf.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-DiD9FNgO-D1jXFK30.js → LabeledControlledCheckBoxField-DVOeaKu0-CwyeTdvX.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-BCYMtV4j-BKgMFZkq.js → LabeledCountryMultiSelectField-CJud_Lwc-Sf4MZhvZ.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-Dm03LVdQ-hgzKVxJf.js → LabeledCreatableSingleSelectField-Dqt1M07c-CNB-6Gh3.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-CWqz_jSU-RG8yAT0I.js → LabeledDocumentField-D2n9ry_0-Cul5QuOh.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-DhwPnDY8-Cj0K2Ch4.js → LabeledDropDownFormattedTextField-BfpPbI2T-u_0q2QC6.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-C9feGqHN-USGYCM7x.js → LabeledMultiSelectField-DH6iG4SR-CYpPK-Cw.js} +1 -1
  94. package/dist/assets/{LabeledText-C91Eu04E-CepIkWM4.js → LabeledText-BHQeQs6Z-DhDpA6wq.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-uruIe6mr-CpShuEXQ.js → LabeledUserSingleSelectWithSubtitlesField-CnwVXq2g-CkdExi4v.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-BBpe1-wI-eTEFPYGs.js → LabeledZeniRolesDropDownField-Dpdlc1DB-DQObOG0W.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-Cn7He0uo-CV8un8kj.js → LinkJETransactionPage-CWOfaAhz-DWQUITuq.js} +2 -2
  98. package/dist/assets/{LockCardPage-CaIor45t-Dj9ZYRbG.js → LockCardPage-BMt1zujT-CFeVzpTL.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-DQJYforY-CYt371Eb.js → LowBalancePopup-BN2RBNOV-hy8CG739.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-CRVp5zpz-D5GQff-7.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-Cc9jW4rg-77L1DsxR.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-COHy_2Nv-BJr0TTTO.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-RsvHwQTQ-Cr9S_5hK.js → MagicLinkSuccessPage-DQbdgFhH-BQZS2a7G.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-DaThYY60-yvWZdo6C.js → MagicLinkTitleSection-BYkzInkY-CnbT4Veu.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-DiSohByM-9g2JEN_I.js +21 -0
  106. package/dist/assets/{Menu-DWx47kcG-DbhvsdcT.js → Menu-TzNY4ajT-Bc5fvTOh.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-DtnGJLK--CI7NINxg.js → MyBankConnectionsSettingsPage-Bk4Hdapv-gAHHFi2O.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-B1A2Dxw3-BOWmPTsp.js → MyPendingActivationChargeCardListPage-C5Q5p5zq-CnCSpKZ4.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BHpnpTmJ-CAbs0YL8.js → MyProfileSettingsPage-BxiofsK0-C3vlSwei.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-Biz620wH-TEitrYNs.js → NavBarWithPicker-DX31nlvR-DsZZuak6.js} +1 -1
  111. package/dist/assets/{NavigationArrow-CV_u5I1d-BUNwYCaW.js → NavigationArrow-BDdBEJFM-kO85jIsj.js} +1 -1
  112. package/dist/assets/{NavigationDots-DBshnTnS-CFrPftyk.js → NavigationDots-BZOdXVhR-CfDXOc_R.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DV2k3q5N-DvvNwwEK.js → NewGlobalMerchantPage-qOuBGJ6w-BmGoY907.js} +1 -1
  114. package/dist/assets/{NoDataChart-DmThvRWS-DMCfCw3w.js → NoDataChart-DxwqqeoI-DOHENLK_.js} +1 -1
  115. package/dist/assets/{NoDataTable-8GCzndE4-COwZVLdz.js → NoDataTable-DOZy5UAM-BJyDiZ-C.js} +1 -1
  116. package/dist/assets/{NotFoundPage-VR72eVPP-C86iqIgz.js → NotFoundPage-B31SyO4w-TK5jF5I6.js} +5 -5
  117. package/dist/assets/{NotificationSettingsPage-Bwf-7o4F-cOymEnQu.js → NotificationSettingsPage-3GoJDHjY-e7wDfjlQ.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-Dn_RFaAK-CfnUwgLK.js → NotificationsListConfig-C-OlC5S6-zDT4Ztbb.js} +1 -1
  119. package/dist/assets/{NotificationsPage-B8GufkTS-DKihZEjC.js → NotificationsPage-Cuz_KDD8-wXs79zwS.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-BlEqljuU-CpCR9K40.js → OpExByVendorPage-B2CQ-hT1-CdHYab7a.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-BYJ8KqrE.js → OverlayContainerPage-Daz3A7cI-DCSdV5h7.js} +1 -1
  122. package/dist/assets/PandLWithForecastPage-Dkcy07sC-JgqiuJuu.js +107 -0
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BIxsEOJG-B4rGOs0i.js → PaymentAccountSetupBillingAddressSection-Dnw0APJu-DFVf9SKl.js} +1 -1
  124. package/dist/assets/{PeoplePage-DahKRMoB-j_nwq06O.js → PeoplePage-yzYfizds-CBGf3Gd5.js} +1 -1
  125. package/dist/assets/{Preview-BtZ3ZcmU.js → Preview-CSa6riGd.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-1P24z1p4-ZVWDXjYr.js → ProductsCarousel-DRfZ_sZ_-mmjpTyj5.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-DiKj0_oo-Cd0BSFVK.js → PromoBaseCards-CbPywvj2-1eQh0qml.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-A0ysjdIC-DUlZygO9.js → QBOConnectionDialog-DLuBxOXr-DCzBovUv.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-Me828i1a-DkFeUuRm.js → QBOSetupSection-CxLynYFq-Cwy-C1n0.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-dID4dZbu-BsIhKH78.js → ReimbursementApprovalRuleDetailPage-CDK4q7B4-CUbM2HBk.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-D8stgYq_-D3kqEOx0.js → ReimbursementApprovalRulesPage-DFmZm1Qr-Cl7V1PiK.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-DaYD1eTP-DKAx24cc.js → ReimbursementDetailPage-DOCRkpPT-CA-MUhmO.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-ClRa3wo6-01Wxwlz5.js → ReimbursementPromoPage-DENI6dAX-B1sT6_KV.js} +4 -4
  134. package/dist/assets/{ReimbursementSetUpPage-CaJCRajP-DiAl9zxc.js → ReimbursementSetUpPage-BJoFNAQR-Lp5jp-Tn.js} +5 -5
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BuBVWui--LumBRV3u.js → ReimbursementsBulkReviewDrawerPage-C0a107hB-D2OOQoI4.js} +1 -1
  136. package/dist/assets/{ReloadCard-DzxA-pGI-BTxFtDZL.js → ReloadCard-BCuJkAqw-CYhviv2P.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-D1k2eDtE-C7gtHRC6.js → ReportTableViewSelector-CEo0z4A2-CAPsKjzu.js} +1 -1
  138. package/dist/assets/{ReportsPage-DqXYfBQC-HKnm0VLl.js → ReportsPage-gMt_l_Aa-DIB3PTgR.js} +5 -5
  139. package/dist/assets/{RevenueChart-C0vx4zUX-CS6tiD6b.js → RevenueChart-JLdzi3aQ-CfmQzfo9.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-DmHHVA8I-rryT8nyx.js → ReviewDetailsPage-WBKwpVad-B2V98SLr.js} +52 -52
  141. package/dist/assets/{ReviewOverlay-tGj059Ib-BKVdx9g4.js → ReviewOverlay-DqOXHkMM-jjjTXZU9.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-BGafXnoE-2tbvzQW2.js → RoleWithToolTip-BYuFXi4d-BXj5hmHZ.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DuuvsMhX-CBSo_UOt.js → ScheduleDetailsFixedAssetsPage-BU--t7Cu-BVboxaxs.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-BCw7YaHZ-BPICcxXg.js → ScheduleDetailsPage-_Ag36lXG-DTOl83nB.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-C31xhtxt-DsLLSYz6.js → ScheduleSequenceTable-axweBiV5-Bbbb-U5v.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-C67GO5Te.js → ScreenRoutes-C0-VBL51.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-D8PGmPML-Bzhtk2nI.js → SetUpAccountSection-CerAAia_-BvPxgY0Z.js} +1 -1
  148. package/dist/assets/{SignIn-CwWQnPnB-BWr26Rrd.js → SignIn-B1yQ5XWH-C-xtXH4l.js} +3 -3
  149. package/dist/assets/{SignInScreen-CEuHZjo7.js → SignInScreen-fYwH5UY7.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-B-EbBpvJ-D4QvSWNX.js → SpendManagementListViewPage-BL77zVeL-BdHlBBto.js} +5 -5
  151. package/dist/assets/{SpendManagementPerTabPage-DANa2aTd-CWvsy1uU.js → SpendManagementPerTabPage-B82q9yMk-Crz1O3b0.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-CXYhrJSF-DegWG-xT.js → SpendManagementSection-Bcex-9e7-BcTlnTQw.js} +1 -1
  153. package/dist/assets/StatementItem-CL4KzNeN-DGvjkmoq.js +31 -0
  154. package/dist/assets/{StatementsPage-2OCuox8g-CketcBVa.js → StatementsPage-ECVGrRXi-B7osQmZV.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-CfBOEbYV-BG_Psc8-.js → StatusSwitcher-Cw0Sq3bY-BbChaknS.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-LzrZe6zz-9QlUiay1.js → SubTabSwitcher-DmGRgMQe-C3YnGDOU.js} +1 -1
  157. package/dist/assets/{SummaryCard-DTbKziXk-06dkT-e5.js → SummaryCard-OvE5BRYP-DQ7Zk4PZ.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-J0L5w2Wc-_GLV6uUI.js → TaskManagementPage-CAX0yrep-DYDVQ3C3.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-CIhE-4dW-gA6h-SPl.js → TimeRangeSwitcher-2AXHoZ8f-DqBXOz3V.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-YlXclGGy-C1UEcBoK.js → TimeframeSwitcher-DJiKd_tL-DApIRoV9.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-BKRmBPLL-Zi3dvA5E.js → TimeframeSwitcherWithToggle-5W1Xu4QM-D0OKi7Nt.js} +1 -1
  162. package/dist/assets/{TopExCard-D1k8bh_F-Bl4Np8KZ.js → TopExCard-8RRaMY7F-Gon6G4m3.js} +10 -10
  163. package/dist/assets/{TopExDetailPage-BRJ9k9hY-QrrZWVa6.js → TopExDetailPage-D2KlaBXx-BpdUQtul.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-CJjGDJoM-D2JAk05P.js → TransactionDetailPage-DdyFRxld-C-5usEOx.js} +1 -1
  165. package/dist/assets/{TransactionList-CLJV-J8J-BYehwI5o.js → TransactionList-CLVkETBe-BTi0TF8x.js} +1 -1
  166. package/dist/assets/{TransactionListBig-CDMd8KmW-BlVD7tdK.js → TransactionListBig-BRCiFBKB-90T7vD3u.js} +1 -1
  167. package/dist/assets/{TransactionListPage-Dm_JZDPM-Dja1gl3F.js → TransactionListPage-D0OgwsUo-CHqv8Ptz.js} +2 -2
  168. package/dist/assets/{TransactionVendorDetailPage-BDuBQged-CvXp-xOX.js → TransactionVendorDetailPage-BLCUqZvL-BIALvbPN.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-lY_wB7eB-BnbxYTNq.js → TransferDrawerPage-DdDRqsyR-Dpm3m1og.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-D5OetJEP-CBj-l09J.js → TreasuryOverviewPage-BcIRsLLj-dqw9iZxG.js} +9 -9
  171. package/dist/assets/{TreasuryPromoPage-8tXexPVv-pVJJ14ZG.js → TreasuryPromoPage-qbltxtYj-Be5gnIqG.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-DEOyNQFW-AlE9KEaP.js → TreasuryStatementsPage-CLFal4Qu-D7fSpwwi.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-B2AurZ-A-BQb9STu_.js → TreasuryTaxLetterPage-C2-SmkNZ-CYIVDUGa.js} +2 -2
  174. package/dist/assets/{TrendChart-DhH1bAfv-D3LXI5YU.js → TrendChart-Cot9LFNh-CytK-s0s.js} +2 -2
  175. package/dist/assets/{TrendWithTransactions-BLYyM3MY-D7UeGVnC.js → TrendWithTransactions-BKxxRKGE-L7jdBP-R.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-CFir4dX5-DgsKoByZ.js → UncategorizedAccountsMappingPage-C7Z3q75s-C7vlCsmg.js} +5 -5
  177. package/dist/assets/{UnitIntegrationPage-CHR1UsV3-CKbTwyHM.js → UnitIntegrationPage-DV9q3Nzs-EQSgep-S.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-CVb-0jqF-DsW1DeW-.js → UploadAdditionalDocumentOverlay-B37gdjRF-Dp2vDOBj.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-BJI6SeE0-eNPAVD8D.js → Vendor2FAPopup-BZQXt_G4-BTtalNNx.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-WS3d8TF6-Da0vtQql.js +1 -0
  181. package/dist/assets/{VendorDetailPage-Bl6Xaq0d-Dm7H_1pT.js → VendorDetailPage-CH1L4UZF-B3MhcE6y.js} +5 -5
  182. package/dist/assets/{VendorDomesticWireDetailsPage-B83WB2Vz-Ddp5nU-e.js → VendorDomesticWireDetailsPage-Brom_Sf_-B5VglIGE.js} +1 -1
  183. package/dist/assets/{VendorFiling1099EditablePage-DHabnH22-Ci-SR-CB.js → VendorFiling1099EditablePage-BaX4ACXz-CJd2K39u.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-JhwEqiFF-Dp6nc1bX.js → VendorFirstReviewPage-DAZJMUR3-BZQS9qCZ.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-DKsYBIjo-PLt1U3wd.js → VendorInternationalWireDetailsPage-CPnjLrDQ-0-KyGCYk.js} +1 -1
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-C4XEeSs2-DO48MG3i.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-Bvhib6Hd-CHxc62W3.js → VendorsAccountsSection-DsgK37WB-BrTiEXUw.js} +1 -1
  188. package/dist/assets/{VerifyDevice-DGjS39sh-Cb897kZW.js → VerifyDevice-BPAsHKLY-rDHP_WGx.js} +1 -1
  189. package/dist/assets/{VideoPlayer-DufuoQRs-oPVEl4ns.js → VideoPlayer-Bwg_8KIq-BrCqLhsq.js} +2 -2
  190. package/dist/assets/{VideoPopup-1aNRmLD6-NApO2qk6.js → VideoPopup-CxjbzbjP-Bfo2Jbi-.js} +2 -2
  191. package/dist/assets/{WarningsDrawerPage-Bikg48FF-Cbty70OQ.js → WarningsDrawerPage-BBc3-y8F-DEB-oHPA.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-DJiB-R44-DNmBtR_I.js → ZeniAccountDetailPage-VB4JoNYE-DnLTquPY.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-BJF3-1hq-LSfxZ1Rl.js → ZeniAccountListViewPage-CMjCtqT0-41l3IEZs.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-ZZoVi49V-DI70eC49.js → ZeniAccountNavBarPieces-C89nBJ6j-BQmFQnUD.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-VfZj6e9J-BYxBlesF.js → ZeniAccountPromoPage-C1_qLOdH-CT-Nw3at.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-CfUBgLaM-BRYKYPE6.js → ZeniAccountSetupPage-DWEVvvHh-mdXQepOk.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-UUk3LylG-m9Xmp5JI.js → ZeniCopyright-COx-CtZK-BJjjuCdE.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-DuyKUAsb-CGhQHvXM.js → ZeniTransferAmountSlider-DfOF_MH1-DEdEmpvO.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-BrN1Aye0.js → add-to-wallet-DgdBD8_G-DJTDRQKQ.js} +1 -1
  200. package/dist/assets/{analytics-zyQYZvSc.js → analytics-COhRzxPT.js} +1 -1
  201. package/dist/assets/{analyticsHelper-Cv_74YFl.js → analyticsHelper-CRtdFimq.js} +1 -1
  202. package/dist/assets/{analyticsHelper-C_CHYSrd-DeLJvIPW.js → analyticsHelper-CcmV6wHp-D-5PVU9-.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-3vc9ELkd.js → arrow-south-east-round-PEovUgvH-rNeD8cA8.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-c21rRbXN.js → auto-transfer-rule-mbafm5D3-_-2LojGH.js} +1 -1
  205. package/dist/assets/{chartTypes-CfyGWP2E-CMEv9V_N.js → chartTypes-YlZX4WLs-BVobq2KO.js} +1 -1
  206. package/dist/assets/{commonDimensions-uDLC8oOH-0Au8IFVq.js → commonDimensions-IG4iGJ-6-D0-edPu2.js} +1 -1
  207. package/dist/assets/{commonTypes-DBWmGaRi-DbYfiAyn.js → commonTypes-ByC4Sd87-P4qhDabt.js} +1 -1
  208. package/dist/assets/{constants-DWk2fFv_.js → constants-PRjhMiOb.js} +1 -1
  209. package/dist/assets/{core-eaZ5MkII.js → core-BPFYe8Fp.js} +1 -1
  210. package/dist/assets/{dash.all.min-CcMymYrD.js → dash.all.min-BHP7ZpuB.js} +1 -1
  211. package/dist/assets/{detailCommon-CUjnzfBn-DLVfXaab.js → detailCommon-lUFqcp_3-DLubEUfX.js} +3 -3
  212. package/dist/assets/{downloadPdf-DZnGQqi5-CeOjPDtf.js → downloadPdf-DYME892p-CgtFhUt6.js} +1 -1
  213. package/dist/assets/{empty-5jxUSzqQ.js → empty-Cp4uRDWx.js} +1 -1
  214. package/dist/assets/{empty-B7T-FSqA.js → empty-_EE1GUl0.js} +1 -1
  215. package/dist/assets/{epic-qVoPQO6A.js → epic-BIwB2Nyn.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-DZK07yWZ.js → gift-box-Cmt9OgIZ-CWOIBKFq.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CBdedu6R.js → graphic-no-data-l-DU4J8fDt-CGUgoC2L.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CxQSQ7nM.js → graphic-no-data-net-burn-l-CzmycA0m-Bkxol6JE.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-DDyFnDC1.js → handshake-BPg58FML-B1aTSimH.js} +1 -1
  220. package/dist/assets/{index-D8PMCh18.js → index-B6Om0Agf.js} +7 -7
  221. package/dist/assets/{index-B97sUjo_.js → index-BNhIcPIg.js} +1 -1
  222. package/dist/assets/{index-DZdvjaDg.js → index-ByQkLJJD.js} +1 -1
  223. package/dist/assets/{index-vcow32RM.js → index-DAOCYnQR.js} +1 -1
  224. package/dist/assets/{index-oTgseo1z.js → index-DdFqgh6Q.js} +1 -1
  225. package/dist/assets/{index-D2sj31x5.js → index-gqLeArqE.js} +1 -1
  226. package/dist/assets/{index-BD479JGG.js → index-mYyCGmMK.js} +1 -1
  227. package/dist/assets/{lexical-DZqbjlo3.js → lexical-acVZWmws.js} +1 -1
  228. package/dist/assets/{liveblocks-CYMGg0Jd.js → liveblocks-DWNROPS5.js} +1 -1
  229. package/dist/assets/{lottie-wSb1JmVE.js → lottie-DQjCP4UK.js} +1 -1
  230. package/dist/assets/mapLoadingInProgressToTreeNode-B7Tq4sxB-CG4-iokq.js +1 -0
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-6D3s6K5H-Cf59HreQ.js → mapSectionWithAcOnlyToTreeNode-BNXHaV-x-Dya99XN3.js} +1 -1
  232. package/dist/assets/mapSpacerToTreeNode-DpgQIqP_-DJHBQyJ3.js +1 -0
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-LxIEmBdX-D0eWUHRt.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-fxn51zxe-DrBdfP98.js +1 -0
  235. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-opvjldHo-nQMPswZb.js +1 -0
  236. package/dist/assets/{mui-8c7TTPte.js → mui-C6XKQL2c.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-rPobFqLh.js → page-detail-CWX5S47F-BzjIQtfg.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-JegKPmEU.js → radio-default-CiSgisfh-BS1GVp2P.js} +1 -1
  239. package/dist/assets/{react-BkLRSHeS.js → react-B0pgw5Mm.js} +1 -1
  240. package/dist/assets/{react-BeFAL7xc.js → react-BSuQuG9G.js} +2 -2
  241. package/dist/assets/{react-BTIOleqc.js → react-BjT2oqbW.js} +1 -1
  242. package/dist/assets/{react-DqDI51zp.js → react-Brqsw08v.js} +1 -1
  243. package/dist/assets/{react-Bm2m1z7n.js → react-CVQUd4tH.js} +1 -1
  244. package/dist/assets/{react-Bgfqj-6V.js → react-CXCL32Ls.js} +1 -1
  245. package/dist/assets/{react-BvBglWtA.js → react-D8jgeeNV.js} +1 -1
  246. package/dist/assets/{react-CpDQbd_p.js → react-Dk7l6rEc.js} +1 -1
  247. package/dist/assets/{recharts-DLR05d4e.js → recharts-CPZsikvb.js} +1 -1
  248. package/dist/assets/{sentry-gJCFOenX.js → sentry-yju9hmuU.js} +1 -1
  249. package/dist/assets/{shield-DOlUxcFf-BYII5mua.js → shield-DOlUxcFf-C-RFN1Ny.js} +1 -1
  250. package/dist/assets/toCOABalancesWithID-BAw7mDDs-BHjR7Lz6.js +1 -0
  251. package/dist/assets/{toChartData-DD8ISjzM-BEMY07yt.js → toChartData-CuSN9vUZ-eye27L_h.js} +1 -1
  252. package/dist/assets/{uploadAttachment-CEqqTe84-DtoAuKJx.js → uploadAttachment-CRI5U1f4-uoLiqp2e.js} +1 -1
  253. package/dist/assets/{uploadReceipts-CPw64UYa-B7XOfqVi.js → uploadReceipts-CPw64UYa-DbLoTUL7.js} +1 -1
  254. package/dist/assets/{url-Df8TrFuK.js → url-7nemmS6b.js} +1 -1
  255. package/dist/assets/{url-CPssbUxP.js → url-BZCKPycf.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-b6cGrqv9.js → useLongPress-GCK2COYQ-Dvu-g8xT.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-BI2SMRc4.js → usp-line-BBd1wKwW-BKD4OxLr.js} +1 -1
  258. package/dist/assets/{utils-BoH8rMdz.js → utils-B5xU1y4i.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-B6kYb9qr.js → zeni-epic-state-ag00jsAo.js} +3 -3
  260. package/dist/index.html +1 -1
  261. package/package.json +2 -2
  262. package/dist/assets/AccountInfoPage-CI5UcHFj-CxN8pKH-.js +0 -18
  263. package/dist/assets/ChargeCardPromoPage-CPURUrkI-B12CNYfn.js +0 -222
  264. package/dist/assets/CustomerOnboardingContainerPage-DGhE9fpo-BKcFYTYY.js +0 -1
  265. package/dist/assets/EntityDetailPage-DCcgGupN-Pg8_N3U5.js +0 -18
  266. package/dist/assets/MagicLinkACHDetailsPage-CTqUXhIp-DXNzQf7Z.js +0 -1
  267. package/dist/assets/MagicLinkDomesticWireDetailsPage-Dn7zRSmC-BxWp8jFf.js +0 -1
  268. package/dist/assets/MagicLinkInternationalWireDetailsPage-BP3vdY52-qhkrhNCj.js +0 -1
  269. package/dist/assets/MailingDetailsSection-DKs9SGYB-DrREfI80.js +0 -21
  270. package/dist/assets/PandLWithForecastPage-GOxiUR2j-C-ak3I_k.js +0 -107
  271. package/dist/assets/StatementItem-DeYhvD3S-D2y3sY45.js +0 -31
  272. package/dist/assets/VendorACHDetailsPage-DLY7vm1r-B9tUnjc_.js +0 -1
  273. package/dist/assets/VendorInternationalWireSwiftDetailsPage-XKp9TJ4g-_ofC4l4D.js +0 -1
  274. package/dist/assets/mapLoadingInProgressToTreeNode-BNip5yf2-DdUiAptt.js +0 -1
  275. package/dist/assets/mapSpacerToTreeNode-D950gQIm-B1jS0Sxi.js +0 -1
  276. package/dist/assets/mapTimeframeBalancesToTreeNode-BwoNhSxI-DMiy9TSZ.js +0 -1
  277. package/dist/assets/mapTimeframeBalancesToTreeNode-CpO1mQ6n-CGqZlkwx.js +0 -1
  278. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-tLFl9PXK-DzfqC0pd.js +0 -1
  279. package/dist/assets/toCOABalancesWithID-B6AaIKKE-7gBQPg3T.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He,p as Le,aN as ze,y as u,bA as qe,k as Ne,ac as Me,fq as H,dL as Ge,fr as Je,bv as Ze,dB as Ke,bR as Xe,fs as Ye,aP as Qe,o as z,ft as et,c as a,al as tt,bI as it}from"./index-D8PMCh18.js";import{a as m}from"./sentry-gJCFOenX.js";import{n as b}from"./mui-8c7TTPte.js";import{bJ as nt}from"./zeni-epic-state-B6kYb9qr.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-CVb-0jqF-DsW1DeW-.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="1e4ae738-a9fe-410e-bd84-086040263529",e._sentryDebugIdIdentifier="sentry-dbid-1e4ae738-a9fe-410e-bd84-086040263529")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:q,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=De(),i=Oe(),[A,S]=m.useState(!1),N=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:B,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,j=E(f),J=E(P.fetchState),Z=E(D.fetchState),K=E(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>L(e),[e]),values:L(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&j==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||Z==="In-Progress"&&D.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&w.reset(L(e))},[j,f,w,e,Z,D.fetchState,K,O.fetchState]);const Be=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),je=async(x,F)=>{const o=F[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=M.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>je(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Ve,{billPaySetup:l}=Fe.billPay,$=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=$?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=k.mode==="light"?new X(k.colors.brandColorJadeLight):new X(k.colors.brandColorJadeDark),_e=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:N,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:N,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...w,children:t.jsx("form",{id:Q(Y),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:M,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:B.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:B.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:B.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),$&&!R&&B.length>0?t.jsx(Qe,{formId:Q(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(et,{isFooterRendered:$&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
1
+ import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He,p as Le,aN as ze,y as u,bA as qe,k as Ne,ac as Me,fq as H,dL as Ge,fr as Je,bv as Ze,dB as Ke,bR as Xe,fs as Ye,aP as Qe,o as z,ft as et,c as a,al as tt,bI as it}from"./index-B6Om0Agf.js";import{a as m}from"./sentry-yju9hmuU.js";import{n as y}from"./mui-C6XKQL2c.js";import{bJ as nt}from"./zeni-epic-state-ag00jsAo.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-B37gdjRF-Dp2vDOBj.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="981e7d2c-ffd2-42f0-9997-ea0407e160a9",e._sentryDebugIdIdentifier="sentry-dbid-981e7d2c-ffd2-42f0-9997-ea0407e160a9")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:b,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:q,onClickMenuIcon:ye,onInternationPaymentSetUpClick:be,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=De(),i=Oe(),[A,S]=m.useState(!1),N=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:M}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:B,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,j=E(f),J=E(P.fetchState),Z=E(D.fetchState),K=E(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>L(e),[e]),values:L(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&j==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||Z==="In-Progress"&&D.fetchState==="Completed"||K==="In-Progress"&&O.fetchState==="Completed")&&w.reset(L(e))},[j,f,w,e,Z,D.fetchState,K,O.fetchState]);const Be=w.handleSubmit(x=>{b.trackEnableBillPay(),me()}),je=async(x,F)=>{const o=F[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=M.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&b.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>je(o,F))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&q()},[q,J,P.fetchState]);const{commonSetUp:Ve,spendManagement:Fe}=Ue.getLocalizedStrings(),{setUp:r}=Ve,{billPaySetup:l}=Fe.billPay,$=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Ee=$?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",V=k.mode==="light"?new X(k.colors.brandColorJadeLight):new X(k.colors.brandColorJadeDark),_e=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:N,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":ze("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(qe,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:N,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(rt,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Me,{...w,children:t.jsx("form",{id:Q(Y),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:M,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},analytics:b,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:B.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:B.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:B.length>0?Ie:void 0})]})})}),s===!0?t.jsx(H,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:V},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&b.trackEnableIntlWire(ie),be?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),$&&!R&&B.length>0?t.jsx(Qe,{formId:Q(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(et,{isFooterRendered:$&&!R,meetingUrl:C,analytics:b,productType:"bill_pay"})]})},at=y.div``,lt=y.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -6,14 +6,14 @@ import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He
6
6
  background-color: ${e=>e.theme.colors.grey4};
7
7
  height: 100vh;
8
8
  overflow-y: auto;
9
- `,ct=b(it)`
9
+ `,ct=y(it)`
10
10
  width: ${z.sp3};
11
11
  height: ${z.sp3};
12
12
  color: ${e=>e.theme.colors.hero};
13
13
  &:hover {
14
14
  color: ${e=>e.theme.colors.primary};
15
15
  }
16
- `,st=b(tt)`
16
+ `,st=y(tt)`
17
17
  color: ${e=>e.theme.colors.hero};
18
18
  display: flex;
19
19
  justify-content: center;
@@ -21,13 +21,13 @@ import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He
21
21
  padding-top: ${e=>n.subTitlePaddingTop.valuePx(e.windowSize)};
22
22
  padding-bottom: ${e=>n.subTitlePaddingBottom.valuePx(e.windowSize)};
23
23
  text-align: ${e=>e.windowSize==="small"?"initial":"center"};
24
- `,dt=b.div`
24
+ `,dt=y.div`
25
25
  display: flex;
26
26
  justify-content: flex-start;
27
27
  flex-direction: column;
28
28
  align-items: center;
29
29
  row-gap: ${e=>n.setupDetailsRowGap.valuePx(e.windowSize)};
30
- `,rt=b.div`
30
+ `,rt=y.div`
31
31
  display: flex;
32
32
  width: 100%;
33
33
  height: calc(100vh - 110px);
@@ -35,7 +35,7 @@ import{d as De,q as Oe,aO as E,a9 as $e,cC as Re,F as Ue,aT as X,V as t,f7 as He
35
35
  justify-content: center;
36
36
  align-items: center;
37
37
  background-color: ${e=>e.theme.colors.grey4};
38
- `,ut=b.div`
38
+ `,ut=y.div`
39
39
  display: flex;
40
40
  flex-direction: column;
41
41
  row-gap: ${e=>n.sectionRowGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{d as we,q as be,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ie,k as Ae,ac as ve,bv as ke,cD as je,aP as De,o as s,hI as Te,eV as Ve,eW as $e,c as x,al as Be,gR as Ee,p as ze,R as Le}from"./index-D8PMCh18.js";import{a as R}from"./sentry-gJCFOenX.js";import{n as r}from"./mui-8c7TTPte.js";import{M as Oe,o as W,t as Me}from"./PaymentAccountSetupBillingAddressSection-BIxsEOJG-B4rGOs0i.js";import{F as _e}from"./SetUpAccountSection-D8PGmPML-Bzhtk2nI.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./zeni-epic-state-B6kYb9qr.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";import"./commonTypes-DBWmGaRi-DbYfiAyn.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]="e389e364-5323-4092-a10c-eae151c00c50",e._sentryDebugIdIdentifier="sentry-dbid-e389e364-5323-4092-a10c-eae151c00c50")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},F="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:q,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:D,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:H(i),values:H(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(G)}),$=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=Ve(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:$e(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=b.mode==="light"?new 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:W(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(L).name}),color:new j(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=R.useState(!1);return t.jsxs(Fe,{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(We,{windowSize:o,children:[t.jsx(He,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:U(F),onSubmit:pe,children:t.jsxs(qe,{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:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:D,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),je(f.formState.dirtyFields)?t.jsx(De,{formId:U(F),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:$?.fetchState==="In-Progress",isDisabled:$?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:D,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},H=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},We=r.div`
1
+ import{d as Se,q as we,a9 as Ce,cC as Pe,aT as j,F as xe,V as t,y as P,bA as Ie,k as Ae,ac as ve,bv as ke,cD as je,aP as De,o as s,hI as Te,eV as Ve,eW as $e,c as x,al as Be,gR as Ee,p as ze,R as Le}from"./index-B6Om0Agf.js";import{a as R}from"./sentry-yju9hmuU.js";import{n as r}from"./mui-C6XKQL2c.js";import{M as Oe,o as W,t as Me}from"./PaymentAccountSetupBillingAddressSection-Dnw0APJu-DFVf9SKl.js";import{F as _e}from"./SetUpAccountSection-CerAAia_-BvPxgY0Z.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./zeni-epic-state-ag00jsAo.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";import"./commonTypes-ByC4Sd87-P4qhDabt.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]="cb42d7ec-6795-48bb-a5a4-05b3979ef89e",e._sentryDebugIdIdentifier="sentry-dbid-cb42d7ec-6795-48bb-a5a4-05b3979ef89e")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},F="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:q,stripeKey:K,googleAPIKey:N,companyId:G,onUpdateAccountClick:J,onFetchLinkTokenClick:Q,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:D,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const w=Se(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:H(i),values:H(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(G)}),$=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=Ve(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:$e(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&J(g.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const B=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:W(L).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:W(L).name}),color:new j(B)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,be]=R.useState(!1);return t.jsxs(Fe,{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(We,{windowSize:o,children:[t.jsx(He,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Je,{children:t.jsx("form",{id:U(F),onSubmit:pe,children:t.jsxs(qe,{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:Q,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Z,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(ke,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:B},analytics:e,productType:"billing",updateCardPaymentModalState:D,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),je(f.formState.dirtyFields)?t.jsx(De,{formId:U(F),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:$?.fetchState==="In-Progress",isDisabled:$?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:D,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:q.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:be})]})},H=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},We=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{V as v,cn as V,co as W,cp as M,k4 as q,aW as z,F as G}from"./index-D8PMCh18.js";import{a as f}from"./sentry-gJCFOenX.js";import{Gd as K}from"./zeni-epic-state-B6kYb9qr.js";import{u as Q}from"./ReviewOverlay-tGj059Ib-BKVdx9g4.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./mui-8c7TTPte.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.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]="1bf348a0-6a7c-4cbc-9160-d925f9b4c8db",e._sentryDebugIdIdentifier="sentry-dbid-1bf348a0-6a7c-4cbc-9160-d925f9b4c8db")}catch{}})();const{common:s,spendManagement:{billPay:x}}=G.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,y]=f.useState(!1),[n,b]=f.useState(P(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[w,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{b(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&b(P(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),y(!0)},F={onOkClick:d=>{y(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{y(!1)}},{title:N,description:A}=H(m,h,R,p),T=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:T?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:T?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:w.title}),descriptionComponent:v.jsx(W,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(Q,{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:T}})]})},P=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&K(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...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,y=r>1,n=l>1;let b="",p="";return e==="Completed"&&!t?(b=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",y?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}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
1
+ import{V as f,cn as V,co as W,cp as M,k4 as q,aW as z,F as G}from"./index-B6Om0Agf.js";import{a as b}from"./sentry-yju9hmuU.js";import{Gd as K}from"./zeni-epic-state-ag00jsAo.js";import{u as Q}from"./ReviewOverlay-DqOXHkMM-jjjTXZU9.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./mui-C6XKQL2c.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.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]="056d859a-f5d2-4e1d-9d40-5ce6fd6a86da",e._sentryDebugIdIdentifier="sentry-dbid-056d859a-f5d2-4e1d-9d40-5ce6fd6a86da")}catch{}})();const{common:s,spendManagement:{billPay:x}}=G.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,y]=b.useState(!1),[n,v]=b.useState(P(e,u)),[p,k]=b.useState(u),[B,E]=b.useState(0),[w,j]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(P(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),y(!0)},F={onOkClick:d=>{y(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{y(!1)}},{title:N,description:A}=H(m,h,R,p),T=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:T?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:T?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 f.jsxs(f.Fragment,{children:[C?f.jsx(V,{titleComponent:f.jsx(M,{children:w.title}),descriptionComponent:f.jsx(W,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{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:T}})]})},P=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&K(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...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,y=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",y?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{q as l,V as s,aN as b,o as e}from"./index-D8PMCh18.js";import{n as a}from"./mui-8c7TTPte.js";import{o as p}from"./commonDimensions-uDLC8oOH-0Au8IFVq.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]="03fcc4b5-091b-4cec-870e-b4a738c64aa9",o._sentryDebugIdIdentifier="sentry-dbid-03fcc4b5-091b-4cec-870e-b4a738c64aa9")}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(c,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(u,{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{q as l,V as s,aN as b,o as e}from"./index-B6Om0Agf.js";import{n as a}from"./mui-C6XKQL2c.js";import{o as p}from"./commonDimensions-IG4iGJ-6-D0-edPu2.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]="e85374cb-6e26-42d0-bef3-c3b65a6e6ab9",o._sentryDebugIdIdentifier="sentry-dbid-e85374cb-6e26-42d0-bef3-c3b65a6e6ab9")}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)};
@@ -26,7 +26,7 @@ import{q as l,V as s,aN as b,o as e}from"./index-D8PMCh18.js";import{n as a}from
26
26
  &:hover {
27
27
  border-bottom-width: 1px;
28
28
  }
29
- `,c=a(n)`
29
+ `,u=a(n)`
30
30
  display: flex;
31
31
  border-top-width: 0.5px;
32
32
  border-right-width: 1px;
@@ -39,7 +39,7 @@ import{q as l,V as s,aN as b,o as e}from"./index-D8PMCh18.js";import{n as a}from
39
39
  &:hover {
40
40
  border-top-width: 1px;
41
41
  }
42
- `,u=a(n)`
42
+ `,x=a(n)`
43
43
  display: flex;
44
44
  border-radius: ${e.sp0};
45
45
  border-top-width: 0.5px;
@@ -1,4 +1,4 @@
1
- import{d as ct,q as dt,aO as Te,V as i,ae as W,a9 as pt,cQ as ut,ay as mt,cC as ft,aW as Oe,aM as ve,g6 as yt,n as ht,bA as gt,aN as St,cD as xt,cn as wt,co as bt,cp as Ct,k as Dt,ac as Tt,aP as Ot,o as r,y as F,am as Pe,F as Ve,g7 as vt,fu as Ie,eV as It,a as kt,L as $t,al as Le,R as Nt,M as jt,c as k}from"./index-D8PMCh18.js";import{a as P}from"./sentry-gJCFOenX.js";import{n as d}from"./mui-8c7TTPte.js";import{EN as Ft,bi as G}from"./zeni-epic-state-B6kYb9qr.js";import{n as Pt,z as Vt}from"./CompanyOfficerDetailsSection-C4rN7mXr-DGQrC1mq.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";import"./LabeledAddressValueField-B_N4O3Mv-CPUPG_5z.js";import"./LabeledCountryMultiSelectField-BCYMtV4j-BKgMFZkq.js";import"./LabeledCreatableSingleSelectField-Dm03LVdQ-hgzKVxJf.js";import"./LabeledDocumentField-CWqz_jSU-RG8yAT0I.js";import"./LabeledMultiSelectField-C9feGqHN-USGYCM7x.js";import"./commonTypes-DBWmGaRi-DbYfiAyn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="8bd6c34b-cc68-420a-b5a2-d73f828798eb",e._sentryDebugIdIdentifier="sentry-dbid-8bd6c34b-cc68-420a-b5a2-d73f828798eb")}catch{}})();const S={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,k[3]),subTitlePaddingBottom:new F(k[3],k[3]),verificationDetailsRowGap:new F(12,k[5],k[5]),termsPaddingLeftRight:new F(k[0],k[3])},Lt={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",D="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:At,currency:$e,footer:Ne,strings:{empty:_t}}}=Ve.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:x,verficationDetailsFetchState:$,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:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Je=Te(R.fetchState),M=A?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="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,[Ye,Q]=P.useState(!1),[U,re]=P.useState("save"),[X,Ze]=P.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,V,E,x)}),{isValid:He}=m.formState,J=A?.company.company.companyBillPayInfo,K=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,O=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),v=`Officer_${O<0?1:O+1}`,et=()=>{const t=b[v],n=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,C=t?.firstName,I=t?.lastName,pe=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,me=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,Se=l?.phone,xe=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&&Se!=null&&xe!=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:Se,website:xe.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||Y!=null&&Y?.length>0)return m.trigger(`${T}.${O<0?0:O}.email`,{shouldFocus:!0}),!1;return!0},it=m.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&b[v]?.isPhoneVerified!==!0){m.setError(`${T}.${O}.phone`,{type:"custom"});return}const t=ut(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ft(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Qe?.())}),st=async(t,n)=>{t.includes(D)?Me?.(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),Y=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{Q(!1),L();const t=[],n=A?.company.company.incInfo.fileIds??[];m.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||t.push(c)}),ot?.forEach((c,f)=>{const C=c?.fileIds??[];m.getValues(`${T}.${f}.fileIds`).forEach(I=>{C.includes(I)||t.push(I)})}),t.length!==0&&Ue?.(t)},onCancelClick:()=>{Q(!1)}},lt=Oe(ve(u),u,$e.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Ht,{children:[i.jsxs(ea,{children:[i.jsx(yt,{}),i.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Oe(ve(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.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:()=>{xt(m.formState.dirtyFields)?Q(!0):L()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?i.jsx(aa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!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(Mt,{windowSize:p,children:[(!h||w===!1)&&i.jsx(Rt,{windowSize:p,children:o?At.infoText.businessVerification:a.title}),$==="In-Progress"||$==="Not-Started"?i.jsx(Ut,{children:i.jsx(Dt,{size:"ExtraLarge",start:!0})}):i.jsx(Tt,{...m,children:i.jsxs("form",{id:je(ke),onSubmit:it,children:[h&&w===!0&&i.jsxs(zt,{children:[i.jsxs(Qt,{windowSize:p,children:[i.jsx(Xt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Jt,{children:i.jsxs(Kt,{children:[i.jsx(Fe,{}),de&&i.jsx(Fe,{}),i.jsx(Yt,{})]})})]}),i.jsx(Ae,{isReadonly:Z,children:a.verifyBusinessDetailsDescription})]}),i.jsxs(Wt,{children:[i.jsx(Pt,{companyOfficerData:b,allNationalityCountries:x,allOfficers:Y??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,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:M,allIndustries:V,allNationalityCountries:x})]}),y==="zeni_accounts"?i.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?i.jsx(Ot,{formId:je(ke),primaryBtn:{label:w?Ne.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?S.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?S.width.valuePx(p):"auto",paddingLeft:S.termsPaddingLeftRight.valuePx(p),paddingRight:S.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:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)L();else{const t=b[v],n=l?.primaryContactLocalData;U!=="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:Ke,style:{padding:`12px ${r.sp3}`,zIndex:X?0:4}}):null]})},Bt=(e,x,$,_)=>{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:x?.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:$?.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{d as ct,q as dt,aO as Te,V as i,ae as W,a9 as pt,cQ as ut,ay as mt,cC as ft,aW as Oe,aM as ve,g6 as yt,n as ht,bA as gt,aN as St,cD as xt,cn as wt,co as bt,cp as Ct,k as Dt,ac as Tt,aP as Ot,o as r,y as F,am as Pe,F as Ve,g7 as vt,fu as Ie,eV as It,a as kt,L as $t,al as Le,R as Nt,M as jt,c as k}from"./index-B6Om0Agf.js";import{a as P}from"./sentry-yju9hmuU.js";import{n as d}from"./mui-C6XKQL2c.js";import{EN as Ft,bi as G}from"./zeni-epic-state-ag00jsAo.js";import{n as Pt,z as Vt}from"./CompanyOfficerDetailsSection-CMl5cDNs-DXQkvQJO.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";import"./LabeledAddressValueField-D0Ow_UPE-BHdlfsNf.js";import"./LabeledCountryMultiSelectField-CJud_Lwc-Sf4MZhvZ.js";import"./LabeledCreatableSingleSelectField-Dqt1M07c-CNB-6Gh3.js";import"./LabeledDocumentField-D2n9ry_0-Cul5QuOh.js";import"./LabeledMultiSelectField-DH6iG4SR-CYpPK-Cw.js";import"./commonTypes-ByC4Sd87-P4qhDabt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="ddc51ce6-1b2a-4196-8b48-d9415100b3d7",e._sentryDebugIdIdentifier="sentry-dbid-ddc51ce6-1b2a-4196-8b48-d9415100b3d7")}catch{}})();const S={width:new F(343,580,726),titleWidth:new F(343,580,726,826),subTitlePaddingTop:new F(12,k[3]),subTitlePaddingBottom:new F(k[3],k[3]),verificationDetailsRowGap:new F(12,k[5],k[5]),termsPaddingLeftRight:new F(k[0],k[3])},Lt={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",D="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:a},common:{settings:At,currency:$e,footer:Ne,strings:{empty:_t}}}=Ve.getLocalizedStrings(),ba=({businessVerificationDetails:e,allNationalityCountries:x,verficationDetailsFetchState:$,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:Me,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:oe,onSaveDetailsClick:Ge,onClickMenuIcon:qe,onExecuteTreasuryTransfer:Qe})=>{const Xe=ct(),p=dt(),{updateStatus:R,companyView:A,companyDetailsLocalData:l,companyOfficerLocalData:b}=e,Je=Te(R.fetchState),M=A?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="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,[Ye,Q]=P.useState(!1),[U,re]=P.useState("save"),[X,Ze]=P.useState(!1),m=pt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,V,E,x)}),{isValid:He}=m.formState,J=A?.company.company.companyBillPayInfo,K=A?.company.company.companyTreasuryInfo,j=y==="zeni_treasury"?K?.companyVerificationStatus:J?.companyVerificationStatus,O=Object.values(b).findIndex(t=>t?.isSelectedForVerification===!0),v=`Officer_${O<0?1:O+1}`,et=()=>{const t=b[v],n=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,C=t?.firstName,I=t?.lastName,pe=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,me=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?G(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,Se=l?.phone,xe=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&&Se!=null&&xe!=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:Se,website:xe.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||Y!=null&&Y?.length>0)return m.trigger(`${T}.${O<0?0:O}.email`,{shouldFocus:!0}),!1;return!0},it=m.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&b[v]?.isPhoneVerified!==!0){m.setError(`${T}.${O}.phone`,{type:"custom"});return}const t=ut(Object.values(b).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ft(t.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(v),q===!0&&Qe?.())}),st=async(t,n)=>{t.includes(D)?Me?.(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),Y=ce?.map(t=>t.user),ot=ce?.map(t=>t.role),rt={onOkClick:()=>{Q(!1),L();const t=[],n=A?.company.company.incInfo.fileIds??[];m.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||t.push(c)}),ot?.forEach((c,f)=>{const C=c?.fileIds??[];m.getValues(`${T}.${f}.fileIds`).forEach(I=>{C.includes(I)||t.push(I)})}),t.length!==0&&Ue?.(t)},onCancelClick:()=>{Q(!1)}},lt=Oe(ve(u),u,$e.currencySymbol).toUpperCase(),Z=j?.code==="pending_review"||j?.code==="verified",de=(z?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&j?.code==="pending_review"&&Je==="In-Progress"&&R.fetchState==="Completed"?i.jsxs(Ht,{children:[i.jsxs(ea,{children:[i.jsx(yt,{}),i.jsx(ta,{windowSize:p,children:q===!0?a.submittedTitleWithTransfer:a.submittedTitle}),i.jsx(Zt,{isReadonly:!1,children:q===!0?a.submittedDescriptionWithTransfer.replace("__amount__",Oe(ve(z?.treasuryTransferMoneyLocalData?.amount?.amount??0),z?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.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:()=>{xt(m.formState.dirtyFields)?Q(!0):L()},showBackButton:!o&&!h,showMenuIcon:o?p==="medium-compact"||p==="small":!1,onClickMenuIcon:qe,rightSideComponent:h?i.jsx(aa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ye===!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(Mt,{windowSize:p,children:[(!h||w===!1)&&i.jsx(Rt,{windowSize:p,children:o?At.infoText.businessVerification:a.title}),$==="In-Progress"||$==="Not-Started"?i.jsx(Ut,{children:i.jsx(Dt,{size:"ExtraLarge",start:!0})}):i.jsx(Tt,{...m,children:i.jsxs("form",{id:je(ke),onSubmit:it,children:[h&&w===!0&&i.jsxs(zt,{children:[i.jsxs(Qt,{windowSize:p,children:[i.jsx(Xt,{windowSize:p,children:Z?a.businessVerificationDetails:de?a.verifyBusinessDetails:a.verifyBusinessDetailsWithoutTransfer}),!Z&&i.jsx(Jt,{children:i.jsxs(Kt,{children:[i.jsx(Fe,{}),de&&i.jsx(Fe,{}),i.jsx(Yt,{})]})})]}),i.jsx(Ae,{isReadonly:Z,children:a.verifyBusinessDetailsDescription})]}),i.jsxs(Wt,{children:[i.jsx(Pt,{companyOfficerData:b,allNationalityCountries:x,allOfficers:Y??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,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:M,allIndustries:V,allNationalityCountries:x})]}),y==="zeni_accounts"?i.jsx(Gt,{windowSize:p,children:a.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":J?.businessVerificationStatus?.code!=="pending_review"&&J?.businessVerificationStatus?.code!=="verified")?i.jsx(Ot,{formId:je(ke),primaryBtn:{label:w?Ne.submit:a.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:N!=null},containerStyle:{width:p==="small"?S.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?S.width.valuePx(p):"auto",paddingLeft:S.termsPaddingLeftRight.valuePx(p),paddingRight:S.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:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)L();else{const t=b[v],n=l?.primaryContactLocalData;U!=="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:Ke,style:{padding:`12px ${r.sp3}`,zIndex:X?0:4}}):null]})},Bt=(e,x,$,_)=>{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:x?.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:$?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&N===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},je=e=>`${e}_form`,Et=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{q as m,V as a,F as y,b as w,o as t,R as b,M as x}from"./index-D8PMCh18.js";import{n as o}from"./mui-8c7TTPte.js";import{a as c}from"./sentry-gJCFOenX.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]="9ffdd945-bf34-4731-8418-21e1d35f98d1",e._sentryDebugIdIdentifier="sentry-dbid-9ffdd945-bf34-4731-8418-21e1d35f98d1")}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:r}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:s,styles:l})=>{const f=m(),g=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=p.strings.space+r.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,h=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return a.jsxs(v,{style:l,windowSize:f,forDetailPage:s,className:"cardName",title:`${h}`,children:[g,a.jsx(H,{}),d,n&&!s?a.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?a.jsx(u,{}):null]})},v=o(x)`
1
+ import{q as m,V as a,F as y,b as w,o as t,R as b,M as x}from"./index-B6Om0Agf.js";import{n as o}from"./mui-C6XKQL2c.js";import{a as c}from"./sentry-yju9hmuU.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]="9ffdd945-bf34-4731-8418-21e1d35f98d1",e._sentryDebugIdIdentifier="sentry-dbid-9ffdd945-bf34-4731-8418-21e1d35f98d1")}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:r}}=y.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:s,styles:l})=>{const f=m(),g=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=p.strings.space+r.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,h=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return a.jsxs(v,{style:l,windowSize:f,forDetailPage:s,className:"cardName",title:`${h}`,children:[g,a.jsx(H,{}),d,n&&!s?a.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?a.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{d as j,q as f,V as t,bA as te,fd as z,b as u,b2 as N,bZ as ie,o as i,F as w,p as B,y as h,al as v,dd as oe,c as l,aW as re,aL as T,bP as ae,ai as $,aN as L,jf as X,jg as Z,iW as se,cw as ne,cz as de,am as O,iX as le,iY as ce}from"./index-D8PMCh18.js";import{n as o}from"./mui-8c7TTPte.js";import{G4 as b,bh as he}from"./zeni-epic-state-B6kYb9qr.js";import{S as R,a as V}from"./sentry-gJCFOenX.js";import{q as pe}from"./InsightsSection-hFNVHtei-DFkdhpSF.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-DLR05d4e.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";import"./NavigationDots-DBshnTnS-CFrPftyk.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]="9e912f18-db77-4d15-8788-38dc6614bc3a",e._sentryDebugIdIdentifier="sentry-dbid-9e912f18-db77-4d15-8788-38dc6614bc3a")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=j();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(ke,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(q,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{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{d as j,q as f,V as t,bA as te,fd as z,b as u,b2 as N,bZ as ie,o as i,F as w,p as B,y as h,al as v,dd as oe,c as l,aW as re,aL as T,bP as ae,ai as $,aN as L,jf as X,jg as Z,iW as se,cw as ne,cz as de,am as O,iX as le,iY as ce}from"./index-B6Om0Agf.js";import{n as o}from"./mui-C6XKQL2c.js";import{G4 as b,bh as he}from"./zeni-epic-state-ag00jsAo.js";import{S as R,a as V}from"./sentry-yju9hmuU.js";import{q as pe}from"./InsightsSection-BT0lHMo3-BgjHvnt6.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-CPZsikvb.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";import"./NavigationDots-BZOdXVhR-CfDXOc_R.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]="8c0ee904-0983-4409-ac14-1bf1ade890ac",e._sentryDebugIdIdentifier="sentry-dbid-8c0ee904-0983-4409-ac14-1bf1ade890ac")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=j();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(ke,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(q,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(q,{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
  `,ke=o.div`
@@ -1,4 +1,4 @@
1
- import{d as tt,q as Ie,aw as It,a8 as Lt,gW as wr,hz as ki,aT as Qe,gX as xr,aO as et,V as t,g_ as ji,bA as Ii,c as l,fR as br,aL as Ge,aN as X,o as a,bR as Qt,p as d,F as ke,j0 as Sr,b as _,cn as Li,j1 as Di,f7 as Ai,gM as Ti,j2 as Ei,bD as Fi,bM as yr,aR as ea,j3 as Ri,j4 as $r,j5 as ot,y as T,bI as vr,b9 as ta,g as zi,aS as kr,a_ as Pi,j6 as Mi,j7 as Vi,b6 as aa,ai as ge,ez as Oi,iQ as Hi,u as gt,gZ as jr,cb as Ni,k as mt,b2 as Bi,di as Wi,cr as _i,co as Ui,d1 as Zi,hw as Gi,al as Oe,bT as qi,aX as Wt,j8 as Ra,j9 as Yi,R as za,M as Ir,b8 as Xi,ja as Ji,iK as pt,iV as Ki,i_ as Qi,i$ as eo,dq as Pa,eR as to,n as Lr,cw as Dr,iT as ao,bW as ro,l as Ar,jb as io,av as vt,bZ as Ma,bw as oo,da as no,am as st,gV as so,aq as co,L as lo,bE as ho,jc as Dt,fk as po,jd as Tr,gw as Er,je as jt,ib as Fr,bP as uo,ec as Rr,iW as mo,cz as go,dL as Co,cX as fo,iX as wo,iY as xo,ei as bo,ce as So,cf as yo}from"./index-D8PMCh18.js";import{a as o,S as $o}from"./sentry-gJCFOenX.js";import{n as r,c as we,k as zr}from"./mui-8c7TTPte.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-B6kYb9qr.js";import{k as Io}from"./NavigationDots-DBshnTnS-CFrPftyk.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-BrN1Aye0.js";import{L as _t}from"./lottie-wSb1JmVE.js";import{j as zo}from"./CardNumberSubText-DFO_EKrs-cO_HCGSk.js";import{r as Pr}from"./core-eaZ5MkII.js";import{l as Mr}from"./uploadReceipts-CPw64UYa-B7XOfqVi.js";import{L as Po,z as Mo,k as Vo,P as Oo}from"./LockCardPage-CaIor45t-Dj9ZYRbG.js";import"./liveblocks-CYMGg0Jd.js";import"./recharts-DLR05d4e.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";import"./RoleWithToolTip-BGafXnoE-2tbvzQW2.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]="51d39917-9bf7-4025-acec-847c9601faf4",e._sentryDebugIdIdentifier="sentry-dbid-51d39917-9bf7-4025-acec-847c9601faf4")}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:q}=Mi(),{isAndroidScreen:J}=Vi(),U=It(),D=At(U.loggedInUserRoleMap);return t.jsx(No,{style:p,children:q===!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")}}):J===!0?t.jsx(Jt,{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(Jt,{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)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Bo,{}),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":X("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":X("add-to-apple-wallet-button")})},No=r.div`
1
+ import{d as tt,q as Ie,aw as It,a8 as Lt,gW as wr,hz as ki,aT as Qe,gX as xr,aO as et,V as t,g_ as ji,bA as Ii,c as l,fR as br,aL as Ge,aN as X,o as a,bR as Qt,p as d,F as ke,j0 as Sr,b as _,cn as Li,j1 as Di,f7 as Ai,gM as Ti,j2 as Ei,bD as Fi,bM as yr,aR as ea,j3 as Ri,j4 as $r,j5 as ot,y as T,bI as vr,b9 as ta,g as zi,aS as kr,a_ as Pi,j6 as Mi,j7 as Vi,b6 as aa,ai as ge,ez as Oi,iQ as Hi,u as gt,gZ as jr,cb as Ni,k as mt,b2 as Bi,di as Wi,cr as _i,co as Ui,d1 as Zi,hw as Gi,al as Oe,bT as qi,aX as Wt,j8 as Ra,j9 as Yi,R as za,M as Ir,b8 as Xi,ja as Ji,iK as pt,iV as Ki,i_ as Qi,i$ as eo,dq as Pa,eR as to,n as Lr,cw as Dr,iT as ao,bW as ro,l as Ar,jb as io,av as vt,bZ as Ma,bw as oo,da as no,am as st,gV as so,aq as co,L as lo,bE as ho,jc as Dt,fk as po,jd as Tr,gw as Er,je as jt,ib as Fr,bP as uo,ec as Rr,iW as mo,cz as go,dL as Co,cX as fo,iX as wo,iY as xo,ei as bo,ce as So,cf as yo}from"./index-B6Om0Agf.js";import{a as o,S as $o}from"./sentry-yju9hmuU.js";import{n as r,c as we,k as zr}from"./mui-C6XKQL2c.js";import{EL as At,bh as vo,bf as ko,G3 as jo}from"./zeni-epic-state-ag00jsAo.js";import{k as Io}from"./NavigationDots-BZOdXVhR-CfDXOc_R.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-DJTDRQKQ.js";import{L as _t}from"./lottie-DQjCP4UK.js";import{j as zo}from"./CardNumberSubText-ByPbO0F8-NoIjeblD.js";import{r as Pr}from"./core-BPFYe8Fp.js";import{l as Mr}from"./uploadReceipts-CPw64UYa-DbLoTUL7.js";import{L as Po,z as Mo,k as Vo,P as Oo}from"./LockCardPage-BMt1zujT-CFeVzpTL.js";import"./liveblocks-DWNROPS5.js";import"./recharts-CPZsikvb.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";import"./RoleWithToolTip-BYuFXi4d-BXj5hmHZ.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]="28c18dbc-4095-42a0-8960-8f62dce3877c",e._sentryDebugIdIdentifier="sentry-dbid-28c18dbc-4095-42a0-8960-8f62dce3877c")}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:q}=Mi(),{isAndroidScreen:J}=Vi(),U=It(),D=At(U.loggedInUserRoleMap);return t.jsx(No,{style:p,children:q===!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")}}):J===!0?t.jsx(Jt,{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(Jt,{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)}})]})})},Jt=({onClick:e})=>{const i=tt();return t.jsx(Lr,{prefixIcon:t.jsx(Bo,{}),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":X("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":X("add-to-apple-wallet-button")})},No=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,aO as z,aw as er,fQ as tr,iK as W,q as Ee,o as a,d as ta,V as t,bA as ar,g2 as rr,fd as ie,b as D,bR as nt,p,aL as me,aN as V,aW as st,F as Fe,y as H,ai as q,R as ir,M as or,cU as nr,at as aa,bI as sr,a_ as ct,aR as dr,am as lt,a9 as cr,gP as lr,eo as ur,ao as hr,ac as mr,g8 as pr,n as Nt,c as _,d3 as ra,aq as Cr,al as gr,a as br,cT as fr,bu as xr,bT as yr}from"./index-D8PMCh18.js";import{a as l}from"./sentry-gJCFOenX.js";import{n as r,c as ut,k as Sr}from"./mui-8c7TTPte.js";import{EL as wr,G2 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-B6kYb9qr.js";import{t as vr}from"./SpendManagementSection-CXYhrJSF-DegWG-xT.js";import{D as oe,l as jr,r as Lr}from"./ChargeCardListTable-scY11ryy-DiQBQtP0.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-CPURUrkI-B12CNYfn.js";import{N as Pr,J as Er}from"./PromoBaseCards-DiKj0_oo-Cd0BSFVK.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-CaIor45t-Dj9ZYRbG.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-CxQSQ7nM.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-3vc9ELkd.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";import"./Menu-DWx47kcG-DbhvsdcT.js";import"./RoleWithToolTip-BGafXnoE-2tbvzQW2.js";import"./CardNumberSubText-DFO_EKrs-cO_HCGSk.js";import"./NavigationDots-DBshnTnS-CFrPftyk.js";import"./usp-line-BBd1wKwW-BI2SMRc4.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]="dfc0bc78-f7af-40d7-abf4-a158e9f99084",e._sentryDebugIdIdentifier="sentry-dbid-dfc0bc78-f7af-40d7-abf4-a158e9f99084")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),A=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:A,children:[t.jsxs(na,{children:[A?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),A?null:t.jsx(Jr,{children:n})]}),!A&&t.jsxs(qr,{children:[t.jsx(Kr,{}),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(Yr,{})]}),U!=null&&A?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Xr,{isStatusMode:A,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Qr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
1
+ import{a8 as Za,aO as z,aw as er,fQ as tr,iK as W,q as Ee,o as a,d as ta,V as t,bA as ar,g2 as rr,fd as ie,b as D,bR as nt,p,aL as me,aN as V,aW as st,F as Fe,y as H,ai as q,R as ir,M as or,cU as nr,at as aa,bI as sr,a_ as ct,aR as dr,am as lt,a9 as cr,gP as lr,eo as ur,ao as hr,ac as mr,g8 as pr,n as Nt,c as _,d3 as ra,aq as Cr,al as gr,a as br,cT as fr,bu as xr,bT as yr}from"./index-B6Om0Agf.js";import{a as l}from"./sentry-yju9hmuU.js";import{n as r,c as ut,k as Sr}from"./mui-C6XKQL2c.js";import{EL as wr,G2 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-ag00jsAo.js";import{t as vr}from"./SpendManagementSection-Bcex-9e7-BcTlnTQw.js";import{D as oe,l as jr,r as Lr}from"./ChargeCardListTable-bTR8Mmj4-OJHIEg6M.js";import{ChargeCardPromoUserContent as Ar}from"./ChargeCardPromoPage-BUGGPnco-Gkf99GV0.js";import{N as Pr,J as Er}from"./PromoBaseCards-CbPywvj2-1eQh0qml.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-BMt1zujT-CFeVzpTL.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-Bkxol6JE.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-rNeD8cA8.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";import"./Menu-TzNY4ajT-Bc5fvTOh.js";import"./RoleWithToolTip-BYuFXi4d-BXj5hmHZ.js";import"./CardNumberSubText-ByPbO0F8-NoIjeblD.js";import"./NavigationDots-BZOdXVhR-CfDXOc_R.js";import"./usp-line-BBd1wKwW-BKD4OxLr.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]="07d7aecd-c9e2-4a2c-ae04-bbb730c5d0eb",e._sentryDebugIdIdentifier="sentry-dbid-07d7aecd-c9e2-4a2c-ae04-bbb730c5d0eb")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),A=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:A,children:[t.jsxs(na,{children:[A?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),A?null:t.jsx(Jr,{children:n})]}),!A&&t.jsxs(qr,{children:[t.jsx(Kr,{}),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(Yr,{})]}),U!=null&&A?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Xr,{isStatusMode:A,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Qr,{isStatusMode:A,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,d as ze,gW as hi,iL as pi,iM as ui,iN as mi,aP as gi,o as i,aN as X,ck as xi,b as Be,p as I,b2 as wi,cr as Ci,iO as fi,iP as yi,bR as ye,bM as Si,aR as ki,y as C,ez as vi,b9 as $i,iQ as ji,aS as bi,u as Ii,ai as ee,gZ as Li,am as G,al as Z,c as p,cP as zi,ex as Ai,iR as Fi,iS as Pi,R as ft,bW as yt,iT as St,iU as Ri,bP as Bi,cw as Ge,iV as kt,dq as Di,dr as q,aL as ce,ct as vt,k as $t,iW as _i,cz as Ei,iD as Ze,bI as jt,bK as bt,iX as Ti,iY as Vi,aT as $e,bs as Oi,bX as Ui,bY as Ni,iZ as Mi}from"./index-D8PMCh18.js";import{S as pe,a as f}from"./sentry-gJCFOenX.js";import{n as o,c as Je}from"./mui-8c7TTPte.js";import{P as Ve}from"./Menu-DWx47kcG-DbhvsdcT.js";import{T as It}from"./RoleWithToolTip-BGafXnoE-2tbvzQW2.js";import{j as Oe}from"./CardNumberSubText-DFO_EKrs-cO_HCGSk.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]="f61db08b-f899-4d78-8312-dcea89662b29",e._sentryDebugIdIdentifier="sentry-dbid-f61db08b-f899-4d78-8312-dcea89662b29")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ye={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Qe,width:new C(0,0),value:Wi},Ye,et,tt,it,ot]:[Qe,Ye,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")},Xi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(V)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":X("card-row",a.id),children:t.jsxs(Yi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[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:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[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":X("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[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&&F&&R(!0)},onMouseLeave:()=>{F&&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&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(Z)`
1
+ import{cb as ni,V as t,a9 as li,ac as di,F as le,q as ie,aw as Se,a8 as ci,d as ze,gW as hi,iL as pi,iM as ui,iN as mi,aP as gi,o as i,aN as X,ck as xi,b as Be,p as I,b2 as wi,cr as Ci,iO as fi,iP as yi,bR as ye,bM as Si,aR as ki,y as C,ez as vi,b9 as $i,iQ as ji,aS as bi,u as Ii,ai as ee,gZ as Li,am as G,al as Z,c as p,cP as zi,ex as Ai,iR as Fi,iS as Pi,R as ft,bW as yt,iT as St,iU as Ri,bP as Bi,cw as Ge,iV as kt,dq as Di,dr as q,aL as ce,ct as vt,k as $t,iW as _i,cz as Ei,iD as Ze,bI as jt,bK as bt,iX as Ti,iY as Vi,aT as $e,bs as Oi,bX as Ui,bY as Ni,iZ as Mi}from"./index-B6Om0Agf.js";import{S as pe,a as f}from"./sentry-yju9hmuU.js";import{n as o,c as Je}from"./mui-C6XKQL2c.js";import{P as Ve}from"./Menu-TzNY4ajT-Bc5fvTOh.js";import{T as It}from"./RoleWithToolTip-BYuFXi4d-BXj5hmHZ.js";import{j as Oe}from"./CardNumberSubText-ByPbO0F8-NoIjeblD.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]="c6e57c0e-8665-4f7a-82d3-27c750b135de",e._sentryDebugIdIdentifier="sentry-dbid-c6e57c0e-8665-4f7a-82d3-27c750b135de")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Ye={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Qe,width:new C(0,0),value:Wi},Ye,et,tt,it,ot]:[Qe,Ye,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")},Xi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,F=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,A=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(V)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":X("card-row",a.id),children:t.jsxs(Yi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:A[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:A[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:A[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[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":X("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:A[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:A[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&&F&&R(!0)},onMouseLeave:()=>{F&&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&&F:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Ae=>{b||m(Ae)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(Z)`
2
2
  color: inherit;
3
3
  `,fe=o(Z)`
4
4
  color: ${I.important};
@@ -1,4 +1,4 @@
1
- import{a8 as ze,aw as Re,q as H,d as F,V as t,bA as Ie,b as I,g2 as Te,F as T,c as l,o as i,y as x,jh as De,cb as Ae,ji as G,aN as B,b2 as Be,cr as Me,iO as Oe,bM as Ne,aR as He,al as W,dr as j,gU as Z,aL as V,bR as We,ct as Ee,bP as Ke,am as N,cw as Q,p as $,gV as pe,fM as me,fI as ge,cg as Ve,ai as _,iD as ue,bK as Fe,jj as _e,iW as Ue,cz as Ye,aT as z,iX as Ze,iY as qe}from"./index-D8PMCh18.js";import{a as S,S as q}from"./sentry-gJCFOenX.js";import{n,c as J}from"./mui-8c7TTPte.js";import{t as Xe}from"./SpendManagementSection-CXYhrJSF-DegWG-xT.js";import{r as Ge,a as Qe,i as ye,g as Je}from"./SpendManagementListViewPage-B-EbBpvJ-D4QvSWNX.js";import{ck as xe,G5 as fe}from"./zeni-epic-state-B6kYb9qr.js";import{r as et}from"./auto-transfer-rule-mbafm5D3-c21rRbXN.js";import"./liveblocks-CYMGg0Jd.js";import"./core-eaZ5MkII.js";import"./recharts-DLR05d4e.js";import"./lottie-wSb1JmVE.js";import"./analytics-zyQYZvSc.js";import"./lexical-DZqbjlo3.js";import"./utils-BoH8rMdz.js";import"./StatusSwitcher-CfBOEbYV-BG_Psc8-.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]="29900a5f-90f6-4d50-ab10-7d56bb98cb8c",e._sentryDebugIdIdentifier="sentry-dbid-29900a5f-90f6-4d50-ab10-7d56bb98cb8c")}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],P={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(Ze,qe)};function st({companyNameSticky:e,sortConfig:o,onColumnSortConfigChanged:c}){const a=F(),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(Ke,{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":B("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(Q,{})})})]})]}):t.jsx(dt,{windowSize:r,children:t.jsx(lt,{children:d.map(s=>s.width.value(r)!==0&&t.jsxs(ht,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:r,children:[t.jsxs(xt,{onClick:()=>y(s.key,s.sortOrder),"data-testid":B("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(Q,{})})})]}),t.jsx(yt,{sortDataValue:o.sortKey,windowSize:r,isVisible:o.sortKey===s.key&&!(o.sortKey==="paymentDate"&&o.sortOrder==="ascending"),children:t.jsx(pt,{onClick:()=>y("paymentDate","ascending"),"data-testid":B("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,q as H,d as F,V as t,bA as Ie,b as I,g2 as Te,F as T,c as l,o as i,y as x,jh as De,cb as Ae,ji as G,aN as B,b2 as Be,cr as Me,iO as Oe,bM as Ne,aR as He,al as W,dr as j,gU as Z,aL as V,bR as We,ct as Ee,bP as Ke,am as N,cw as Q,p as $,gV as pe,fM as me,fI as ge,cg as Ve,ai as _,iD as ue,bK as Fe,jj as _e,iW as Ue,cz as Ye,aT as z,iX as Ze,iY as qe}from"./index-B6Om0Agf.js";import{a as S,S as q}from"./sentry-yju9hmuU.js";import{n,c as J}from"./mui-C6XKQL2c.js";import{t as Xe}from"./SpendManagementSection-Bcex-9e7-BcTlnTQw.js";import{r as Ge,a as Qe,i as ye,g as Je}from"./SpendManagementListViewPage-BL77zVeL-BdHlBBto.js";import{ck as xe,G5 as fe}from"./zeni-epic-state-ag00jsAo.js";import{r as et}from"./auto-transfer-rule-mbafm5D3-_-2LojGH.js";import"./liveblocks-DWNROPS5.js";import"./core-BPFYe8Fp.js";import"./recharts-CPZsikvb.js";import"./lottie-DQjCP4UK.js";import"./analytics-COhRzxPT.js";import"./lexical-acVZWmws.js";import"./utils-B5xU1y4i.js";import"./StatusSwitcher-Cw0Sq3bY-BbChaknS.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]="a28f5c74-b54b-4d0f-b9f0-27ba389a3ec8",e._sentryDebugIdIdentifier="sentry-dbid-a28f5c74-b54b-4d0f-b9f0-27ba389a3ec8")}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],P={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(Ze,qe)};function st({companyNameSticky:e,sortConfig:o,onColumnSortConfigChanged:c}){const a=F(),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(Ke,{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":B("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(Q,{})})})]})]}):t.jsx(dt,{windowSize:r,children:t.jsx(lt,{children:d.map(s=>s.width.value(r)!==0&&t.jsxs(ht,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:r,children:[t.jsxs(xt,{onClick:()=>y(s.key,s.sortOrder),"data-testid":B("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(Q,{})})})]}),t.jsx(yt,{sortDataValue:o.sortKey,windowSize:r,isVisible:o.sortKey===s.key&&!(o.sortKey==="paymentDate"&&o.sortOrder==="ascending"),children:t.jsx(pt,{onClick:()=>y("paymentDate","ascending"),"data-testid":B("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;