@zeniai/web-cockpit-ui 1.15.21-qa → 1.15.22-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-D-0onfNp-E7lR7f-M.js → ACHDetailsPage-CZfTXGMr-CI17UjpU.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BtDm0Ze4-DI8MiByN.js → AIPerformancePage-CpfWdGaC-ATsa9xZL.js} +12 -12
  3. package/dist/assets/AccountInfoPage-BUVWxmzs-DGCzo4Ay.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-DO-wTXIZ-DQS9MELG.js → AccountInfoPageContent-CYZIBmtA-BtadN1-Z.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BQyFAsoa-pQ3h0lXW.js → AccountLockedInfoModal-BFBjEOzC-D3uFLbPe.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DQ9qT2fa-C1bnZFHI.js → AccountReconDetailsDrawerPage-DSFCBgAM-DDHgP1in.js} +1 -1
  7. package/dist/assets/{AccountRow-CGDnBStW-B42Txz2t.js → AccountRow-Gn7g3D_F-BNs1BGkk.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-D8FXXEQ--rM_RHfIq.js → AccountsPromoCardStack-DOMli4-L-Bxo_NE7N.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CaymaAix-u96N6Qzo.js → AddAddressForCardDrawer-DlGL-3yf-IaM3cMnx.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CcHrKp-a-CBnjHYA6.js → AddToWalletPage-D-Z-ZVZn-CiDbNS_k.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Dxl6B22u-C2TlOeT0.js → AgingReportsPage-CdqPmA60-Cyut0UFq.js} +3 -3
  12. package/dist/assets/{AllUserItems-CCPAoEp2-BwqbSPl8.js → AllUserItems-DWLkEF2p-CkywmjZG.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-CdSbgXOq-D-U_GVCX.js → ApAgingDetailPage-CdtqprUm-6vrQOn-k.js} +2 -2
  14. package/dist/assets/{AppBasePage-B9nTsGKZ-CrNS-zmq.js → AppBasePage-CPdKfb57-DawJWk5R.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-BgfMutin-DfAGwR7f.js → AppDrawerContent-DCMK2lRO-Df7Fnkyq.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-BDXTo6IN-CRoruZi4.js → ApprovalRulesSettingsPage-C8P04Y3s-D25-twBi.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Rzj2ENYe-CLA_ht_2.js → ArAgingChart-DOYvVptv-BswXO8kR.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-qk_f2Lby-BpK_Gv9z.js → ArAgingDetailPage-BCaRO749-DbTi7cK7.js} +1 -1
  19. package/dist/assets/{AttachmentView-NA4ajEO5-DR9_uEKC.js → AttachmentView-CnfHYBMC-DIj7ahn3.js} +1 -1
  20. package/dist/assets/{BankAccountSection-BBDMIckQ-VD7MNHHN.js → BankAccountSection-P9w-MOrg-BTlhn7ds.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-BkcjTRzD-DIfRT-Zr.js → BankAccountWarningSection-BDEZ6LKQ-11XJ9ttg.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-SAXICBPz-CTcrBBh3.js → BankConnectionsSettingsPage-dE7WxsGo-D0HTjyVI.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DwmlUFiU-DTaT5FvO.js → BillDetailPage-CAbohg1r-CBI7qhIO.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CQwCAZ6I-B-iJVX52.js → BillPayApprovalRuleDetailPage-CKr-k2kC-DyOtlRI5.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-D-LIGLjH-ColnAiYN.js → BillPayApprovalRulesPage-wy4fIDHo-MumDIXCw.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DI-WqAOW-BHwkD-r9.js → BillPayPromoPage-CbXq0YNV-rXFaEpJE.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-Boyxam-q-Bmy-MqMk.js → BillPaySetUpPage-CwP6Aw2I-D-V51AjE.js} +6 -6
  28. package/dist/assets/{BillingSettingsPage-toTRmFUP-C1oUXIlM.js → BillingSettingsPage-Bqj_AXGq-1_mFR23j.js} +2 -2
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BD-XMVaP-BF31YK-4.js → BillsBulkReviewDrawerPage-QsGKIhW0-BUE3drgk.js} +1 -1
  30. package/dist/assets/{BoxItem-DptPNfuL-Bp-R8iE1.js → BoxItem-CgrlwejJ-DRtcS1-S.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Bw7LFK-C-CatwF8k7.js → BusinessVerificationPage-G8uzN4Ws-BKiOttKK.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-DBFaTSBz-DdN0VEfE.js → CardNumberSubText-DPlqciQh-CtVSDBTQ.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-jyi25yaY-wBe9KKSY.js → CashbackDetailPage-DvxlixOz-BI7zB5eW.js} +8 -8
  34. package/dist/assets/{ChargeCardDetailPage-Be6-Tdta-DbmxNVaK.js → ChargeCardDetailPage-BwsPpOzj-DPbKM4bn.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-DKA4Mryr-Tv6Oh9JD.js → ChargeCardListPage-BKu9-MWp-COSqzM0c.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BmnTn4MG-Dav0vid1.js → ChargeCardListTable-BkAggUNy-BT3mst3U.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-DVRPShso-B2hTKQlQ.js → ChargeCardPaymentHistoryPage-BddAvqUm-DbucxoY-.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-ZCAv99Ei-SzC7HmHH.js → ChargeCardPromoPage-B4yj7KP9-DKwL8yRO.js} +1 -1
  39. package/dist/assets/{ChargeCardSetupPage-BwXrEbVo-D0-PM_4r.js → ChargeCardSetupPage-B3vasCMt-Dv7zO5cm.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-BK-hozIV-Di1HiZJS.js → ChargeCardStatementsPage-BOscGNXN-Mh_DnEuP.js} +4 -4
  41. package/dist/assets/{CheckDepositDrawerPage-CYkFe1ox-BBkmTZH1.js → CheckDepositDrawerPage-BEEyhU4L-JcTBCzRd.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-DlC0m5Gq-CeTT9Oev.js → CollapsableReportTable-BpZbn8JV-DFNPaWFK.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-DzPudfa8-DqN4Vwn3.js → CompanyOfficerDetailsSection-1BDesjjs-BJgYaGxB.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-B5jodI1Z-D2ZoNhMd.js → CompanyPassportCard-DnpS3cSu-DXhbgL7c.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-DJOJ3jDw-DK6xYjDB.js → CompanyPassportPage-DPNROicI-D1huJKnB.js} +15 -15
  46. package/dist/assets/{CompleteProfile-CfNuOYX6-Cnkx2a1E.js → CompleteProfile-E7yJ6AqT-DXZcKzk-.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-BYI1XUQL-y1mB27QR.js → ConfettiBurst-BUf7AIFk-Da6kYSI2.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-CkDCKkyG.js → ConstrainedInnerElement-BeIpAPjB-CyBR7YJz.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DuoU2sV0-BYrMQo-X.js → CreateOrEditVendorPage-CqGWKAVs-g2Tpgbp0.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Bea09r9U-BXHxog5h.js → CreditCardPaymentDrawerPage-CO7njZlm-DopqGCxN.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-DSayEoor-D5Zrqkfd.js → CurrencySelectField-DxdAWtY0-B1TsXU1Q.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-DkXMThN5-BWHIsEbH.js → CustomerOnboardingActivationPage-CEaKVaVS-D9RnWmBa.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-ihPd9hEn-ClNt0TP3.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C6CxRdPR-JZSfJi0e.js → CustomerOnboardingDetailPageSkeleton-Bk-UD_xZ-B_1TcJUF.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CXdw95hv-B9QWcDaR.js → CustomerOnboardingNoStepsPage-zMwJiFSO-_zZf3e5X.js} +2 -2
  56. package/dist/assets/{CustomerOnboardingPage-BfktNnfn-CICJ7qAu.js → CustomerOnboardingPage-D2g6ose5-qapuEieN.js} +1 -1
  57. package/dist/assets/CustomerOnboardingProductSuitePage-BowJfyTX-CRJdoG-k.js +202 -0
  58. package/dist/assets/{Dashboard-DsmygPse-4AvmKTAA.js → Dashboard-46VwWQSI-DH2n0aDR.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-CO50XhSN-RbrjTqPn.js → DashboardReportPage-BA6k3bPl-B1EwtUKw.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-CgZd_J4a-18QmqdyA.js → DashboardSidebarBackgroundAnimation-Dh7RFAmH-0PN4dTJQ.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-CURckRWv-5cwb8lsm.js → DepositAccTransactionItem-Dql1IjYZ-DFOMn-wO.js} +1 -1
  62. package/dist/assets/DepositAccTransactionListPage-BjKtMY47-eMYJ1LE-.js +66 -0
  63. package/dist/assets/{DomesticWireDetailsPage-BOb4FGaY-DZtWI0el.js → DomesticWireDetailsPage-DeXdHoem-CGnMYsda.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-DyTWX48F-D68jKMMy.js → DownloadOverlay-C9lm7jRS-Bq6Od7GL.js} +1 -1
  65. package/dist/assets/{DrawerPage-AI0YTdml-NepA-uxH.js → DrawerPage-DwjcM3hz-B-KESp3F.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-Cid-kBGF-CpKiwXqn.js → EditPeoplePage-D-vaUQbG-DQbsI6rR.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-U-qCHgNL-D5fAJB1O.js → EditReimbursementDetailPage-BerHadSD-DaUKmLjy.js} +1 -1
  68. package/dist/assets/EntityDetailPage-B2Tmq0cV-uO9x-oKB.js +18 -0
  69. package/dist/assets/{EntitySummarySection-JKTCWCM--Fo1QOnQl.js → EntitySummarySection-BvXgw7DC-Bef0TZtp.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CtzbDY1R-CvZoQj_h.js → ExpenseAutomationOverviewPage-ySXotmyY-CeFn1UnP.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-Dbl9svfW-BZfPW3Kh.js → ExpenseAutomationPage-CieCVy8t-BHePblcM.js} +146 -146
  72. package/dist/assets/{ExpressPayPage-SuuEp7gX-yOs90MaD.js → ExpressPayPage-BnUc-3ye-BHMM4ytE.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-BiTQ7ApT-C35Vrbsi.js → FeaturePreviewPage-rGKH26mO-Ak70PMDX.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-DMG7Wn5E-CixCy-vJ.js → FollowStepsSection-Cul0Cxvm-BEhGMlUy.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-DgUd_tpR-DMgKrm59.js → GlobalReviewListPage-CC2ACTah-CxJ-n6WW.js} +1 -1
  76. package/dist/assets/{InformationCardStack-BBDImI5u-B_L0_IXg.js → InformationCardStack-geyzh82K-BsfqU0FK.js} +3 -3
  77. package/dist/assets/{InsightsCardStack-BXSLSXMd-CPaCCiOq.js → InsightsCardStack-DmEWXOXG-D8zQOXPe.js} +6 -6
  78. package/dist/assets/{InsightsSection-DtP4W8UU-ChHNdzk5.js → InsightsSection-Ldcdpf_t-BR1EacmB.js} +2 -2
  79. package/dist/assets/{IntegrationsSettingsPage-BY1xz3JF-DAHsRrIc.js → IntegrationsSettingsPage-D8DA20vr-Dzz_dqHF.js} +2 -2
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DyVP5Ofl-BzAe45Ug.js → InternationalWireSwiftDetailsPage-C0p3_QQy-C5e9qnYF.js} +4 -4
  81. package/dist/assets/{InternationalWireVerificationPage-Qlo7yzVk-B7n-K8yE.js → InternationalWireVerificationPage-mHew9ruS-BrqHukVH.js} +1 -1
  82. package/dist/assets/{InviteFormPage-C84N6Lc2-Crkyt_be.js → InviteFormPage-CH4FYGl4-C1vX7pcw.js} +1 -1
  83. package/dist/assets/{InvitePageListView-CMhXy-j--BSnEbl6q.js → InvitePageListView-C-RG9OiM-w5eanIdw.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-qpkCHm6B-BVfeEtTB.js → InvitePeoplePage-y0gl_wqg-CSxYUXEb.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-DkOhI_Bg-BK1kHmCF.js → InvoiceUploadSection-YQHXVR_6-Bb0-RXQg.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-BqzqCwAC-AtpStA7o.js → IssueChargeCardPage-CKhRoUiP-CTYHfQCp.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-DgMH266J-BOyhiAJ7.js → LabeledAddressValue-D_-0VDjZ-4h12iTBN.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-BNDFFbl6-Bnl_fTov.js → LabeledAddressValueField-BNPvRvHU-EK3HrcNO.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-DqGuuG0x-C7gcXrVo.js → LabeledControlledCheckBoxField-CkG-jIW7-C2Hnry7S.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-Dd0jXJEG-DqCUD3tM.js → LabeledCreatableSingleSelectField-C1dHZ9ym-iC8YKpuW.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-soYO3Vkb-D4rfj9r9.js → LabeledDocumentField-ffpHZV4a-BUHqIKgG.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BXhlcMj3-DMyG_l10.js → LabeledDropDownFormattedTextField-QdvkGLEh-BRZgDq4Q.js} +1 -1
  93. package/dist/assets/{LabeledText-sPkKF2Ke-C6ruJ-3L.js → LabeledText-CQiPSE0v-By2EfM5F.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-oGpbhfZl-DLZXxYbx.js → LabeledUserSingleSelectWithSubtitlesField-CcmaUIGJ-pvqY6PVS.js} +1 -1
  95. package/dist/assets/{LabeledZeniRolesDropDownField-WBaP6NAK-DzjNxVxd.js → LabeledZeniRolesDropDownField-k0YihYN--DD97S2fG.js} +1 -1
  96. package/dist/assets/{LinkJETransactionPage-DWe4hvFk-D8Dzt1mD.js → LinkJETransactionPage-DUaT91O5-Gq8lPCYr.js} +1 -1
  97. package/dist/assets/{LockCardPage-BFpvk55j-yA-a8X9D.js → LockCardPage-DYD2_HzF-Dog57kHB.js} +6 -6
  98. package/dist/assets/{LowBalancePopup-BhSsmmin-CBPk1LsR.js → LowBalancePopup-DiycrXpa-BGxqOGSj.js} +1 -1
  99. package/dist/assets/MagicLinkACHDetailsPage-DIpNQrGA-BmzNcyxo.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-B9wywDCI-B71xVz_F.js +1 -0
  101. package/dist/assets/MagicLinkInternationalWireDetailsPage-eZNTvlJK-BWmKcmTA.js +1 -0
  102. package/dist/assets/{MagicLinkSuccessPage-BYNIGXoS-OKsyLGOy.js → MagicLinkSuccessPage-RQtS7ohy-CE9hMVm-.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-DAywgMEo-BtiZq0cx.js → MagicLinkTitleSection-D6bdQGfS-4Cui-zz1.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-DRQnwOna-B3_bDX5k.js → MailingDetailsSection-Db8X4a09-CGdNacsa.js} +1 -1
  105. package/dist/assets/{MyBankConnectionsSettingsPage-CcGxX2ZR-B5mJauBe.js → MyBankConnectionsSettingsPage-C9rAs8AC-CELzps57.js} +1 -1
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-MbUzd562-C6S6_bfY.js → MyPendingActivationChargeCardListPage-Dhz5e_Uu-CGb9qdbR.js} +1 -1
  107. package/dist/assets/{MyProfileSettingsPage-C5yCIdIL-B0YtQKYL.js → MyProfileSettingsPage-CxZER675-2UOccUna.js} +2 -2
  108. package/dist/assets/{NavBarWithPicker-C_IBxMUA-B0EPHxlT.js → NavBarWithPicker-BSVBMx7T-0Dqo2fgB.js} +1 -1
  109. package/dist/assets/{NavigationArrow-I1l5PEMd-BZkmNvxb.js → NavigationArrow-Ca-B5zfh-DRNdaY_I.js} +1 -1
  110. package/dist/assets/{NavigationDots-DbtOiTYP-BWzsBzui.js → NavigationDots-CjxNj1Qo-DN4lM7to.js} +1 -1
  111. package/dist/assets/{NewGlobalMerchantPage-DuU_ab63-DiZGG9pS.js → NewGlobalMerchantPage-LykCdab5-DEBbT1GR.js} +1 -1
  112. package/dist/assets/{NoDataChart-CLVyYBfd-CsBoNKkR.js → NoDataChart-Dm8c31gV-Dj8UiPhG.js} +1 -1
  113. package/dist/assets/{NoDataTable-CP5vFrN--C8hPBHtr.js → NoDataTable-BLcYAK9T-3nfxy3Nd.js} +1 -1
  114. package/dist/assets/{NotFoundPage-N4-ds_TK-BKsaq5wx.js → NotFoundPage-C4BU4sH8-sZxfS_K4.js} +8 -8
  115. package/dist/assets/{NotificationSettingsPage-DxL5oOKA-BCxjFu4y.js → NotificationSettingsPage-BcZEeTzA-Gt8bGOQC.js} +1 -1
  116. package/dist/assets/{NotificationsListConfig-BUEMj_nN-_3oErotq.js → NotificationsListConfig-CYqB9pO5-Q7jWyd5C.js} +1 -1
  117. package/dist/assets/{NotificationsPage-CPwLrdcO-D7eMWwRS.js → NotificationsPage-BpE7xDxK-DEeyLrys.js} +1 -1
  118. package/dist/assets/{OpExByVendorPage-CEexczJv-J21B8XPv.js → OpExByVendorPage-CzAB4zqP-D8KXk_hr.js} +1 -1
  119. package/dist/assets/{OverlayContainerPage-D4QU0p4o-BLZDtu1k.js → OverlayContainerPage-D4QU0p4o-BjtR95tx.js} +1 -1
  120. package/dist/assets/{PandLWithForecastPage-Dp6MnTZ_-BK2fiEz9.js → PandLWithForecastPage-CDkHjqzy-EOvrd7Tw.js} +1 -1
  121. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DbnK54BN-Du2iRLpi.js → PaymentAccountSetupBillingAddressSection-ChGcOYcG-D0OWrwVX.js} +1 -1
  122. package/dist/assets/{PeoplePage-rlyomO8Q-D10TbBHE.js → PeoplePage-C_FZL-mx-B0oFZuXo.js} +1 -1
  123. package/dist/assets/{Preview-CmsmcMye.js → Preview-Dit3IBZc.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-CxhAwG_I-BIa-LA8F.js → ProductsCarousel-lJBWrgjU-BK8yascI.js} +1 -1
  125. package/dist/assets/{PromoBaseCards-_Ujfaxp0-B5F6NP5z.js → PromoBaseCards-BHeLFDFF-CUDBGebi.js} +1 -1
  126. package/dist/assets/{QBOConnectionDialog-CYWm2ryd-AwpZpI98.js → QBOConnectionDialog-BfBk1GDG-CNBPmIt1.js} +1 -1
  127. package/dist/assets/{QBOSetupSection-C7X1UDAC-Dt9Gk2yj.js → QBOSetupSection-BO8FYRd_-BNdNnkk3.js} +1 -1
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CRa-PKxm-AG6-Qyhk.js → ReimbursementApprovalRuleDetailPage-BScdJYcI-BcwDGLiX.js} +3 -3
  129. package/dist/assets/{ReimbursementApprovalRulesPage-DPT__VQD-Fopcb6zr.js → ReimbursementApprovalRulesPage-2-dvUngC-9CdneR5P.js} +1 -1
  130. package/dist/assets/{ReimbursementDetailPage-DMKlEFLs-Be0yezXb.js → ReimbursementDetailPage-CCBrKxup-3_3O6q1i.js} +3 -3
  131. package/dist/assets/{ReimbursementPromoPage-C9YXyEBI-B4mzU33h.js → ReimbursementPromoPage-C1DzNWh1-B5DdwXjx.js} +8 -8
  132. package/dist/assets/{ReimbursementSetUpPage-CBBl7gS1-CNTRcHmw.js → ReimbursementSetUpPage-Bs1pChM5-DTukW1Jt.js} +1 -1
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-e-uHzgDg-CYMUoN9n.js → ReimbursementsBulkReviewDrawerPage-BY1ivHX0-CAH_UqYX.js} +1 -1
  134. package/dist/assets/{ReloadCard-C9idTWk--B_s6zG8-.js → ReloadCard-Ci1JfueA-BSqwcsh4.js} +1 -1
  135. package/dist/assets/{ReportTableViewSelector-BROhyU1t-Clp4JfcG.js → ReportTableViewSelector-FSUjS0tA-BBV47JJP.js} +1 -1
  136. package/dist/assets/{ReportsPage-CA3EmmZB-6ufisFrM.js → ReportsPage-2XGgGATP-cuHT_XJ3.js} +5 -5
  137. package/dist/assets/{RevenueChart-AnQ7FJT4-CPOuzQU-.js → RevenueChart-DhiHl3J4-DLO9Tjun.js} +1 -1
  138. package/dist/assets/{ReviewDetailsPage-BG4fsNht-jt9xahjR.js → ReviewDetailsPage-JfBmJL7T-C_j08e24.js} +7 -7
  139. package/dist/assets/{ReviewOverlay-BpwCrUbt-TDEW6qB3.js → ReviewOverlay-B8Quli7Z-C6JgrDgC.js} +1 -1
  140. package/dist/assets/{RoleWithToolTip-DlIcPRiy-DyibMc5_.js → RoleWithToolTip-DL78JlR8-C9xZrPOP.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Mp6f4ulg-Bk5UVNC6.js → ScheduleDetailsFixedAssetsPage-B-mkt12S-Dy27kfKS.js} +3 -3
  142. package/dist/assets/{ScheduleDetailsPage-Cb4aPlCE-CV9nppRa.js → ScheduleDetailsPage-BUZcySac-HBwTYcGC.js} +3 -3
  143. package/dist/assets/{ScheduleSequenceTable-B5UzjfQJ-03N0ITmH.js → ScheduleSequenceTable-CdKMmZqy-KLYGBtjp.js} +1 -1
  144. package/dist/assets/{ScreenRoutes-DZqozhB9.js → ScreenRoutes-xr8emYTZ.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-C2S4lXbj-CAP0LfIN.js → SetUpAccountSection-D1MXUm9M-aQqZDAJc.js} +1 -1
  146. package/dist/assets/{SignIn-oNZZn9gU-jOSvaxYl.js → SignIn-CPWFfFe2--e4scVLJ.js} +3 -3
  147. package/dist/assets/{SignInScreen-Bp6ZXaVa.js → SignInScreen-6Xirnvhp.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-DFBE2GEM-DW-9EzEA.js → SpendManagementListViewPage--cVcOp1f-CoMTuOeL.js} +3 -3
  149. package/dist/assets/{SpendManagementPerTabPage-CIu5TvHQ-D4k40EFM.js → SpendManagementPerTabPage-DPxjzKS8-DIiRlr2F.js} +1 -1
  150. package/dist/assets/{SpendManagementSection-CSAz_hUa-4308_UQx.js → SpendManagementSection-CA8SwNCI-C0bFCdBj.js} +1 -1
  151. package/dist/assets/StatementItem-UzV0xHzG-B2brulIy.js +31 -0
  152. package/dist/assets/{StatementsPage-DFebgwXz-BVi_L_en.js → StatementsPage-CksjCH5w-C3ioIgFA.js} +1 -1
  153. package/dist/assets/{StatusSwitcher-gbjjpKf_-blwYKndx.js → StatusSwitcher-BDDVmn-K-CKBwQQDa.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-BD8D4sY1-fpqHhuwu.js → SubTabSwitcher-CMsdXoCD-3-Y_8O6e.js} +1 -1
  155. package/dist/assets/{SummaryCard-Bq19bNV9-DKYjSomU.js → SummaryCard-B4km1rL_-DaunAw95.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-ClNSi-hI-BjdLwuiV.js → TaskManagementPage-CDi3YMVo-CDvB9Max.js} +13 -13
  157. package/dist/assets/{TimeRangeSwitcher-XsW1b5lq-BUwlOylv.js → TimeRangeSwitcher-D1boW3u5-IM63QogJ.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcher-DlG05Fns-DW5oy61t.js → TimeframeSwitcher-NWdUWC8r-DZUeY14S.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-Cw2jBfJA-C5LicgQR.js → TimeframeSwitcherWithToggle-BCRqmVAB-m9vI8Gjx.js} +1 -1
  160. package/dist/assets/{TopExCard-Cotaxo42-C6OYhY2j.js → TopExCard-B7nDaKGC-VBOxt-wD.js} +1 -1
  161. package/dist/assets/{TopExDetailPage-Ck80cdUY-BNScQ0tX.js → TopExDetailPage-CFC5Kzob-Dt6PLbBa.js} +8 -8
  162. package/dist/assets/{TransactionActivityLogPage-Bon4QVXv-CPYHpodJ.js → TransactionActivityLogPage-dLfey-Pj-BNo7Uj_A.js} +1 -1
  163. package/dist/assets/{TransactionDetailPage-BKA0c1Hd-5r82PbUD.js → TransactionDetailPage-DUFj8B1S-CqpGWjre.js} +1 -1
  164. package/dist/assets/{TransactionList-C9w_immd-BFAqJMaG.js → TransactionList-BDaoHCk7-CZl9zU4i.js} +1 -1
  165. package/dist/assets/{TransactionListBig-mbfs4KoW-DqJSotdD.js → TransactionListBig-DxOGEDcA-M4zryrQh.js} +1 -1
  166. package/dist/assets/{TransactionListPage-CDVN8trz-D3p-SyTW.js → TransactionListPage-4nFAQM97-jwJBji-c.js} +2 -2
  167. package/dist/assets/{TransactionVendorDetailPage-D-bYPAE2-DiXU5QmX.js → TransactionVendorDetailPage-CliQXg5L-DI9_qo0u.js} +1 -1
  168. package/dist/assets/{TransferDrawerPage-Cb8Cno-i-BV59_FYU.js → TransferDrawerPage-kbzn1dkx-Bopm8vbU.js} +12 -12
  169. package/dist/assets/{TreasuryOverviewPage-r5eF6ebA-B8UmS0v_.js → TreasuryOverviewPage-j8Dtk2Q8-C0BtbFG5.js} +1 -1
  170. package/dist/assets/{TreasuryPromoPage--nM87_OU-DJkqTPsx.js → TreasuryPromoPage-BlgxNE0U-Cc6ztZJc.js} +1 -1
  171. package/dist/assets/TreasuryStatementsPage-Bd70Y2Yv-CYfFBpB9.js +58 -0
  172. package/dist/assets/{TreasuryTaxLetterPage-Crb8ZsUA-CESDg07X.js → TreasuryTaxLetterPage-DL4GDdXJ-xlICR3P4.js} +1 -1
  173. package/dist/assets/{TrendChart-DBg9hdMq-BJpEmGdE.js → TrendChart-BS6VOoj_-CKe3PY8I.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-CDquHlvk-CpyVD4zc.js → TrendWithTransactions-DMAMnr7F-DxwunSwM.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-Cc2EZVpr-DEwnfnNT.js → UncategorizedAccountsMappingPage-stLOvAUg-CCLPL_ED.js} +2 -2
  176. package/dist/assets/{UnitIntegrationPage-GCYR9P3Y-DHB4YTTk.js → UnitIntegrationPage-D39cXlRw-oxayfQbY.js} +1 -1
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-CIJFtDiF-DsNArDE8.js → UploadAdditionalDocumentOverlay-BmiNa89K-BeqcSbMb.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-BZ6s889G-DRTQiJJz.js → Vendor2FAPopup-Cn7Bst-t-DCAkAnX8.js} +1 -1
  179. package/dist/assets/VendorACHDetailsPage-yJs4pSeb-B9thwaoC.js +1 -0
  180. package/dist/assets/{VendorDetailPage-DvxkejeN-W7dvlk80.js → VendorDetailPage-Ck26EgtS-BHR4p4Il.js} +6 -6
  181. package/dist/assets/{VendorDomesticWireDetailsPage-C4SquKOu-fjlVrlLV.js → VendorDomesticWireDetailsPage-BZatg69M-B9cR7gr6.js} +1 -1
  182. package/dist/assets/{VendorFiling1099EditablePage-BJAlB2r3-GMTfNd1_.js → VendorFiling1099EditablePage-PYVQaWMk-G5giJg88.js} +1 -1
  183. package/dist/assets/{VendorFirstReviewPage-DHT9QMul-v-700rhU.js → VendorFirstReviewPage-hKEEnsZq-9lysxVz-.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage-Cum0w1AM-CVUa5t1j.js → VendorInternationalWireDetailsPage-qv2qL6Xn-Bc91C8bc.js} +1 -1
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Co_Kax4L-bZKJbQeC.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-D135oEuw-BqGQrMXE.js → VendorsAccountsSection-BeiK6LWK-WA9vgeiE.js} +1 -1
  187. package/dist/assets/{VerifyDevice-BCCgiusC-CzG5KeEc.js → VerifyDevice-BVtSQLC2-otqudy2C.js} +1 -1
  188. package/dist/assets/{VideoPlayer-DVwDdeFR-t68lwaBp.js → VideoPlayer-DcPwSvda-DzC2R71-.js} +2 -2
  189. package/dist/assets/{VideoPopup-CrXLFmDO-BE_rpYv5.js → VideoPopup-CSSLhfoi-CGw_VFjN.js} +2 -2
  190. package/dist/assets/{WarningsDrawerPage-V2zIdzFs-Dmn7maPE.js → WarningsDrawerPage-y9CUfPu5-MeHZsL1e.js} +1 -1
  191. package/dist/assets/{ZeniAccountDetailPage-D5YNNS56-DAEAhMh6.js → ZeniAccountDetailPage-CeL_e1NL-CQdk1jRa.js} +1 -1
  192. package/dist/assets/{ZeniAccountListViewPage-RiEBDKgR-BmwI4Z_B.js → ZeniAccountListViewPage-C-rGqw9i-D_x6eTsv.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-CoQENU6J-BeLx8CHm.js → ZeniAccountNavBarPieces-CSy5vlQ--2YMNZ3_9.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-CTXqeuyX-BBu-V92K.js → ZeniAccountPromoPage-ByNyhhoa-DV36qC0Z.js} +1 -1
  195. package/dist/assets/{ZeniAccountSetupPage-thNujG4V-CERx-ItC.js → ZeniAccountSetupPage-YbvbQFzj-Byax4mz5.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-ClH_jKKR-Cnv_kEw_.js → ZeniCopyright-D5ywJMrC-ViPTJSJz.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-D3vJ1eI8-Bb2OuJt7.js → ZeniTransferAmountSlider-CKFCKGRC-BbttVAel.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-BLYF7nQu.js → add-to-wallet-DgdBD8_G-tmzUrH5h.js} +1 -1
  199. package/dist/assets/{analytics-BYwa85mC.js → analytics-BHfEcMs7.js} +1 -1
  200. package/dist/assets/{analyticsHelper-BZR67Etu.js → analyticsHelper-DMvP-IUc.js} +1 -1
  201. package/dist/assets/{analyticsHelper-V4TPBdDw-Bb6O6ByH.js → analyticsHelper-nJyKiOwQ-BPlvzeT_.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-BmBVkHzO.js → arrow-south-east-round-PEovUgvH-DopNMSVs.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-Bracjtzh.js → auto-transfer-rule-mbafm5D3-5qZZD7bQ.js} +1 -1
  204. package/dist/assets/{chartTypes-iDEZ4YBi-DN0XMgOK.js → chartTypes-BKexR59e-C3ztmi9f.js} +1 -1
  205. package/dist/assets/{commonDimensions-Bu6zjJKF-Cmgw7sLn.js → commonDimensions-Upfg-PB1-DEuX-eDL.js} +1 -1
  206. package/dist/assets/{constants-8rWTGONW.js → constants-CHbK5IhN.js} +1 -1
  207. package/dist/assets/{core-CfLdY-k_.js → core-BZCxWmUX.js} +1 -1
  208. package/dist/assets/{dash.all.min-ys86X-gR.js → dash.all.min-DcxeahhE.js} +1 -1
  209. package/dist/assets/{detailCommon-BWEpXOUF-Ba4eHIVL.js → detailCommon-_wEL82NI-n1evVXdx.js} +5 -5
  210. package/dist/assets/{downloadPdf-DJF-2ZO0-DSsBKjnk.js → downloadPdf-CMFOff-_-mnN6dDox.js} +1 -1
  211. package/dist/assets/{empty-CciSeb90.js → empty-D_f2XL7V.js} +1 -1
  212. package/dist/assets/{empty-fpeXeVte.js → empty-DcJQLvC7.js} +1 -1
  213. package/dist/assets/{epic-CW7So-k4.js → epic-NTdWJzAE.js} +1 -1
  214. package/dist/assets/{gift-box-Cmt9OgIZ-CwAkBnJ5.js → gift-box-Cmt9OgIZ-wauDJyqU.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-Dz4YrOvs.js → graphic-no-data-l-DU4J8fDt-Co-mMaRI.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-C-C13G7Y.js → graphic-no-data-net-burn-l-CzmycA0m-_WUrjzng.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-Cv-IXUBG.js → handshake-BPg58FML-Bh6G4KIp.js} +1 -1
  218. package/dist/assets/{index-GTrrlN3l.js → index-B7HaXBI4.js} +1 -1
  219. package/dist/assets/{index-iEQQZg-l.js → index-BCLGLn5P.js} +1 -1
  220. package/dist/assets/{index-COvv8Pxo.js → index-BTb8ckWv.js} +1 -1
  221. package/dist/assets/{index-DbTr8RS2.js → index-C9eCTMJr.js} +1 -1
  222. package/dist/assets/{index-G4udIFQJ.js → index-CRjLU1CH.js} +7 -7
  223. package/dist/assets/{index-BOJ4i6pP.js → index-DC2hxKgC.js} +1 -1
  224. package/dist/assets/{index-Dx0tKDNt.js → index-Dkkbximi.js} +1 -1
  225. package/dist/assets/{lexical-C2hQPjBk.js → lexical-D8AhEV3-.js} +1 -1
  226. package/dist/assets/{liveblocks-CV4wYZBt.js → liveblocks-B2F837W5.js} +1 -1
  227. package/dist/assets/{lottie-Dw1I6Lqb.js → lottie-CgAPdzgC.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-ll9NZ-I4-DPPDlmzF.js +1 -0
  229. package/dist/assets/mapSectionWithAcOnlyToTreeNode-DcevOSiz-8lx_NTel.js +1 -0
  230. package/dist/assets/mapSpacerToTreeNode-6Qxn340N-B6QTlyVL.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-BlKa4mAP-BPPLb2wN.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-tYVPqkGh-BzVS1eS7.js +1 -0
  233. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-C92aroSy-BbZlxdu4.js +1 -0
  234. package/dist/assets/{mui-BDpZEDd-.js → mui-G_qoHHKo.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-CTwIKCV4.js → page-detail-CWX5S47F-x7w6wNJZ.js} +1 -1
  236. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-Q8m7K4oN.js → panelSelectedMixin-CzfD5-Zs-BuQ6-IQv.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-qVtSp8qo.js → radio-default-CiSgisfh-Bpmj0_HZ.js} +1 -1
  238. package/dist/assets/{react-DK7JNpa7.js → react-BVN7d4k7.js} +1 -1
  239. package/dist/assets/{react-BNl8kpdF.js → react-Bz8KihG8.js} +2 -2
  240. package/dist/assets/{react-CkHlLfE6.js → react-C-Nzpwqb.js} +1 -1
  241. package/dist/assets/{react-yJFMdFvX.js → react-CQCeOVHy.js} +1 -1
  242. package/dist/assets/{react-DJZvoDtL.js → react-CgU7dLsF.js} +1 -1
  243. package/dist/assets/{react-MOWQVBSu.js → react-D3qPI2I1.js} +1 -1
  244. package/dist/assets/{react-E_zI_4NR.js → react-DY87wnXm.js} +1 -1
  245. package/dist/assets/{react-De2kZE9C.js → react-Hh8LA1NH.js} +1 -1
  246. package/dist/assets/{recharts-B3SHU5RU.js → recharts-CCryt90F.js} +1 -1
  247. package/dist/assets/{sentry-CTrMrBL8.js → sentry-DZdy1Eny.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-Clyc-usU.js → shield-DOlUxcFf-DEYalkml.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-DtqUradx-lEoCPU_e.js +1 -0
  250. package/dist/assets/{toChartData-DyjTCJsY-BV_CW89N.js → toChartData-BpfWXnJ--DBwlURkd.js} +1 -1
  251. package/dist/assets/{uploadAttachment-BJcS1oZv-BlzuzU5y.js → uploadAttachment-ukKU1LbX-DZ3cul8l.js} +1 -1
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-DwGGi1Mb.js → uploadReceipts-Dge0cNF1-9xq6mF3E.js} +1 -1
  253. package/dist/assets/{url-BvOH_ymq.js → url-D90t3YD5.js} +1 -1
  254. package/dist/assets/{url-DzlbkY_h.js → url-T01FJj_Y.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-ClJp7PXk.js → useLongPress-GCK2COYQ-gOO9DxKL.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-Cmb4LI5b.js → usp-line-BBd1wKwW-gP2BLOgz.js} +1 -1
  257. package/dist/assets/{utils-yHZwLkmM.js → utils-D8ZC_tPv.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-B_64dD7k.js → zeni-epic-state-BlmgKn3B.js} +3 -3
  259. package/dist/index.html +1 -1
  260. package/package.json +2 -2
  261. package/dist/assets/AccountInfoPage-CoX9n6HX-p3uYXGev.js +0 -18
  262. package/dist/assets/CustomerOnboardingContainerPage-CbrKONhr-DigJVWOp.js +0 -1
  263. package/dist/assets/CustomerOnboardingProductSuitePage-Cp5U5QLX-CDEs2CEb.js +0 -202
  264. package/dist/assets/DepositAccTransactionListPage-K0UYTv8s-C0ae1fDB.js +0 -66
  265. package/dist/assets/EntityDetailPage-DJ-NoWZp-DgLIseeW.js +0 -18
  266. package/dist/assets/MagicLinkACHDetailsPage-JBFVxuf2-41i2YISt.js +0 -1
  267. package/dist/assets/MagicLinkDomesticWireDetailsPage-C5tXo9Yb-CbIfw0V1.js +0 -1
  268. package/dist/assets/MagicLinkInternationalWireDetailsPage-C_NjCMJZ-CLmGKxgW.js +0 -1
  269. package/dist/assets/StatementItem-DYoVBRQy-u4Af9dX-.js +0 -31
  270. package/dist/assets/TreasuryStatementsPage-Bw9Kj_ei-RQA3kjvP.js +0 -58
  271. package/dist/assets/VendorACHDetailsPage-Cc6vosJI-BD02tozk.js +0 -1
  272. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DvbkBLLf-HNLqOeTe.js +0 -1
  273. package/dist/assets/mapLoadingInProgressToTreeNode-DvNHg91V-BJg2RI-I.js +0 -1
  274. package/dist/assets/mapSectionWithAcOnlyToTreeNode-CWsheP6j-CsU13hiG.js +0 -1
  275. package/dist/assets/mapSpacerToTreeNode-BZH4EyFQ-whX8MxcC.js +0 -1
  276. package/dist/assets/mapTimeframeBalancesToTreeNode-BFTqwysj-BjpsD5BT.js +0 -1
  277. package/dist/assets/mapTimeframeBalancesToTreeNode-CHzQagq--CVUzW0Vh.js +0 -1
  278. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BEUrDFPW-hJlLof7c.js +0 -1
  279. package/dist/assets/toCOABalancesWithID-BaWPQdax-C8KA3Ete.js +0 -1
@@ -1 +1 @@
1
- import{V as b,cp as V,cq as q,cr as M,k8 as W,aY as Y,F as z}from"./index-G4udIFQJ.js";import{a as f}from"./sentry-CTrMrBL8.js";import{Gh as G}from"./zeni-epic-state-B_64dD7k.js";import{u as K}from"./ReviewOverlay-BpwCrUbt-TDEW6qB3.js";import"./liveblocks-CV4wYZBt.js";import"./core-CfLdY-k_.js";import"./recharts-B3SHU5RU.js";import"./mui-BDpZEDd-.js";import"./lottie-Dw1I6Lqb.js";import"./analytics-BYwa85mC.js";import"./lexical-C2hQPjBk.js";import"./utils-yHZwLkmM.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]="927ed070-94a8-411d-be99-1e618f38fa08",e._sentryDebugIdIdentifier="sentry-dbid-927ed070-94a8-411d-be99-1e618f38fa08")}catch{}})();const{common:s,spendManagement:{billPay:x}}=z.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,v]=f.useState(T(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(M,{children:y.title}),descriptionComponent:b.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(K,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:Y("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&G(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=W([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
1
+ import{V as b,cp as V,cq as q,cr as M,k8 as W,aY as Y,F as z}from"./index-CRjLU1CH.js";import{a as f}from"./sentry-DZdy1Eny.js";import{Gh as G}from"./zeni-epic-state-BlmgKn3B.js";import{u as K}from"./ReviewOverlay-B8Quli7Z-C6JgrDgC.js";import"./liveblocks-B2F837W5.js";import"./core-BZCxWmUX.js";import"./recharts-CCryt90F.js";import"./mui-G_qoHHKo.js";import"./lottie-CgAPdzgC.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="1e613db3-c714-44a8-adff-45170c3ed771",e._sentryDebugIdIdentifier="sentry-dbid-1e613db3-c714-44a8-adff-45170c3ed771")}catch{}})();const{common:s,spendManagement:{billPay:x}}=z.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,v]=f.useState(T(e,u)),[p,k]=f.useState(u),[B,E]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(I),O===B?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),B===n.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[n.length,B,p,e.fetchState,u,e]);const R=n.length,h=n.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(h);j({type:"reject",title:d,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},F={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,X(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:N,description:A}=H(m,h,R,p),P=e.fetchState==="Completed"&&h===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(M,{children:y.title}),descriptionComponent:b.jsx(q,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(K,{title:N,description:{content:A,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:P}})]})},T=(e,r)=>{const l=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:Y("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&G(t.reviewErrors[0].reviewErrorCode),subTitle:J(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},X=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=W([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},H=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:o.bill).replace("<_has_>",n?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)),{title:v,description:p}},J=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,X as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{Q as l,V as s,aP as b,o as e}from"./index-G4udIFQJ.js";import{n as a}from"./mui-BDpZEDd-.js";import{o as p}from"./commonDimensions-Bu6zjJKF-Cmgw7sLn.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]="6877f565-d218-4ce1-9402-a55762ef9570",o._sentryDebugIdIdentifier="sentry-dbid-6877f565-d218-4ce1-9402-a55762ef9570")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
1
+ import{Q as l,V as s,aP as b,o as e}from"./index-CRjLU1CH.js";import{n as a}from"./mui-G_qoHHKo.js";import{o as p}from"./commonDimensions-Upfg-PB1-DEuX-eDL.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="47d95265-650e-424c-a359-e888190ea068",o._sentryDebugIdIdentifier="sentry-dbid-47d95265-650e-424c-a359-e888190ea068")}catch{}})();const m=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=l();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
2
2
  box-sizing: border-box;
3
3
  cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
4
4
  min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
@@ -1,4 +1,4 @@
1
- import{e as ct,Q as dt,aQ as De,V as a,ae as G,a9 as mt,cT as ut,ay as pt,cF as ft,aY as ve,aO as Ie,ga as yt,r as ht,bC as gt,aP as xt,cG as St,cp as wt,cq as bt,cr as Ct,T as Tt,ac as Dt,aR as vt,o,y as O,am as Ve,F as Le,gb as It,fy as $e,eZ as $t,c as kt,C as Pt,al as Fe,R as jt,a as Nt,u as k}from"./index-G4udIFQJ.js";import{a as V}from"./sentry-CTrMrBL8.js";import{n as d}from"./mui-BDpZEDd-.js";import{ER as Ot,bi as M}from"./zeni-epic-state-B_64dD7k.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-DzPudfa8-DqN4Vwn3.js";import"./liveblocks-CV4wYZBt.js";import"./core-CfLdY-k_.js";import"./recharts-B3SHU5RU.js";import"./lottie-Dw1I6Lqb.js";import"./analytics-BYwa85mC.js";import"./lexical-C2hQPjBk.js";import"./utils-yHZwLkmM.js";import"./LabeledAddressValueField-BNDFFbl6-Bnl_fTov.js";import"./LabeledCreatableSingleSelectField-Dd0jXJEG-DqCUD3tM.js";import"./LabeledDocumentField-soYO3Vkb-D4rfj9r9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},D=new e.Error().stack;D&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[D]="0b2822c1-a568-4992-873a-2b863eb4cf15",e._sentryDebugIdIdentifier="sentry-dbid-0b2822c1-a568-4992-873a-2b863eb4cf15")}catch{}})();const x={width:new O(343,580,726),titleWidth:new O(343,580,726,826),subTitlePaddingTop:new O(12,k[3]),subTitlePaddingBottom:new O(k[3],k[3]),verificationDetailsRowGap:new O(12,k[5],k[5]),termsPaddingLeftRight:new O(k[0],k[3])},Ft={stepTitle:new jt("h6Regular","h5Regular")},ke="businessVerificationPage",C="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:Pe,footer:je,strings:{empty:At}}}=Le.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:D,verficationDetailsFetchState:P,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:j,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:Q=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,onSendForVerificationClick:ze,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:We,onCompanyOfficerUpdated:Ge,saveNewAddressInLocalStore:re,onSaveDetailsClick:Me,onClickMenuIcon:Qe,onExecuteTreasuryTransfer:qe})=>{const Ke=ct(),m=dt(),{updateStatus:z,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Xe=De(z.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=U==="unit"?a.jsxs(Qt,{children:[i.terms.term1,a.jsx(G,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(G,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(G,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(G,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ze,q]=V.useState(!1),[W,oe]=V.useState("save"),[K,Je]=V.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,B,E,D)}),{isValid:He}=u.formState,X=F?.company.company.companyBillPayInfo,Y=F?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?Y?.companyVerificationStatus:X?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,$=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?M(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?M(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&b!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:Te},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Z!=null&&Z?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(W!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${T}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),ze?.(I),Q===!0&&qe?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(T)&&Ge?.(s[T])},nt=V.useCallback(pt((t,s)=>{st(t,s)},300),[]);V.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=De(e.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Z=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{q(!1),L();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${T}.${f}.fileIds`).forEach($=>{b.includes($)||t.push($)})}),t.length!==0&&We?.(t)},onCancelClick:()=>{q(!1)}},lt=ve(Ie(p),p,Pe.currencySymbol).toUpperCase(),J=N?.code==="pending_review"||N?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&N?.code==="pending_review"&&Xe==="In-Progress"&&z.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:Q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Jt,{isReadonly:!1,children:Q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Ke.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?q(!0):L()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ze===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),P==="In-Progress"||P==="Not-Started"?a.jsx(Wt,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(Dt,{...u,children:a.jsxs("form",{id:Ne(ke),onSubmit:it,children:[h&&S===!0&&a.jsxs(Rt,{children:[a.jsxs(qt,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:J?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!J&&a.jsx(Xt,{children:a.jsxs(Yt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Zt,{})]})})]}),a.jsx(_e,{isReadonly:J,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Gt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:D,allOfficers:Z??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:j,filesEndPoint:r,authParams:A,isPopupOpen:K,openPopup:Je,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":j,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Mt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),P==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Ne(ke),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="verification"&&z.fetchState==="In-Progress",isDisabled:j!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="save"&&z.fetchState==="In-Progress",onClick:()=>{if(S)L();else{const t=w[I],s=l?.primaryContactLocalData;W!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?M(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?M(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Me?.(I))}}},helperText:Ye,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Bt=(e,D,P,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=e,B=Le.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:D?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(A).map((p,j)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${j+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:P?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,n?.userFiles??[],h),back:$e(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&j===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=e=>`${e}_form`,Et=d.div`
1
+ import{e as ct,Q as dt,aQ as De,V as a,ae as G,a9 as mt,cT as ut,ay as pt,cF as ft,aY as ve,aO as Ie,ga as yt,r as ht,bC as gt,aP as xt,cG as St,cp as wt,cq as bt,cr as Ct,T as Tt,ac as Dt,aR as vt,o,y as O,am as Ve,F as Le,gb as It,fy as $e,eZ as $t,c as kt,C as Pt,al as Fe,R as jt,a as Nt,u as k}from"./index-CRjLU1CH.js";import{a as V}from"./sentry-DZdy1Eny.js";import{n as d}from"./mui-G_qoHHKo.js";import{ER as Ot,bi as M}from"./zeni-epic-state-BlmgKn3B.js";import{S as Vt,s as Lt}from"./CompanyOfficerDetailsSection-1BDesjjs-BJgYaGxB.js";import"./liveblocks-B2F837W5.js";import"./core-BZCxWmUX.js";import"./recharts-CCryt90F.js";import"./lottie-CgAPdzgC.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";import"./LabeledAddressValueField-BNPvRvHU-EK3HrcNO.js";import"./LabeledCreatableSingleSelectField-C1dHZ9ym-iC8YKpuW.js";import"./LabeledDocumentField-ffpHZV4a-BUHqIKgG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},D=new e.Error().stack;D&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[D]="888267c1-a770-404f-b845-da6d3622dc9f",e._sentryDebugIdIdentifier="sentry-dbid-888267c1-a770-404f-b845-da6d3622dc9f")}catch{}})();const x={width:new O(343,580,726),titleWidth:new O(343,580,726,826),subTitlePaddingTop:new O(12,k[3]),subTitlePaddingBottom:new O(k[3],k[3]),verificationDetailsRowGap:new O(12,k[5],k[5]),termsPaddingLeftRight:new O(k[0],k[3])},Ft={stepTitle:new jt("h6Regular","h5Regular")},ke="businessVerificationPage",C="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:_t,currency:Pe,footer:je,strings:{empty:At}}}=Le.getLocalizedStrings(),xa=({businessVerificationDetails:e,allNationalityCountries:D,verficationDetailsFetchState:P,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:A,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:p,isDisabled:j,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:Q=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Ae,onBackClick:L,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,onSendForVerificationClick:ze,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:We,onCompanyOfficerUpdated:Ge,saveNewAddressInLocalStore:re,onSaveDetailsClick:Me,onClickMenuIcon:Qe,onExecuteTreasuryTransfer:qe})=>{const Ke=ct(),m=dt(),{updateStatus:z,companyView:F,companyDetailsLocalData:l,companyOfficerLocalData:w}=e,Xe=De(z.fetchState),U=F?.company.company.featuresActivationInfo.connectedAccountProvider,Ye=U==="unit"?a.jsxs(Qt,{children:[i.terms.term1,a.jsx(G,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(G,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(G,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(G,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ze,q]=V.useState(!1),[W,oe]=V.useState("save"),[K,Je]=V.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:Bt(e,B,E,D)}),{isValid:He}=u.formState,X=F?.company.company.companyBillPayInfo,Y=F?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?Y?.companyVerificationStatus:X?.companyVerificationStatus,v=Object.values(w).findIndex(t=>t?.isSelectedForVerification===!0),I=`Officer_${v<0?1:v+1}`,et=()=>{const t=w[I],s=t?.email,c=t?.birthday?.toString(),f=t?.ownershipInCompany,b=t?.firstName,$=t?.lastName,me=t?.titleAtCompany,ue=t?.documentTypeSelectedForVerification,pe=t?.phone,fe=t?.addressStatus?.addressToCreate,ye=fe!=null?M(fe):void 0,he=l?.companyDescription,H=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?M(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,be=ee?.firstName,Ce=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&b!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&be!=null&&Ce!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:be,lastName:Ce,email:Te},y,n?"Settings":void 0)},tt=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email??"",f=!!t?.firstName&&!!t?.lastName,b=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!t?.firstName||!t?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):b&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${C}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const t=w[I],s=l?.primaryContactLocalData,c=t?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${C}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(t?.firstName||t?.lastName||t?.birthday||t?.nationalityCountryCode||t?.ownershipInCompany||t?.phone||t?.ssn||t?.titleAtCompany||t?.addressStatus?.addressToCreate||t?.fileIds!=null&&t?.fileIds.length>0||Z!=null&&Z?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(W!=="verification"&&oe("verification"),U==="unit"&&w[I]?.isPhoneVerified!==!0){u.setError(`${T}.${v}.phone`,{type:"custom"});return}const t=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);Ot(t.concat(s)).fetchState!=="In-Progress"&&He&&(et(),ze?.(I),Q===!0&&qe?.())}),st=async(t,s)=>{t.includes(C)?Ue?.(s[C]):t.includes(T)&&Ge?.(s[T])},nt=V.useCallback(pt((t,s)=>{st(t,s)},300),[]);V.useEffect(()=>{const t=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{t.unsubscribe()}});const le=De(e.companyDetailsLocalData?.addressStatus);V.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${C}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=F?.companyOfficers.slice(0,10).sort((t,s)=>t.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),Z=ce?.map(t=>t.user),rt=ce?.map(t=>t.role),ot={onOkClick:()=>{q(!1),L();const t=[],s=F?.company.company.incInfo.fileIds??[];u.getValues(`${C}.fileIds`).forEach(c=>{s.includes(c)||t.push(c)}),rt?.forEach((c,f)=>{const b=c?.fileIds??[];u.getValues(`${T}.${f}.fileIds`).forEach($=>{b.includes($)||t.push($)})}),t.length!==0&&We?.(t)},onCancelClick:()=>{q(!1)}},lt=ve(Ie(p),p,Pe.currencySymbol).toUpperCase(),J=N?.code==="pending_review"||N?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&N?.code==="pending_review"&&Xe==="In-Progress"&&z.fetchState==="Completed"?a.jsxs(Ht,{children:[a.jsxs(ea,{children:[a.jsx(yt,{}),a.jsx(ta,{windowSize:m,children:Q===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Jt,{isReadonly:!1,children:Q===!0?i.submittedDescriptionWithTransfer.replace("__amount__",ve(Ie(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ht,{label:i.submittedButton,onClick:()=>{L(),te?.()},variant:"primary"})]}):a.jsxs(Et,{isSettings:n,children:[a.jsx(gt,{title:h&&S===!0?At:i.header,backgroundColor:Ke.colors.grey5,style:{zIndex:K?1:4},onBackClick:()=>{St(u.formState.dirtyFields)?q(!0):L()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Qe,rightSideComponent:h?a.jsx(aa,{"data-testid":xt("nav-bar-close-business-verification-overlay"),onClick:()=>{L(),te?.()}}):null,source:"BusinessVerificationPage"}),Ze===!0?a.jsx(wt,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Ut,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?_t.infoText.businessVerification:i.title}),P==="In-Progress"||P==="Not-Started"?a.jsx(Wt,{children:a.jsx(Tt,{size:"ExtraLarge",start:!0})}):a.jsx(Dt,{...u,children:a.jsxs("form",{id:Ne(ke),onSubmit:it,children:[h&&S===!0&&a.jsxs(Rt,{children:[a.jsxs(qt,{windowSize:m,children:[a.jsx(Kt,{windowSize:m,children:J?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!J&&a.jsx(Xt,{children:a.jsxs(Yt,{children:[a.jsx(Oe,{}),de&&a.jsx(Oe,{}),a.jsx(Zt,{})]})})]}),a.jsx(_e,{isReadonly:J,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Gt,{children:[a.jsx(Vt,{companyOfficerData:w,allNationalityCountries:D,allOfficers:Z??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:j,filesEndPoint:r,authParams:A,isPopupOpen:K,openPopup:Je,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:Re,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Lt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:C,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":j,fileProps:{authParams:A,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:Ae,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Mt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),P==="Completed"&&(y==="zeni_treasury"?Y?.companyVerificationStatus?.code!=="pending_review"&&Y?.companyVerificationStatus?.code!=="verified":X?.businessVerificationStatus?.code!=="pending_review"&&X?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Ne(ke),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="verification"&&z.fetchState==="In-Progress",isDisabled:j!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="save"&&z.fetchState==="In-Progress",onClick:()=>{if(S)L();else{const t=w[I],s=l?.primaryContactLocalData;W!=="save"&&oe("save");const c=t?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:t?.birthday?.toString(),companyOwnership:t?.ownershipInCompany,firstName:t?.firstName,lastName:t?.lastName,companyRole:t?.titleAtCompany,phone:t?.phone,formattedAddress:t?.addressStatus?.addressToCreate!=null?M(t?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:t?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?M(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Me?.(I))}}},helperText:Ye,style:{padding:`12px ${o.sp3}`,zIndex:K?0:4}}):null]})},Bt=(e,D,P,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:A,companyView:y}=e,B=Le.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[C]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:D?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(A).map((p,j)=>{const n=p,h=It(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${j+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:P?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,n?.userFiles??[],h),back:$e(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&j===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=e=>`${e}_form`,Et=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{Q as m,V as r,F as b,b as y,o as a,R as w,a as x}from"./index-G4udIFQJ.js";import{n as o}from"./mui-BDpZEDd-.js";import{a as c}from"./sentry-CTrMrBL8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="7e9f564c-14a8-476d-82f6-b9950b2dbca2",e._sentryDebugIdIdentifier="sentry-dbid-7e9f564c-14a8-476d-82f6-b9950b2dbca2")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=b.getLocalizedStrings(),C={subText:new w("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,r.jsx(H,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},v=o(x)`
1
+ import{Q as m,V as r,F as b,b as y,o as a,R as w,a as x}from"./index-CRjLU1CH.js";import{n as o}from"./mui-G_qoHHKo.js";import{a as c}from"./sentry-DZdy1Eny.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="7e9f564c-14a8-476d-82f6-b9950b2dbca2",e._sentryDebugIdIdentifier="sentry-dbid-7e9f564c-14a8-476d-82f6-b9950b2dbca2")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=b.getLocalizedStrings(),C={subText:new w("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,r.jsx(H,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},v=o(x)`
2
2
  ${e=>e.forDetailPage?{...y.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;
@@ -1,4 +1,4 @@
1
- import{e as k,Q as b,V as t,bC as te,fh as z,b as u,b3 as Q,b$ as ie,o as i,F as w,p as B,y as h,al as v,di as oe,u as l,aY as re,aN as T,bR as ae,ai as $,aP as L,ji as X,jj as q,i_ as se,cz as ne,cC as de,am as O,i$ as le,j0 as ce}from"./index-G4udIFQJ.js";import{n as o}from"./mui-BDpZEDd-.js";import{G8 as f,bh as he}from"./zeni-epic-state-B_64dD7k.js";import{P as R,a as V}from"./sentry-CTrMrBL8.js";import{F as pe}from"./InsightsSection-DtP4W8UU-ChHNdzk5.js";import{H as ge,I as me,X as xe,Y as we,J as ue,K as ye,V as be}from"./recharts-B3SHU5RU.js";import"./liveblocks-CV4wYZBt.js";import"./core-CfLdY-k_.js";import"./lottie-Dw1I6Lqb.js";import"./analytics-BYwa85mC.js";import"./lexical-C2hQPjBk.js";import"./utils-yHZwLkmM.js";import"./NavigationDots-DbtOiTYP-BWzsBzui.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]="efb183a2-6da8-4259-8046-b20c313617b9",e._sentryDebugIdIdentifier="sentry-dbid-efb183a2-6da8-4259-8046-b20c313617b9")}catch{}})();const fe=({x:e,y:a,width:n,height:s,payload:r})=>{const c=k();return t.jsx(be,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(_,{children:W.month})," ",t.jsx(G,{children:f(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(_,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
1
+ import{e as k,Q as f,V as t,bC as te,fh as z,b as u,b3 as Q,b$ as ie,o as i,F as w,p as B,y as h,al as v,di as oe,u as l,aY as re,aN as T,bR as ae,ai as $,aP as L,ji as X,jj as q,i_ as se,cz as ne,cC as de,am as O,i$ as le,j0 as ce}from"./index-CRjLU1CH.js";import{n as o}from"./mui-G_qoHHKo.js";import{G8 as b,bh as he}from"./zeni-epic-state-BlmgKn3B.js";import{P as R,a as V}from"./sentry-DZdy1Eny.js";import{F as pe}from"./InsightsSection-Ldcdpf_t-BR1EacmB.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-CCryt90F.js";import"./liveblocks-B2F837W5.js";import"./core-BZCxWmUX.js";import"./lottie-CgAPdzgC.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";import"./NavigationDots-CjxNj1Qo-DN4lM7to.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="6bafeafe-aa99-490e-9b35-fddc552e93d3",e._sentryDebugIdIdentifier="sentry-dbid-6bafeafe-aa99-490e-9b35-fddc552e93d3")}catch{}})();const be=({x:e,y:a,width:n,height:s,payload:r})=>{const c=k();return t.jsx(fe,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:a,width:n,height:s})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,$e=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,ve=({active:e,payload:a,label:n})=>e===!0&&(a?.[0].payload).showTooltip===!0?t.jsx(je,{children:t.jsx(ke,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(_,{children:W.month})," ",t.jsx(G,{children:b(n).format($e)})]}),t.jsxs(E,{children:[t.jsx(_,{children:W.cashback}),t.jsx(G,{children:T("0,0.[00]",{amount:a?.[0].value??0,currencyCode:(a?.[0].payload).currencyCode,currencySymbol:(a?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
2
2
  display: flex;
3
3
  gap: ${i.sp1};
4
4
  `,je=o.div`
@@ -20,11 +20,11 @@ import{e as k,Q as b,V as t,bC as te,fh as z,b as u,b3 as Q,b$ as ie,o as i,F as
20
20
  `,_=o($)`
21
21
  color: ${e=>e.theme.colors.hero};
22
22
  min-width: 107px;
23
- `,Se=R.memo(ve),{dateFormat:{visual:{MMMYYFormat:Ce,YYYYDashMMFormat:U}},common:{currency:M}}=w.getLocalizedStrings(),ze=({chartData:e,customToolTipContent:a,width:n,height:s})=>{const r=k();return t.jsx(Me,{width:n,height:s,children:t.jsx(Q,{children:({height:c,width:p})=>t.jsxs(ge,{width:p,height:c,data:e,barCategoryGap:"25%",margin:{top:5,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(me,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:r.colors.grey3}),t.jsx(xe,{dataKey:"period",type:"category",axisLine:{stroke:r.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:r.colors.hero,...u.extraSmallRegular.cssObject},tickFormatter:g=>f(g).format(Ce)}),t.jsx(we,{type:"number",axisLine:!1,tickLine:!1,tick:{color:r.colors.hero,...u.extraSmallRegular.cssObject},tickFormatter:g=>re("0,0.[00]a",g,e?.[0].currencySymbol??M.currencySymbol)}),t.jsx(ue,{cursor:t.jsx(fe,{}),content:a}),t.jsx(ye,{dataKey:"amount",fill:r.colors.brandColorJadeDark,barSize:36})]})})})};function Le({cashbackByPeriod:e,width:a,height:n}){const s=oe(e,c=>f(c.period),"asc"),r=Ie(s);return t.jsx(ze,{chartData:r,customToolTipContent:({active:c,payload:p,label:g})=>t.jsx(Se,{active:c,payload:p,label:g}),width:a,height:n})}const Pe=e=>e.format(U),Ie=e=>{const a=e.map(r=>({...r,showTooltip:!0})),n=e[e.length-1];let s=n?.period??he().subtract(1,"M").format(U);for(;a.length<12;){const r={amount:0,period:Pe(f(s).add(1,"M")),showTooltip:!1,currencyCode:n?.currencyCode??M.currencyCode,currencySymbol:n?.currencySymbol??M.currencySymbol};a.push(r),s=r.period}return a},Me=o.div`
23
+ `,Se=R.memo(ve),{dateFormat:{visual:{MMMYYFormat:Ce,YYYYDashMMFormat:U}},common:{currency:M}}=w.getLocalizedStrings(),ze=({chartData:e,customToolTipContent:a,width:n,height:s})=>{const r=k();return t.jsx(Me,{width:n,height:s,children:t.jsx(Q,{children:({height:c,width:p})=>t.jsxs(ge,{width:p,height:c,data:e,barCategoryGap:"25%",margin:{top:5,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[t.jsx(me,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:r.colors.grey3}),t.jsx(xe,{dataKey:"period",type:"category",axisLine:{stroke:r.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:r.colors.hero,...u.extraSmallRegular.cssObject},tickFormatter:g=>b(g).format(Ce)}),t.jsx(we,{type:"number",axisLine:!1,tickLine:!1,tick:{color:r.colors.hero,...u.extraSmallRegular.cssObject},tickFormatter:g=>re("0,0.[00]a",g,e?.[0].currencySymbol??M.currencySymbol)}),t.jsx(ue,{cursor:t.jsx(be,{}),content:a}),t.jsx(ye,{dataKey:"amount",fill:r.colors.brandColorJadeDark,barSize:36})]})})})};function Le({cashbackByPeriod:e,width:a,height:n}){const s=oe(e,c=>b(c.period),"asc"),r=Ie(s);return t.jsx(ze,{chartData:r,customToolTipContent:({active:c,payload:p,label:g})=>t.jsx(Se,{active:c,payload:p,label:g}),width:a,height:n})}const Pe=e=>e.format(U),Ie=e=>{const a=e.map(r=>({...r,showTooltip:!0})),n=e[e.length-1];let s=n?.period??he().subtract(1,"M").format(U);for(;a.length<12;){const r={amount:0,period:Pe(b(s).add(1,"M")),showTooltip:!1,currencyCode:n?.currencyCode??M.currencyCode,currencySymbol:n?.currencySymbol??M.currencySymbol};a.push(r),s=r.period}return a},Me=o.div`
24
24
  width: ${e=>e.width}px;
25
25
  height: ${e=>e.height}px;
26
26
  background: ${e=>e.theme.colors.grey5};
27
- `,Z=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,Fe={key:"month",value:Z.month,sortOrder:"ascending",width:new h(50,50)},De={key:"cashback",value:Z.cashback,sortOrder:"ascending",width:new h(50,50)},ee=()=>[Fe,De],y={headerLastColumnTopPadding:new h(l[0],l[4]),headerLastColumnRightPadding:new h(l[3],l[11]),headerLastColumnBottomPadding:new h(l[0],l[4]),headerLastColumnLeftPadding:new h(l[3],l[11]),headerHeight:new h(le,ce)};function Be({sortConfig:e,onColumnSortConfigChanged:a}){const n=k(),s=b(),[r,c]=V.useState(ee());V.useEffect(()=>{const d=[...r];for(const m of d)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";c(d)},[e.sortKey,e.sortOrder]);const p=(d,m)=>{let K=m;e.sortKey===d&&(K=m==="ascending"?"descending":"ascending"),a(d,K)},g=r.find(d=>d.key===e.sortKey)??r[0],S=d=>r.find(m=>m.key===d)?.value??"",C=r.map(d=>d.key),Y=w.getLocalizedStrings().spendManagement.chargeCard.cardList;return s==="small"?t.jsxs(A,{windowSize:s,children:[t.jsxs(Ye,{children:[t.jsx(Ve,{children:t.jsx(Ke,{})}),t.jsx(ae,{title:Y.sortBy,placeholder:Y.sortBy,pickerValues:C,valueToLabel:S,selectedValue:e.sortKey,onPickerSelectionChanged:d=>{p(d,"ascending")},optionTextStyle:u.smallRegular,titleTextStyle:u.smallRegular,titleColor:n.colors.primary,selectedOptionColor:n.colors.hero,optionBackgroundColor:n.colors.grey5,downChevronVisible:!1,backgroundColor:n.colors.grey4})]}),t.jsxs(Ge,{onClick:()=>p(g.key,g.sortOrder),"data-testid":L("cashback-list-header-mobile",g.value),children:[t.jsx($,{children:g.value}),t.jsx(H,{sortDataValue:e.sortKey,headerdata:g,children:t.jsx(J,{})})]})]}):t.jsx(A,{windowSize:s,children:r.map((d,m)=>t.jsxs(Oe,{sortDataValue:e.sortKey,actualDataValue:d.key,wrapperWidth:d.width,isLastItem:m===r.length-1,windowSize:s,children:[t.jsxs(Ee,{onClick:()=>p(d.key,d.sortOrder),"data-testid":L("cashback-list-header",d.value),children:[t.jsx($,{children:d.value}),t.jsx(H,{sortDataValue:e.sortKey,headerdata:d,children:t.jsx(J,{})})]}),t.jsx(We,{sortDataValue:e.sortKey,windowSize:s,isVisible:e.sortKey===d.key&&d.key!=="month",children:t.jsx(Re,{onClick:()=>p("month","ascending"),"data-testid":L("cashback-list-close-sort",d.key)})})]},d.key))})}const Te=R.memo(Be),A=o($)`
27
+ `,Z=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,Fe={key:"month",value:Z.month,sortOrder:"ascending",width:new h(50,50)},De={key:"cashback",value:Z.cashback,sortOrder:"ascending",width:new h(50,50)},ee=()=>[Fe,De],y={headerLastColumnTopPadding:new h(l[0],l[4]),headerLastColumnRightPadding:new h(l[3],l[11]),headerLastColumnBottomPadding:new h(l[0],l[4]),headerLastColumnLeftPadding:new h(l[3],l[11]),headerHeight:new h(le,ce)};function Be({sortConfig:e,onColumnSortConfigChanged:a}){const n=k(),s=f(),[r,c]=V.useState(ee());V.useEffect(()=>{const d=[...r];for(const m of d)m.key===e.sortKey?m.sortOrder=e.sortOrder:m.sortOrder="ascending";c(d)},[e.sortKey,e.sortOrder]);const p=(d,m)=>{let K=m;e.sortKey===d&&(K=m==="ascending"?"descending":"ascending"),a(d,K)},g=r.find(d=>d.key===e.sortKey)??r[0],S=d=>r.find(m=>m.key===d)?.value??"",C=r.map(d=>d.key),Y=w.getLocalizedStrings().spendManagement.chargeCard.cardList;return s==="small"?t.jsxs(A,{windowSize:s,children:[t.jsxs(Ye,{children:[t.jsx(Ve,{children:t.jsx(Ke,{})}),t.jsx(ae,{title:Y.sortBy,placeholder:Y.sortBy,pickerValues:C,valueToLabel:S,selectedValue:e.sortKey,onPickerSelectionChanged:d=>{p(d,"ascending")},optionTextStyle:u.smallRegular,titleTextStyle:u.smallRegular,titleColor:n.colors.primary,selectedOptionColor:n.colors.hero,optionBackgroundColor:n.colors.grey5,downChevronVisible:!1,backgroundColor:n.colors.grey4})]}),t.jsxs(Ge,{onClick:()=>p(g.key,g.sortOrder),"data-testid":L("cashback-list-header-mobile",g.value),children:[t.jsx($,{children:g.value}),t.jsx(H,{sortDataValue:e.sortKey,headerdata:g,children:t.jsx(J,{})})]})]}):t.jsx(A,{windowSize:s,children:r.map((d,m)=>t.jsxs(Oe,{sortDataValue:e.sortKey,actualDataValue:d.key,wrapperWidth:d.width,isLastItem:m===r.length-1,windowSize:s,children:[t.jsxs(Ee,{onClick:()=>p(d.key,d.sortOrder),"data-testid":L("cashback-list-header",d.value),children:[t.jsx($,{children:d.value}),t.jsx(H,{sortDataValue:e.sortKey,headerdata:d,children:t.jsx(J,{})})]}),t.jsx(We,{sortDataValue:e.sortKey,windowSize:s,isVisible:e.sortKey===d.key&&d.key!=="month",children:t.jsx(Re,{onClick:()=>p("month","ascending"),"data-testid":L("cashback-list-close-sort",d.key)})})]},d.key))})}const Te=R.memo(Be),A=o($)`
28
28
  top: ${i.sp0};
29
29
  left: ${i.sp0};
30
30
  min-height: ${e=>y.headerHeight.valuePx(e.windowSize)};
@@ -94,7 +94,7 @@ import{e as k,Q as b,V as t,bC as te,fh as z,b as u,b3 as Q,b$ as ie,o as i,F as
94
94
  &:hover {
95
95
  color: ${e=>e.theme.colors.primary};
96
96
  }
97
- `,x={containerPaddingLeft:new h(l[3],l[4]),containerPaddingRight:new h(l[3],l[4]),containerPaddingTop:new h(l[2],16),containerPaddingBottom:new h(l[2],16),containerMarginLeft:new h(l[4],l[8]),webkitLineClamp:new h(2,1,1,1,1)},{spendManagement:{chargeCard:{cashbackDetail:_e}},dateFormat:{visual:Ae}}=w.getLocalizedStrings(),He=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=b(),r=ee(),c=X(e.period),p=q(c);return t.jsx(Xe,{windowSize:s,isFirstItem:a,isLastItem:n,children:t.jsx(qe,{children:t.jsxs(Ue,{children:[t.jsx(Ze,{windowSize:s,responsiveWidth:r[0].width,children:t.jsxs(et,{windowSize:s,children:[f(e.period).format(Ae.MMMMYYYYFormat),p?t.jsxs(Ne,{children:[t.jsx(Qe,{}),t.jsx(Je,{children:_e.tillDate})]}):null]})}),t.jsx(tt,{windowSize:s,responsiveWidth:r[1].width,children:t.jsx(it,{windowSize:s,children:T("0,0.[00]",{amount:e.amount,currencyCode:e.currencyCode,currencySymbol:e.currencySymbol})})})]})})})},Je=o(O)`
97
+ `,x={containerPaddingLeft:new h(l[3],l[4]),containerPaddingRight:new h(l[3],l[4]),containerPaddingTop:new h(l[2],16),containerPaddingBottom:new h(l[2],16),containerMarginLeft:new h(l[4],l[8]),webkitLineClamp:new h(2,1,1,1,1)},{spendManagement:{chargeCard:{cashbackDetail:_e}},dateFormat:{visual:Ae}}=w.getLocalizedStrings(),He=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=f(),r=ee(),c=X(e.period),p=q(c);return t.jsx(Xe,{windowSize:s,isFirstItem:a,isLastItem:n,children:t.jsx(qe,{children:t.jsxs(Ue,{children:[t.jsx(Ze,{windowSize:s,responsiveWidth:r[0].width,children:t.jsxs(et,{windowSize:s,children:[b(e.period).format(Ae.MMMMYYYYFormat),p?t.jsxs(Ne,{children:[t.jsx(Qe,{}),t.jsx(Je,{children:_e.tillDate})]}):null]})}),t.jsx(tt,{windowSize:s,responsiveWidth:r[1].width,children:t.jsx(it,{windowSize:s,children:T("0,0.[00]",{amount:e.amount,currencyCode:e.currencyCode,currencySymbol:e.currencySymbol})})})]})})})},Je=o(O)`
98
98
  color: ${e=>e.theme.colors.grey1};
99
99
  `,Ne=o.div`
100
100
  display: flex;
@@ -175,7 +175,7 @@ import{e as k,Q as b,V as t,bC as te,fh as z,b as u,b3 as Q,b$ as ie,o as i,F as
175
175
  width: 100%;
176
176
  display: flex;
177
177
  justify-content: end;
178
- `,F={containerMarginLeft:new h(l[3],l[8]),webkitLineClamp:new h(2,2,1,1,1)},{spendManagement:{chargeCard:{cashbackDetail:ot}},dateFormat:{visual:rt}}=w.getLocalizedStrings(),at=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=b(),r=X(e.period),c=q(r);return t.jsx(lt,{windowSize:s,isFirstItem:a,isLastItem:n,children:t.jsx(ct,{children:t.jsxs(ht,{children:[t.jsx(gt,{children:t.jsxs(pt,{windowSize:s,children:[f(e.period).format(rt.MMMMYYYYFormat),c?t.jsxs(nt,{children:[t.jsx(dt,{}),t.jsx(st,{children:ot.tillDate})]}):null]})}),t.jsx(mt,{children:t.jsx(xt,{children:T("0,0.[00]",{amount:e.amount,currencyCode:e.currencyCode,currencySymbol:e.currencySymbol})})})]})})})},st=o(O)`
178
+ `,F={containerMarginLeft:new h(l[3],l[8]),webkitLineClamp:new h(2,2,1,1,1)},{spendManagement:{chargeCard:{cashbackDetail:ot}},dateFormat:{visual:rt}}=w.getLocalizedStrings(),at=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=f(),r=X(e.period),c=q(r);return t.jsx(lt,{windowSize:s,isFirstItem:a,isLastItem:n,children:t.jsx(ct,{children:t.jsxs(ht,{children:[t.jsx(gt,{children:t.jsxs(pt,{windowSize:s,children:[b(e.period).format(rt.MMMMYYYYFormat),c?t.jsxs(nt,{children:[t.jsx(dt,{}),t.jsx(st,{children:ot.tillDate})]}):null]})}),t.jsx(mt,{children:t.jsx(xt,{children:T("0,0.[00]",{amount:e.amount,currencyCode:e.currencyCode,currencySymbol:e.currencySymbol})})})]})})})},st=o(O)`
179
179
  color: ${e=>e.theme.colors.grey1};
180
180
  `,nt=o.div`
181
181
  display: flex;
@@ -232,10 +232,10 @@ import{e as k,Q as b,V as t,bC as te,fh as z,b as u,b3 as Q,b$ as ie,o as i,F as
232
232
  flex-direction: column;
233
233
  `,xt=o(O)`
234
234
  color: ${e=>e.theme.colors.hero};
235
- `,N={separatorMarginLeftRight:new h(l[3],l[8])},wt=({cashbackByPeriod:e,uiState:a,onColumnSortConfigChanged:n})=>{const s=b();return t.jsxs(bt,{children:[t.jsx(Te,{onColumnSortConfigChanged:n,sortConfig:{sortKey:a.sortKey,sortOrder:a.sortOrder}}),t.jsx(yt,{children:e.map((r,c)=>t.jsxs(R.Fragment,{children:[t.jsx(ut,{cashbackPeriod:r,isFirstItem:c===0,isLastItem:c===e.length-1}),c===e.length-1?null:t.jsx(ft,{windowSize:s})]},r.period))})]})},ut=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=b()==="small"?at:He;return t.jsx(s,{cashbackPeriod:e,isFirstItem:a,isLastItem:n})},yt=o.div``,bt=o.div`
235
+ `,N={separatorMarginLeftRight:new h(l[3],l[8])},wt=({cashbackByPeriod:e,uiState:a,onColumnSortConfigChanged:n})=>{const s=f();return t.jsxs(ft,{children:[t.jsx(Te,{onColumnSortConfigChanged:n,sortConfig:{sortKey:a.sortKey,sortOrder:a.sortOrder}}),t.jsx(yt,{children:e.map((r,c)=>t.jsxs(R.Fragment,{children:[t.jsx(ut,{cashbackPeriod:r,isFirstItem:c===0,isLastItem:c===e.length-1}),c===e.length-1?null:t.jsx(bt,{windowSize:s})]},r.period))})]})},ut=({cashbackPeriod:e,isFirstItem:a,isLastItem:n})=>{const s=f()==="small"?at:He;return t.jsx(s,{cashbackPeriod:e,isFirstItem:a,isLastItem:n})},yt=o.div``,ft=o.div`
236
236
  display: block;
237
237
  height: 100%;
238
- `,ft=o.div`
238
+ `,bt=o.div`
239
239
  display: flex;
240
240
  flex: 1;
241
241
  background-color: ${e=>e.theme.colors.grey3};
@@ -243,7 +243,7 @@ import{e as k,Q as b,V as t,bC as te,fh as z,b as u,b3 as Q,b$ as ie,o as i,F as
243
243
  max-height: 1px;
244
244
  margin-left: ${e=>N.separatorMarginLeftRight.valuePx(e.windowSize)};
245
245
  margin-right: ${e=>N.separatorMarginLeftRight.valuePx(e.windowSize)};
246
- `,D={pageContentPaddingLeftRight:new h(l[3],l[8]),cashbackSummaryContainerGap:new h(l[3],96)},j=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail,Vt=({insightsData:e,cashbackByPeriod:a,uiState:n,cashbackSummary:s,onBackClick:r,onColumnSortConfigChanged:c})=>{const p=k(),g=b();return t.jsxs(Ct,{children:[t.jsx(te,{title:j.title,showBackButton:!0,showMenuIcon:!1,style:{zIndex:3},onBackClick:r,backgroundColor:p.colors.grey5,source:"CashbackDetailPage"}),t.jsxs($t,{windowSize:g,children:[t.jsxs(vt,{windowSize:g,children:[t.jsxs(P,{children:[t.jsx(I,{children:j.totalEarned}),t.jsx(z,{amount:s.cashbackEarned,style:{color:p.colors.brandColorJadeDark},decimalStyles:u.largeSemiBold.cssObject})]}),t.jsxs(P,{children:[t.jsx(I,{children:j.redeemed}),t.jsx(z,{amount:s.cashbackRedeemed,style:{color:p.colors.brandColorOpalDark},decimalStyles:u.largeSemiBold.cssObject})]}),t.jsxs(P,{children:[t.jsx(I,{children:j.available}),t.jsx(z,{amount:s.cashbackAvailable,style:{color:p.colors.brandColorGoldDark},decimalStyles:u.largeSemiBold.cssObject})]})]}),t.jsx(jt,{children:t.jsx(Q,{children:({height:S,width:C})=>t.jsx(Le,{cashbackByPeriod:a,width:C,height:S})})}),t.jsx(kt,{children:t.jsx(pe,{insights:[{...e}],summaryTextStyles:{fontWeight:ie.regular,color:p.colors.primary}})})]}),t.jsx(St,{children:t.jsx(wt,{cashbackByPeriod:a,uiState:n,onColumnSortConfigChanged:c})})]})},$t=o.div`
246
+ `,D={pageContentPaddingLeftRight:new h(l[3],l[8]),cashbackSummaryContainerGap:new h(l[3],96)},j=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail,Vt=({insightsData:e,cashbackByPeriod:a,uiState:n,cashbackSummary:s,onBackClick:r,onColumnSortConfigChanged:c})=>{const p=k(),g=f();return t.jsxs(Ct,{children:[t.jsx(te,{title:j.title,showBackButton:!0,showMenuIcon:!1,style:{zIndex:3},onBackClick:r,backgroundColor:p.colors.grey5,source:"CashbackDetailPage"}),t.jsxs($t,{windowSize:g,children:[t.jsxs(vt,{windowSize:g,children:[t.jsxs(P,{children:[t.jsx(I,{children:j.totalEarned}),t.jsx(z,{amount:s.cashbackEarned,style:{color:p.colors.brandColorJadeDark},decimalStyles:u.largeSemiBold.cssObject})]}),t.jsxs(P,{children:[t.jsx(I,{children:j.redeemed}),t.jsx(z,{amount:s.cashbackRedeemed,style:{color:p.colors.brandColorOpalDark},decimalStyles:u.largeSemiBold.cssObject})]}),t.jsxs(P,{children:[t.jsx(I,{children:j.available}),t.jsx(z,{amount:s.cashbackAvailable,style:{color:p.colors.brandColorGoldDark},decimalStyles:u.largeSemiBold.cssObject})]})]}),t.jsx(jt,{children:t.jsx(Q,{children:({height:S,width:C})=>t.jsx(Le,{cashbackByPeriod:a,width:C,height:S})})}),t.jsx(kt,{children:t.jsx(pe,{insights:[{...e}],summaryTextStyles:{fontWeight:ie.regular,color:p.colors.primary}})})]}),t.jsx(St,{children:t.jsx(wt,{cashbackByPeriod:a,uiState:n,onColumnSortConfigChanged:c})})]})},$t=o.div`
247
247
  position: relative;
248
248
  box-shadow: ${B.dropShadowNormalLight} 2px 2px ${i.sp1};
249
249
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{e as at,Q as Ie,aw as Lt,a8 as Dt,gZ as Sr,hC as Ti,aV as et,g_ as $r,aQ as tt,V as t,h1 as Ai,bC as Fi,u as h,fV as vr,aN as qe,aP as Q,bB as Ri,bT as ta,p as c,o as a,F as ke,j4 as kr,b as _,cp as Ei,j5 as Pi,fb as zi,gP as Mi,j6 as Vi,bF as Oi,bO as jr,aT as aa,y as T,b7 as ra,bK as Ir,ai as Ce,eF as Hi,ba as ia,iU as Ni,aU as Lr,h as ft,h0 as Dr,cd as Bi,T as Ct,b3 as Wi,dp as _i,ct as Ui,j7 as Gi,j8 as Tr,j9 as dt,Y as Zi,a$ as qi,ja as Yi,jb as Ki,cq as Ji,d6 as Xi,hz as Qi,al as ze,bV as eo,av as Ut,jc as Ma,jd as to,dj as ao,R as Va,a as Ar,b9 as ro,aB as io,iO as mt,iZ as oo,j2 as no,j3 as so,dw as Oa,eV as co,r as Fr,cz as Rr,iX as lo,bY as ho,d as Er,je as po,au as kt,b$ as Ha,bx as uo,df as mo,aq as go,am as lt,gY as Co,C as fo,bG as wo,jf as Tt,fo as xo,jg as Pr,gz as zr,jh as It,ig as Mr,i4 as Vr,bR as yo,ek as Or,i_ as bo,cC as So,dR as $o,d0 as vo,i$ as ko,j0 as jo,eq as Io,cg as Lo,ch as Do}from"./index-G4udIFQJ.js";import{a as o,P as To}from"./sentry-CTrMrBL8.js";import{n as r,c as we,k as Hr}from"./mui-BDpZEDd-.js";import{EP as At,bh as Ao,bf as Fo,G7 as Ro}from"./zeni-epic-state-B_64dD7k.js";import{k as Eo}from"./NavigationDots-DbtOiTYP-BWzsBzui.js";import{A as Po,i as zo,a as Mo,l as Vo,r as Oo,t as Ho,n as No}from"./add-to-wallet-DgdBD8_G-BLYF7nQu.js";import{L as Gt}from"./lottie-Dw1I6Lqb.js";import{j as Bo}from"./CardNumberSubText-DBFaTSBz-DdN0VEfE.js";import{l as Wo}from"./panelSelectedMixin-CzfD5-Zs-Q8m7K4oN.js";import{r as Nr}from"./core-CfLdY-k_.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-DwGGi1Mb.js";import{L as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-BFpvk55j-yA-a8X9D.js";import"./liveblocks-CV4wYZBt.js";import"./recharts-B3SHU5RU.js";import"./analytics-BYwa85mC.js";import"./lexical-C2hQPjBk.js";import"./utils-yHZwLkmM.js";import"./RoleWithToolTip-DlIcPRiy-DyibMc5_.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]="e2707be0-b598-46b6-96bb-1c539623dd6f",e._sentryDebugIdIdentifier="sentry-dbid-e2707be0-b598-46b6-96bb-1c539623dd6f")}catch{}})();const Wr=ke.getLocalizedStrings().spendManagement.chargeCard,qo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:w,chargeCardDetailView:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:A,setWalletType:S,setIsAddToWalletDrawerOpen:z,isDebitCard:M})=>{const y=Dt().analytics,{isIPadScreen:G}=Yi(),{isAndroidScreen:Y}=Ki(),K=Lt(),F=At(K.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(j,"_blank")}}):Y===!0?t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{S("apple"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}}),t.jsx(Qt,{onClick:()=>{S("google"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}})]})})},Qt=({onClick:e})=>{const i=at();return t.jsx(Fr,{prefixIcon:t.jsx(Ko,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=at();return t.jsx(Fr,{prefixIcon:t.jsx(Jo,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-apple-wallet-button")})},Yo=r.div`
1
+ import{e as at,Q as Ie,aw as Lt,a8 as Dt,gZ as Sr,hC as Ti,aV as et,g_ as $r,aQ as tt,V as t,h1 as Ai,bC as Fi,u as h,fV as vr,aN as qe,aP as Q,bB as Ri,bT as ta,p as c,o as a,F as ke,j4 as kr,b as _,cp as Ei,j5 as Pi,fb as zi,gP as Mi,j6 as Vi,bF as Oi,bO as jr,aT as aa,y as T,b7 as ra,bK as Ir,ai as Ce,eF as Hi,ba as ia,iU as Ni,aU as Lr,h as ft,h0 as Dr,cd as Bi,T as Ct,b3 as Wi,dp as _i,ct as Ui,j7 as Gi,j8 as Tr,j9 as dt,Y as Zi,a$ as qi,ja as Yi,jb as Ki,cq as Ji,d6 as Xi,hz as Qi,al as ze,bV as eo,av as Ut,jc as Ma,jd as to,dj as ao,R as Va,a as Ar,b9 as ro,aB as io,iO as mt,iZ as oo,j2 as no,j3 as so,dw as Oa,eV as co,r as Fr,cz as Rr,iX as lo,bY as ho,d as Er,je as po,au as kt,b$ as Ha,bx as uo,df as mo,aq as go,am as lt,gY as Co,C as fo,bG as wo,jf as Tt,fo as xo,jg as Pr,gz as zr,jh as It,ig as Mr,i4 as Vr,bR as yo,ek as Or,i_ as bo,cC as So,dR as $o,d0 as vo,i$ as ko,j0 as jo,eq as Io,cg as Lo,ch as Do}from"./index-CRjLU1CH.js";import{a as o,P as To}from"./sentry-DZdy1Eny.js";import{n as r,c as we,k as Hr}from"./mui-G_qoHHKo.js";import{EP as At,bh as Ao,bf as Fo,G7 as Ro}from"./zeni-epic-state-BlmgKn3B.js";import{k as Eo}from"./NavigationDots-CjxNj1Qo-DN4lM7to.js";import{A as Po,i as zo,a as Mo,l as Vo,r as Oo,t as Ho,n as No}from"./add-to-wallet-DgdBD8_G-tmzUrH5h.js";import{L as Gt}from"./lottie-CgAPdzgC.js";import{j as Bo}from"./CardNumberSubText-DPlqciQh-CtVSDBTQ.js";import{l as Wo}from"./panelSelectedMixin-CzfD5-Zs-BuQ6-IQv.js";import{r as Nr}from"./core-BZCxWmUX.js";import{l as Br}from"./uploadReceipts-Dge0cNF1-9xq6mF3E.js";import{L as _o,z as Uo,k as Go,P as Zo}from"./LockCardPage-DYD2_HzF-Dog57kHB.js";import"./liveblocks-B2F837W5.js";import"./recharts-CCryt90F.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";import"./RoleWithToolTip-DL78JlR8-C9xZrPOP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="4d5a691f-2f3b-40e5-9771-29b17243134c",e._sentryDebugIdIdentifier="sentry-dbid-4d5a691f-2f3b-40e5-9771-29b17243134c")}catch{}})();const Wr=ke.getLocalizedStrings().spendManagement.chargeCard,qo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:m,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:w,chargeCardDetailView:l,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,appleWalletLink:j,googleWalletLink:D,style:u,showDrawerAnimation:A,setWalletType:S,setIsAddToWalletDrawerOpen:z,isDebitCard:M})=>{const y=Dt().analytics,{isIPadScreen:G}=Yi(),{isAndroidScreen:Y}=Ki(),K=Lt(),F=At(K.loggedInUserRoleMap);return t.jsx(Yo,{style:u,children:G===!0?t.jsx(ea,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(j,"_blank")}}):Y===!0?t.jsx(Qt,{onClick:()=>{dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:C,creditAccountInformation:g,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:b,creditAccountRepayment:n}),window.open(D,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ea,{onClick:()=>{S("apple"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}}),t.jsx(Qt,{onClick:()=>{S("google"),A.current="slide-in-right-to-left-add-to-wallet",dt({chargeCardDetailView:l,classListFetchState:i,analytics:y,isDebitCard:M,isChargeCardAdmin:F,cardIssuedByRoles:d,cardIssuedByDepartmentName:f,cardHolderRoles:v,cardHolderDepartmentName:$,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:C,creditAccountInformation:g,debitAccountInformation:x,creditAccount:b,creditAccountRepayment:n}),z(!0)}})]})})},Qt=({onClick:e})=>{const i=at();return t.jsx(Fr,{prefixIcon:t.jsx(Ko,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-google-wallet-button")})},ea=({onClick:e})=>{const i=at();return t.jsx(Fr,{prefixIcon:t.jsx(Jo,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":Q("add-to-apple-wallet-button")})},Yo=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{a8 as Za,aQ as z,aw as er,fU as tr,iO as W,Q as Ee,o as a,e as ta,V as t,bC as ar,g6 as rr,fh as ie,b as D,bT as nt,p,aN as me,aP as V,aY as st,F as Fe,y as H,ai as K,R as ir,a as or,cX as nr,as as aa,bK as sr,a$ as ct,aT as dr,am as lt,a9 as cr,gS as lr,c_ as ur,ao as hr,ac as mr,gc as pr,r as Nt,u as _,d8 as ra,aq as Cr,al as gr,c as br,cW as fr,bv as xr,bV as yr}from"./index-G4udIFQJ.js";import{a as l}from"./sentry-CTrMrBL8.js";import{n as r,c as ut,k as Sr}from"./mui-BDpZEDd-.js";import{EP as wr,G6 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-B_64dD7k.js";import{t as vr}from"./SpendManagementSection-CSAz_hUa-4308_UQx.js";import{D as oe,r as jr,i as Ar}from"./ChargeCardListTable-BmnTn4MG-Dav0vid1.js";import{ChargeCardPromoUserContent as Lr}from"./ChargeCardPromoPage-ZCAv99Ei-SzC7HmHH.js";import{N as Pr,J as Er}from"./PromoBaseCards-_Ujfaxp0-B5F6NP5z.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-BFpvk55j-yA-a8X9D.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-C-C13G7Y.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-BmBVkHzO.js";import"./liveblocks-CV4wYZBt.js";import"./core-CfLdY-k_.js";import"./recharts-B3SHU5RU.js";import"./lottie-Dw1I6Lqb.js";import"./analytics-BYwa85mC.js";import"./lexical-C2hQPjBk.js";import"./utils-yHZwLkmM.js";import"./RoleWithToolTip-DlIcPRiy-DyibMc5_.js";import"./CardNumberSubText-DBFaTSBz-DdN0VEfE.js";import"./NavigationDots-DbtOiTYP-BWzsBzui.js";import"./usp-line-BBd1wKwW-Cmb4LI5b.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]="f4a9a0dd-bcf3-494c-a9cd-a91933dd6f82",e._sentryDebugIdIdentifier="sentry-dbid-f4a9a0dd-bcf3-494c-a9cd-a91933dd6f82")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),L=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:L,children:[t.jsxs(na,{children:[L?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),L?null:t.jsx(qr,{children:n})]}),!L&&t.jsxs(Kr,{children:[t.jsx(Yr,{}),m.length>0&&t.jsx(dt,{slideUpCount:m.length,children:m.map((ne,se)=>t.jsx(sa,{children:ne},`card-promo-${se.toString()}`))}),t.jsx(Jr,{})]}),U!=null&&L?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:L,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:L,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
1
+ import{a8 as Za,aQ as z,aw as er,fU as tr,iO as W,Q as Ee,o as a,e as ta,V as t,bC as ar,g6 as rr,fh as ie,b as D,bT as nt,p,aN as me,aP as V,aY as st,F as Fe,y as H,ai as K,R as ir,a as or,cX as nr,as as aa,bK as sr,a$ as ct,aT as dr,am as lt,a9 as cr,gS as lr,c_ as ur,ao as hr,ac as mr,gc as pr,r as Nt,u as _,d8 as ra,aq as Cr,al as gr,c as br,cW as fr,bv as xr,bV as yr}from"./index-CRjLU1CH.js";import{a as l}from"./sentry-DZdy1Eny.js";import{n as r,c as ut,k as Sr}from"./mui-G_qoHHKo.js";import{EP as wr,G6 as kr,bh as zt,bL as $r,bP as Ir}from"./zeni-epic-state-BlmgKn3B.js";import{t as vr}from"./SpendManagementSection-CA8SwNCI-C0bFCdBj.js";import{D as oe,r as jr,i as Ar}from"./ChargeCardListTable-BkAggUNy-BT3mst3U.js";import{ChargeCardPromoUserContent as Lr}from"./ChargeCardPromoPage-B4yj7KP9-DKwL8yRO.js";import{N as Pr,J as Er}from"./PromoBaseCards-BHeLFDFF-CUDBGebi.js";import{z as Ot,L as _t,k as Fr,P as Tr}from"./LockCardPage-DYD2_HzF-Dog57kHB.js";import{r as Mr,i as Dr}from"./graphic-no-data-net-burn-l-CzmycA0m-_WUrjzng.js";import{t as Rr,o as Br}from"./arrow-south-east-round-PEovUgvH-DopNMSVs.js";import"./liveblocks-B2F837W5.js";import"./core-BZCxWmUX.js";import"./recharts-CCryt90F.js";import"./lottie-CgAPdzgC.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";import"./RoleWithToolTip-DL78JlR8-C9xZrPOP.js";import"./CardNumberSubText-DPlqciQh-CtVSDBTQ.js";import"./NavigationDots-CjxNj1Qo-DN4lM7to.js";import"./usp-line-BBd1wKwW-gP2BLOgz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},c=new e.Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="a9e37ea1-990a-4514-a0f4-2e8a96e9936e",e._sentryDebugIdIdentifier="sentry-dbid-a9e37ea1-990a-4514-a0f4-2e8a96e9936e")}catch{}})();const ht={infoSubheadingTextMarginTop:new H(_[0],_[0]),cardsMinWidth:new H(343,353)},Pe=Fe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Ut=({cardPromoType:e,cardText:c,header:u,title:d,subTitle:n,slidingTextList:m,onClick:F,status:$,statusMessage:U})=>{const B=Ee(),L=$!==void 0,G=$==="rejected"?Pe.status.requestRejected:$==="under_review"?Pe.status.requestUnderReview:"";return t.jsxs(zr,{windowSize:B,cardPromoType:e,"data-testid":V("list-page-promo-card",e),onClick:()=>F(e),children:[t.jsxs(ia,{isStatusMode:L,children:[t.jsxs(na,{children:[L?t.jsx(Ur,{children:G}):t.jsx(oa,{children:u}),t.jsx(Wr,{children:d}),L?null:t.jsx(qr,{children:n})]}),!L&&t.jsxs(Kr,{children:[t.jsx(Yr,{}),m.length>0&&t.jsx(dt,{slideUpCount:m.length,children:m.map((ne,se)=>t.jsx(sa,{children:ne},`card-promo-${se.toString()}`))}),t.jsx(Jr,{})]}),U!=null&&L?t.jsx(Vr,{status:$,children:U}):null]}),t.jsx(Qr,{isStatusMode:L,children:t.jsx(Pr,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Xr,{isStatusMode:L,children:t.jsx(Er,{cardPromoType:e,cardText:c,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Vt=({cardType:e,header:c,title:u,creditLimit:d,onCreateNowClick:n})=>{const m=Ee();return t.jsx(Or,{windowSize:m,cardType:e,children:t.jsxs(_r,{children:[t.jsxs(na,{children:[t.jsx(oa,{children:c}),t.jsx(Gr,{children:t.jsx(Hr,{children:u})}),t.jsx(Zr,{windowSize:m,children:t.jsxs(ei,{windowSize:m,onClick:()=>n(e),"data-testid":V("total-cashback-info"),children:[t.jsx(sa,{children:Pe.createNow}),t.jsx(ti,{})]})})]}),e==="creditCard"?t.jsxs(ai,{children:[t.jsx(ri,{children:Pe.creditLimit}),t.jsx(ii,{children:d})]}):null]})})},Nr=e=>{const c=e-1;let u=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{cd as ni,V as t,a9 as li,ac as di,F as le,Q as ie,aw as Se,a8 as ci,e as ze,gZ as hi,iP as pi,iQ as ui,iR as mi,aR as gi,o as i,aP as Y,cm as xi,b as Be,p as I,b3 as wi,ct as Ci,iS as fi,iT as yi,bT as ye,cw as Ve,bO as Si,aT as ki,y as C,eF as vi,ba as $i,iU as ji,aU as bi,h as Ii,ai as ee,h0 as Li,am as G,al as Z,u as p,cS as zi,c$ as Fi,iV as Ai,iW as Pi,R as ft,bY as yt,iX as St,iY as Ri,bR as Bi,cz as Ge,iZ as kt,dw as Di,dx as q,aN as ce,cv as vt,T as $t,i_ as _i,cC as Ei,iH as Ze,bK as jt,bM as bt,i$ as Ti,j0 as Vi,aV as $e,bt as Oi,bZ as Ui,b_ as Ni,j1 as Mi}from"./index-G4udIFQJ.js";import{P as pe,a as f}from"./sentry-CTrMrBL8.js";import{n as o,c as Je}from"./mui-BDpZEDd-.js";import{T as It}from"./RoleWithToolTip-DlIcPRiy-DyibMc5_.js";import{j as Oe}from"./CardNumberSubText-DBFaTSBz-DdN0VEfE.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]="03a3cda0-51f2-4313-9e6d-146067ac8255",e._sentryDebugIdIdentifier="sentry-dbid-03a3cda0-51f2-4313-9e6d-146067ac8255")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Xe={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Qe,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Qe,Xe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Yi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,F=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(V)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":Y("card-row",a.id),children:t.jsxs(Xi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:F[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:F[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":Y("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&R(!0)},onMouseLeave:()=>{A&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{b||m(Fe)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(Z)`
1
+ import{cd as ni,V as t,a9 as li,ac as di,F as le,Q as ie,aw as Se,a8 as ci,e as ze,gZ as hi,iP as pi,iQ as ui,iR as mi,aR as gi,o as i,aP as Y,cm as xi,b as Be,p as I,b3 as wi,ct as Ci,iS as fi,iT as yi,bT as ye,cw as Ve,bO as Si,aT as ki,y as C,eF as vi,ba as $i,iU as ji,aU as bi,h as Ii,ai as ee,h0 as Li,am as G,al as Z,u as p,cS as zi,c$ as Fi,iV as Ai,iW as Pi,R as ft,bY as yt,iX as St,iY as Ri,bR as Bi,cz as Ge,iZ as kt,dw as Di,dx as q,aN as ce,cv as vt,T as $t,i_ as _i,cC as Ei,iH as Ze,bK as jt,bM as bt,i$ as Ti,j0 as Vi,aV as $e,bt as Oi,bZ as Ui,b_ as Ni,j1 as Mi}from"./index-CRjLU1CH.js";import{P as pe,a as f}from"./sentry-DZdy1Eny.js";import{n as o,c as Je}from"./mui-G_qoHHKo.js";import{T as It}from"./RoleWithToolTip-DL78JlR8-C9xZrPOP.js";import{j as Oe}from"./CardNumberSubText-DPlqciQh-CtVSDBTQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="72f3e5cc-3f4c-4e77-860a-7245d0f167d6",e._sentryDebugIdIdentifier="sentry-dbid-72f3e5cc-3f4c-4e77-860a-7245d0f167d6")}catch{}})();const ge=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=le.getLocalizedStrings().common.strings.empty,Qe={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Xe={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},et={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},tt={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},it={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},ot={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},Lt=e=>e===!0?[{...Qe,width:new C(0,0),value:Wi},Xe,et,tt,it,ot]:[Qe,Xe,et,tt,it,ot],{common:Ce,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:$}}=le.getLocalizedStrings(),re={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new ft("extraSmallRegular","smallRegular")},Yi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:g,index:S,onChargeCardRowClick:j,onChargeCardResendInviteClick:k})=>{const[h,m]=f.useState(!1),[y,R]=f.useState(!1);f.useEffect(()=>{h||R(!1)},[h]),f.useEffect(()=>{l.length>0&&h&&(m(!1),R(!1))},[l.length,h]);const B=r.cardId===a.id,D=l.includes(a.id),z=B&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||D&&c==="In-Progress",N=B&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||D&&d==="In-Progress",u=z||N,v=ie(),E=!!Se().loggedInUserRole.includes("charge_card_user")||x,M=f.useCallback(()=>{j(a.id,S)},[a.id]),V=kt(a)/a.limit.amount*100,W=a?.cardHolderUserId===w.userId,A=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",O=Di(a.cardHolderUser,!1),H=a.balance,F=Lt(E),te=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:ce("0,0.[00]",H),className:"amountToUtilize",children:ce("0,0.[00]",H)})}),V!==0?t.jsx(q,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(V)}${Hi}`})}):null]}),J=a.type.code,_=$.cardList.tooltip[J],de=_!=null?W?_.self:`${O} ${_.cardUser}`:Ce.strings.empty;return t.jsx(Zi,{windowSize:v,children:t.jsx(Ji,{onClick:M,"data-testid":Y("card-row",a.id),children:t.jsxs(Xi,{children:[E?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:v,responsiveWidth:F[0].width,children:[t.jsx(q,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:v,title:O,className:"cardHolderName",children:O===Ce.strings.empty?Ce.strings.hyphen:O})})}),t.jsx(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(It,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:v,responsiveWidth:F[1].width,children:[t.jsx(q,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(yo,{windowSize:v,className:"cardNameSubText",children:a.status.code==="request_on_hold"?Ce.strings.hyphen:$.cardDetails.expiryHideOut+Ce.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:v,responsiveWidth:F[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(q,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[3].width,children:t.jsx(q,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:g===a.id?t.jsx($t,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(ye,{display:"flex",title:de,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Le,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Le,{status:a.status.code})}),a.status.code==="request_on_hold"&&!W?t.jsx(xo,{onClick:K=>{K.stopPropagation(),k(a.id)},"data-testid":Y("send-reminder",a.id),children:$.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(lt,{windowSize:v,isLoading:u,responsiveWidth:F[4].width,children:te})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:v,responsiveWidth:F[5].width,children:[t.jsxs(ro,{windowSize:v,isLoading:u,children:[t.jsx(q,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:v,title:ce("0,0.[00]",a.limit),children:ce("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&A&&R(!0)},onMouseLeave:()=>{A&&R(!1)},children:(()=>{const K=a.status.code==="locked",oe=a.status.code==="closed"||a.status.code==="closed_by_customer",xe=E?n&&!u&&!oe&&!(K&&a.isLockedByAdmin):n?!u&&A:a.status.code==="request_on_hold",b=l.length>0;return xe&&t.jsx(ye,{open:y&&!h&&!b,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(zt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:E,setIsMenuOpen:m,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:Fe=>{b||m(Fe)},isMenuOpen:h&&!b,menuIconStyles:{height:"auto",cursor:b?"not-allowed":"pointer",opacity:b?.5:1,pointerEvents:b?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},zt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=ie();return s?e.status.code==="request_on_hold"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Qi,{}),t.jsx(fe,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?r?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(T,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(je,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(st,{}),t.jsx(T,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(se,{}),t.jsx(T,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(rt,{}),t.jsx(T,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(je,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Re,{}),t.jsx(fe,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(fe,{children:$.cardDetails.revokeInvite})}):null},Le=({status:e,style:s})=>{const r=ze(),d=Gi(e,r),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return ie()==="small"?t.jsx(Ze,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Ze,{textColor:d,text:c[e],styles:s,tagStyles:{padding:"1px 6px"}})},Gi=(e,s)=>{switch(e){case"active":return new $e(I.success);case"request_on_hold":return new $e(I.graphColor36);case"inactive":return new $e(I.alert);default:return new $e(s.colors.grey1)}},T=o(Z)`
2
2
  color: inherit;
3
3
  `,fe=o(Z)`
4
4
  color: ${I.important};
@@ -1,4 +1,4 @@
1
- import{a8 as Le,aw as Re,Q as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u as l,o as i,y as x,jk as De,cd as Me,jl as G,aP as B,b3 as Be,ct as Oe,iS as Ae,bO as Ne,aT as He,al as W,dx as j,gX as Z,aN as V,bT as We,cv as Ee,bR as _e,am as N,cz as J,p as $,gY as pe,fQ as me,fM as ge,ci as Ve,ai as K,iH as ue,bM as Fe,jm as Ke,i_ as Ue,cC as Ye,aV as L,i$ as Ze,j0 as Qe}from"./index-G4udIFQJ.js";import{a as S,P as Q}from"./sentry-CTrMrBL8.js";import{n,c as q}from"./mui-BDpZEDd-.js";import{t as Xe}from"./SpendManagementSection-CSAz_hUa-4308_UQx.js";import{r as Ge,a as Je,i as ye,g as qe}from"./SpendManagementListViewPage-DFBE2GEM-DW-9EzEA.js";import{ck as xe,G9 as fe}from"./zeni-epic-state-B_64dD7k.js";import{r as et}from"./auto-transfer-rule-mbafm5D3-Bracjtzh.js";import"./liveblocks-CV4wYZBt.js";import"./core-CfLdY-k_.js";import"./recharts-B3SHU5RU.js";import"./lottie-Dw1I6Lqb.js";import"./analytics-BYwa85mC.js";import"./lexical-C2hQPjBk.js";import"./utils-yHZwLkmM.js";import"./StatusSwitcher-gbjjpKf_-blwYKndx.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]="ffc967d6-3126-4d35-a48d-4460dc4b1c5a",e._sentryDebugIdIdentifier="sentry-dbid-ffc967d6-3126-4d35-a48d-4460dc4b1c5a")}catch{}})();const E=T.getLocalizedStrings().spendManagement.chargeCard.paymentHistory.header,tt={key:"paymentDate",value:E.paymentDate,sortOrder:"ascending",width:new x(18,18,18,18,18)},it={key:"sourceAccount",value:E.sourceAccount,sortOrder:"ascending",width:new x(30,30,30,30,30)},nt={key:"paymentStatus",value:E.paymentStatus,sortOrder:"ascending",width:new x(22,22,22,22,22)},ot={key:"initiatedBy",value:E.initiatedBy,sortOrder:"ascending",width:new x(18,18,18,18,18)},at={key:"amount",value:E.amount,sortOrder:"ascending",width:new x(12,12,12,12,12)},we=()=>[tt,it,nt,ot,at],k={containerPaddingLeft:i.sp2,containerPaddingRight:i.sp3,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new x(l[0],l[4]),headerLastColumnRightPadding:new x(l[3],l[11]),headerLastColumnBottomPadding:new x(l[0],l[4]),headerLastColumnLeftPadding:new x(l[0],l[11]),headerHeight:new x(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(_e,{title:b.header.paymentDate,placeholder:b.header.paymentDate,pickerValues:u,valueToLabel:p,selectedValue:o.sortKey,onPickerSelectionChanged:s=>{y(s,"ascending")},optionTextStyle:I.extraSmallRegular,titleTextStyle:I.extraSmallRegular,titleColor:a.colors.primary,selectedOptionColor:a.colors.hero,optionBackgroundColor:a.colors.grey5,downChevronVisible:!1,backgroundColor:a.colors.grey4})]}),t.jsxs(ft,{onClick:()=>y(h.key,h.sortOrder),"data-testid":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(J,{})})})]})]}):t.jsx(dt,{windowSize:r,children:t.jsx(lt,{children:d.map(s=>s.width.value(r)!==0&&t.jsxs(ht,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:r,children:[t.jsxs(xt,{onClick:()=>y(s.key,s.sortOrder),"data-testid":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(J,{})})})]}),t.jsx(yt,{sortDataValue:o.sortKey,windowSize:r,isVisible:o.sortKey===s.key&&!(o.sortKey==="paymentDate"&&o.sortOrder==="ascending"),children:t.jsx(pt,{onClick:()=>y("paymentDate","ascending"),"data-testid":B("payment-history-list-sort-cancel",o.sortKey)})})]},s.key))})})}const rt=Q.memo(st),dt=n.div`
1
+ import{a8 as Le,aw as Re,Q as H,e as F,V as t,bC as Ie,b as I,g6 as Te,F as T,u as l,o as i,y as x,jk as De,cd as Me,jl as G,aP as B,b3 as Be,ct as Oe,iS as Ae,bO as Ne,aT as He,al as W,dx as j,gX as Z,aN as V,bT as We,cv as Ee,bR as _e,am as N,cz as J,p as $,gY as pe,fQ as me,fM as ge,ci as Ve,ai as K,iH as ue,bM as Fe,jm as Ke,i_ as Ue,cC as Ye,aV as L,i$ as Ze,j0 as Qe}from"./index-CRjLU1CH.js";import{a as S,P as Q}from"./sentry-DZdy1Eny.js";import{n,c as q}from"./mui-G_qoHHKo.js";import{t as Xe}from"./SpendManagementSection-CA8SwNCI-C0bFCdBj.js";import{r as Ge,a as Je,i as ye,g as qe}from"./SpendManagementListViewPage--cVcOp1f-CoMTuOeL.js";import{ck as xe,G9 as fe}from"./zeni-epic-state-BlmgKn3B.js";import{r as et}from"./auto-transfer-rule-mbafm5D3-5qZZD7bQ.js";import"./liveblocks-B2F837W5.js";import"./core-BZCxWmUX.js";import"./recharts-CCryt90F.js";import"./lottie-CgAPdzgC.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";import"./StatusSwitcher-BDDVmn-K-CKBwQQDa.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]="2c681990-a916-4d85-a6ba-73b83f5e8d47",e._sentryDebugIdIdentifier="sentry-dbid-2c681990-a916-4d85-a6ba-73b83f5e8d47")}catch{}})();const E=T.getLocalizedStrings().spendManagement.chargeCard.paymentHistory.header,tt={key:"paymentDate",value:E.paymentDate,sortOrder:"ascending",width:new x(18,18,18,18,18)},it={key:"sourceAccount",value:E.sourceAccount,sortOrder:"ascending",width:new x(30,30,30,30,30)},nt={key:"paymentStatus",value:E.paymentStatus,sortOrder:"ascending",width:new x(22,22,22,22,22)},ot={key:"initiatedBy",value:E.initiatedBy,sortOrder:"ascending",width:new x(18,18,18,18,18)},at={key:"amount",value:E.amount,sortOrder:"ascending",width:new x(12,12,12,12,12)},we=()=>[tt,it,nt,ot,at],k={containerPaddingLeft:i.sp2,containerPaddingRight:i.sp3,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new x(l[0],l[4]),headerLastColumnRightPadding:new x(l[3],l[11]),headerLastColumnBottomPadding:new x(l[0],l[4]),headerLastColumnLeftPadding:new x(l[0],l[11]),headerHeight:new x(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(_e,{title:b.header.paymentDate,placeholder:b.header.paymentDate,pickerValues:u,valueToLabel:p,selectedValue:o.sortKey,onPickerSelectionChanged:s=>{y(s,"ascending")},optionTextStyle:I.extraSmallRegular,titleTextStyle:I.extraSmallRegular,titleColor:a.colors.primary,selectedOptionColor:a.colors.hero,optionBackgroundColor:a.colors.grey5,downChevronVisible:!1,backgroundColor:a.colors.grey4})]}),t.jsxs(ft,{onClick:()=>y(h.key,h.sortOrder),"data-testid":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(J,{})})})]})]}):t.jsx(dt,{windowSize:r,children:t.jsx(lt,{children:d.map(s=>s.width.value(r)!==0&&t.jsxs(ht,{companyNameSticky:e,sortDataValue:o.sortKey,actualDataValue:s.key,wrapperWidth:s.width,windowSize:r,children:[t.jsxs(xt,{onClick:()=>y(s.key,s.sortOrder),"data-testid":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(J,{})})})]}),t.jsx(yt,{sortDataValue:o.sortKey,windowSize:r,isVisible:o.sortKey===s.key&&!(o.sortKey==="paymentDate"&&o.sortOrder==="ascending"),children:t.jsx(pt,{onClick:()=>y("paymentDate","ascending"),"data-testid":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;
@@ -1,4 +1,4 @@
1
- import{Q as $,V as r,e as O,aw as be,a8 as $e,aQ as je,aN as Se,fU as Te,bC as ze,ft as ve,r as Y,aP as ee,F as oe,o as t,c as Pe,d as V,cD as ke,aq as Ie,y as u,ap as Ae,bT as Be,iL as Le,ai as Re,u as p,R as S,p as y,ba as _e,aU as Me,iM as Ee}from"./index-G4udIFQJ.js";import{a as T}from"./sentry-CTrMrBL8.js";import{n,c as De,k as Fe}from"./mui-BDpZEDd-.js";import{EP as Ue}from"./zeni-epic-state-B_64dD7k.js";import{k as Ne}from"./NavigationDots-DbtOiTYP-BWzsBzui.js";import{J as H,N as G}from"./PromoBaseCards-_Ujfaxp0-B5F6NP5z.js";import{M as R}from"./usp-line-BBd1wKwW-Cmb4LI5b.js";import"./liveblocks-CV4wYZBt.js";import"./core-CfLdY-k_.js";import"./recharts-B3SHU5RU.js";import"./lottie-Dw1I6Lqb.js";import"./analytics-BYwa85mC.js";import"./lexical-C2hQPjBk.js";import"./utils-yHZwLkmM.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]="d2558870-1e59-471e-944b-6231d4cf927e",e._sentryDebugIdIdentifier="sentry-dbid-d2558870-1e59-471e-944b-6231d4cf927e")}catch{}})();const g={containerPaddingTopBottom:new u(p[0],p[0]),uspContainerMarginX:new u(p[6],p[0]),midContainerGap:new u(p[4],84),iconContainerMinHeight:new u(236,396),emptySectionHeight:new u(p[6],43),navigationBottom:new u(p[4],94),navigationLeft:new u(192,244),carouselHeight:new u(268,396),carouselMarginTop:new u(54,p[4]),carouselMarginLeft:new u(120,p[12]),buttonTrayGap:new u(p[3],p[5]),termsOfAgreementMarginTop:new u(p[5],p[10]),contactAdminContainerMarginTop:new u(p[0],p[10]),contactAdminContainerMarginBottom:new u(p[4],p[0]),contactAdminContainerMarginLeftRight:new u(p[3],p[0])},z={promoBadgeText:new S("standardRegular","largeRegular"),promoBadgeTextBold:new S("standardBold","largeBold"),cardsContent:new S("extraSmallRegular","smallRegular"),contactAdmin:new S("extraSmallRegular","largeRegular"),uspText:new S("smallRegular","standardRegular"),uspBoldText:new S("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),_r=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:a,controllerEmails:c,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:x,isChargeCardSetupEnabled:w,admins:j,cashbackRate:P,cardPromoType:f="credit",isCheckingEnabled:l,onSetupButtonClick:d,onBackClick:pe,onClickMenuIcon:me,onSetupChargeCardSuccess:Q,onExpressInterestClick:ge})=>{const he=O(),W=be(),v=$(),J=$e().analytics,{chargeCardTermsDetails:_,companyChargeCardInfo:C,companyLocaleInfo:M}=i,X=je(_?.fetchStatus.fetchState),[ue,Z]=T.useState(!1),xe=()=>{J.trackCardsPromoPageClicked("schedule demo"),J.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:h,isDebitCardEnabled:x,isCreditCardEnabled:w},"Cards Promo"),Z(!0)},we=C!=null&&M!=null?Se("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:M.currencyCode,currencySymbol:M.currencySymbol}):void 0;T.useEffect(()=>{X==="In-Progress"&&_?.fetchStatus.fetchState==="Completed"&&Q()},[X,Q,_?.fetchStatus]);const q=Ue(W.loggedInUserRoleMap),fe=Te(W),E=f==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,Ce=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:ye}=i,K=E?o.getPreApprovedNow:a?o.enableCardsButton:o.setupCardsButton;return r.jsxs(We,{children:[r.jsx(ze,{title:o.title[f],backgroundColor:he.colors.grey4,onBackClick:pe,showBackButton:!0,showMenuIcon:v==="medium-compact"||v==="small",onClickMenuIcon:me,style:{zIndex:9},source:"ChargeCardPromoPage"}),ue===!0?r.jsx(ve,{onCancelClick:()=>{Z(!1)},meetingUrl:e}):null,r.jsx(qe,{windowSize:v,children:q===!0?r.jsxs(Ze,{children:[r.jsxs(Xe,{children:[r.jsx(Ge,{isApproved:Ce,creditAmount:we,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:E,creditLimit:C?.chargeCardsCreditAccountLimit}),r.jsx(ae,{cardPromoType:f,cashbackRate:P})]}),r.jsx(ne,{showEnableCardButton:a,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:E,isCheckingEnabled:l})]}):r.jsx(Oe,{companyLegalName:s,cards:[],admins:j,cashbackRate:P,hasZeniFinopsRoles:fe,cardPromoType:f,isCheckingEnabled:l})}),q&&!(F||D)?r.jsxs(or,{windowSize:v,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(Je,{windowSize:v,children:o.orText}),r.jsx(Y,{variant:"primary",label:K,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||ye==="In-Progress",onClick:K===o.getPreApprovedNow?ge:()=>d(f),"data-testid":ee("enable-card-button")})]}):null]})},He=({admins:e})=>{const s=e.flatMap(a=>a.user?.firstName+" "+a.user?.lastName).join(", "),i=$();return r.jsxs(mr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Be,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ne=({cardPromoType:e,showEnableCardButton:s,isCheckingEnabled:i,isUnderReview:a,isRejected:c,showExpressInterest:m,isCardUser:h=!1})=>{const x=$();return r.jsx(ir,{windowSize:x,children:r.jsx(Le,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:a===!0||c===!0||h===!0?void 0:m===!0?o.terms.getPreApprovedNowTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:c===!1&&h===!1&&a===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(x)},cardPromoType:e,isCheckingEnabled:i})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:a,isRejected:c,showExpressInterest:m,creditLimit:h})=>{const x=$(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,j=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(rr,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):a?o.promoBadgeText.underReview:c?o.promoBadgeText.rejected:s==="debit_and_credit"&&h===0?null:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:x==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hasContent:j!=null,hideBadge:i==null||s==="debit",windowSize:x,children:[a||c||m?null:r.jsx(yr,{}),r.jsx(er,{windowSize:x,children:j})]})]})},Oe=({companyLegalName:e,cards:s,admins:i,cashbackRate:a,hasZeniFinopsRoles:c,cardPromoType:m="credit",isCheckingEnabled:h})=>{const x=$(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[x==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(pr,{windowSize:x}):r.jsx(Ve,{cards:s,companyLegalName:e}),r.jsx(ae,{cardPromoType:m,cashbackRate:a}),c?null:r.jsx(He,{admins:i}),r.jsx(ne,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:h})]})},Ve=({cards:e,companyLegalName:s})=>{const i=O(),a=$();let c="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const h=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;c=o.cardAssigned.singleCreditCard.replace("__issuing-user__",h).replace("__company-name__",s)}else c=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(hr,{children:[m!=null?r.jsx(Ke,{width:t.sp5,height:t.sp5,style:{paddingTop:a==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:h})=>{h.onerror=null,h.src=Ae},loading:"lazy"}):null,r.jsx(gr,{windowSize:a,mode:i.mode,children:r.jsx(ur,{windowSize:a,children:c})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Qe,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ae=({cardPromoType:e,cashbackRate:s})=>{const i=$(),a=o.benefits;return r.jsxs(tr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(nr,{windowSize:i,children:[r.jsxs(I,{windowSize:i,children:[r.jsx(B,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item1.pre}),r.jsx(A,{windowSize:i,children:a.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(b,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?a.singleStarred:""}${a.item1.post}`})]})]}),r.jsxs(I,{windowSize:i,children:[r.jsx(B,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item2.pre}),r.jsx(A,{windowSize:i,children:a.item2.bold}),r.jsx(b,{windowSize:i,children:a.item2.post})]})]}),r.jsxs(I,{windowSize:i,children:[r.jsx(B,{children:r.jsx(cr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item3.pre}),r.jsx(A,{windowSize:i,children:a.item3.bold}),r.jsx(b,{windowSize:i,children:a.item3.post})]})]}),r.jsxs(I,{windowSize:i,children:[r.jsx(B,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item4.pre}),r.jsx(A,{windowSize:i,children:a.item4.bold}),r.jsx(b,{windowSize:i,children:a.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Qe=()=>{const e=$(),s=O(),[i,a]=T.useState(0),[c,m]=T.useState(!1),h=o.businessText,x=`${h} ${o.debit}`,w=[{id:1,cardType:"debit",cardText:x},{id:2,cardType:"debit",cardText:x},{id:3,cardType:"credit",cardText:h},{id:4,cardType:"credit",cardText:h}];T.useEffect(()=>(c||(k=setInterval(()=>{a(l=>{const d=l+1;return d===w.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[c,w.length]),T.useEffect(()=>{c&&k!=null&&clearInterval(k)},[c]);const j=(l,d)=>{switch((l-i+w.length)%w.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=j(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},f=l=>{c||m(!0),a(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(wr,{windowSize:e,children:w.map((l,d)=>r.jsxs(fr,{children:[r.jsx(ie,{isReflection:!1,style:{...j(d,!1)},onClick:()=>f(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),c&&r.jsx(Ne,{numberOfDots:w.length,activeIndex:i,handleClick:a,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},We=n.div`
1
+ import{Q as $,V as r,e as O,aw as be,a8 as $e,aQ as je,aN as Se,fU as Te,bC as ze,ft as ve,r as Y,aP as ee,F as oe,o as t,c as Pe,d as V,cD as ke,aq as Ie,y as u,ap as Ae,bT as Be,iL as Le,ai as Re,u as p,R as S,p as y,ba as _e,aU as Me,iM as Ee}from"./index-CRjLU1CH.js";import{a as T}from"./sentry-DZdy1Eny.js";import{n,c as De,k as Fe}from"./mui-G_qoHHKo.js";import{EP as Ue}from"./zeni-epic-state-BlmgKn3B.js";import{k as Ne}from"./NavigationDots-CjxNj1Qo-DN4lM7to.js";import{J as H,N as G}from"./PromoBaseCards-BHeLFDFF-CUDBGebi.js";import{M as R}from"./usp-line-BBd1wKwW-gP2BLOgz.js";import"./liveblocks-B2F837W5.js";import"./core-BZCxWmUX.js";import"./recharts-CCryt90F.js";import"./lottie-CgAPdzgC.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";(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]="49091fff-1f7f-4870-92bb-b34dd4820d82",e._sentryDebugIdIdentifier="sentry-dbid-49091fff-1f7f-4870-92bb-b34dd4820d82")}catch{}})();const g={containerPaddingTopBottom:new u(p[0],p[0]),uspContainerMarginX:new u(p[6],p[0]),midContainerGap:new u(p[4],84),iconContainerMinHeight:new u(236,396),emptySectionHeight:new u(p[6],43),navigationBottom:new u(p[4],94),navigationLeft:new u(192,244),carouselHeight:new u(268,396),carouselMarginTop:new u(54,p[4]),carouselMarginLeft:new u(120,p[12]),buttonTrayGap:new u(p[3],p[5]),termsOfAgreementMarginTop:new u(p[5],p[10]),contactAdminContainerMarginTop:new u(p[0],p[10]),contactAdminContainerMarginBottom:new u(p[4],p[0]),contactAdminContainerMarginLeftRight:new u(p[3],p[0])},z={promoBadgeText:new S("standardRegular","largeRegular"),promoBadgeTextBold:new S("standardBold","largeBold"),cardsContent:new S("extraSmallRegular","smallRegular"),contactAdmin:new S("extraSmallRegular","largeRegular"),uspText:new S("smallRegular","standardRegular"),uspBoldText:new S("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),_r=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:a,controllerEmails:c,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:x,isChargeCardSetupEnabled:w,admins:j,cashbackRate:P,cardPromoType:f="credit",isCheckingEnabled:l,onSetupButtonClick:d,onBackClick:pe,onClickMenuIcon:me,onSetupChargeCardSuccess:Q,onExpressInterestClick:ge})=>{const he=O(),W=be(),v=$(),J=$e().analytics,{chargeCardTermsDetails:_,companyChargeCardInfo:C,companyLocaleInfo:M}=i,X=je(_?.fetchStatus.fetchState),[ue,Z]=T.useState(!1),xe=()=>{J.trackCardsPromoPageClicked("schedule demo"),J.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:h,isDebitCardEnabled:x,isCreditCardEnabled:w},"Cards Promo"),Z(!0)},we=C!=null&&M!=null?Se("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:M.currencyCode,currencySymbol:M.currencySymbol}):void 0;T.useEffect(()=>{X==="In-Progress"&&_?.fetchStatus.fetchState==="Completed"&&Q()},[X,Q,_?.fetchStatus]);const q=Ue(W.loggedInUserRoleMap),fe=Te(W),E=f==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,Ce=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:ye}=i,K=E?o.getPreApprovedNow:a?o.enableCardsButton:o.setupCardsButton;return r.jsxs(We,{children:[r.jsx(ze,{title:o.title[f],backgroundColor:he.colors.grey4,onBackClick:pe,showBackButton:!0,showMenuIcon:v==="medium-compact"||v==="small",onClickMenuIcon:me,style:{zIndex:9},source:"ChargeCardPromoPage"}),ue===!0?r.jsx(ve,{onCancelClick:()=>{Z(!1)},meetingUrl:e}):null,r.jsx(qe,{windowSize:v,children:q===!0?r.jsxs(Ze,{children:[r.jsxs(Xe,{children:[r.jsx(Ge,{isApproved:Ce,creditAmount:we,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:E,creditLimit:C?.chargeCardsCreditAccountLimit}),r.jsx(ae,{cardPromoType:f,cashbackRate:P})]}),r.jsx(ne,{showEnableCardButton:a,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:E,isCheckingEnabled:l})]}):r.jsx(Oe,{companyLegalName:s,cards:[],admins:j,cashbackRate:P,hasZeniFinopsRoles:fe,cardPromoType:f,isCheckingEnabled:l})}),q&&!(F||D)?r.jsxs(or,{windowSize:v,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(Je,{windowSize:v,children:o.orText}),r.jsx(Y,{variant:"primary",label:K,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||ye==="In-Progress",onClick:K===o.getPreApprovedNow?ge:()=>d(f),"data-testid":ee("enable-card-button")})]}):null]})},He=({admins:e})=>{const s=e.flatMap(a=>a.user?.firstName+" "+a.user?.lastName).join(", "),i=$();return r.jsxs(mr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Be,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ne=({cardPromoType:e,showEnableCardButton:s,isCheckingEnabled:i,isUnderReview:a,isRejected:c,showExpressInterest:m,isCardUser:h=!1})=>{const x=$();return r.jsx(ir,{windowSize:x,children:r.jsx(Le,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:a===!0||c===!0||h===!0?void 0:m===!0?o.terms.getPreApprovedNowTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:c===!1&&h===!1&&a===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(x)},cardPromoType:e,isCheckingEnabled:i})})},Ge=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:a,isRejected:c,showExpressInterest:m,creditLimit:h})=>{const x=$(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,j=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(rr,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):a?o.promoBadgeText.underReview:c?o.promoBadgeText.rejected:s==="debit_and_credit"&&h===0?null:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:x==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hasContent:j!=null,hideBadge:i==null||s==="debit",windowSize:x,children:[a||c||m?null:r.jsx(yr,{}),r.jsx(er,{windowSize:x,children:j})]})]})},Oe=({companyLegalName:e,cards:s,admins:i,cashbackRate:a,hasZeniFinopsRoles:c,cardPromoType:m="credit",isCheckingEnabled:h})=>{const x=$(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[x==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(pr,{windowSize:x}):r.jsx(Ve,{cards:s,companyLegalName:e}),r.jsx(ae,{cardPromoType:m,cashbackRate:a}),c?null:r.jsx(He,{admins:i}),r.jsx(ne,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:h})]})},Ve=({cards:e,companyLegalName:s})=>{const i=O(),a=$();let c="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const h=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;c=o.cardAssigned.singleCreditCard.replace("__issuing-user__",h).replace("__company-name__",s)}else c=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(hr,{children:[m!=null?r.jsx(Ke,{width:t.sp5,height:t.sp5,style:{paddingTop:a==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:h})=>{h.onerror=null,h.src=Ae},loading:"lazy"}):null,r.jsx(gr,{windowSize:a,mode:i.mode,children:r.jsx(ur,{windowSize:a,children:c})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Qe,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ae=({cardPromoType:e,cashbackRate:s})=>{const i=$(),a=o.benefits;return r.jsxs(tr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(nr,{windowSize:i,children:[r.jsxs(I,{windowSize:i,children:[r.jsx(B,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item1.pre}),r.jsx(A,{windowSize:i,children:a.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(b,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?a.singleStarred:""}${a.item1.post}`})]})]}),r.jsxs(I,{windowSize:i,children:[r.jsx(B,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item2.pre}),r.jsx(A,{windowSize:i,children:a.item2.bold}),r.jsx(b,{windowSize:i,children:a.item2.post})]})]}),r.jsxs(I,{windowSize:i,children:[r.jsx(B,{children:r.jsx(cr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item3.pre}),r.jsx(A,{windowSize:i,children:a.item3.bold}),r.jsx(b,{windowSize:i,children:a.item3.post})]})]}),r.jsxs(I,{windowSize:i,children:[r.jsx(B,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(b,{windowSize:i,children:a.item4.pre}),r.jsx(A,{windowSize:i,children:a.item4.bold}),r.jsx(b,{windowSize:i,children:a.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Qe=()=>{const e=$(),s=O(),[i,a]=T.useState(0),[c,m]=T.useState(!1),h=o.businessText,x=`${h} ${o.debit}`,w=[{id:1,cardType:"debit",cardText:x},{id:2,cardType:"debit",cardText:x},{id:3,cardType:"credit",cardText:h},{id:4,cardType:"credit",cardText:h}];T.useEffect(()=>(c||(k=setInterval(()=>{a(l=>{const d=l+1;return d===w.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[c,w.length]),T.useEffect(()=>{c&&k!=null&&clearInterval(k)},[c]);const j=(l,d)=>{switch((l-i+w.length)%w.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=j(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},f=l=>{c||m(!0),a(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(wr,{windowSize:e,children:w.map((l,d)=>r.jsxs(fr,{children:[r.jsx(ie,{isReflection:!1,style:{...j(d,!1)},onClick:()=>f(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(G,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),c&&r.jsx(Ne,{numberOfDots:w.length,activeIndex:i,handleClick:a,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},We=n.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{e as je,Q as Oe,a8 as Ue,aQ as M,a9 as Be,cF as _e,aV as G,V as t,fb as $e,p as Re,y as d,bC as ze,T as We,ac as Le,fu as Ne,dR as qe,fv as He,o as B,b as Me,iN as J,bw as Ge,aR as Je,fx as Qe,F as Ke,u as o,al as Xe}from"./index-G4udIFQJ.js";import{a as f}from"./sentry-CTrMrBL8.js";import{n as w}from"./mui-BDpZEDd-.js";import{bJ as Ye}from"./zeni-epic-state-B_64dD7k.js";import{u as Ze}from"./LabeledControlledCheckBoxField-DqGuuG0x-C7gcXrVo.js";import{g as et}from"./UploadAdditionalDocumentOverlay-CIJFtDiF-DsNArDE8.js";import"./liveblocks-CV4wYZBt.js";import"./core-CfLdY-k_.js";import"./recharts-B3SHU5RU.js";import"./lottie-Dw1I6Lqb.js";import"./analytics-BYwa85mC.js";import"./lexical-C2hQPjBk.js";import"./utils-yHZwLkmM.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]="4daf5d97-625d-4d67-bc67-6de4836a657e",e._sentryDebugIdIdentifier="sentry-dbid-4daf5d97-625d-4d67-bc67-6de4836a657e")}catch{}})();const c={titleWidth:new d(343,580,726,826),setupDetailsRowGap:new d(12,o[5],o[5]),sectionRowGap:new d(o[5],o[9],o[9]),iconWidthHeight:new d(20,o[4]),subTitlePaddingTop:new d(12,o[3]),subTitlePaddingBottom:new d(o[3],o[3]),overlayWidth:new d(100,100,59),checkBoxTop:new d(o[1],o[0])},Q="chargeCardSetUpPage",m="payAccount",{commonSetUp:tt,spendManagement:nt}=Ke.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:g}=Y,{setUp:_}=tt,wt=({autoPayThreshold:e,isDisabled:r,meetingUrl:P,isEarlyPayEnabled:h,chargeCardSetUpView:a,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:v,isCreditCardOnlyEnabled:ie,accountsPromoConfig:ae,onFetchLinkTokenClick:oe,onBackClick:ce,onEnableChargeCardClick:se,onUpdateChargeCardClick:le,onBusinessVerificationSectionClick:de,onUpdatePaymentAccountStatus:re,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:fe,onEstablishConnectionClick:ge,onEstablishConnectionSuccess:me,onClickMenuIcon:he,onEnableChargeCardSuccess:x,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:we,onSignUpClick:Pe})=>{const y=je(),i=Oe(),E=Ue().analytics,[A,b]=f.useState(!1),{fetchState:C,companyBillPayInfo:$,isRefreshingViewInBackground:xe,updateStatus:u,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:I,companyDebitCardInfo:R,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:z}=a,W=M(C),k=M(u.fetchState),F=Be({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>K(a),[a]),values:K(a)}),ve=F.handleSubmit(se),Ee=async(S,T)=>{const n=T[m];if(S.includes(m))if(S.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&l?.id!=n.fundingAccount.selectedOption){const p=z.find(U=>U.id===n.fundingAccount.selectedOption);p!=null&&pe(n.fundingAccount.selectedOption,p.accType)}}else if(n.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=n.account.selectedOption){const p=n.account.allOptions.find(U=>U.value===n.account.selectedOption);p!=null&&typeof p.label=="string"&&E.trackConnectBankLink(p.value,p.label,"charge_cards"),le(n.account.selectedOption,l.id,l.accType)}else S.includes("enableAutoPay")&&n.enableAutoPay!=null&&fe(n.enableAutoPay)};f.useEffect(()=>{const S=F.watch((T,{name:n})=>{n!=null&&T!=null&&_e(()=>Ee(n,T))});return()=>{S.unsubscribe()}}),f.useEffect(()=>{!A&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&b(!0),A&&W==="In-Progress"&&C==="Completed"&&b(!1)},[s,C,W]),f.useEffect(()=>{k==="In-Progress"&&u.fetchState==="Completed"&&x()},[x,k,u.fetchState]);const V=I?.isChargeCardEnabled===!0,D=R?.isDebitCardEnabled===!0,L=R?.isDebitCardTOSAccepted===!0,N=I?.isChargeCardTOSAccepted===!0,q=$?.isBusinessVerified===!0,Ie=l?.accType==="depositAccount"||Ye(l?.providerVerificationStatus?.code??""),j=v?q:q&&Ie,Fe=C==="In-Progress"||C==="Not-Started";f.useEffect(()=>{k==="In-Progress"&&u.fetchState==="Completed"&&x()},[x,k,u.fetchState]);const O=v?j&&!D&&L:ie?j&&!V&&N:j&&!(V&&D)&&N&&L,Ve=O?g.setupSubTitleNotEnabled:g.setupSubTitle,H=y.mode==="light"?new G(y.colors.brandColorJadeLight):new G(y.colors.brandColorJadeDark),De=()=>{!A&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?b(!0):de?.()};return t.jsxs(at,{children:[t.jsx($e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>b(!1),style:{backgroundColor:Re.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:u,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:s,onClose:()=>b(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:we})}),t.jsx(ze,{title:g.setupTitle,backgroundColor:y.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!V&&!D&&(i==="medium-compact"||i==="small"),onClickMenuIcon:he,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(ot,{windowSize:i,children:Ve}),Fe?t.jsx(ct,{children:t.jsx(We,{size:"ExtraLarge",start:!0})}):t.jsx(Le,{...F,children:t.jsx("form",{id:X(Q),onSubmit:ve,children:t.jsxs(st,{windowSize:i,children:[t.jsx(Ne,{onClick:De,title:_.businessVerificationTitle,subTitle:_.businessVerificationSubTitle,header:_.businessVerificationHeader,icon:{element:t.jsx(qe,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:$?.businessVerificationStatus,isLoading:xe,isActiveWhileLoading:!0}),v?null:t.jsx(He,{connectedAccountProvider:Z,primaryFundingAccount:l,allFundingAccounts:z,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:m,isDisabled:r,onFetchLinkTokenClick:oe,onEstablishConnectionClick:ge,onUpdatePaymentAccountStatus:re,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:g.setupAccountSectionTitle,onEstablishConnectionSuccess:me,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:E,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:Pe,pageName:g.pageName,accountsPromoConfig:ae,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:y.colors.primary,...Me.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:J(m,"enableAutoPay"),checkBoxValue:J(m,"enableAutoPay"),defaultChecked:I?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),O?t.jsx(Je,{formId:X(Q),primaryBtn:{label:g.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:u.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:r!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Qe,{isFooterRendered:O,meetingUrl:P,analytics:E,productType:"charge_cards"})]})},K=e=>{const{allBankAccounts:r,allFundingAccounts:P,primaryFundingAccount:h}=e;return{[m]:{fundingAccount:{selectedOption:h?.id,allOptions:P.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:r.map(a=>({label:a.accountName,value:a.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},X=e=>`${e}_form`,it=w.div`
1
+ import{e as je,Q as Oe,a8 as Ue,aQ as M,a9 as Be,cF as _e,aV as G,V as t,fb as $e,p as Re,y as d,bC as ze,T as We,ac as Le,fu as Ne,dR as qe,fv as He,o as B,b as Me,iN as J,bw as Ge,aR as Je,fx as Qe,F as Ke,u as o,al as Xe}from"./index-CRjLU1CH.js";import{a as f}from"./sentry-DZdy1Eny.js";import{n as w}from"./mui-G_qoHHKo.js";import{bJ as Ye}from"./zeni-epic-state-BlmgKn3B.js";import{u as Ze}from"./LabeledControlledCheckBoxField-CkG-jIW7-C2Hnry7S.js";import{g as et}from"./UploadAdditionalDocumentOverlay-BmiNa89K-BeqcSbMb.js";import"./liveblocks-B2F837W5.js";import"./core-BZCxWmUX.js";import"./recharts-CCryt90F.js";import"./lottie-CgAPdzgC.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";(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]="35af7699-25bb-4f59-a824-9eb1dd5ee462",e._sentryDebugIdIdentifier="sentry-dbid-35af7699-25bb-4f59-a824-9eb1dd5ee462")}catch{}})();const c={titleWidth:new d(343,580,726,826),setupDetailsRowGap:new d(12,o[5],o[5]),sectionRowGap:new d(o[5],o[9],o[9]),iconWidthHeight:new d(20,o[4]),subTitlePaddingTop:new d(12,o[3]),subTitlePaddingBottom:new d(o[3],o[3]),overlayWidth:new d(100,100,59),checkBoxTop:new d(o[1],o[0])},Q="chargeCardSetUpPage",m="payAccount",{commonSetUp:tt,spendManagement:nt}=Ke.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:g}=Y,{setUp:_}=tt,wt=({autoPayThreshold:e,isDisabled:r,meetingUrl:P,isEarlyPayEnabled:h,chargeCardSetUpView:a,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:v,isCreditCardOnlyEnabled:ie,accountsPromoConfig:ae,onFetchLinkTokenClick:oe,onBackClick:ce,onEnableChargeCardClick:se,onUpdateChargeCardClick:le,onBusinessVerificationSectionClick:de,onUpdatePaymentAccountStatus:re,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:fe,onEstablishConnectionClick:ge,onEstablishConnectionSuccess:me,onClickMenuIcon:he,onEnableChargeCardSuccess:x,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:we,onSignUpClick:Pe})=>{const y=je(),i=Oe(),E=Ue().analytics,[A,b]=f.useState(!1),{fetchState:C,companyBillPayInfo:$,isRefreshingViewInBackground:xe,updateStatus:u,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:I,companyDebitCardInfo:R,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:z}=a,W=M(C),k=M(u.fetchState),F=Be({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>K(a),[a]),values:K(a)}),ve=F.handleSubmit(se),Ee=async(S,T)=>{const n=T[m];if(S.includes(m))if(S.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&l?.id!=n.fundingAccount.selectedOption){const p=z.find(U=>U.id===n.fundingAccount.selectedOption);p!=null&&pe(n.fundingAccount.selectedOption,p.accType)}}else if(n.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=n.account.selectedOption){const p=n.account.allOptions.find(U=>U.value===n.account.selectedOption);p!=null&&typeof p.label=="string"&&E.trackConnectBankLink(p.value,p.label,"charge_cards"),le(n.account.selectedOption,l.id,l.accType)}else S.includes("enableAutoPay")&&n.enableAutoPay!=null&&fe(n.enableAutoPay)};f.useEffect(()=>{const S=F.watch((T,{name:n})=>{n!=null&&T!=null&&_e(()=>Ee(n,T))});return()=>{S.unsubscribe()}}),f.useEffect(()=>{!A&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&b(!0),A&&W==="In-Progress"&&C==="Completed"&&b(!1)},[s,C,W]),f.useEffect(()=>{k==="In-Progress"&&u.fetchState==="Completed"&&x()},[x,k,u.fetchState]);const V=I?.isChargeCardEnabled===!0,D=R?.isDebitCardEnabled===!0,L=R?.isDebitCardTOSAccepted===!0,N=I?.isChargeCardTOSAccepted===!0,q=$?.isBusinessVerified===!0,Ie=l?.accType==="depositAccount"||Ye(l?.providerVerificationStatus?.code??""),j=v?q:q&&Ie,Fe=C==="In-Progress"||C==="Not-Started";f.useEffect(()=>{k==="In-Progress"&&u.fetchState==="Completed"&&x()},[x,k,u.fetchState]);const O=v?j&&!D&&L:ie?j&&!V&&N:j&&!(V&&D)&&N&&L,Ve=O?g.setupSubTitleNotEnabled:g.setupSubTitle,H=y.mode==="light"?new G(y.colors.brandColorJadeLight):new G(y.colors.brandColorJadeDark),De=()=>{!A&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?b(!0):de?.()};return t.jsxs(at,{children:[t.jsx($e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>b(!1),style:{backgroundColor:Re.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:u,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:s,onClose:()=>b(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:we})}),t.jsx(ze,{title:g.setupTitle,backgroundColor:y.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!V&&!D&&(i==="medium-compact"||i==="small"),onClickMenuIcon:he,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(ot,{windowSize:i,children:Ve}),Fe?t.jsx(ct,{children:t.jsx(We,{size:"ExtraLarge",start:!0})}):t.jsx(Le,{...F,children:t.jsx("form",{id:X(Q),onSubmit:ve,children:t.jsxs(st,{windowSize:i,children:[t.jsx(Ne,{onClick:De,title:_.businessVerificationTitle,subTitle:_.businessVerificationSubTitle,header:_.businessVerificationHeader,icon:{element:t.jsx(qe,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:$?.businessVerificationStatus,isLoading:xe,isActiveWhileLoading:!0}),v?null:t.jsx(He,{connectedAccountProvider:Z,primaryFundingAccount:l,allFundingAccounts:z,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:m,isDisabled:r,onFetchLinkTokenClick:oe,onEstablishConnectionClick:ge,onUpdatePaymentAccountStatus:re,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:g.setupAccountSectionTitle,onEstablishConnectionSuccess:me,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:E,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:Pe,pageName:g.pageName,accountsPromoConfig:ae,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:y.colors.primary,...Me.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:J(m,"enableAutoPay"),checkBoxValue:J(m,"enableAutoPay"),defaultChecked:I?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),O?t.jsx(Je,{formId:X(Q),primaryBtn:{label:g.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:u.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:r!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Qe,{isFooterRendered:O,meetingUrl:P,analytics:E,productType:"charge_cards"})]})},K=e=>{const{allBankAccounts:r,allFundingAccounts:P,primaryFundingAccount:h}=e;return{[m]:{fundingAccount:{selectedOption:h?.id,allOptions:P.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:r.map(a=>({label:a.accountName,value:a.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},X=e=>`${e}_form`,it=w.div`
2
2
  display: flex;
3
3
  justify-content: flex-start;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{e as F,Q as N,V as t,bC as V,o as h,F as R,y as g,al as B,b9 as W,a8 as _,hK as O,T as q,aP as G,u as s,c3 as J}from"./index-G4udIFQJ.js";import{n as r}from"./mui-BDpZEDd-.js";import{$ as K,g as Q}from"./BoxItem-DptPNfuL-Bp-R8iE1.js";import{a as U}from"./sentry-CTrMrBL8.js";import{w as Z}from"./downloadPdf-DJF-2ZO0-DSsBKjnk.js";import"./liveblocks-CV4wYZBt.js";import"./core-CfLdY-k_.js";import"./recharts-B3SHU5RU.js";import"./zeni-epic-state-B_64dD7k.js";import"./lottie-Dw1I6Lqb.js";import"./analytics-BYwa85mC.js";import"./lexical-C2hQPjBk.js";import"./utils-yHZwLkmM.js";import"./commonDimensions-Bu6zjJKF-Cmgw7sLn.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]="dc7dc8c4-337d-43f8-a051-b59c1f95dead",e._sentryDebugIdIdentifier="sentry-dbid-dc7dc8c4-337d-43f8-a051-b59c1f95dead")}catch{}})();const D=R.getLocalizedStrings().months,Y={downloadButtonSize:new g(s[4],20)},H=r.div`
1
+ import{e as F,Q as N,V as t,bC as V,o as h,F as R,y as g,al as B,b9 as W,a8 as _,hK as O,T as q,aP as G,u as s,c3 as J}from"./index-CRjLU1CH.js";import{n as r}from"./mui-G_qoHHKo.js";import{$ as K,g as Q}from"./BoxItem-CgrlwejJ-DRtcS1-S.js";import{a as U}from"./sentry-DZdy1Eny.js";import{w as Z}from"./downloadPdf-CMFOff-_-mnN6dDox.js";import"./liveblocks-B2F837W5.js";import"./core-BZCxWmUX.js";import"./recharts-CCryt90F.js";import"./zeni-epic-state-BlmgKn3B.js";import"./lottie-CgAPdzgC.js";import"./analytics-BHfEcMs7.js";import"./lexical-D8AhEV3-.js";import"./utils-D8ZC_tPv.js";import"./commonDimensions-Upfg-PB1-DEuX-eDL.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]="0bcb093c-905b-4326-97cf-010a421bfc44",e._sentryDebugIdIdentifier="sentry-dbid-0bcb093c-905b-4326-97cf-010a421bfc44")}catch{}})();const D=R.getLocalizedStrings().months,Y={downloadButtonSize:new g(s[4],20)},H=r.div`
2
2
  display: flex;
3
3
  padding: ${h.sp3} ${h.sp4};
4
4
  flex-direction: row;
@@ -19,7 +19,7 @@ import{e as F,Q as N,V as t,bC as V,o as h,F as R,y as g,al as B,b9 as W,a8 as _
19
19
  overflow: hidden;
20
20
  `,te=r.div`
21
21
  cursor: pointer;
22
- `,ae=r(J)`
22
+ `,ie=r(J)`
23
23
  width: ${e=>Y.downloadButtonSize.valuePx(e.windowSize)};
24
24
  height: ${e=>Y.downloadButtonSize.valuePx(e.windowSize)};
25
25
  min-height: ${e=>Y.downloadButtonSize.valuePx(e.windowSize)};
@@ -27,7 +27,7 @@ import{e as F,Q as N,V as t,bC as V,o as h,F as R,y as g,al as B,b9 as W,a8 as _
27
27
  &:hover {
28
28
  color: ${e=>e.theme.colors.primary};
29
29
  }
30
- `;function ie({currentTenantCompanyName:e,data:i,index:n,controllerEmails:l,isDebitCardFeatureEnabled:a,isDebitCardSetupEnabled:o,chargeCardCashbackDetailState:d,depositAccountListWithDebitCardIssued:y,debitCardSummary:C,productInformation:x,creditAccountInformation:S,debitAccountInformation:$,cashbackInformation:f,creditAccountRepayment:I,authParams:P,downloadEndPoint:k,boxType:j}){const b=_().analytics,[v,E]=U.useState(!1),c=N(),z=D[i.monthYearPeriod.month-1],u=`${e}-Credit-Card-Monthly-Statement-${D[i.monthYearPeriod.month-1]}-${i.monthYearPeriod.year}.pdf`,m={period:`${i.monthYearPeriod.year}-${O(i.monthYearPeriod.month)}`,format:"pdf"},p=t.jsx(H,{children:t.jsxs(X,{children:[t.jsx(ee,{children:z}),t.jsx(te,{"data-testid":G("download-card-statement"),onClick:()=>{d.fetchState==="Completed"&&I.fetchState==="Completed"&&(!(a&&o)||y.fetchState==="Completed"&&C?.fetchState==="Completed")&&f!=null&&b.trackCardsDownloadClick(l,x,f,{fileCategory:"Credit Card Statement",fileType:"pdf",fileName:u,fileMonthYear:`${D[i.monthYearPeriod.month-1]} ${i.monthYearPeriod.year}`},"Credit Card Statements",n+1,S,$),Z(`${k}/statements?query=${encodeURIComponent(JSON.stringify(m))}`,u,P,E)},children:v?t.jsx(q,{size:"Small",start:!0}):t.jsx(ae,{windowSize:c})})]})});return t.jsx(Q,{content:p,boxType:j,isDisabled:!1,isNotClickable:!0})}const A=R.getLocalizedStrings().spendManagement.chargeCard.statements,w={listItemMarginLeftRight:new g(s[3],s[8]),containerMarginTop:new g(s[0],s[2]),titleMarginLeftRight:new g(s[3],s[8])},ke=({currentTenantCompanyName:e,authParams:i,controllerEmails:n,productInformation:l,cashbackInformation:a,creditAccountInformation:o,debitAccountInformation:d,isChargeCardFeatureEnabled:y,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:x,isChargeCardSetupEnabled:S,chargeCardCashbackDetailState:$,depositAccountListWithDebitCardIssued:f,creditAccountRepayment:I,debitCardSummary:P,creditAccount:k,downloadEndPoint:j,statementListView:b,onBackClick:v})=>{const E=F(),c=N(),{sortedYear:z,monthsByYearWithSortedMonth:u}=me(b.statements);return t.jsxs(se,{children:[t.jsx(V,{title:A.title,backgroundColor:E.colors.grey4,style:{zIndex:3},onBackClick:v,source:"ChargeCardStatementsPage"}),t.jsx(ce,{windowSize:c,children:b.statements.length===0?t.jsx(M,{children:t.jsx(de,{children:t.jsx(L,{windowSize:c,children:t.jsx(le,{children:A.noStatements})})})}):t.jsx(re,{children:z.map(m=>t.jsxs(ne,{children:[t.jsx(oe,{windowSize:c,children:m}),t.jsx(M,{children:u[m].map((p,T)=>t.jsx(L,{windowSize:c,children:t.jsx(ie,{productInformation:l,creditAccountInformation:o,debitAccountInformation:d,cashbackInformation:a,creditAccountRepayment:I,depositAccountListWithDebitCardIssued:f,debitCardSummary:P,controllerEmails:n,isChargeCardFeatureEnabled:y,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:x,isChargeCardSetupEnabled:S,chargeCardCashbackDetailState:$,creditAccount:k,currentTenantCompanyName:e,index:T,data:p,authParams:i,downloadEndPoint:j,boxType:K(T,u[m].length)},p.id)},p.id))})]},m))})})]})},re=r.div``,ne=r.div`
30
+ `;function ae({currentTenantCompanyName:e,data:a,index:n,controllerEmails:l,isDebitCardFeatureEnabled:i,isDebitCardSetupEnabled:o,chargeCardCashbackDetailState:d,depositAccountListWithDebitCardIssued:y,debitCardSummary:C,productInformation:x,creditAccountInformation:S,debitAccountInformation:$,cashbackInformation:f,creditAccountRepayment:I,authParams:P,downloadEndPoint:k,boxType:j}){const b=_().analytics,[v,E]=U.useState(!1),c=N(),z=D[a.monthYearPeriod.month-1],u=`${e}-Credit-Card-Monthly-Statement-${D[a.monthYearPeriod.month-1]}-${a.monthYearPeriod.year}.pdf`,m={period:`${a.monthYearPeriod.year}-${O(a.monthYearPeriod.month)}`,format:"pdf"},p=t.jsx(H,{children:t.jsxs(X,{children:[t.jsx(ee,{children:z}),t.jsx(te,{"data-testid":G("download-card-statement"),onClick:()=>{d.fetchState==="Completed"&&I.fetchState==="Completed"&&(!(i&&o)||y.fetchState==="Completed"&&C?.fetchState==="Completed")&&f!=null&&b.trackCardsDownloadClick(l,x,f,{fileCategory:"Credit Card Statement",fileType:"pdf",fileName:u,fileMonthYear:`${D[a.monthYearPeriod.month-1]} ${a.monthYearPeriod.year}`},"Credit Card Statements",n+1,S,$),Z(`${k}/statements?query=${encodeURIComponent(JSON.stringify(m))}`,u,P,E)},children:v?t.jsx(q,{size:"Small",start:!0}):t.jsx(ie,{windowSize:c})})]})});return t.jsx(Q,{content:p,boxType:j,isDisabled:!1,isNotClickable:!0})}const A=R.getLocalizedStrings().spendManagement.chargeCard.statements,w={listItemMarginLeftRight:new g(s[3],s[8]),containerMarginTop:new g(s[0],s[2]),titleMarginLeftRight:new g(s[3],s[8])},ke=({currentTenantCompanyName:e,authParams:a,controllerEmails:n,productInformation:l,cashbackInformation:i,creditAccountInformation:o,debitAccountInformation:d,isChargeCardFeatureEnabled:y,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:x,isChargeCardSetupEnabled:S,chargeCardCashbackDetailState:$,depositAccountListWithDebitCardIssued:f,creditAccountRepayment:I,debitCardSummary:P,creditAccount:k,downloadEndPoint:j,statementListView:b,onBackClick:v})=>{const E=F(),c=N(),{sortedYear:z,monthsByYearWithSortedMonth:u}=me(b.statements);return t.jsxs(se,{children:[t.jsx(V,{title:A.title,backgroundColor:E.colors.grey4,style:{zIndex:3},onBackClick:v,source:"ChargeCardStatementsPage"}),t.jsx(ce,{windowSize:c,children:b.statements.length===0?t.jsx(M,{children:t.jsx(de,{children:t.jsx(L,{windowSize:c,children:t.jsx(le,{children:A.noStatements})})})}):t.jsx(re,{children:z.map(m=>t.jsxs(ne,{children:[t.jsx(oe,{windowSize:c,children:m}),t.jsx(M,{children:u[m].map((p,T)=>t.jsx(L,{windowSize:c,children:t.jsx(ae,{productInformation:l,creditAccountInformation:o,debitAccountInformation:d,cashbackInformation:i,creditAccountRepayment:I,depositAccountListWithDebitCardIssued:f,debitCardSummary:P,controllerEmails:n,isChargeCardFeatureEnabled:y,isDebitCardFeatureEnabled:C,isDebitCardSetupEnabled:x,isChargeCardSetupEnabled:S,chargeCardCashbackDetailState:$,creditAccount:k,currentTenantCompanyName:e,index:T,data:p,authParams:a,downloadEndPoint:j,boxType:K(T,u[m].length)},p.id)},p.id))})]},m))})})]})},re=r.div``,ne=r.div`
31
31
  margin-bottom: ${h.sp6};
32
32
  `,M=r.div``,oe=r(W)`
33
33
  margin-left: ${e=>w.titleMarginLeftRight.valuePx(e.windowSize)};
@@ -57,4 +57,4 @@ import{e as F,Q as N,V as t,bC as V,o as h,F as R,y as g,al as B,b9 as W,a8 as _
57
57
  width: 100%;
58
58
  height: 100%;
59
59
  margin-top: ${e=>w.containerMarginTop.valuePx(e.windowSize)};
60
- `,me=e=>{const i=e.map(a=>{const[o,d]=a.period.split("-");return{id:a.id,monthYearPeriod:{year:parseInt(o),month:parseInt(d)}}}),n={};i.forEach(a=>{n[a.monthYearPeriod.year]!=null?n[a.monthYearPeriod.year].push(a):n[a.monthYearPeriod.year]=[a]});const l={};return Object.keys(n).forEach(a=>{l[Number(a)]=n[Number(a)].sort((o,d)=>d.monthYearPeriod.month-o.monthYearPeriod.month)}),{sortedYear:Object.keys(n).sort((a,o)=>Number(o)-Number(a)).map(a=>Number(a)),monthsByYearWithSortedMonth:l}};export{ke as default};
60
+ `,me=e=>{const a=e.map(i=>{const[o,d]=i.period.split("-");return{id:i.id,monthYearPeriod:{year:parseInt(o),month:parseInt(d)}}}),n={};a.forEach(i=>{n[i.monthYearPeriod.year]!=null?n[i.monthYearPeriod.year].push(i):n[i.monthYearPeriod.year]=[i]});const l={};return Object.keys(n).forEach(i=>{l[Number(i)]=n[Number(i)].sort((o,d)=>d.monthYearPeriod.month-o.monthYearPeriod.month)}),{sortedYear:Object.keys(n).sort((i,o)=>Number(o)-Number(i)).map(i=>Number(i)),monthsByYearWithSortedMonth:l}};export{ke as default};