@zeniai/web-cockpit-ui 1.15.16-dev → 1.15.17-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 (290) hide show
  1. package/dist/assets/{ACHDetailsPage-BOZmOJHO-CwAQrPpG.js → ACHDetailsPage-cAgIhKJs-bGTsqigs.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-ZVCJizP9-BEYLvxG6.js → AIPerformancePage-BPwI4kZG-BTP4khzH.js} +12 -12
  3. package/dist/assets/AccountInfoPage-jlXCF7Gn-p294yilG.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-D0wuuzMd-fpNJ2YsG.js → AccountInfoPageContent-CIjrqt8Z-xcHih_xf.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Cfx-lPAZ-BkStU3hi.js → AccountLockedInfoModal-b0SYt4cr-DyDb_wyO.js} +2 -2
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DbHX6rPG-DTTeCxce.js → AccountReconDetailsDrawerPage-CEjWEa01-aoYQi4ku.js} +5 -5
  7. package/dist/assets/{AccountRow-Bk_25FCy-BSk-hvqy.js → AccountRow-C9lnDVNf-86hTjbuw.js} +8 -8
  8. package/dist/assets/{AccountsPromoCardStack-DAXRwY1f-BvuQll0f.js → AccountsPromoCardStack-hzApdgeN-DUJB0-p0.js} +1 -1
  9. package/dist/assets/AddAddressForCardDrawer-BIjROWAw-BSYp9XYN.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CzziHgi7-BQwLxI1X.js → AddToWalletPage-CgCHdO6c-CiVYqd0C.js} +5 -5
  11. package/dist/assets/{AgingReportsPage-Bdi3krKK-CTkT1Zm8.js → AgingReportsPage-B0NKfFq5-Bk4x7HpE.js} +4 -4
  12. package/dist/assets/{AllUserItems-XWDuiug6-DLAl8Xcx.js → AllUserItems-D6uMCcjF-CS_wO3mh.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CaM_AzrU-DPf2WuMd.js → ApAgingDetailPage-CxS9o2Dj-B1fPZ2rF.js} +2 -2
  14. package/dist/assets/{AppBasePage-B7_L4R6d-BHqVR5DP.js → AppBasePage-BnfCjFJA-CQeMBbMI.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-DSX1364T-pcNTv-EE.js → AppDrawerContent-CwBFjBnr-CKjzuecx.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DrjPOeyp-C5ILQVYd.js → ApprovalRulesSettingsPage-91Tg_EpH-BzKB_HwN.js} +2 -2
  17. package/dist/assets/{ArAgingChart-M7KUNA4G-DBWSBarK.js → ArAgingChart-6qcRcKoz-MYhKnyKG.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-7lby5mXn-G9J2gxqo.js → ArAgingDetailPage-DmUWtQsX-KXzejd7L.js} +2 -2
  19. package/dist/assets/{AttachmentView-Bsa0u92o-CQtMxB6c.js → AttachmentView-B0oZITps-CNLEqH0L.js} +2 -2
  20. package/dist/assets/{BankAccountSection-BkOlwayA-gKroDONq.js → BankAccountSection-C8G2PrLh-OgTv2VaB.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-uMOXLH0B-Dmm_2ZeO.js → BankAccountWarningSection--DkXEMWU-jfcY3ZKV.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-C_YytTke-BLDqC2se.js → BankConnectionsSettingsPage-DmzolLyN-BNSTT_VR.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DvU5_Rsp-QONja72z.js → BillDetailPage-BuCOe4eB-DBZDvMBw.js} +4 -4
  24. package/dist/assets/BillPayApprovalRuleDetailPage-y3qBdiwE-CP9uLqPK.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-CA9eufjt-DhCNQwaz.js → BillPayApprovalRulesPage-DpN3O_Q1-ILVegrck.js} +9 -9
  26. package/dist/assets/{BillPayPromoPage-DsXPWKAf-CH-kAnh9.js → BillPayPromoPage-Dcly8epm-DNaDxuq-.js} +3 -3
  27. package/dist/assets/{BillPaySetUpPage-CeMhzZ_3-BAILYdpq.js → BillPaySetUpPage-zxd0WLUm-CL6S_QEz.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-BygJjDSp-ZMuXzR1y.js → BillingSettingsPage-Djx3EUQO-2EyCLMZp.js} +11 -11
  29. package/dist/assets/{BillsBulkReviewDrawerPage-WrR46NRa-Cq3ZfsO5.js → BillsBulkReviewDrawerPage-gK7xRoiE-B9WwX7Kq.js} +1 -1
  30. package/dist/assets/{BoxItem-C0M4PSXY-Dz-uzrl9.js → BoxItem-ClRdlCWM-B_aqSV-L.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-C63pUk4d-CY7SQzHf.js → BusinessVerificationPage-Dzp7gFwH-iwUmX4wV.js} +2 -2
  32. package/dist/assets/{CardNumberSubText-B4dAoYDE-S0p2Dvhi.js → CardNumberSubText-CHr49_cJ-9Ya6XjXp.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-B6xvn-y3-C2QB22yP.js → CashbackDetailPage-BNHzTYwa-BdAtNCNi.js} +16 -16
  34. package/dist/assets/{ChargeCardDetailPage-eJJ4MEE6-Cbmrl3gL.js → ChargeCardDetailPage-DWyRrPSy-BvyyNVxe.js} +34 -34
  35. package/dist/assets/{ChargeCardListPage-BYI2HIjA-DQe2h7t9.js → ChargeCardListPage-D3nBV6Fu-DfN7aWAo.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DAVYmKCK-CXpYrtrT.js → ChargeCardListTable-DBYEXr_N-7b006WJ7.js} +28 -28
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BX5HtOxd-CtFjNufh.js → ChargeCardPaymentHistoryPage-BEvuS2te-BxwCFTIZ.js} +18 -18
  38. package/dist/assets/ChargeCardPromoPage-DxNPvbeh-CTzLEbbH.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-DG1eKhYR-DW3nMBQs.js → ChargeCardSetupPage-BgBF1U8E-DnPnCE_j.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-CvtZtuVC-D3csdiBJ.js → ChargeCardStatementsPage-UttZjyIb-CinG3Yr4.js} +6 -6
  41. package/dist/assets/{CheckDepositDrawerPage-BdacGDpy-B_co6EhK.js → CheckDepositDrawerPage-sXY6MJoX-BBStJHqh.js} +9 -9
  42. package/dist/assets/{CollapsableReportTable-UADp1m_8-CTcsoqje.js → CollapsableReportTable-3luMEAJg-BroWF-FL.js} +60 -60
  43. package/dist/assets/{CompanyOfficerDetailsSection-CaAR0Wvk-CBJ-_ogf.js → CompanyOfficerDetailsSection-wa4YnlL--Bvat7gA-.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BJN2GEVm-gEElvrvK.js → CompanyPassportCard-FgYHweiL-B5gr1lJ_.js} +6 -6
  45. package/dist/assets/{CompanyPassportPage-D2ALJDF_-B6f-pO9X.js → CompanyPassportPage-B8LoE1o9-B6zE-V-E.js} +1 -1
  46. package/dist/assets/{CompleteProfile-C8X8Z3C2-1FrtaPxU.js → CompleteProfile-6pDQ6JjU-C7odNMQ5.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-DxHzdDPp-Be75-rA7.js → ConfettiBurst-BAIozwVU-BMA4g7cW.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DePlTE9o.js → ConstrainedInnerElement-BeIpAPjB-CbQ77GJr.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-y-COpdhs-Cw0_CLuv.js → CreateOrEditVendorPage-DMWtQ3qU-Bg7OoiTt.js} +11 -11
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CntYJJ8v-CprMPTAM.js → CreditCardPaymentDrawerPage-OzD38_F8-B8JNfyMQ.js} +5 -5
  51. package/dist/assets/{CurrencySelectField-Dn-hE2az-XRHzVtOt.js → CurrencySelectField-DL4q5vKR-DqpW0Wz5.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-B9MZHJVc-CzGOfqlu.js → CustomerOnboardingActivationPage-C8mciX-r-B9Cshw5r.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-Btl2A6Cw-CdJnPywR.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BCe8BvQF-BsLS_Cn1.js → CustomerOnboardingDetailPageSkeleton-Nl6SOtES-B3qnBN4d.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BHk7rDAg-C5ajOfPI.js → CustomerOnboardingNoStepsPage-CQN8EEU--ChBu6uTX.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-1LvpVpHC-BrVAkLSK.js → CustomerOnboardingPage-B77cjZbE-Do4tQjfo.js} +7 -7
  57. package/dist/assets/CustomerOnboardingProductSuitePage-BYC_Sp__-B35TL-cQ.js +202 -0
  58. package/dist/assets/{Dashboard-CCV0_aCP-BXhr1WNF.js → Dashboard-DAP7UzjW-DBsJoK5k.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-CmoH9Vrc-DJMMkkGF.js → DashboardReportPage-iAA_QiN2-BfmuWrMe.js} +10 -10
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-hw3einS7-BAKkeTFg.js → DashboardSidebarBackgroundAnimation-CIKwGufL-B4WWY8cX.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-DgdkYGjP-cYRUSlBG.js → DepositAccTransactionItem-D3x1jhKt-DssCTMB7.js} +2 -2
  62. package/dist/assets/{DepositAccTransactionListPage-CF0WJn9M-C_3AVCeF.js → DepositAccTransactionListPage-W9xt6kxv-BUhaUskS.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-B12tNa6e-uEIGVaj9.js → DomesticWireDetailsPage-DHUzdqCs-CeJMtDxo.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Dt9yt4Fz-BLty8T-n.js → DownloadOverlay-C8byijvE-DCI_09Q4.js} +1 -1
  65. package/dist/assets/{DrawerPage-Clki97FA-BA9PorYC.js → DrawerPage-DMQ5MoIw-BlXGV-xV.js} +12 -12
  66. package/dist/assets/{EditPeoplePage-CKS_aEZm-D119ukKN.js → EditPeoplePage-D7TQFFBG-Djz1uJLh.js} +3 -3
  67. package/dist/assets/{EditReimbursementDetailPage-CXy2ZWfZ-DpLpJWez.js → EditReimbursementDetailPage-STVvYnku-Dyx2Oikb.js} +1 -1
  68. package/dist/assets/EntityDetailPage-20BKV_TK-B5sqJOYK.js +18 -0
  69. package/dist/assets/{EntitySummarySection-D_YLsP_P-t3_MJbgk.js → EntitySummarySection-6JSSyIPA-K01fPehF.js} +24 -24
  70. package/dist/assets/{ExpenseAutomationOverviewPage-4z3yzHEA-CJviw0EF.js → ExpenseAutomationOverviewPage-DpoYnwJh-DSAhakn4.js} +8 -8
  71. package/dist/assets/{ExpenseAutomationPage-BJ4H_c2z-DDA_nGZx.js → ExpenseAutomationPage--kONBcsX-DlY4RThk.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-CTBD4y1v-BPs_d41G.js → ExpressPayPage-a31-5Bgz-B-4aw0li.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-CYuTQWpP-BflQGHBv.js → FeaturePreviewPage-z8BJQeL--ChibcOOA.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BrpI2HyW-CiBKuMZv.js → FollowStepsSection-Bl933px0-DXKlKasr.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-BcvxLqIL-2_WHm0aW.js → GlobalReviewListPage-BLPF3T4t-0m0mv8R4.js} +7 -7
  76. package/dist/assets/{InformationCardStack-CU4Moqky--vtJfmXM.js → InformationCardStack-BTWe4X6t-DdN7cWvp.js} +2 -2
  77. package/dist/assets/{InsightsCardStack-D8UQiuXZ--_fLkoGW.js → InsightsCardStack-CoSz_FKI-xRb_a3yi.js} +8 -8
  78. package/dist/assets/{InsightsSection-C3X6ZNEt-NjJemZo-.js → InsightsSection-DEnkGYD8-BV7sZQsr.js} +4 -4
  79. package/dist/assets/{IntegrationsSettingsPage-CsLv00HW-BeC7UsBa.js → IntegrationsSettingsPage-CEaBjt99-Do0dnq5V.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DgrN5Xg7-C4XmzhP5.js → InternationalWireSwiftDetailsPage-C1i-ujyZ-DIPsBga8.js} +6 -6
  81. package/dist/assets/{InternationalWireVerificationPage-CvysJNBQ-Ca744cyt.js → InternationalWireVerificationPage-CWBpTNA9-9aWL0J3i.js} +2 -2
  82. package/dist/assets/{InviteFormPage-B3KmRWXd-C2ITeVTl.js → InviteFormPage-B2Rl23Qb-D49rnAc4.js} +17 -17
  83. package/dist/assets/{InvitePageListView-DfpJBZru-tcIB_WKy.js → InvitePageListView-E_2j_tF7-BsS6FATD.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-C5Qgk24s-WY8vJMhk.js → InvitePeoplePage-CljSsdaM-DHNLTMCH.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-BO1i-e_D-BEHL-1J7.js → InvoiceUploadSection-drGgAU5w-CP2A3IhR.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-mPsxt52d-x--Yc1yG.js → IssueChargeCardPage-Cj6pmQbt-DDVdjZ4v.js} +17 -17
  87. package/dist/assets/{LabeledAddressValue-C4fnQSyi-C-QRaLS5.js → LabeledAddressValue-BjCojNni-CsHQb5xA.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-D6dEaI69-Chc-QlAF.js → LabeledAddressValueField-DyHTdGlm-CErilABA.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-B1QdZmvd-IUa4evUP.js → LabeledControlledCheckBoxField-B5Csu2og-C5h8CQSb.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-XeBih_-f-DKxnjH2w.js → LabeledCountryMultiSelectField-Ds0vvyNd-ypZKY9co.js} +12 -12
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BPX2Nrlf-ZlY5YONf.js → LabeledCreatableSingleSelectField-C-dLOvWU-28KwULO3.js} +5 -5
  92. package/dist/assets/LabeledDocumentField-b5xujqjK-HTjOeiZT.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-A-rgip1E-B17ex07S.js → LabeledDropDownFormattedTextField-DHx90GON-Rl0wOSQX.js} +2 -2
  94. package/dist/assets/{LabeledMultiSelectField-Di9Wnifv-ByxiVL3j.js → LabeledMultiSelectField-CEoszkBN-B4_Me-4T.js} +1 -1
  95. package/dist/assets/{LabeledText-38fqkkE--Cee_T29J.js → LabeledText-CRJr2zA8-DRZ423PA.js} +2 -2
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BbF25dUP-BHp0iG9D.js → LabeledUserSingleSelectWithSubtitlesField-CM0HeG1R-pTmkakCa.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField-Dg9_Ww-A-Dic3e3FJ.js → LabeledZeniRolesDropDownField-CR8M-X5s-DPGEl74a.js} +7 -7
  98. package/dist/assets/{LinkJETransactionPage-66mQ4nrK-Bsoo2mEs.js → LinkJETransactionPage-DfY5sKBg-BKNhXIRx.js} +1 -1
  99. package/dist/assets/{LockCardPage-BCqN4K17-Cjzeji2k.js → LockCardPage-CgCv-EKl-CipF6lcu.js} +9 -9
  100. package/dist/assets/{LowBalancePopup-BPk1-eAb-DFTxz9st.js → LowBalancePopup-OUWtUPdo-DRkjFCjE.js} +1 -1
  101. package/dist/assets/MagicLinkACHDetailsPage-DJEu5rMd-BJeKMJK9.js +1 -0
  102. package/dist/assets/MagicLinkDomesticWireDetailsPage--0yYTzva-BnphHyQr.js +1 -0
  103. package/dist/assets/MagicLinkInternationalWireDetailsPage-B9u7g87s-YokU7IH5.js +1 -0
  104. package/dist/assets/MagicLinkSuccessPage-BwN3dPJM-CQeiTIkx.js +31 -0
  105. package/dist/assets/{MagicLinkTitleSection-77rxhjLm-BjRMFjlF.js → MagicLinkTitleSection-C_Xng7ad-D4iutPsA.js} +1 -1
  106. package/dist/assets/MailingDetailsSection-Dmq45H_s-CjyySHTi.js +21 -0
  107. package/dist/assets/{MyBankConnectionsSettingsPage-z0tHaSl1-CfQVHlUR.js → MyBankConnectionsSettingsPage-CNUaVzw3-CZkaA3pm.js} +5 -5
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CwGYwufd-CT3LLyZc.js → MyPendingActivationChargeCardListPage-Dz1U6l9--DwLxZlPN.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-8yBXAre6-DacQsI6-.js → MyProfileSettingsPage-DdlCBRiN-BYlOj9no.js} +4 -4
  110. package/dist/assets/{NavBarWithPicker-C3LVyiC9-etzEx9wd.js → NavBarWithPicker-Cx9v8jpk-DJ52ZXJM.js} +4 -4
  111. package/dist/assets/{NavigationArrow-NuJEpE7O-D8kY8llG.js → NavigationArrow-CNO4O4XS-DUm9WGAp.js} +1 -1
  112. package/dist/assets/{NavigationDots-C7Na64B9-CVWaz9qo.js → NavigationDots-BX9DbCj7-RHGokei7.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-Cus6zYV_-FAQYGhqe.js → NewGlobalMerchantPage-Bo_ZeDQH-CgpotWIt.js} +29 -29
  114. package/dist/assets/NoDataChart-JfED3unL-jJumSwoX.js +26 -0
  115. package/dist/assets/NoDataTable-BFpO3ZtS-ubjUd8M_.js +8 -0
  116. package/dist/assets/{NotFoundPage-RjXioqc8-DtIGcQuh.js → NotFoundPage-D_HhIdYv-DyNtigHQ.js} +6 -6
  117. package/dist/assets/{NotificationSettingsPage-DrDW_LU_-CrTfhQjB.js → NotificationSettingsPage-B2d-vPIZ-WS4EaJDB.js} +4 -4
  118. package/dist/assets/{NotificationsListConfig-C6_ap0JT-D8w6YoUC.js → NotificationsListConfig-C4LF_8h1-ojY4Mfu-.js} +1 -1
  119. package/dist/assets/{NotificationsPage-DOM-Gf5P-DnumyiFl.js → NotificationsPage-7HqRmokr-0AvCCTrK.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-CTuBB827-C0LLpOUj.js → OpExByVendorPage-CwD1U9q_-idpf-eH0.js} +1 -1
  121. package/dist/assets/OverlayContainerPage-D4QU0p4o-D2c2jURk.js +11 -0
  122. package/dist/assets/{PandLWithForecastPage-BXaENYdR-D65iSrrB.js → PandLWithForecastPage-CRkDr0QK-D1powlVT.js} +4 -4
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DSnQX90O-DFq5LHyH.js → PaymentAccountSetupBillingAddressSection-B6nTWyOD-gY1zpkFD.js} +6 -6
  124. package/dist/assets/{PeoplePage-BlyVVthI-D_1cj1g5.js → PeoplePage-D5eQETB2-DZx25X-Y.js} +1 -1
  125. package/dist/assets/{Preview-DYusR3hO.js → Preview-Bfns_dDG.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CAcPH--E-Bb_qjCmp.js → ProductsCarousel-BXPXaIWg-Av-oVPlG.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-BVwZMVeE-B84_P5r4.js → PromoBaseCards-C-S0ckZq-DcP7gArA.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-C3OYyhYO-CMjuhlXs.js → QBOConnectionDialog-qqbamtpL-BeJJQ440.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-DQjol-D0-eqxvZA5D.js → QBOSetupSection-CZu_mtMP-CZBINdYC.js} +4 -4
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-BE-QC1b0-CvaYArLZ.js +32 -0
  131. package/dist/assets/{ReimbursementApprovalRulesPage-Cx0gs7sS-CYC590wb.js → ReimbursementApprovalRulesPage-CXbYB3Y5-Cbew60RV.js} +4 -4
  132. package/dist/assets/{ReimbursementDetailPage-Cs_rmkS8-wwjwvRb9.js → ReimbursementDetailPage-DXMDyCop-DlZGIADX.js} +4 -4
  133. package/dist/assets/{ReimbursementPromoPage-CCFl0kQK-LLEMYe4d.js → ReimbursementPromoPage-DGXHkiBN-DLifue2f.js} +7 -7
  134. package/dist/assets/{ReimbursementSetUpPage-lf3xTVFh-DDKfdVM2.js → ReimbursementSetUpPage-Dd1iGv5X-C_E7fz-A.js} +4 -4
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C5MTFJLG-CF6p2IJ7.js → ReimbursementsBulkReviewDrawerPage-D46qP31Q-DT9YskKf.js} +1 -1
  136. package/dist/assets/{ReloadCard-V_tv6YLR-B4Af3G_4.js → ReloadCard-BJke_yPt-D_L8D7X-.js} +6 -6
  137. package/dist/assets/{ReportTableViewSelector-CWEvGn8L-Dlv8mUdn.js → ReportTableViewSelector-DiYnlME4-BJ1-sTjo.js} +3 -3
  138. package/dist/assets/{ReportsPage-BJOH1wgv-CO7zRrKg.js → ReportsPage-bmKftmYF-NgXuxPpu.js} +1 -1
  139. package/dist/assets/{RevenueChart-C_tSBw_N-BD0DJwPU.js → RevenueChart-DjTdsbym-CUUEbo6t.js} +14 -14
  140. package/dist/assets/{ReviewDetailsPage-CScPf4w3-ByB3b1ie.js → ReviewDetailsPage-NFOdusAU-CVH2L4to.js} +6 -6
  141. package/dist/assets/{ReviewOverlay-BQVwPzKa-ddzk5bgf.js → ReviewOverlay-Q8tlLMbm-BLu76gBy.js} +20 -20
  142. package/dist/assets/{RoleWithToolTip-GCV_l8Ly-C2pYTZmo.js → RoleWithToolTip-BWdD1HmA-BCpJ5d2U.js} +3 -3
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cgqgn7nk-O0hb5LF0.js → ScheduleDetailsFixedAssetsPage-CpjdnINH-Dzwzq8FX.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-D1EJbzxN-DOCtWqTf.js → ScheduleDetailsPage-DVnetdnH-DhMiGzx8.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-DDhoyPGX-zvxwe9e1.js → ScheduleSequenceTable-rJ0jC94w-DDWgbE_4.js} +14 -14
  146. package/dist/assets/{ScreenRoutes-YzeouUfS.js → ScreenRoutes-0NyWgCAY.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-AVL_16HQ-j-o6nNSY.js → SetUpAccountSection-BCoHzvyG-CzNKWW7X.js} +1 -1
  148. package/dist/assets/{SignIn-BLUwTp1l-BTGTjmO9.js → SignIn-k3DDmpFU-BAnREigf.js} +14 -14
  149. package/dist/assets/SignInScreen-BOrZAIYm.js +1 -0
  150. package/dist/assets/{SpendManagementListViewPage-DJbNFHvP-QKyzE-ot.js → SpendManagementListViewPage-DCfMKXfi-BWeN8ijV.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-J5pIRm-Q-CND_3E3i.js → SpendManagementPerTabPage-Hv3QMqv0-CTD5vH6J.js} +16 -16
  152. package/dist/assets/{SpendManagementSection-DZaP5ai6-C9tEMxFA.js → SpendManagementSection-BRp2eDfv-DVKGvM7g.js} +8 -8
  153. package/dist/assets/{StatementItem-D2Fx65LN-CJdCyRP1.js → StatementItem-9DHoMBjx-DlzvIjc2.js} +2 -2
  154. package/dist/assets/StatementsPage-CdOlg2R0-CFHx0zSi.js +58 -0
  155. package/dist/assets/{StatusSwitcher-C5ZrzI8Y-Dj5TyEni.js → StatusSwitcher-B5nSXHv6-DTMRsMtw.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-BXZxKeq9-B2Zwj5g3.js → SubTabSwitcher-BPSCR7GS-CQQ30d6t.js} +3 -3
  157. package/dist/assets/{SummaryCard-194UToy6-UI_LM1oG.js → SummaryCard-DdYMAiws-C4w7QxN_.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-zcxDUo0t-Do3_cxqD.js → TaskManagementPage-9OEooDk9-BnhlYqUu.js} +21 -21
  159. package/dist/assets/{TimeRangeSwitcher-Bsv7zQmN-uGCucrEy.js → TimeRangeSwitcher-BG9h3Mws-BXPl7KzE.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-DtxsNy1Z-Dby2t82a.js → TimeframeSwitcher-BlkN2ln5-CbPVM8iC.js} +6 -6
  161. package/dist/assets/{TimeframeSwitcherWithToggle-B5bFhbvL-Ba9NENkn.js → TimeframeSwitcherWithToggle-r8YzbhCn-DALUFB9M.js} +2 -2
  162. package/dist/assets/{TopExCard-CBua66Cj-iZDx6oGD.js → TopExCard-CDAkgH2B-DQW-zWxw.js} +4 -4
  163. package/dist/assets/{TopExDetailPage-DtMA-XMp-BkiYCTbM.js → TopExDetailPage-BN9IdTkO-DE8PmHT3.js} +11 -11
  164. package/dist/assets/{TransactionActivityLogPage-C3BPL8hi-B6EDUUtr.js → TransactionActivityLogPage-CTl6Lo3h-Dr0PqgiK.js} +5 -5
  165. package/dist/assets/{TransactionDetailPage-CeKaduBe-w8WXAz1Q.js → TransactionDetailPage-DSR3itvE-B47s770o.js} +1 -1
  166. package/dist/assets/{TransactionList-CSx8ZCZ--fRx-iJTn.js → TransactionList-wLBz-A1j-R5pqCBUj.js} +7 -7
  167. package/dist/assets/{TransactionListBig-B4cNQY2d-jRs-SXs3.js → TransactionListBig-BA00B8Vn-B52eXfHk.js} +4 -4
  168. package/dist/assets/{TransactionListPage-DHr64V-b-Bgsdc044.js → TransactionListPage-Dyi4SMpD-Bm97EAJv.js} +2 -2
  169. package/dist/assets/{TransactionVendorDetailPage-DsxI8U5b-fUCL3Z3e.js → TransactionVendorDetailPage-6HbXn17w-COo-5ffY.js} +3 -3
  170. package/dist/assets/{TransferDrawerPage-C91TQwZi-CLRJKfIG.js → TransferDrawerPage-GnqDJJ7x-u45NHhBy.js} +1 -1
  171. package/dist/assets/{TreasuryOverviewPage-BoBn_gtF-BBlPDTVn.js → TreasuryOverviewPage-7s3XhxYc-CoT8RYIQ.js} +14 -14
  172. package/dist/assets/{TreasuryPromoPage-CQ-VYEQC-DJZXY5PM.js → TreasuryPromoPage-DFnHMTJ--CP3RuQCD.js} +9 -9
  173. package/dist/assets/{TreasuryStatementsPage-taTRE54D-BRQPl-FH.js → TreasuryStatementsPage-BdUYirAC-Duwk2wsH.js} +1 -1
  174. package/dist/assets/{TreasuryTaxLetterPage-Cxhr51TD-BVmTKq55.js → TreasuryTaxLetterPage-fX08Nflm-B-GslDLQ.js} +2 -2
  175. package/dist/assets/{TrendChart-DATgAEKG-D5uXuHxg.js → TrendChart-mamZxFEf-DPlJCKYL.js} +2 -2
  176. package/dist/assets/{TrendWithTransactions-DqPFuOvC-4qpshT4h.js → TrendWithTransactions-fGuXIDf7-HyuIbA66.js} +1 -1
  177. package/dist/assets/{UncategorizedAccountsMappingPage-BQjXazj4-B0137uG5.js → UncategorizedAccountsMappingPage-FPf4YpN2-Cp3ASbXZ.js} +5 -5
  178. package/dist/assets/{UnitIntegrationPage-BiRGRtpI-Da_V8y5a.js → UnitIntegrationPage-BcIYQ6E_-B6tBJIS1.js} +1 -1
  179. package/dist/assets/{UploadAdditionalDocumentOverlay-DCldWCol-DXBSIbWE.js → UploadAdditionalDocumentOverlay-CFiPe--u-DrxhGkyT.js} +1 -1
  180. package/dist/assets/{Vendor2FAPopup-BpkAiYTA-52BaGnWz.js → Vendor2FAPopup-BreN6fS3-FjXbhU9D.js} +1 -1
  181. package/dist/assets/VendorACHDetailsPage-CP2mHGE7-CG1YPLHx.js +1 -0
  182. package/dist/assets/{VendorDetailPage-DY4iaLtz-BtWSn42W.js → VendorDetailPage-DXKn3qSR-Di8ThCGh.js} +1 -1
  183. package/dist/assets/{VendorDomesticWireDetailsPage-B5Nym5J9-BePP9h_p.js → VendorDomesticWireDetailsPage-7m-21BIT-BVTn5C6b.js} +1 -1
  184. package/dist/assets/{VendorFiling1099EditablePage-Dep7O8Uz-BwVZUQk9.js → VendorFiling1099EditablePage-D5jPoLoj-DhLrefqh.js} +32 -32
  185. package/dist/assets/{VendorFirstReviewPage-CJQIZn8g-Bbp8yC5s.js → VendorFirstReviewPage-Bxj_Far6-DOA9lu2j.js} +21 -21
  186. package/dist/assets/{VendorInternationalWireDetailsPage-CJG5RIa2-CRCBgtxB.js → VendorInternationalWireDetailsPage-DCdiiuBR-D9OAEuuJ.js} +4 -4
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-JzRuqiHJ-DYQH4bJe.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-D65ewlO6-C249PD4b.js → VendorsAccountsSection-BYkKSsB8-BmGLfX_G.js} +3 -3
  189. package/dist/assets/{VerifyDevice-B1_jgwgY-CLr_hT2k.js → VerifyDevice-DxoL8hYf-Cowpahhc.js} +1 -1
  190. package/dist/assets/{VideoPlayer-vWSXteQ6-fekEOFO-.js → VideoPlayer-ByXKIag5-BZsoWnFe.js} +2 -2
  191. package/dist/assets/{VideoPopup-CdsmU6H4-BPO5jUC8.js → VideoPopup-DybLGmZL-CNsVI5bc.js} +3 -3
  192. package/dist/assets/{WarningsDrawerPage-CjgOsD00-De28p6M4.js → WarningsDrawerPage-Ddp3wpvG-CdbbY6NF.js} +3 -3
  193. package/dist/assets/{ZeniAccountDetailPage-DiLnoonB-COe08RHM.js → ZeniAccountDetailPage-C-B9h3wI-CKYwhajY.js} +17 -17
  194. package/dist/assets/{ZeniAccountListViewPage-YfPsO8ls-Ds9pwvuL.js → ZeniAccountListViewPage-CWvKejM--BPGukJA_.js} +1 -1
  195. package/dist/assets/{ZeniAccountNavBarPieces-CHStBvRa-BqDqY_na.js → ZeniAccountNavBarPieces-xyI5r3gJ-CbIslzwK.js} +1 -1
  196. package/dist/assets/{ZeniAccountPromoPage-cEfW88p8-BhWQ-XmY.js → ZeniAccountPromoPage-ClU5aJ3_-4ixwSQil.js} +5 -5
  197. package/dist/assets/{ZeniAccountSetupPage-B20DHYex-D-hB-cgI.js → ZeniAccountSetupPage-BF6_J9le-DCR58vNJ.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-BROHmszx-BFJ7fRMA.js → ZeniCopyright-CyBZnbZa-D5SmAZYL.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-DZZrrFXf-Cq4B23lv.js → ZeniTransferAmountSlider-QODQj6J3-nB7ivh3S.js} +1 -1
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-AfkxTSja.js → add-to-wallet-DgdBD8_G-l6e6C-pa.js} +1 -1
  201. package/dist/assets/{analytics-Dz3HJTKp.js → analytics-DGcxWyl6.js} +1 -1
  202. package/dist/assets/analyticsHelper-BcBQi1qY.js +1 -0
  203. package/dist/assets/{analyticsHelper-FJ-cS8qS-D_9plNYH.js → analyticsHelper-HEUQhbuJ-Cq2Mtjgc.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-DDEpjXQ7.js → arrow-south-east-round-PEovUgvH-C0A9x354.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-CB2yKaeg.js → auto-transfer-rule-mbafm5D3-CC0rbz99.js} +1 -1
  206. package/dist/assets/chartTypes-CnipzTeX-DGSU_TZ0.js +1 -0
  207. package/dist/assets/{commonDimensions-BpYNnQtf-GFURsh40.js → commonDimensions-DmFc7WqO-CxyyXmLy.js} +1 -1
  208. package/dist/assets/{commonTypes-BVbA7QjV-C2OAdMb3.js → commonTypes-CU0qY6Px-ZdnVolMx.js} +1 -1
  209. package/dist/assets/{constants-D8qNj5Es.js → constants-jbgzJYdx.js} +1 -1
  210. package/dist/assets/{core-xud19niX.js → core-BMaLzXUJ.js} +1 -1
  211. package/dist/assets/{dash.all.min-Dmsiq7DL.js → dash.all.min-DmpFQIVa.js} +1 -1
  212. package/dist/assets/{detailCommon-BRja9H93-CS4qaApq.js → detailCommon-x-UFksNz-DKaz3zHe.js} +1 -1
  213. package/dist/assets/{downloadPdf-WDHjFv79-CGfEvBvA.js → downloadPdf-D1grj9oX-Bei5Wpqc.js} +1 -1
  214. package/dist/assets/{empty-BU3-uTyA.js → empty-CxyNypVD.js} +1 -1
  215. package/dist/assets/{empty-ClP26WFk.js → empty-DJguQx7A.js} +1 -1
  216. package/dist/assets/{epic-ff9tSPeN.js → epic-DJmh-RNR.js} +2 -2
  217. package/dist/assets/{gift-box-Cmt9OgIZ-Ba1CSAo6.js → gift-box-Cmt9OgIZ-ZuOwWA2g.js} +1 -1
  218. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CATaPbQ1.js → graphic-no-data-l-DU4J8fDt-CR5EZc8Z.js} +1 -1
  219. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-B_yV26zM.js → graphic-no-data-net-burn-l-CzmycA0m-BhBXhGOx.js} +1 -1
  220. package/dist/assets/{handshake-BPg58FML-CxOrxIUO.js → handshake-BPg58FML-DiPOUMao.js} +1 -1
  221. package/dist/assets/{index-CT3iqTha.js → index-C3zM8gb6.js} +1 -1
  222. package/dist/assets/{index-2wNtQNIE.js → index-CQmr12-Z.js} +1 -1
  223. package/dist/assets/{index-_dimXoCh.js → index-DKka6liW.js} +1 -1
  224. package/dist/assets/{index-DJjwW14X.js → index-DPwk4vO3.js} +1 -1
  225. package/dist/assets/{index-D6iLD7c3.js → index-Dw_2FdYw.js} +1 -1
  226. package/dist/assets/{index-6sX8sCRU.js → index-rJQoaAfw.js} +669 -669
  227. package/dist/assets/{index-ovnKg3OB.js → index-tuFs6sMC.js} +1 -1
  228. package/dist/assets/{lexical-CFjIG720.js → lexical-CyZM9SwL.js} +1 -1
  229. package/dist/assets/{liveblocks-BAOmiMpj.js → liveblocks-CohL7dW6.js} +1 -1
  230. package/dist/assets/{lottie-cQKxXDSP.js → lottie-XKgYVRq1.js} +1 -1
  231. package/dist/assets/{mapLoadingInProgressToTreeNode-C_5Bb47i-DD_ATbZD.js → mapLoadingInProgressToTreeNode-gyu3qs1Z-SebMrCb0.js} +1 -1
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BlrJTKah-hwelD0Z1.js → mapSectionWithAcOnlyToTreeNode-SPabSQrM-Cf3ilJGA.js} +1 -1
  233. package/dist/assets/{mapSpacerToTreeNode-DvdWKHfX-BsRKsR7W.js → mapSpacerToTreeNode-D_rRYkys-BvhCp_uR.js} +1 -1
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-8JwIYBnd-DXtmYfY7.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-BwS2KbWd-CAuCdcVv.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CCAWuSrJ-B5KhCzdx.js +1 -0
  237. package/dist/assets/{mui-BKJrVh4W.js → mui-KNfEk2A1.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-D1XFg97i.js → page-detail-CWX5S47F-BLbwsJjf.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-BLfsH1I8.js → panelSelectedMixin-CzfD5-Zs-PdsDXPWw.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-CU3HgAhI.js → radio-default-CiSgisfh-_DAtDxCX.js} +1 -1
  241. package/dist/assets/{react-CN5Npsqf.js → react-CPz-xjGo.js} +2 -2
  242. package/dist/assets/{react-CrEDpago.js → react-CX71OnYA.js} +1 -1
  243. package/dist/assets/{react-DsYqgnFz.js → react-Cbh1mkS2.js} +1 -1
  244. package/dist/assets/{react-B_dpn2x_.js → react-CfuDRhRn.js} +1 -1
  245. package/dist/assets/{react-CPPpMWlr.js → react-DOhUJ6O2.js} +1 -1
  246. package/dist/assets/{react-CLJLIrqx.js → react-H0CMmi2N.js} +1 -1
  247. package/dist/assets/{react-B_IkKKOF.js → react-KKmCM6TX.js} +1 -1
  248. package/dist/assets/{react-4VjXw9yg.js → react-wx6Np1L0.js} +1 -1
  249. package/dist/assets/{recharts-07URl5uF.js → recharts-D8Mh9GJw.js} +1 -1
  250. package/dist/assets/{sentry-BsWDfhY_.js → sentry-CGE1ab0x.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-DW8TK-Jl.js → shield-DOlUxcFf-BeHXxYmi.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-BcVCEfwr-D-kim1rY.js +1 -0
  253. package/dist/assets/{toChartData-B3ouXKAd-DqPDcbms.js → toChartData-VTidOIL7-CTZNeqK0.js} +1 -1
  254. package/dist/assets/{uploadAttachment-DNNG-CMy-C0-pn6r-.js → uploadAttachment-CwSRD9la-Dwn2_OC8.js} +1 -1
  255. package/dist/assets/{uploadReceipts-Dge0cNF1-DDO6BRYH.js → uploadReceipts-Dge0cNF1-COPT6pnG.js} +1 -1
  256. package/dist/assets/{url-B-qq-bwJ.js → url-CxS4k21H.js} +1 -1
  257. package/dist/assets/{url-CPnr4zl0.js → url-D3fzoRiq.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-DDMxNeC6.js → useLongPress-GCK2COYQ-YmFx62lI.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-CIbBacHX.js → usp-line-BBd1wKwW-lvUUHuIi.js} +1 -1
  260. package/dist/assets/{utils-lvnYc7Lx.js → utils-Co3Y654K.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-DEUUJaZy.js → zeni-epic-state-CiJSQQSe.js} +3 -3
  262. package/dist/index.html +1 -1
  263. package/package.json +3 -3
  264. package/dist/assets/AccountInfoPage-DF6IU0EG-CpTk1WUV.js +0 -18
  265. package/dist/assets/AddAddressForCardDrawer-DNGQGGYg-Bf67FiSu.js +0 -6
  266. package/dist/assets/BillPayApprovalRuleDetailPage-UeVxIxfF-dC_CchwE.js +0 -27
  267. package/dist/assets/ChargeCardPromoPage-DuQe7BpX-C5KRheHX.js +0 -222
  268. package/dist/assets/CustomerOnboardingContainerPage-eR0yY2uX-BoA9sGdB.js +0 -1
  269. package/dist/assets/CustomerOnboardingProductSuitePage-DMYHMJXg-BO7BCZyk.js +0 -202
  270. package/dist/assets/EntityDetailPage-B3TQ5hCP-uPk3J70w.js +0 -18
  271. package/dist/assets/LabeledDocumentField-Bjg8sNsg-Da4_7xZ7.js +0 -41
  272. package/dist/assets/MagicLinkACHDetailsPage-DM7EUUU7-8dRO9py4.js +0 -1
  273. package/dist/assets/MagicLinkDomesticWireDetailsPage-DKrGgFTu-86-Eks-y.js +0 -1
  274. package/dist/assets/MagicLinkInternationalWireDetailsPage-B3OpSWB3-B8JXsL7N.js +0 -1
  275. package/dist/assets/MagicLinkSuccessPage-CphaJa4k-D3EkcDWm.js +0 -31
  276. package/dist/assets/MailingDetailsSection-BJfZvT0b-Dh4yo_Lj.js +0 -21
  277. package/dist/assets/NoDataChart-B3s_7m2n-CAPJcqJ5.js +0 -26
  278. package/dist/assets/NoDataTable-CMpypnTw-DT8ESeaQ.js +0 -8
  279. package/dist/assets/OverlayContainerPage-D4QU0p4o-bJWKRuRf.js +0 -11
  280. package/dist/assets/ReimbursementApprovalRuleDetailPage-llw4ONPo-DU98N3RU.js +0 -32
  281. package/dist/assets/SignInScreen-DEP1cN19.js +0 -1
  282. package/dist/assets/StatementsPage-BCh51lDW-CdawgjO3.js +0 -58
  283. package/dist/assets/VendorACHDetailsPage-tUuZzJnN-BytxtWo8.js +0 -1
  284. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DZabfieM-CGwU72CX.js +0 -1
  285. package/dist/assets/analyticsHelper-C5JtTAtK.js +0 -1
  286. package/dist/assets/chartTypes-DJdbX13L-CYrZAg19.js +0 -1
  287. package/dist/assets/mapTimeframeBalancesToTreeNode-88qIN3FA-DT4qEBfo.js +0 -1
  288. package/dist/assets/mapTimeframeBalancesToTreeNode-AkxvYRty-Btx7Wg6i.js +0 -1
  289. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-KZ9-cjv6.js +0 -1
  290. package/dist/assets/toCOABalancesWithID-Bq4Xe7az-C9YUCLvJ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as C,d as R,cJ as g,ev as T,V as r,o,eE as O,bR as _,b as J,gj as F,p as s,O as P,bG as A}from"./index-6sX8sCRU.js";import{n as i}from"./mui-BKJrVh4W.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]="2f194610-ab29-4c02-90ba-768dbfb34079",e._sentryDebugIdIdentifier="sentry-dbid-2f194610-ab29-4c02-90ba-768dbfb34079")}catch{}})();const G={infoLabel:new P("extraSmallRegular","smallRegular")};function K({isDisabled:e,label:a,formattedText:t,dropdownStyle:f,style:m,additionalInfoLabel:y,showAdditionalInfoLabel:w=!0,isSaveError:d=!1,showTickIcon:x,showErrorInfoLabel:$,errorInfoLabel:D,registerOptions:L,defaultValue:p,isSelectDisabled:k,menuPlacement:v,name:j,placeholderLabel:E}){const n=C(),b=R(),{formState:{errors:S}}=g(),c=T(S,t.name),{control:I}=g(),z=l=>typeof l=="string"?l.toLocaleUpperCase():l.toString().toLocaleUpperCase();return r.jsxs(M,{size:n,style:m,isDisabled:e!=null,isError:c||d,children:[r.jsx(N,{windowSize:n,style:{width:a?.width??"auto",marginRight:o.sp2},children:r.jsx(W,{style:{width:"auto",...f},children:r.jsx(O,{name:j,control:I,defaultValue:p.dropDownValue,rules:L,render:({field:{value:l,onChange:V}})=>r.jsx(_,{pickerValues:p.dropDownList.map(u=>u.code),valueToLabel:z,selectedValue:l??void 0,isDisabled:e!=null||k,onPickerSelectionChanged:u=>{V(u)},menuPlacement:v,titleTextStyle:J.standardRegular,titleColor:b.colors.hero,valueOpacity:1,backgroundColor:b.colors.grey5,placeholder:E})})})}),r.jsxs(U,{children:[r.jsx(F,{...t,style:t.style,isDisabled:t.isDisabled,isMasked:!0}),(w||c||d)&&r.jsxs(h,{size:n,isError:c||d,children:[x===!0?r.jsx(B,{children:r.jsx(H,{})}):null,y]}),$===!0&&r.jsx(h,{size:n,isError:!0,children:D})]})]})}const M=i.div`
1
+ import{J as C,e as R,cJ as h,ev as T,V as r,o,eE as _,bR as F,b as J,gj as O,p as s,a as P,bG as A}from"./index-rJQoaAfw.js";import{n as i}from"./mui-KNfEk2A1.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]="6a48130d-c4ad-41b6-b2ed-6c05a3e7da25",e._sentryDebugIdIdentifier="sentry-dbid-6a48130d-c4ad-41b6-b2ed-6c05a3e7da25")}catch{}})();const G={infoLabel:new P("extraSmallRegular","smallRegular")};function K({isDisabled:e,label:a,formattedText:t,dropdownStyle:f,style:m,additionalInfoLabel:y,showAdditionalInfoLabel:w=!0,isSaveError:d=!1,showTickIcon:x,showErrorInfoLabel:$,errorInfoLabel:D,registerOptions:L,defaultValue:p,isSelectDisabled:k,menuPlacement:v,name:j,placeholderLabel:E}){const n=C(),g=R(),{formState:{errors:S}}=h(),c=T(S,t.name),{control:I}=h(),z=l=>typeof l=="string"?l.toLocaleUpperCase():l.toString().toLocaleUpperCase();return r.jsxs(M,{size:n,style:m,isDisabled:e!=null,isError:c||d,children:[r.jsx(N,{windowSize:n,style:{width:a?.width??"auto",marginRight:o.sp2},children:r.jsx(W,{style:{width:"auto",...f},children:r.jsx(_,{name:j,control:I,defaultValue:p.dropDownValue,rules:L,render:({field:{value:l,onChange:V}})=>r.jsx(F,{pickerValues:p.dropDownList.map(u=>u.code),valueToLabel:z,selectedValue:l??void 0,isDisabled:e!=null||k,onPickerSelectionChanged:u=>{V(u)},menuPlacement:v,titleTextStyle:J.standardRegular,titleColor:g.colors.hero,valueOpacity:1,backgroundColor:g.colors.grey5,placeholder:E})})})}),r.jsxs(U,{children:[r.jsx(O,{...t,style:t.style,isDisabled:t.isDisabled,isMasked:!0}),(w||c||d)&&r.jsxs(b,{size:n,isError:c||d,children:[x===!0?r.jsx(B,{children:r.jsx(H,{})}):null,y]}),$===!0&&r.jsx(b,{size:n,isError:!0,children:D})]})]})}const M=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -38,7 +38,7 @@ import{J as C,d as R,cJ as g,ev as T,V as r,o,eE as O,bR as _,b as J,gj as F,p a
38
38
  flex-direction: column;
39
39
  align-items: flex-end;
40
40
  flex-grow: 1;
41
- `,h=i.label`
41
+ `,b=i.label`
42
42
  display: flex;
43
43
  color: ${e=>e.isError?s.important:e.theme.colors.grey1};
44
44
  ${e=>`${G.infoLabel.style(e.size)}`};
@@ -1,4 +1,4 @@
1
- import{J as M,V as l,cO as I,y as c,o as i,u as t,cJ as V,d as O,ev as R,eE as z,bH as L,bI as p,x as C,al as P,b as h,bG as E,p as f}from"./index-6sX8sCRU.js";import{n}from"./mui-BKJrVh4W.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]="efdb24f0-d09a-4b68-a305-2b2f96d9f436",e._sentryDebugIdIdentifier="sentry-dbid-efdb24f0-d09a-4b68-a305-2b2f96d9f436")}catch{}})();const N=({name:e,registerOptions:o,defaultValue:r,isDisabled:s,style:a,placeholder:m})=>{const{control:g,formState:{errors:y}}=V(),w=O(),v=R(y,e??""),j={container:u=>({...u,width:"100%",...a}),menu:u=>({...u,backgroundColor:w.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${w.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:u=>({...u,borderRadius:0})},k={hasError:v};return l.jsx(z,{name:e,control:g,defaultValue:r,rules:o,render:({field:{onChange:u,onBlur:D,value:b,ref:_}})=>l.jsx(L,{...k,ref:_,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:m,value:$(b.selectedOptions),options:$(b.allOptions),onChange:S=>{u({selectedOptions:S.map(F=>F.value),allOptions:b.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:D,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:T,Option:A,Input:B,MultiValue:J,MultiValueLabel:G,MultiValueRemove:W,ValueContainer:H,DropdownIndicator:ie,IndicatorSeparator:re,Placeholder:q,ClearIndicator:Q},hideSelectedOptions:!1,styles:j,isDisabled:s!=null})})},T=e=>{const{menuIsOpen:o,isFocused:r,isDisabled:s,selectProps:a}=e,{value:m,hasError:g}=a;return l.jsx(K,{menuIsOpen:o,isFocused:r,isDisabled:s,optionsLen:m.length,hasError:g,children:l.jsx(p.Control,{...e,className:"select-control",children:e.children})})},H=e=>{const{selectProps:o}=e,{value:r}=o;return l.jsxs(p.ValueContainer,{...e,className:"select-value-container",children:[e.children,l.jsx(U,{className:"selected-options",children:r.map(s=>s.value).join(", ")})]})},B=e=>{const{selectProps:o}=e,{placeholder:r,value:s}=o;return l.jsx(p.Input,{...e,autoComplete:"new-password",placeholder:s.length===0?r:void 0,children:e.children})},J=e=>l.jsx(p.MultiValue,{...e,children:e.children}),G=e=>{const{data:o}=e;return l.jsx(p.MultiValueLabel,{...e,children:o.value})},W=e=>l.jsx(p.MultiValueRemove,{...e,children:l.jsx(x,{style:{marginTop:"2px"}})}),Q=e=>l.jsx(p.ClearIndicator,{...e,children:l.jsx(x,{})}),q=()=>null,A=e=>{const{isSelected:o,isDisabled:r,isFocused:s}=e;return l.jsx(X,{isFocused:s,isSelected:o,isDisabled:r,children:l.jsx(p.Option,{...e,className:"select-option",children:l.jsxs(Y,{children:[l.jsx(ee,{children:l.jsx(Z,{isSelected:o,isDisabled:r,children:e.label})}),o?l.jsxs(oe,{children:[l.jsx(le,{className:"right-tick-icon"}),l.jsx(x,{className:"close-tick-icon"})]}):null]})})})},K=n.div`
1
+ import{J as M,V as l,cO as I,y as c,o as i,u as t,cJ as V,e as O,ev as R,eE as z,bH as L,bI as p,x as C,al as P,b as h,bG as E,p as f}from"./index-rJQoaAfw.js";import{n}from"./mui-KNfEk2A1.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]="afd8923e-cf05-43c2-a8b1-5212a431219f",e._sentryDebugIdIdentifier="sentry-dbid-afd8923e-cf05-43c2-a8b1-5212a431219f")}catch{}})();const N=({name:e,registerOptions:o,defaultValue:r,isDisabled:s,style:a,placeholder:m})=>{const{control:g,formState:{errors:y}}=V(),w=O(),v=R(y,e??""),j={container:u=>({...u,width:"100%",...a}),menu:u=>({...u,backgroundColor:w.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${w.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:0}),menuList:u=>({...u,borderRadius:0})},k={hasError:v};return l.jsx(z,{name:e,control:g,defaultValue:r,rules:o,render:({field:{onChange:u,onBlur:D,value:b,ref:_}})=>l.jsx(L,{...k,ref:_,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:m,value:$(b.selectedOptions),options:$(b.allOptions),onChange:S=>{u({selectedOptions:S.map(F=>F.value),allOptions:b.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:D,menuPlacement:"auto",maxMenuHeight:288,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:T,Option:A,Input:B,MultiValue:J,MultiValueLabel:G,MultiValueRemove:W,ValueContainer:H,DropdownIndicator:ie,IndicatorSeparator:re,Placeholder:q,ClearIndicator:Q},hideSelectedOptions:!1,styles:j,isDisabled:s!=null})})},T=e=>{const{menuIsOpen:o,isFocused:r,isDisabled:s,selectProps:a}=e,{value:m,hasError:g}=a;return l.jsx(K,{menuIsOpen:o,isFocused:r,isDisabled:s,optionsLen:m.length,hasError:g,children:l.jsx(p.Control,{...e,className:"select-control",children:e.children})})},H=e=>{const{selectProps:o}=e,{value:r}=o;return l.jsxs(p.ValueContainer,{...e,className:"select-value-container",children:[e.children,l.jsx(U,{className:"selected-options",children:r.map(s=>s.value).join(", ")})]})},B=e=>{const{selectProps:o}=e,{placeholder:r,value:s}=o;return l.jsx(p.Input,{...e,autoComplete:"new-password",placeholder:s.length===0?r:void 0,children:e.children})},J=e=>l.jsx(p.MultiValue,{...e,children:e.children}),G=e=>{const{data:o}=e;return l.jsx(p.MultiValueLabel,{...e,children:o.value})},W=e=>l.jsx(p.MultiValueRemove,{...e,children:l.jsx(x,{style:{marginTop:"2px"}})}),Q=e=>l.jsx(p.ClearIndicator,{...e,children:l.jsx(x,{})}),q=()=>null,A=e=>{const{isSelected:o,isDisabled:r,isFocused:s}=e;return l.jsx(X,{isFocused:s,isSelected:o,isDisabled:r,children:l.jsx(p.Option,{...e,className:"select-option",children:l.jsxs(Y,{children:[l.jsx(ee,{children:l.jsx(Z,{isSelected:o,isDisabled:r,children:e.label})}),o?l.jsxs(oe,{children:[l.jsx(le,{className:"right-tick-icon"}),l.jsx(x,{className:"close-tick-icon"})]}):null]})})})},K=n.div`
2
2
  width: 100%;
3
3
  background-color: ${e=>e.theme.colors.grey5};
4
4
  cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
@@ -1,4 +1,4 @@
1
- import{J as b,V as n,cO as p,y as l,aP as g,u as t,o as a,al as u,O as y}from"./index-6sX8sCRU.js";import{n as r}from"./mui-BKJrVh4W.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]="4f41d335-6dd0-4d58-8899-a78f1f468f22",e._sentryDebugIdIdentifier="sentry-dbid-4f41d335-6dd0-4d58-8899-a78f1f468f22")}catch{}})();const i={width:new l(343,580,726),height:new l(t[6],t[6]),paddingTopBottom:new l(t[2],t[2]),marginRight:new l(t[2],t[2]),labelMarginLeft:new l(t[3],t[4]),labelMarginRight:new l(t[3],t[4]),labelMarginTop:new l(t[2],t[2])},c={infoLabel:new y("extraSmallRegular","smallRegular")};function T({label:e,value:o,additionalInfoLabel:s,style:h,infoLabelStyle:f}){const d=b();return n.jsxs(m,{size:d,style:h,"data-testid":g("labeled-text",e.label),children:[n.jsx(p,{label:e.label,style:{marginLeft:i.labelMarginLeft.value(d),marginRight:i.labelMarginRight.value(d),marginTop:i.labelMarginTop.value(d),width:e.width??"auto"}}),n.jsxs(x,{labelWidth:e.width,children:[n.jsx(w,{"data-testid":g("labeled-text-input",e.label),children:o}),s!=null?n.jsx($,{size:d,style:f,children:s}):null]})]})}const m=r.div`
1
+ import{J as f,V as d,cO as p,y as l,aP as g,u as t,o as a,al as u,a as c}from"./index-rJQoaAfw.js";import{n as r}from"./mui-KNfEk2A1.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]="5f41f872-aab2-4089-937d-5cdea15584a7",e._sentryDebugIdIdentifier="sentry-dbid-5f41f872-aab2-4089-937d-5cdea15584a7")}catch{}})();const i={width:new l(343,580,726),height:new l(t[6],t[6]),paddingTopBottom:new l(t[2],t[2]),marginRight:new l(t[2],t[2]),labelMarginLeft:new l(t[3],t[4]),labelMarginRight:new l(t[3],t[4]),labelMarginTop:new l(t[2],t[2])},y={infoLabel:new c("extraSmallRegular","smallRegular")};function T({label:e,value:o,additionalInfoLabel:s,style:h,infoLabelStyle:b}){const n=f();return d.jsxs(m,{size:n,style:h,"data-testid":g("labeled-text",e.label),children:[d.jsx(p,{label:e.label,style:{marginLeft:i.labelMarginLeft.value(n),marginRight:i.labelMarginRight.value(n),marginTop:i.labelMarginTop.value(n),width:e.width??"auto"}}),d.jsxs(x,{labelWidth:e.width,children:[d.jsx(w,{"data-testid":g("labeled-text-input",e.label),children:o}),s!=null?d.jsx($,{size:n,style:b,children:s}):null]})]})}const m=r.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -36,7 +36,7 @@ import{J as b,V as n,cO as p,y as l,aP as g,u as t,o as a,al as u,O as y}from"./
36
36
  display: flex;
37
37
  justify-content: flex-end;
38
38
  color: ${e=>e.theme.colors.hero};
39
- ${e=>`${c.infoLabel.style(e.size)}`};
39
+ ${e=>`${y.infoLabel.style(e.size)}`};
40
40
  padding-right: ${a.sp3};
41
41
  text-align: right;
42
42
  `;export{T as S};
@@ -1,4 +1,4 @@
1
- import{J as U,V as l,cO as me,o as s,y as I,aP as q,u as m,cJ as Q,eE as ge,ev as be,d as fe,g1 as xe,F as E,O as we,bI as W,g2 as K,ap as H,g3 as J,bG as G,p as R,b as B,al as X,g4 as $e,am as ye,ai as ve}from"./index-6sX8sCRU.js";import{n as r}from"./mui-BKJrVh4W.js";import{T as je}from"./RoleWithToolTip-GCV_l8Ly-C2pYTZmo.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]="00b13679-c5ee-4d0d-9172-1a02788aa6c6",e._sentryDebugIdIdentifier="sentry-dbid-00b13679-c5ee-4d0d-9172-1a02788aa6c6")}catch{}})();const ee={selectContainerMarginHorizontal:new I(m[2],m[3]),marginTop:new I(m[1],m[0])},Se=r(ye)`
1
+ import{J as U,V as l,cO as me,o as s,y as I,aP as q,u as m,cJ as Q,eE as ge,ev as fe,e as be,g1 as xe,F as k,a as we,bI as W,g2 as K,ap as H,g3 as J,bG as G,p as R,b as B,al as X,g4 as $e,am as ye,ai as ve}from"./index-rJQoaAfw.js";import{n as r}from"./mui-KNfEk2A1.js";import{T as je}from"./RoleWithToolTip-BWdD1HmA-BCpJ5d2U.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]="49271261-ed26-492f-b305-b605f20e04f4",e._sentryDebugIdIdentifier="sentry-dbid-49271261-ed26-492f-b305-b605f20e04f4")}catch{}})();const ee={selectContainerMarginHorizontal:new I(m[2],m[3]),marginTop:new I(m[1],m[0])},Se=r(ye)`
2
2
  display: flex;
3
3
  gap: ${s.sp2};
4
4
  align-items: center;
@@ -62,16 +62,16 @@ import{J as U,V as l,cO as me,o as s,y as I,aP as q,u as m,cJ as Q,eE as ge,ev a
62
62
  gap: ${s.sp2};
63
63
  justify-content: ${e=>e.menuIsOpen?"flex-start":"flex-end"};
64
64
  width: 100%;
65
- `,ke=r(X)`
65
+ `,Fe=r(X)`
66
66
  white-space: nowrap;
67
67
  overflow: hidden;
68
68
  text-overflow: ellipsis;
69
- `,Ee=r.div`
69
+ `,ke=r.div`
70
70
  display: flex;
71
71
  align-items: center;
72
72
  color: ${e=>e.isError===!0&&e.menuIsOpen!==!0?R.important:e.theme.colors.grey1};
73
73
  fill: ${e=>e.theme.colors.grey1};
74
- `,Fe=r(ve)`
74
+ `,Ee=r(ve)`
75
75
  color: ${e=>e.hasSelectedUser?e.theme.colors.primary:e.theme.colors.hero};
76
76
  margin-left: -10px;
77
77
  margin-right: -10px;
@@ -92,7 +92,7 @@ import{J as U,V as l,cO as me,o as s,y as I,aP as q,u as m,cJ as Q,eE as ge,ev a
92
92
  `,Re=r(M)`
93
93
  align-items: center;
94
94
  gap: ${s.sp2};
95
- `,F=r.div`
95
+ `,E=r.div`
96
96
  overflow: hidden;
97
97
  text-overflow: ellipsis;
98
98
  white-space: nowrap;
@@ -180,7 +180,7 @@ import{J as U,V as l,cO as me,o as s,y as I,aP as q,u as m,cJ as Q,eE as ge,ev a
180
180
  border-radius: ${s.sp1};
181
181
  margin-top: ${({windowSize:e})=>ee.marginTop.valuePx(e)};
182
182
  width: fit-content;
183
- `;function _e({allUsers:e,selectedValue:a,showOneOffLabel:o,placeholder:g,isOptionRemovable:v,valueToSubtitle:x,onSelectionChanged:w,name:j,userContainerStyles:b,optionStyles:A,isValuePlacedAtEnd:D=!0,isDisabled:P,showOnlyAvatar:C=!1,showAvatarAndSubtitles:S=!0,isOptionDisabled:z,disabledOptionHint:$,bigMarginRightForSmallScreens:V=!1}){const{formState:{errors:k}}=Q(),L=be(k,j??""),c=U(),O=[];o!=null&&O.push(o.value),O.push(...e.map(t=>t.userId));const le=t=>{if(o!=null&&o.value===t)return o.label;const i=e.findIndex(n=>n.userId===t);if(i!==-1){const n=e[i];return n.user?.firstName||n.user?.lastName?`${n.user?.firstName} ${n.user?.lastName}`:`${n.user?.email}`}else return""},se=t=>{const i=e.findIndex(n=>n.userId===t);if(i!==-1)return e[i].user},te=t=>{const{menuIsOpen:i,children:n}=t;return l.jsx(Ee,{menuIsOpen:i,isError:L,children:l.jsx(Ce,{children:n})})},re=({labelDetails:t})=>l.jsxs(Fe,{hasSelectedUser:a===t.value,children:[l.jsxs(Re,{children:[l.jsx(Me,{}),l.jsx(Y,{children:l.jsx(F,{children:t.label})})]}),a===t.value?l.jsx(l.Fragment,{children:l.jsx(G,{width:s.sp3,height:s.sp3})}):null]}),ie=t=>{const{children:i,data:n,selectProps:u}=t,{menuIsOpen:h}=u;if(o!=null&&n?.value===o.value)return l.jsxs(M,{children:[S||C?l.jsx(K,{style:{height:s.sp4,width:s.sp4}}):null,l.jsx(ke,{children:o.label})]});const d=e.findIndex(y=>y.userId===n.value),p=e[d],f=x(n.value);return l.jsxs(Pe,{children:[l.jsxs(Ve,{menuIsOpen:h,children:[S||C?l.jsx(l.Fragment,{children:p?.user?.photo!=null?l.jsx(Ae,{src:p?.user?.photo.href,alt:E.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:y})=>{y.onerror=null,y.src=H},loading:"lazy"}):l.jsx(J,{firstName:p?.user?.firstName??"",lastName:p?.user?.lastName??"",size:`${s.sp4}`,index:d})}):null,l.jsx(F,{children:i})]}),S?l.jsx(_,{subtitleList:f,menuIsOpen:u.menuIsOpen,member:p}):null]})},_=({subtitleList:t,member:i,menuIsOpen:n})=>{const u=t.length;return l.jsxs(Se,{menuIsOpen:n,children:[i!=null?l.jsx(je,{roles:i?.userRole.userRoles}):null,i!=null&&u>0?l.jsx(Ie,{}):null,u>0?t.map((h,d)=>l.jsx(Oe,{children:h},`${h}${d}`)):null]})},oe=t=>{const{data:i,isSelected:n,selectProps:u,value:h}=t,d=!!z?.(h)&&n===!1;if(o!=null&&i?.value===o.value)return l.jsx(re,{labelDetails:o});const p=e.findIndex(T=>T.userId===i.value),f=e[p],y=x(i.value);return l.jsxs(De,{style:A,children:[l.jsxs(ze,{isCurrOptionDisabled:d,children:[l.jsx(Le,{children:f?.user?.photo!=null?l.jsx(Te,{src:f?.user?.photo.href,alt:E.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:T})=>{T.onerror=null,T.src=H},loading:"lazy"}):l.jsx(J,{firstName:f?.user?.firstName??"",lastName:f?.user?.lastName??"",size:`${s.sp5}`,index:p})}),l.jsxs(Y,{children:[l.jsx(F,{children:t.label}),l.jsx(_,{menuIsOpen:u.menuIsOpen,subtitleList:y,member:f}),c==="small"&&d&&$!=null?l.jsx(Z,{windowSize:c,children:$}):null]})]}),!!n&&l.jsx(l.Fragment,{children:l.jsx(G,{width:s.sp3,height:s.sp3})}),c!=="small"&&d&&$!=null?l.jsx(Z,{windowSize:c,children:$}):null]})},ne=t=>{w(t)},ae=()=>null,de=t=>{const{menuIsOpen:i,isFocused:n,isDisabled:u,selectProps:h}=t,{value:d}=h;return l.jsx(Ne,{menuIsOpen:i,isFocused:n,isDisabled:u,selectedValue:d,isError:L,isValuePlacedAtEnd:D,windowSize:c,bigMarginRightForSmallScreens:V,children:l.jsx(W.Control,{...t,className:"select-control",children:t.children})})},ce=t=>l.jsx(W.ValueContainer,{...t,className:"select-value-container",children:t.children}),ue=t=>l.jsx(Ue,{windowSize:c,children:t.children}),he=(t,i)=>i&&typeof t.label=="string"?t.label.toLowerCase().includes(i.toLowerCase())||t.data?.data?.email?.toLowerCase().includes(i.toLowerCase()):!0,pe=fe();return l.jsx(xe,{placeholder:g??E.getLocalizedStrings().commonSetUp.approval.userSelectPlaceholder,selectedValue:a,pickerValues:O,valueToLabel:le,valueToData:se,backgroundColor:pe.colors.background,onPickerSelectionChanged:ne,OptionComponent:oe,PlaceholderComponent:te,SingleValueComponent:ie,isOptionRemovable:v,containerStyles:b,DropDownIndicatorComponent:ae,ControlComponent:de,classNamePrefix:"single-select-field",ValueContainerComponent:ce,MenuListComponent:ue,menuPosition:c==="small"?"right":"left",isSearchable:!0,isDisabled:P,isOptionDisabled:t=>z?.(t)===!0&&a!==t,filterOption:he})}const We={infoLabel:new we("smallRegular","smallRegular")},He=({name:e,placeholderLabel:a,registerOptions:o,value:g,valueToSubtitle:v,showOneOffLabel:x,userContainerStyles:w,optionStyles:j,isValuePlacedAtEnd:b,isDisabled:A,additionalLabelInfo:D,isOptionDisabled:P,showOnlyAvatar:C=!1,showAvatarAndSubtitles:S=!0,disabledOptionHint:z,bigMarginRightForSmallScreens:$=!1})=>{const{control:V}=Q(),k=U();return l.jsx(ge,{name:e,control:V,defaultValue:g,rules:o,render:({field:{value:L,onChange:c}})=>l.jsxs(Je,{width:w?.width,"data-testid":q("user-single-select",e),children:[l.jsx(_e,{onSelectionChanged:O=>{c({allUsers:g.allUsers,selectedUser:O})},selectedValue:L.selectedUser,valueToSubtitle:v,allUsers:g.allUsers,placeholder:a,name:e,showOneOffLabel:x,userContainerStyles:w,isValuePlacedAtEnd:b,isDisabled:A,isOptionDisabled:P,showAvatarAndSubtitles:S,showOnlyAvatar:C,disabledOptionHint:z,bigMarginRightForSmallScreens:$,optionStyles:j}),D!==null&&l.jsx(Ge,{size:k,children:D})]})})},Je=r.div`
183
+ `;function _e({allUsers:e,selectedValue:a,showOneOffLabel:o,placeholder:g,isOptionRemovable:v,valueToSubtitle:x,onSelectionChanged:w,name:j,userContainerStyles:f,optionStyles:A,isValuePlacedAtEnd:D=!0,isDisabled:P,showOnlyAvatar:C=!1,showAvatarAndSubtitles:S=!0,isOptionDisabled:z,disabledOptionHint:$,bigMarginRightForSmallScreens:V=!1}){const{formState:{errors:F}}=Q(),L=fe(F,j??""),c=U(),O=[];o!=null&&O.push(o.value),O.push(...e.map(t=>t.userId));const le=t=>{if(o!=null&&o.value===t)return o.label;const i=e.findIndex(n=>n.userId===t);if(i!==-1){const n=e[i];return n.user?.firstName||n.user?.lastName?`${n.user?.firstName} ${n.user?.lastName}`:`${n.user?.email}`}else return""},se=t=>{const i=e.findIndex(n=>n.userId===t);if(i!==-1)return e[i].user},te=t=>{const{menuIsOpen:i,children:n}=t;return l.jsx(ke,{menuIsOpen:i,isError:L,children:l.jsx(Ce,{children:n})})},re=({labelDetails:t})=>l.jsxs(Ee,{hasSelectedUser:a===t.value,children:[l.jsxs(Re,{children:[l.jsx(Me,{}),l.jsx(Y,{children:l.jsx(E,{children:t.label})})]}),a===t.value?l.jsx(l.Fragment,{children:l.jsx(G,{width:s.sp3,height:s.sp3})}):null]}),ie=t=>{const{children:i,data:n,selectProps:u}=t,{menuIsOpen:h}=u;if(o!=null&&n?.value===o.value)return l.jsxs(M,{children:[S||C?l.jsx(K,{style:{height:s.sp4,width:s.sp4}}):null,l.jsx(Fe,{children:o.label})]});const d=e.findIndex(y=>y.userId===n.value),p=e[d],b=x(n.value);return l.jsxs(Pe,{children:[l.jsxs(Ve,{menuIsOpen:h,children:[S||C?l.jsx(l.Fragment,{children:p?.user?.photo!=null?l.jsx(Ae,{src:p?.user?.photo.href,alt:k.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:y})=>{y.onerror=null,y.src=H},loading:"lazy"}):l.jsx(J,{firstName:p?.user?.firstName??"",lastName:p?.user?.lastName??"",size:`${s.sp4}`,index:d})}):null,l.jsx(E,{children:i})]}),S?l.jsx(_,{subtitleList:b,menuIsOpen:u.menuIsOpen,member:p}):null]})},_=({subtitleList:t,member:i,menuIsOpen:n})=>{const u=t.length;return l.jsxs(Se,{menuIsOpen:n,children:[i!=null?l.jsx(je,{roles:i?.userRole.userRoles}):null,i!=null&&u>0?l.jsx(Ie,{}):null,u>0?t.map((h,d)=>l.jsx(Oe,{children:h},`${h}${d}`)):null]})},oe=t=>{const{data:i,isSelected:n,selectProps:u,value:h}=t,d=!!z?.(h)&&n===!1;if(o!=null&&i?.value===o.value)return l.jsx(re,{labelDetails:o});const p=e.findIndex(T=>T.userId===i.value),b=e[p],y=x(i.value);return l.jsxs(De,{style:A,children:[l.jsxs(ze,{isCurrOptionDisabled:d,children:[l.jsx(Le,{children:b?.user?.photo!=null?l.jsx(Te,{src:b?.user?.photo.href,alt:k.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:T})=>{T.onerror=null,T.src=H},loading:"lazy"}):l.jsx(J,{firstName:b?.user?.firstName??"",lastName:b?.user?.lastName??"",size:`${s.sp5}`,index:p})}),l.jsxs(Y,{children:[l.jsx(E,{children:t.label}),l.jsx(_,{menuIsOpen:u.menuIsOpen,subtitleList:y,member:b}),c==="small"&&d&&$!=null?l.jsx(Z,{windowSize:c,children:$}):null]})]}),!!n&&l.jsx(l.Fragment,{children:l.jsx(G,{width:s.sp3,height:s.sp3})}),c!=="small"&&d&&$!=null?l.jsx(Z,{windowSize:c,children:$}):null]})},ne=t=>{w(t)},ae=()=>null,de=t=>{const{menuIsOpen:i,isFocused:n,isDisabled:u,selectProps:h}=t,{value:d}=h;return l.jsx(Ne,{menuIsOpen:i,isFocused:n,isDisabled:u,selectedValue:d,isError:L,isValuePlacedAtEnd:D,windowSize:c,bigMarginRightForSmallScreens:V,children:l.jsx(W.Control,{...t,className:"select-control",children:t.children})})},ce=t=>l.jsx(W.ValueContainer,{...t,className:"select-value-container",children:t.children}),ue=t=>l.jsx(Ue,{windowSize:c,children:t.children}),he=(t,i)=>i&&typeof t.label=="string"?t.label.toLowerCase().includes(i.toLowerCase())||t.data?.data?.email?.toLowerCase().includes(i.toLowerCase()):!0,pe=be();return l.jsx(xe,{placeholder:g??k.getLocalizedStrings().commonSetUp.approval.userSelectPlaceholder,selectedValue:a,pickerValues:O,valueToLabel:le,valueToData:se,backgroundColor:pe.colors.background,onPickerSelectionChanged:ne,OptionComponent:oe,PlaceholderComponent:te,SingleValueComponent:ie,isOptionRemovable:v,containerStyles:f,DropDownIndicatorComponent:ae,ControlComponent:de,classNamePrefix:"single-select-field",ValueContainerComponent:ce,MenuListComponent:ue,menuPosition:c==="small"?"right":"left",isSearchable:!0,isDisabled:P,isOptionDisabled:t=>z?.(t)===!0&&a!==t,filterOption:he})}const We={infoLabel:new we("smallRegular","smallRegular")},He=({name:e,placeholderLabel:a,registerOptions:o,value:g,valueToSubtitle:v,showOneOffLabel:x,userContainerStyles:w,optionStyles:j,isValuePlacedAtEnd:f,isDisabled:A,additionalLabelInfo:D,isOptionDisabled:P,showOnlyAvatar:C=!1,showAvatarAndSubtitles:S=!0,disabledOptionHint:z,bigMarginRightForSmallScreens:$=!1})=>{const{control:V}=Q(),F=U();return l.jsx(ge,{name:e,control:V,defaultValue:g,rules:o,render:({field:{value:L,onChange:c}})=>l.jsxs(Je,{width:w?.width,"data-testid":q("user-single-select",e),children:[l.jsx(_e,{onSelectionChanged:O=>{c({allUsers:g.allUsers,selectedUser:O})},selectedValue:L.selectedUser,valueToSubtitle:v,allUsers:g.allUsers,placeholder:a,name:e,showOneOffLabel:x,userContainerStyles:w,isValuePlacedAtEnd:f,isDisabled:A,isOptionDisabled:P,showAvatarAndSubtitles:S,showOnlyAvatar:C,disabledOptionHint:z,bigMarginRightForSmallScreens:$,optionStyles:j}),D!==null&&l.jsx(Ge,{size:F,children:D})]})})},Je=r.div`
184
184
  display: flex;
185
185
  flex-direction: column;
186
186
  width: ${e=>e.width!=null?e.width:"auto"};
@@ -189,7 +189,7 @@ import{J as U,V as l,cO as me,o as s,y as I,aP as q,u as m,cJ as Q,eE as ge,ev a
189
189
  ${e=>`${We.infoLabel.style(e.size)}`};
190
190
  text-align: right;
191
191
  padding-right: ${s.sp3};
192
- `,N={width:new I(343,580,726),labelMarginLeft:new I(m[3],m[4]),labelMarginRight:new I(m[3],m[4])};function Qe({isDisabled:e,label:a,userSingleSelectWithSubTitlesField:o,style:g,showTooltip:v=!1,tooltipTitle:x,toolTipWidth:w,opacity:j=1}){const b=U();return l.jsxs(Be,{size:b,style:g,isDisabled:e!=null,opacity:j,"data-testid":q("labeled-user-single-select",o.name),children:[l.jsx(me,{isDisabled:e,label:a.label,htmlFor:o.name,style:{marginLeft:N.labelMarginLeft.value(b),marginRight:N.labelMarginRight.value(b),marginTop:s.sp2,width:a.width??"auto"},showTooltip:v,tooltipTitle:x,toolTipWidth:w}),l.jsx(He,{...o,isDisabled:e,userContainerStyles:{display:"flex",flexGrow:1,...o.showOnlyAvatar===!1&&{minWidth:"unset",maxWidth:"unset"},width:a.width!=null?`calc(100% - ${a.width}px)`:"auto",height:o.value.selectedUser==null||o.value.selectedUser!=null&&o.showOnlyAvatar===!0?s.sp6:s.sp9}})]})}const Be=r.div`
192
+ `,N={width:new I(343,580,726),labelMarginLeft:new I(m[3],m[4]),labelMarginRight:new I(m[3],m[4])};function Qe({isDisabled:e,label:a,userSingleSelectWithSubTitlesField:o,style:g,showTooltip:v=!1,tooltipTitle:x,toolTipWidth:w,opacity:j=1}){const f=U();return l.jsxs(Be,{size:f,style:g,isDisabled:e!=null,opacity:j,"data-testid":q("labeled-user-single-select",o.name),children:[l.jsx(me,{isDisabled:e,label:a.label,htmlFor:o.name,style:{marginLeft:N.labelMarginLeft.value(f),marginRight:N.labelMarginRight.value(f),marginTop:s.sp2,width:a.width??"auto"},showTooltip:v,tooltipTitle:x,toolTipWidth:w}),l.jsx(He,{...o,isDisabled:e,userContainerStyles:{display:"flex",flexGrow:1,...o.showOnlyAvatar===!1&&{minWidth:"unset",maxWidth:"unset"},width:a.width!=null?`calc(100% - ${a.width}px)`:"auto",height:o.value.selectedUser==null||o.value.selectedUser!=null&&o.showOnlyAvatar===!0?s.sp6:s.sp9}})]})}const Be=r.div`
193
193
  display: flex;
194
194
  flex-direction: row;
195
195
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{J as M,V as l,cO as Q,y as m,o,aP as H,u as n,cJ as E,eE as G,ev as q,d as K,b as I,bH as ie,F as te,f_ as se,g5 as ae,aJ as ne,b1 as de,bI as B,ba as ce,bG as pe,cC as ue,p as k,g6 as U,ci as X,r as he,ai as Y,al as ge,am as me,fM as be,fL as fe,bw as xe,fN as ye,bi as we,g7 as ve}from"./index-6sX8sCRU.js";import{n as d,c as $e}from"./mui-BKJrVh4W.js";import{a as D}from"./sentry-BsWDfhY_.js";import{FE as A,FF as Re}from"./zeni-epic-state-DEUUJaZy.js";import{T as je}from"./RoleWithToolTip-GCV_l8Ly-C2pYTZmo.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]="54c6d04d-8580-4474-b8c4-6dc1d67624d8",e._sentryDebugIdIdentifier="sentry-dbid-54c6d04d-8580-4474-b8c4-6dc1d67624d8")}catch{}})();const N={grpBtnMarginTopBottom:new m(n[1],n[3]),grpBtnMarginLeftRight:new m(n[0],n[3])},Se=d.div`
1
+ import{J as M,V as l,cO as Q,y as m,o,aP as H,u as n,cJ as E,eE as G,ev as q,e as K,b as I,bH as ie,F as te,f_ as se,g5 as ae,aJ as ne,b1 as de,bI as B,ba as ce,bG as pe,cC as ue,p as k,g6 as U,ci as X,r as he,ai as Y,al as ge,am as me,fM as be,fL as fe,bw as xe,fN as ye,bi as we,g7 as ve}from"./index-rJQoaAfw.js";import{n as d,c as $e}from"./mui-KNfEk2A1.js";import{a as D}from"./sentry-CGE1ab0x.js";import{FE as A,FF as Re}from"./zeni-epic-state-CiJSQQSe.js";import{T as je}from"./RoleWithToolTip-BWdD1HmA-BCpJ5d2U.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]="47e16924-4b08-4d86-b5b9-6021f3222bfd",e._sentryDebugIdIdentifier="sentry-dbid-47e16924-4b08-4d86-b5b9-6021f3222bfd")}catch{}})();const N={grpBtnMarginTopBottom:new m(n[1],n[3]),grpBtnMarginLeftRight:new m(n[0],n[3])},Se=d.div`
2
2
  display: flex;
3
3
  margin-top: ${e=>N.grpBtnMarginTopBottom.valuePx(e.windowSize)};
4
4
  margin-bottom: ${e=>N.grpBtnMarginTopBottom.valuePx(e.windowSize)};
@@ -31,11 +31,11 @@ import{J as M,V as l,cO as Q,y as m,o,aP as H,u as n,cJ as E,eE as G,ev as q,d a
31
31
  &:hover {
32
32
  color: ${e=>e.theme.colors.primary};
33
33
  }
34
- `,Pe=d.div`
34
+ `,Oe=d.div`
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  width: 100%;
38
- `,ze=d.div`
38
+ `,Pe=d.div`
39
39
  display: flex;
40
40
  flex-direction: column;
41
41
  padding-left: ${o.sp4};
@@ -46,7 +46,7 @@ import{J as M,V as l,cO as Q,y as m,o,aP as H,u as n,cJ as E,eE as G,ev as q,d a
46
46
  transition:
47
47
  visibility 250ms ease-in-out,
48
48
  max-height 250ms ease-in-out;
49
- `,Oe=d.div`
49
+ `,ze=d.div`
50
50
  display: flex;
51
51
  flex-direction: row;
52
52
  margin-bottom: ${o.sp3};
@@ -135,7 +135,7 @@ import{J as M,V as l,cO as Q,y as m,o,aP as H,u as n,cJ as E,eE as G,ev as q,d a
135
135
  margin-right: ${e=>L.allRolesMarginLeftRight.valuePx(e.windowSize)};
136
136
  margin-left: ${e=>L.allRolesMarginLeftRight.valuePx(e.windowSize)};
137
137
  color: ${e=>e.theme.mode==="light"?k.brandColorOnyx:k.brandColorPearl};
138
- `,Qe=e=>{switch(e){case"bookkeeping":return l.jsx(Ue,{});case"zeni_bill_pay":return l.jsx(Ne,{});case"zeni_reimbursements":return l.jsx(He,{});case"zeni_checking":return l.jsx(Ae,{});case"zeni_cards":return l.jsx(We,{});case"zeni_treasury":return l.jsx(Je,{});default:return null}},Ge=e=>l.jsxs(Me,{children:[l.jsx(Ve,{className:"roleTitle",children:U[e].label}),l.jsx(Ie,{className:"roleSubTitle",children:U[e].subTitle}),l.jsx(Le,{className:"roleSuitableFor",children:U[e].roleSuitableFor})]}),qe=({name:e,isDisabled:s,selectedValue:i,onSelectionChanged:c})=>{const{formState:{errors:p}}=E(),a=q(p,`${e}.userRole.selectedRole`),f=M(),$=i.productsByUserRole.employee.findIndex(h=>h.productType==="zeni_reimbursements"),b=D.useCallback(h=>{const t=se([h]),C=ae(h),v=ne(i.productsByUserRole[t]),R=v.findIndex(z=>z.productType===C),V=v[R].selectedOption?.value===h;R>-1&&(v[R]={...v[R],selectedOption:V?void 0:v[R].options.filter(z=>z.value===h)[0]});const _={userRole:{selectedRole:t,allRootRole:i.userRole.allRootRole},productsByUserRole:{...i.productsByUserRole,[t]:[...v]}};c(_)},[c,i]),y=i.userRole.selectedRole,u=D.useMemo(()=>y!=null?(i.productsByUserRole[y]??[]).map(h=>Re(h.selectedOption?.value)).filter(h=>h!=null):[],[y,i.productsByUserRole]);D.useEffect(()=>{y==="employee"&&u.length===0&&$>-1&&b("reimbursements_user")},[y,u,$,b]);const x=i.userRole.allRootRole,P=h=>h==="employee"&&i.userRole.selectedRole==="employee";return s==="readonly"?l.jsx(Ze,{windowSize:f,children:l.jsx(je,{roles:u})}):l.jsx(Pe,{children:x.map(h=>l.jsxs(ke,{windowSize:f,children:[l.jsx(Be,{isError:a,children:l.jsx(de,{isDisabled:s,label:{label:Ge(h)},style:{paddingBottom:o.sp4,alignItems:"flex-start"},radioField:{name:`${e}.userRole.selectedRole`,id:`${e}.${h}`,value:h,radioSize:"small",checked:i.userRole.selectedRole===h,style:{marginTop:o.sp1}}})}),l.jsx(ze,{windowSize:f,isCollapsed:P(h),roleCount:i.productsByUserRole[h].length,children:i.productsByUserRole[h].map(t=>l.jsxs(Oe,{children:[l.jsxs(Ee,{children:[l.jsx(_e,{children:t.productType&&Qe(t.productType)}),l.jsxs(Fe,{children:[l.jsx(Te,{children:t.label}),f==="small"?l.jsx(W,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b}):null,l.jsx(J,{children:t.subTitleUser}),l.jsx(J,{children:t.subTitleAdmin})]})]}),f!=="small"?l.jsx(W,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b,isDisabled:s}):null]},t.productType))})]},h))})},Ke=({name:e,defaultValue:s,isDisabled:i,registerOptions:c})=>{const{control:p}=E();return l.jsx(G,{name:e,control:p,defaultValue:s,rules:c,render:({field:{onChange:a,value:f}})=>{const $=f;return l.jsx(qe,{onSelectionChanged:b=>{a(b)},selectedValue:$,name:e,isDisabled:i})}})},S={width:new m(343,580,726),height:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),labelPaddingLeft:new m(n[3],n[4]),labelPaddingRight:new m(n[3],n[4]),labelPaddingTop:new m(n[2],n[2]),labelPaddingBottom:new m(n[2],n[3])};function yo({isDisabled:e,label:s,rolesDropDownField:i,style:c}){const p=M();return l.jsxs(Xe,{size:p,style:c,isDisabled:e!=null,children:[l.jsx(Q,{isDisabled:e,label:s.label,htmlFor:i.name,style:{paddingLeft:S.labelPaddingLeft.value(p),paddingRight:S.labelPaddingRight.value(p),paddingTop:S.labelPaddingTop.value(p),paddingBottom:S.labelPaddingBottom.value(p)}}),l.jsx(Ke,{...i,isDisabled:e})]})}const Xe=d.div`
138
+ `,Qe=e=>{switch(e){case"bookkeeping":return l.jsx(Ue,{});case"zeni_bill_pay":return l.jsx(Ne,{});case"zeni_reimbursements":return l.jsx(He,{});case"zeni_checking":return l.jsx(Ae,{});case"zeni_cards":return l.jsx(We,{});case"zeni_treasury":return l.jsx(Je,{});default:return null}},Ge=e=>l.jsxs(Me,{children:[l.jsx(Ve,{className:"roleTitle",children:U[e].label}),l.jsx(Ie,{className:"roleSubTitle",children:U[e].subTitle}),l.jsx(Le,{className:"roleSuitableFor",children:U[e].roleSuitableFor})]}),qe=({name:e,isDisabled:s,selectedValue:i,onSelectionChanged:c})=>{const{formState:{errors:p}}=E(),a=q(p,`${e}.userRole.selectedRole`),f=M(),$=i.productsByUserRole.employee.findIndex(h=>h.productType==="zeni_reimbursements"),b=D.useCallback(h=>{const t=se([h]),C=ae(h),v=ne(i.productsByUserRole[t]),R=v.findIndex(P=>P.productType===C),V=v[R].selectedOption?.value===h;R>-1&&(v[R]={...v[R],selectedOption:V?void 0:v[R].options.filter(P=>P.value===h)[0]});const _={userRole:{selectedRole:t,allRootRole:i.userRole.allRootRole},productsByUserRole:{...i.productsByUserRole,[t]:[...v]}};c(_)},[c,i]),y=i.userRole.selectedRole,u=D.useMemo(()=>y!=null?(i.productsByUserRole[y]??[]).map(h=>Re(h.selectedOption?.value)).filter(h=>h!=null):[],[y,i.productsByUserRole]);D.useEffect(()=>{y==="employee"&&u.length===0&&$>-1&&b("reimbursements_user")},[y,u,$,b]);const x=i.userRole.allRootRole,O=h=>h==="employee"&&i.userRole.selectedRole==="employee";return s==="readonly"?l.jsx(Ze,{windowSize:f,children:l.jsx(je,{roles:u})}):l.jsx(Oe,{children:x.map(h=>l.jsxs(ke,{windowSize:f,children:[l.jsx(Be,{isError:a,children:l.jsx(de,{isDisabled:s,label:{label:Ge(h)},style:{paddingBottom:o.sp4,alignItems:"flex-start"},radioField:{name:`${e}.userRole.selectedRole`,id:`${e}.${h}`,value:h,radioSize:"small",checked:i.userRole.selectedRole===h,style:{marginTop:o.sp1}}})}),l.jsx(Pe,{windowSize:f,isCollapsed:O(h),roleCount:i.productsByUserRole[h].length,children:i.productsByUserRole[h].map(t=>l.jsxs(ze,{children:[l.jsxs(Ee,{children:[l.jsx(_e,{children:t.productType&&Qe(t.productType)}),l.jsxs(Fe,{children:[l.jsx(Te,{children:t.label}),f==="small"?l.jsx(W,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b}):null,l.jsx(J,{children:t.subTitleUser}),l.jsx(J,{children:t.subTitleAdmin})]})]}),f!=="small"?l.jsx(W,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b,isDisabled:s}):null]},t.productType))})]},h))})},Ke=({name:e,defaultValue:s,isDisabled:i,registerOptions:c})=>{const{control:p}=E();return l.jsx(G,{name:e,control:p,defaultValue:s,rules:c,render:({field:{onChange:a,value:f}})=>{const $=f;return l.jsx(qe,{onSelectionChanged:b=>{a(b)},selectedValue:$,name:e,isDisabled:i})}})},S={width:new m(343,580,726),height:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),labelPaddingLeft:new m(n[3],n[4]),labelPaddingRight:new m(n[3],n[4]),labelPaddingTop:new m(n[2],n[2]),labelPaddingBottom:new m(n[2],n[3])};function yo({isDisabled:e,label:s,rolesDropDownField:i,style:c}){const p=M();return l.jsxs(Xe,{size:p,style:c,isDisabled:e!=null,children:[l.jsx(Q,{isDisabled:e,label:s.label,htmlFor:i.name,style:{paddingLeft:S.labelPaddingLeft.value(p),paddingRight:S.labelPaddingRight.value(p),paddingTop:S.labelPaddingTop.value(p),paddingBottom:S.labelPaddingBottom.value(p)}}),l.jsx(Ke,{...i,isDisabled:e})]})}const Xe=d.div`
139
139
  display: flex;
140
140
  flex-direction: ${e=>e.isDisabled?"row":"column"};
141
141
  align-items: ${e=>e.isDisabled?"center":"flex-start"};
@@ -169,7 +169,7 @@ import{J as M,V as l,cO as Q,y as m,o,aP as H,u as n,cJ as E,eE as G,ev as q,d a
169
169
  border-color: inherit;
170
170
  }
171
171
  }
172
- `;function Ye({onSelectionChanged:e,forZeniUser:s,selectedRoles:i,allRoles:c,disable:p=!1,isMulti:a=!1,clearSelectedRole:f,style:$,name:b,isValuePlacedAtEnd:y=!0}){const[u,x]=D.useState(),{formState:{errors:P}}=E(),h=q(P,b??"");D.useEffect(()=>{const r=c.filter(g=>i!=null&&i.includes(g.value));x(a?r:r[0])},[i]),D.useEffect(()=>{f===!0&&a===!1&&x(void 0)},[f]);const t=K(),C=M(),v=JSON.parse(JSON.stringify(c));if(i!=null&&s){if(!i.includes("admin")){const r=v.findIndex(g=>g.value==="admin");v.splice(r,1)}if(!i.includes("bookkeeping_admin")){const r=v.findIndex(g=>g.value==="bookkeeping_admin");v.splice(r,1)}}const R=t.colors.grey5,V=I.smallRegular.cssObject,_=V,z=u?.length>3,ee={control:r=>({...r,backgroundColor:"inherit",boxShadow:R,border:"none",cursor:"pointer",":hover":{backgroundColor:"inherit"},flexWrap:"nowrap",marginTop:"unset"}),container:r=>({...r,fill:t.colors.hero,":hover":{fill:t.colors.primary},width:"100%",...$}),valueContainer:r=>({...r,flexWrap:z?"wrap":"nowrap",width:C==="small"||!a?"auto":"263px",paddingTop:"unset",cursor:"pointer",..._,overflow:"visible",minWidth:"auto",paddingLeft:o.sp0,paddingRight:o.sp0,display:"flex",justifyContent:"flex-start",fill:t.colors.hero,":hover":{">div>div":{fill:t.colors.primary,color:t.colors.primary}},">div:last-of-type":{span:{display:"none"}}}),singleValue:(r,g)=>({...r,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,maxWidth:"auto",overflow:"auto",":hover":{color:t.colors.primary},marginLeft:o.sp0,position:"inherit",transform:"none",top:o.sp0,marginRight:o.sp0,padding:o.sp0,...I.standardRegular.cssObject}),multiValue:(r,g)=>({...r,margin:0,minWidth:void 0,backgroundColor:void 0,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,":hover":{color:t.colors.primary},">div":{borderRadius:o.sp0,padding:o.sp0,borderLeftStyle:"solid",borderWidth:o.sp0,borderColor:t.colors.grey1,color:"unset"}}),menu:r=>({...r,backgroundColor:R,boxShadow:`${o.sp0} 2px ${o.sp2} ${t.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",width:C==="small"?"230px":"100%",right:C==="small"?o.sp0:"unset",borderRadius:o.sp1,margin:o.sp0,border:C==="small"?`1px solid ${t.colors.grey3}`:"unset"}),menuList:r=>({...r,maxHeight:"240px"}),option:(r,{isSelected:g,isDisabled:T,data:O})=>{const w=A(O.value)&&s===!0,F=Z(g,w,O.value,t);return{...r,height:w?44:40,padding:w?o.sp0:`${o.sp2} 12px`,marginTop:w?o.sp1:"unset",whiteSpace:"unset",display:"flex",alignItems:"center",opacity:1,...V,color:F,cursor:T?"not-allowed":"pointer",backgroundColor:g&&!w?t.colors.background:"transparent",">div":{backgroundColor:g?t.colors.background:"transparent"},borderTop:w||O.value==="delete"?`1px solid ${t.colors.background}`:"none","& label":{paddingRight:"10px"},"svg:nth-of-type(2)":{display:"none"},":hover":{color:Z(!0,w,O.value,t),backgroundColor:g&&!w?t.colors.background:w?"transparent":t.colors.background,">div":{backgroundColor:t.colors.background},"svg:nth-of-type(1)":{display:w||s===!1?"inline-block":"none"},"svg:nth-of-type(2)":{display:w?"none":"inline-block"}},">div>div>div:first-of-type":{display:"flex"}}},indicatorsContainer:r=>({...r,alignItems:a?"flex-start":"center",paddingTop:z||!a?"unset":"5px"}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({paddingTop:a?o.sp1:"2px",svg:{marginLeft:a&&u?.length>0?"unset":"6px"}})},oe=r=>{const{isSelected:g}=r;return D.createElement(B.Option,{...r,key:r.data.value},l.jsxs(no,{role:r.data.value,forZeniUser:s,children:[l.jsx(ce,{children:r.data.label}),!!g&&l.jsxs("div",{children:[l.jsx(pe,{width:o.sp3,height:o.sp3}),s===!0?l.jsx(ue,{width:o.sp3,height:o.sp3}):null]})]}))},le=r=>{const g=[];a&&r.forEach(T=>{g.push(T.value)}),e(a?g:r.value)},re=r=>{const{menuIsOpen:g,isFocused:T,isDisabled:O,selectProps:w}=r,{value:F}=w;return l.jsx(po,{menuIsOpen:g,isFocused:T,isDisabled:O,selectedValue:F,isError:h,isValuePlacedAtEnd:y,windowSize:C,children:l.jsx(B.Control,{...r,className:"select-control",children:r.children})})};return l.jsx(ie,{isMulti:a,menuPlacement:"auto",minMenuHeight:250,menuShouldScrollIntoView:!1,defaultValue:u,value:u,closeMenuOnSelect:!0,options:v,isDisabled:p,hideSelectedOptions:!1,onChange:r=>{le(r)},isClearable:!1,isSearchable:!0,components:{Control:re,DropdownIndicator:lo,Option:oe,MultiValueRemove:ro,IndicatorSeparator:io,MultiValueLabel:to,ValueContainer:so,Placeholder:oo,Input:eo},styles:ee,theme:r=>({...r,colors:{...r.colors,primary:R}}),placeholder:te.getLocalizedStrings().peoplePage.dropdownPlaceHolderText,isOptionDisabled:r=>s===!1&&r.enabled===!1||s===!0&&A(r.value),classNamePrefix:"zeniRolesDropDown"})}const eo=e=>{const{selectProps:s}=e,{placeholder:i,value:c,isMulti:p}=s;return l.jsx(B.Input,{...e,autoComplete:"new-password",placeholder:p===!0&&c?.length===0||c==null?i:void 0,children:e.children})},oo=()=>null,Z=(e,s,i,c)=>e&&!s&&i!=="delete"?c.colors.primary:s?c.colors.grey1:i==="delete"?k.important:c.colors.hero,lo=()=>null,ro=()=>null,io=()=>null,to=({children:e,data:s,...i})=>l.jsx(B.MultiValueLabel,{...i,children:l.jsxs(ao,{children:[e,l.jsx(co,{className:"seperator",children:","})]})}),so=({children:e,...s})=>l.jsx(B.ValueContainer,{...s,className:"select-value-container",children:e}),ao=d(ge)`
172
+ `;function Ye({onSelectionChanged:e,forZeniUser:s,selectedRoles:i,allRoles:c,disable:p=!1,isMulti:a=!1,clearSelectedRole:f,style:$,name:b,isValuePlacedAtEnd:y=!0}){const[u,x]=D.useState(),{formState:{errors:O}}=E(),h=q(O,b??"");D.useEffect(()=>{const r=c.filter(g=>i!=null&&i.includes(g.value));x(a?r:r[0])},[i]),D.useEffect(()=>{f===!0&&a===!1&&x(void 0)},[f]);const t=K(),C=M(),v=JSON.parse(JSON.stringify(c));if(i!=null&&s){if(!i.includes("admin")){const r=v.findIndex(g=>g.value==="admin");v.splice(r,1)}if(!i.includes("bookkeeping_admin")){const r=v.findIndex(g=>g.value==="bookkeeping_admin");v.splice(r,1)}}const R=t.colors.grey5,V=I.smallRegular.cssObject,_=V,P=u?.length>3,ee={control:r=>({...r,backgroundColor:"inherit",boxShadow:R,border:"none",cursor:"pointer",":hover":{backgroundColor:"inherit"},flexWrap:"nowrap",marginTop:"unset"}),container:r=>({...r,fill:t.colors.hero,":hover":{fill:t.colors.primary},width:"100%",...$}),valueContainer:r=>({...r,flexWrap:P?"wrap":"nowrap",width:C==="small"||!a?"auto":"263px",paddingTop:"unset",cursor:"pointer",..._,overflow:"visible",minWidth:"auto",paddingLeft:o.sp0,paddingRight:o.sp0,display:"flex",justifyContent:"flex-start",fill:t.colors.hero,":hover":{">div>div":{fill:t.colors.primary,color:t.colors.primary}},">div:last-of-type":{span:{display:"none"}}}),singleValue:(r,g)=>({...r,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,maxWidth:"auto",overflow:"auto",":hover":{color:t.colors.primary},marginLeft:o.sp0,position:"inherit",transform:"none",top:o.sp0,marginRight:o.sp0,padding:o.sp0,...I.standardRegular.cssObject}),multiValue:(r,g)=>({...r,margin:0,minWidth:void 0,backgroundColor:void 0,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,":hover":{color:t.colors.primary},">div":{borderRadius:o.sp0,padding:o.sp0,borderLeftStyle:"solid",borderWidth:o.sp0,borderColor:t.colors.grey1,color:"unset"}}),menu:r=>({...r,backgroundColor:R,boxShadow:`${o.sp0} 2px ${o.sp2} ${t.colors.dropShadowHover}`,whiteSpace:"nowrap",minWidth:"fit-content",width:C==="small"?"230px":"100%",right:C==="small"?o.sp0:"unset",borderRadius:o.sp1,margin:o.sp0,border:C==="small"?`1px solid ${t.colors.grey3}`:"unset"}),menuList:r=>({...r,maxHeight:"240px"}),option:(r,{isSelected:g,isDisabled:T,data:z})=>{const w=A(z.value)&&s===!0,F=Z(g,w,z.value,t);return{...r,height:w?44:40,padding:w?o.sp0:`${o.sp2} 12px`,marginTop:w?o.sp1:"unset",whiteSpace:"unset",display:"flex",alignItems:"center",opacity:1,...V,color:F,cursor:T?"not-allowed":"pointer",backgroundColor:g&&!w?t.colors.background:"transparent",">div":{backgroundColor:g?t.colors.background:"transparent"},borderTop:w||z.value==="delete"?`1px solid ${t.colors.background}`:"none","& label":{paddingRight:"10px"},"svg:nth-of-type(2)":{display:"none"},":hover":{color:Z(!0,w,z.value,t),backgroundColor:g&&!w?t.colors.background:w?"transparent":t.colors.background,">div":{backgroundColor:t.colors.background},"svg:nth-of-type(1)":{display:w||s===!1?"inline-block":"none"},"svg:nth-of-type(2)":{display:w?"none":"inline-block"}},">div>div>div:first-of-type":{display:"flex"}}},indicatorsContainer:r=>({...r,alignItems:a?"flex-start":"center",paddingTop:P||!a?"unset":"5px"}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({paddingTop:a?o.sp1:"2px",svg:{marginLeft:a&&u?.length>0?"unset":"6px"}})},oe=r=>{const{isSelected:g}=r;return D.createElement(B.Option,{...r,key:r.data.value},l.jsxs(no,{role:r.data.value,forZeniUser:s,children:[l.jsx(ce,{children:r.data.label}),!!g&&l.jsxs("div",{children:[l.jsx(pe,{width:o.sp3,height:o.sp3}),s===!0?l.jsx(ue,{width:o.sp3,height:o.sp3}):null]})]}))},le=r=>{const g=[];a&&r.forEach(T=>{g.push(T.value)}),e(a?g:r.value)},re=r=>{const{menuIsOpen:g,isFocused:T,isDisabled:z,selectProps:w}=r,{value:F}=w;return l.jsx(po,{menuIsOpen:g,isFocused:T,isDisabled:z,selectedValue:F,isError:h,isValuePlacedAtEnd:y,windowSize:C,children:l.jsx(B.Control,{...r,className:"select-control",children:r.children})})};return l.jsx(ie,{isMulti:a,menuPlacement:"auto",minMenuHeight:250,menuShouldScrollIntoView:!1,defaultValue:u,value:u,closeMenuOnSelect:!0,options:v,isDisabled:p,hideSelectedOptions:!1,onChange:r=>{le(r)},isClearable:!1,isSearchable:!0,components:{Control:re,DropdownIndicator:lo,Option:oe,MultiValueRemove:ro,IndicatorSeparator:io,MultiValueLabel:to,ValueContainer:so,Placeholder:oo,Input:eo},styles:ee,theme:r=>({...r,colors:{...r.colors,primary:R}}),placeholder:te.getLocalizedStrings().peoplePage.dropdownPlaceHolderText,isOptionDisabled:r=>s===!1&&r.enabled===!1||s===!0&&A(r.value),classNamePrefix:"zeniRolesDropDown"})}const eo=e=>{const{selectProps:s}=e,{placeholder:i,value:c,isMulti:p}=s;return l.jsx(B.Input,{...e,autoComplete:"new-password",placeholder:p===!0&&c?.length===0||c==null?i:void 0,children:e.children})},oo=()=>null,Z=(e,s,i,c)=>e&&!s&&i!=="delete"?c.colors.primary:s?c.colors.grey1:i==="delete"?k.important:c.colors.hero,lo=()=>null,ro=()=>null,io=()=>null,to=({children:e,data:s,...i})=>l.jsx(B.MultiValueLabel,{...i,children:l.jsxs(ao,{children:[e,l.jsx(co,{className:"seperator",children:","})]})}),so=({children:e,...s})=>l.jsx(B.ValueContainer,{...s,className:"select-value-container",children:e}),ao=d(ge)`
173
173
  padding: ${o.sp0} 2px;
174
174
  max-width: 104px;
175
175
  white-space: nowrap;
@@ -258,7 +258,7 @@ import{J as M,V as l,cO as Q,y as m,o,aP as H,u as n,cJ as E,eE as G,ev as q,d a
258
258
  visibility: hidden;
259
259
  }
260
260
  }
261
- `,uo=({name:e,forZeniUser:s,registerOptions:i,defaultValue:c,isDisabled:p,isMulti:a,style:f,onSelectionChanged:$,isValuePlacedAtEnd:b=!0})=>{const{control:y}=E();return l.jsx(G,{name:e,control:y,defaultValue:c,rules:i,render:({field:{value:u,onChange:x}})=>l.jsx(Ye,{onSelectionChanged:P=>{x({allOptions:c.allOptions,selectedOptions:P}),$?.(P)},forZeniUser:s,selectedRoles:u.selectedOptions,disable:p,isMulti:a,name:e,style:f,allRoles:c.allOptions,isValuePlacedAtEnd:b})})},j={width:new m(343,580,726),height:new m(n[6],n[6]),controlHeight:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),marginRight:new m(n[2],n[2]),labelMarginLeft:new m(n[3],n[4]),labelMarginRight:new m(n[3],n[4]),labelMarginTop:new m(n[2],n[2])};function wo({isDisabled:e,label:s,zeniRolesDropDownField:i,style:c}){const p=M();return l.jsxs(ho,{size:p,style:c,isDisabled:e!=null,"data-testid":H("labeled-zeni-roles-dropdown-field",i.name),children:[l.jsx(Q,{isDisabled:e,label:s.label,htmlFor:i.name,style:{marginLeft:j.labelMarginLeft.value(p),marginRight:j.labelMarginRight.value(p),marginTop:j.labelMarginTop.value(p),width:s.width??"auto"}}),l.jsx(uo,{...i,isDisabled:e==="disabled"||e==="readonly",style:{display:"flex",flexGrow:1,width:s.width!=null?`calc(100% - ${s.width}px)`:"auto",height:p==="small"?"auto":o.sp6,minHeight:j.controlHeight.value(p)}})]})}const ho=d.div`
261
+ `,uo=({name:e,forZeniUser:s,registerOptions:i,defaultValue:c,isDisabled:p,isMulti:a,style:f,onSelectionChanged:$,isValuePlacedAtEnd:b=!0})=>{const{control:y}=E();return l.jsx(G,{name:e,control:y,defaultValue:c,rules:i,render:({field:{value:u,onChange:x}})=>l.jsx(Ye,{onSelectionChanged:O=>{x({allOptions:c.allOptions,selectedOptions:O}),$?.(O)},forZeniUser:s,selectedRoles:u.selectedOptions,disable:p,isMulti:a,name:e,style:f,allRoles:c.allOptions,isValuePlacedAtEnd:b})})},j={width:new m(343,580,726),height:new m(n[6],n[6]),controlHeight:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),marginRight:new m(n[2],n[2]),labelMarginLeft:new m(n[3],n[4]),labelMarginRight:new m(n[3],n[4]),labelMarginTop:new m(n[2],n[2])};function wo({isDisabled:e,label:s,zeniRolesDropDownField:i,style:c}){const p=M();return l.jsxs(ho,{size:p,style:c,isDisabled:e!=null,"data-testid":H("labeled-zeni-roles-dropdown-field",i.name),children:[l.jsx(Q,{isDisabled:e,label:s.label,htmlFor:i.name,style:{marginLeft:j.labelMarginLeft.value(p),marginRight:j.labelMarginRight.value(p),marginTop:j.labelMarginTop.value(p),width:s.width??"auto"}}),l.jsx(uo,{...i,isDisabled:e==="disabled"||e==="readonly",style:{display:"flex",flexGrow:1,width:s.width!=null?`calc(100% - ${s.width}px)`:"auto",height:p==="small"?"auto":o.sp6,minHeight:j.controlHeight.value(p)}})]})}const ho=d.div`
262
262
  display: flex;
263
263
  flex-direction: row;
264
264
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{J as G,aQ as ue,a9 as pe,cF as me,iM as E,ix as P,cG as he,V as n,ac as ge,g8 as fe,aR as xe,F as H,o as t,y as m,c as be,x as ye,cK as F,iN as we,p as je,b as I,bh as Ce,u as r}from"./index-6sX8sCRU.js";import{a as B}from"./sentry-BsWDfhY_.js";import{n as i}from"./mui-BKJrVh4W.js";import{G5 as Q,G2 as Se,G3 as De}from"./zeni-epic-state-DEUUJaZy.js";import $e from"./TransactionDetailPage-CeKaduBe-w8WXAz1Q.js";import"./liveblocks-BAOmiMpj.js";import"./core-xud19niX.js";import"./recharts-07URl5uF.js";import"./lottie-cQKxXDSP.js";import"./analytics-Dz3HJTKp.js";import"./lexical-CFjIG720.js";import"./utils-lvnYc7Lx.js";import"./LabeledControlledCheckBoxField-B1QdZmvd-IUa4evUP.js";import"./TrendWithTransactions-DqPFuOvC-4qpshT4h.js";import"./TrendChart-DATgAEKG-D5uXuHxg.js";import"./chartTypes-DJdbX13L-CYrZAg19.js";import"./toCOABalancesWithID-Bq4Xe7az-C9YUCLvJ.js";import"./toChartData-B3ouXKAd-DqPDcbms.js";import"./NoDataChart-B3s_7m2n-CAPJcqJ5.js";import"./InsightsSection-C3X6ZNEt-NjJemZo-.js";import"./NavigationDots-C7Na64B9-CVWaz9qo.js";import"./TransactionList-CSx8ZCZ--fRx-iJTn.js";import"./ConstrainedInnerElement-BeIpAPjB-DePlTE9o.js";import"./BoxItem-C0M4PSXY-Dz-uzrl9.js";import"./commonDimensions-BpYNnQtf-GFURsh40.js";import"./panelSelectedMixin-CzfD5-Zs-BLfsH1I8.js";import"./uploadAttachment-DNNG-CMy-C0-pn6r-.js";import"./radio-default-CiSgisfh-CU3HgAhI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="9ac523f3-86d2-42ef-9c61-25f8f9d9e550",e._sentryDebugIdIdentifier="sentry-dbid-9ac523f3-86d2-42ef-9c61-25f8f9d9e550")}catch{}})();const V={labelWidth:new m(120,145,160)},ve=i.div`
1
+ import{J as G,aQ as ue,a9 as pe,cF as me,iM as E,ix as P,cG as he,V as n,ac as ge,g8 as fe,aR as xe,F as H,o as t,y as m,d as be,x as ye,cK as F,iN as we,p as je,b as I,bh as Ce,u as r}from"./index-rJQoaAfw.js";import{a as B}from"./sentry-CGE1ab0x.js";import{n as i}from"./mui-KNfEk2A1.js";import{G5 as Q,G2 as Se,G3 as De}from"./zeni-epic-state-CiJSQQSe.js";import $e from"./TransactionDetailPage-DSR3itvE-B47s770o.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";import"./LabeledControlledCheckBoxField-B5Csu2og-C5h8CQSb.js";import"./TrendWithTransactions-fGuXIDf7-HyuIbA66.js";import"./TrendChart-mamZxFEf-DPlJCKYL.js";import"./chartTypes-CnipzTeX-DGSU_TZ0.js";import"./toCOABalancesWithID-BcVCEfwr-D-kim1rY.js";import"./toChartData-VTidOIL7-CTZNeqK0.js";import"./NoDataChart-JfED3unL-jJumSwoX.js";import"./InsightsSection-DEnkGYD8-BV7sZQsr.js";import"./NavigationDots-BX9DbCj7-RHGokei7.js";import"./TransactionList-wLBz-A1j-R5pqCBUj.js";import"./ConstrainedInnerElement-BeIpAPjB-CbQ77GJr.js";import"./BoxItem-ClRdlCWM-B_aqSV-L.js";import"./commonDimensions-DmFc7WqO-CxyyXmLy.js";import"./panelSelectedMixin-CzfD5-Zs-PdsDXPWw.js";import"./uploadAttachment-CwSRD9la-Dwn2_OC8.js";import"./radio-default-CiSgisfh-_DAtDxCX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="b0426aec-ce7c-4c7d-9ef8-d97ca1ff023f",e._sentryDebugIdIdentifier="sentry-dbid-b0426aec-ce7c-4c7d-9ef8-d97ca1ff023f")}catch{}})();const V={labelWidth:new m(120,145,160)},ve=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{J as he,d as Me,a9 as me,y as d,ev as ue,V as t,fd as Be,ac as ge,ap as He,g3 as Ue,o as r,b as We,bT as Ve,aN as re,cO as Ye,b1 as q,eq as qe,T as Xe,aR as Ke,F as U,ao as Ge,cK as gr,r as pe,a8 as xr,aw as wr,gV as $r,ge as fr,aP as de,u as b,x as Ze,bV as xe,R as Je,al as v,b7 as we,ai as K,du as Qe,a$ as er,cC as rr,p as X,am as tr,iR as oe,j0 as yr,j5 as br,j6 as vr,dv as Pe,fu as jr,eL as Sr}from"./index-6sX8sCRU.js";import{a as ae}from"./sentry-BsWDfhY_.js";import{n as i}from"./mui-BKJrVh4W.js";import{EP as Cr}from"./zeni-epic-state-DEUUJaZy.js";import{T as ir}from"./RoleWithToolTip-GCV_l8Ly-C2pYTZmo.js";import{j as or}from"./CardNumberSubText-B4dAoYDE-S0p2Dvhi.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="45225085-882c-4d68-bf12-605cec22bf2b",e._sentryDebugIdIdentifier="sentry-dbid-45225085-882c-4d68-bf12-605cec22bf2b")}catch{}})();const Q="cardName",fe=U.getLocalizedStrings().spendManagement.chargeCard.renamePopup;function ji({currentCardName:e,renameFetchState:h,onCancelClick:c,onSubmitClick:p}){const l=he(),y="RenameCardForm",n=me({mode:"all",defaultValues:{[Q]:e},values:{[Q]:e}});ae.useEffect(()=>{n.setFocus(Q)},[]);const m=()=>{c()},E=n.handleSubmit(()=>{const $=n.getValues(Q);$!=null&&p($)}),N=ue(n.formState.errors,Q),o=U.getLocalizedStrings().common,T=le.largeLabelWidth.value(l);return t.jsx(zr,{windowSize:l,role:"presentation",children:t.jsx(Ge,{onClickAway:()=>c(),children:t.jsxs(kr,{windowSize:l,children:[t.jsx(ge,{...n,children:t.jsxs(Ir,{id:y,onSubmit:$=>{$.preventDefault(),E()},children:[t.jsx(Pr,{windowSize:l,children:fe.heading}),t.jsx(Nr,{hasError:N,children:t.jsx(gr,{label:{label:fe.newName,width:T},style:{width:"auto"},text:{type:"text",name:Q,defaultValue:e,placeholder:fe.placeholder,options:{required:!0,validate:$=>$!=null}}})})]})}),t.jsx(Dr,{children:t.jsxs(Lr,{children:[t.jsx(pe,{label:o.cancel,onClick:m,style:{width:84}}),t.jsx(Tr,{}),t.jsx(pe,{variant:"primary",label:o.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:h==="In-Progress",type:"submit",form:y})]})})]})})})}const le={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},zr=i.div`
1
+ import{J as he,e as Me,a9 as me,y as d,ev as ue,V as t,fd as Be,ac as ge,ap as He,g3 as Ue,o as r,b as We,bT as Ve,aN as re,cO as Ye,b1 as q,eq as qe,T as Xe,aR as Ke,F as U,ao as Ge,cK as gr,r as pe,a8 as xr,aw as wr,gV as $r,ge as fr,aP as de,u as b,x as Ze,bV as xe,R as Je,al as v,b7 as we,ai as K,du as Qe,a$ as er,cC as rr,p as X,am as tr,iR as oe,j0 as yr,j5 as br,j6 as vr,dv as Pe,fu as jr,eL as Sr}from"./index-rJQoaAfw.js";import{a as ae}from"./sentry-CGE1ab0x.js";import{n as i}from"./mui-KNfEk2A1.js";import{EP as Cr}from"./zeni-epic-state-CiJSQQSe.js";import{T as ir}from"./RoleWithToolTip-BWdD1HmA-BCpJ5d2U.js";import{j as or}from"./CardNumberSubText-CHr49_cJ-9Ya6XjXp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new e.Error().stack;h&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[h]="706265fb-2eac-4ca1-99c0-caca9927bea8",e._sentryDebugIdIdentifier="sentry-dbid-706265fb-2eac-4ca1-99c0-caca9927bea8")}catch{}})();const Q="cardName",fe=U.getLocalizedStrings().spendManagement.chargeCard.renamePopup;function ji({currentCardName:e,renameFetchState:h,onCancelClick:c,onSubmitClick:p}){const l=he(),y="RenameCardForm",n=me({mode:"all",defaultValues:{[Q]:e},values:{[Q]:e}});ae.useEffect(()=>{n.setFocus(Q)},[]);const m=()=>{c()},F=n.handleSubmit(()=>{const $=n.getValues(Q);$!=null&&p($)}),N=ue(n.formState.errors,Q),o=U.getLocalizedStrings().common,T=le.largeLabelWidth.value(l);return t.jsx(zr,{windowSize:l,role:"presentation",children:t.jsx(Ge,{onClickAway:()=>c(),children:t.jsxs(kr,{windowSize:l,children:[t.jsx(ge,{...n,children:t.jsxs(Ir,{id:y,onSubmit:$=>{$.preventDefault(),F()},children:[t.jsx(Pr,{windowSize:l,children:fe.heading}),t.jsx(Nr,{hasError:N,children:t.jsx(gr,{label:{label:fe.newName,width:T},style:{width:"auto"},text:{type:"text",name:Q,defaultValue:e,placeholder:fe.placeholder,options:{required:!0,validate:$=>$!=null}}})})]})}),t.jsx(Dr,{children:t.jsxs(Lr,{children:[t.jsx(pe,{label:o.cancel,onClick:m,style:{width:84}}),t.jsx(Tr,{}),t.jsx(pe,{variant:"primary",label:o.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:h==="In-Progress",type:"submit",form:y})]})})]})})})}const le={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},zr=i.div`
2
2
  position: fixed;
3
3
  top: ${r.sp0};
4
4
  left: ${r.sp0};
@@ -49,7 +49,7 @@ import{J as he,d as Me,a9 as me,y as d,ev as ue,V as t,fd as Be,ac as ge,ap as H
49
49
  }
50
50
  `,Ir=i.form`
51
51
  display: contents;
52
- `,ee="spendLimit",J=U.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:ye}=U.getLocalizedStrings();function Si({controllerEmails:e,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:l,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:E,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,currentSpentAmount:H,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,maxLimitAmount:O,isDisabled:G,updateLimitFetchState:Z,recommendations:I,cardIssuedByRoles:Y,cardHolderRoles:u,loggedInUserRole:R,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,onCancelClick:s,onSubmitClick:g}){const x=xr().analytics,f=he(),se="SpendLimitForm",ar=wr();Cr(ar.loggedInUserRoleMap);const te=me({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[ee]:void 0}}),{control:sr,formState:{errors:nr}}=te,[dr,lr]=ae.useState(void 0),ne=$r({control:sr,name:ee}),Ce=y?.type.code.includes("physical")===!0?y.cardActivationAttemptHistory[0]?.timestamp:y?.createTime,ze=(y?.recommendations??[]).map(w=>w.creditLimit.amount),cr=()=>{y!=null&&Le({analytics:x,controllerEmails:e,isChargeCardFeatureEnabled:h,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:E,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:u,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:R,clickItem:"Cancel",newSpendLimitAmount:ne,productInformation:j,creditAccountInformation:W,debitAccountInformation:V}),s()},pr=te.handleSubmit(()=>{const w=te.getValues(ee);w!=null&&(Le({analytics:x,controllerEmails:e,isChargeCardFeatureEnabled:h,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:E,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:u,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:R,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,clickItem:"Update",newSpendLimitAmount:w}),g(w))}),hr=w=>{te.setValue(ee,w,{shouldValidate:!0})},ke=ue(nr,ee),$e=U.getLocalizedStrings().common,mr=ce.largeLabelWidth.value(f);ae.useEffect(()=>{lr(Rr(H,O,ne))},[ne,H,O]);const ur=(w,ie)=>t.jsxs(Wr,{isSelected:ne===w.amount,onClick:()=>hr(w.amount),"data-testid":de("quick-amount-button",ie.toString()),children:[ie===1&&t.jsx(Vr,{}),re("0,0.[00]",w)]},ie);return t.jsx(Ar,{windowSize:f,role:"presentation","data-testid":de("update-spend-limit-popup"),children:t.jsx(Ge,{onClickAway:()=>s(),children:t.jsxs(Fr,{windowSize:f,children:[t.jsx(ge,{...te,children:t.jsxs(Yr,{id:se,onSubmit:w=>{w.preventDefault(),pr()},children:[t.jsx(Er,{windowSize:f,children:J.heading}),t.jsxs(Or,{windowSize:f,children:[J.currentLimit,$e.strings.space," ",re("0,0.[00]",B),J.slashMonth]}),t.jsxs(Hr,{hasError:ke,children:[t.jsx(fr,{label:{label:J.newLimit,width:mr},showAdditionalInfoLabel:ke,additionalInfoLabel:dr,formattedTextField:{type:"number",name:ee,defaultValue:void 0,placeholder:J.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:w=>!!w&&w>0&&w>H.amount&&(O!=null?w<=O.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),I?.length?t.jsx(Ur,{windowSize:f,children:I?.map((w,ie)=>ur(w.creditLimit,ie))}):null]})]})}),t.jsx(Br,{children:t.jsxs(_r,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(Mr,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:Z==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:G})]})})]})})})}const Rr=(e,h,c)=>{if(c!=null){if(c<=e.amount)return J.amountBelowError.replace("_amount_",re("0,0.[00]",e));if(h!=null&&c>h.amount)return J.amountExceedError.replace("_amount_",re("0,0.[00]",h))}},Le=({analytics:e,controllerEmails:h,isChargeCardFeatureEnabled:c,productInformation:p,creditAccountInformation:l,debitAccountInformation:y,cardDetail:n,transactionStatistics:m,depositAccountLimitFetchState:E,creditAccount:N,creditAccountRepayment:o,signedInUser:T,isDebitCard:$,classListFetchState:B,currentLimitAmount:H,recommendedLimitAmounts:j,cardActivationDate:W,cardIssuedByRoles:V,cardHolderRoles:O,cardIssuedByDepartmentName:G,cardHolderDepartmentName:Z,loggedInUserRole:I,clickItem:Y,newSpendLimitAmount:u})=>{n!=null&&B==="Completed"&&m!=null&&m.fetchState==="Completed"&&(!c||N.fetchState==="Completed"&&o.fetchState==="Completed")&&(!$||E==="Completed")&&e.trackCardsUpdateSpendLimitClick(h,p,{cardId:n.id,cardName:n.cardName,cardType:vr(n.type.code),cardCategory:n.type.code.includes("physical")?"physical":"virtual",cardLimit:oe(n.limit.amount),cardLastFourDigits:n.accountLast4,cardStatus:n.status.code,cardAssignedDate:n.createTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:n.providerCardCreateTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:W?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:n.creditLimitFrequency.name,cardSpentAmount:oe(n.balance.amount),cardAvailableLimit:oe(n.available.amount),cardUtilizationPercent:br(n.limit.amount,n.available.amount),cardUtilizationAmount:oe(yr(n)),totalNumberOfDeclinedTransactions:m.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:m.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:m.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:m.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:m.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:m.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:m.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:m.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:m.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:m.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:Pe(n.cardCreatedByUser,!1),cardIssuedByEmail:n.cardCreatedByUser?.email,cardIssuedByUserId:n.cardCreatedByUser?.userId,cardIssuedByRole:V,cardIssuedByDepartment:G},{cardholderName:Pe(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:O,cardholderUserId:n.cardHolderUser?.userId,cardholderDepartment:Z},{cardLimitUpdatedByName:jr(T),cardLimitUpdatedByEmail:T.userEmail,cardLimitUpdatedByRole:I,cardLimitUpdatedByUserId:T.userId},Y,oe(H.amount),j,u!=null?j.includes(u):!1,u,l,y)},ce={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},Ar=i.div`
52
+ `,ee="spendLimit",J=U.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:ye}=U.getLocalizedStrings();function Si({controllerEmails:e,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:l,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:F,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,currentSpentAmount:H,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,maxLimitAmount:O,isDisabled:G,updateLimitFetchState:Z,recommendations:I,cardIssuedByRoles:Y,cardHolderRoles:u,loggedInUserRole:R,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,onCancelClick:s,onSubmitClick:g}){const x=xr().analytics,f=he(),se="SpendLimitForm",ar=wr();Cr(ar.loggedInUserRoleMap);const te=me({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[ee]:void 0}}),{control:sr,formState:{errors:nr}}=te,[dr,lr]=ae.useState(void 0),ne=$r({control:sr,name:ee}),Ce=y?.type.code.includes("physical")===!0?y.cardActivationAttemptHistory[0]?.timestamp:y?.createTime,ze=(y?.recommendations??[]).map(w=>w.creditLimit.amount),cr=()=>{y!=null&&Le({analytics:x,controllerEmails:e,isChargeCardFeatureEnabled:h,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:F,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:u,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:R,clickItem:"Cancel",newSpendLimitAmount:ne,productInformation:j,creditAccountInformation:W,debitAccountInformation:V}),s()},pr=te.handleSubmit(()=>{const w=te.getValues(ee);w!=null&&(Le({analytics:x,controllerEmails:e,isChargeCardFeatureEnabled:h,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:F,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:u,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:R,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,clickItem:"Update",newSpendLimitAmount:w}),g(w))}),hr=w=>{te.setValue(ee,w,{shouldValidate:!0})},ke=ue(nr,ee),$e=U.getLocalizedStrings().common,mr=ce.largeLabelWidth.value(f);ae.useEffect(()=>{lr(Rr(H,O,ne))},[ne,H,O]);const ur=(w,ie)=>t.jsxs(Wr,{isSelected:ne===w.amount,onClick:()=>hr(w.amount),"data-testid":de("quick-amount-button",ie.toString()),children:[ie===1&&t.jsx(Vr,{}),re("0,0.[00]",w)]},ie);return t.jsx(Ar,{windowSize:f,role:"presentation","data-testid":de("update-spend-limit-popup"),children:t.jsx(Ge,{onClickAway:()=>s(),children:t.jsxs(Er,{windowSize:f,children:[t.jsx(ge,{...te,children:t.jsxs(Yr,{id:se,onSubmit:w=>{w.preventDefault(),pr()},children:[t.jsx(Fr,{windowSize:f,children:J.heading}),t.jsxs(Or,{windowSize:f,children:[J.currentLimit,$e.strings.space," ",re("0,0.[00]",B),J.slashMonth]}),t.jsxs(Hr,{hasError:ke,children:[t.jsx(fr,{label:{label:J.newLimit,width:mr},showAdditionalInfoLabel:ke,additionalInfoLabel:dr,formattedTextField:{type:"number",name:ee,defaultValue:void 0,placeholder:J.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:w=>!!w&&w>0&&w>H.amount&&(O!=null?w<=O.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),I?.length?t.jsx(Ur,{windowSize:f,children:I?.map((w,ie)=>ur(w.creditLimit,ie))}):null]})]})}),t.jsx(Br,{children:t.jsxs(_r,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(Mr,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:Z==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:G})]})})]})})})}const Rr=(e,h,c)=>{if(c!=null){if(c<=e.amount)return J.amountBelowError.replace("_amount_",re("0,0.[00]",e));if(h!=null&&c>h.amount)return J.amountExceedError.replace("_amount_",re("0,0.[00]",h))}},Le=({analytics:e,controllerEmails:h,isChargeCardFeatureEnabled:c,productInformation:p,creditAccountInformation:l,debitAccountInformation:y,cardDetail:n,transactionStatistics:m,depositAccountLimitFetchState:F,creditAccount:N,creditAccountRepayment:o,signedInUser:T,isDebitCard:$,classListFetchState:B,currentLimitAmount:H,recommendedLimitAmounts:j,cardActivationDate:W,cardIssuedByRoles:V,cardHolderRoles:O,cardIssuedByDepartmentName:G,cardHolderDepartmentName:Z,loggedInUserRole:I,clickItem:Y,newSpendLimitAmount:u})=>{n!=null&&B==="Completed"&&m!=null&&m.fetchState==="Completed"&&(!c||N.fetchState==="Completed"&&o.fetchState==="Completed")&&(!$||F==="Completed")&&e.trackCardsUpdateSpendLimitClick(h,p,{cardId:n.id,cardName:n.cardName,cardType:vr(n.type.code),cardCategory:n.type.code.includes("physical")?"physical":"virtual",cardLimit:oe(n.limit.amount),cardLastFourDigits:n.accountLast4,cardStatus:n.status.code,cardAssignedDate:n.createTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:n.providerCardCreateTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:W?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:n.creditLimitFrequency.name,cardSpentAmount:oe(n.balance.amount),cardAvailableLimit:oe(n.available.amount),cardUtilizationPercent:br(n.limit.amount,n.available.amount),cardUtilizationAmount:oe(yr(n)),totalNumberOfDeclinedTransactions:m.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:m.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:m.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:m.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:m.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:m.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:m.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:m.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:m.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:m.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:Pe(n.cardCreatedByUser,!1),cardIssuedByEmail:n.cardCreatedByUser?.email,cardIssuedByUserId:n.cardCreatedByUser?.userId,cardIssuedByRole:V,cardIssuedByDepartment:G},{cardholderName:Pe(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:O,cardholderUserId:n.cardHolderUser?.userId,cardholderDepartment:Z},{cardLimitUpdatedByName:jr(T),cardLimitUpdatedByEmail:T.userEmail,cardLimitUpdatedByRole:I,cardLimitUpdatedByUserId:T.userId},Y,oe(H.amount),j,u!=null?j.includes(u):!1,u,l,y)},ce={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},Ar=i.div`
53
53
  position: fixed;
54
54
  top: ${r.sp0};
55
55
  left: ${r.sp0};
@@ -60,7 +60,7 @@ import{J as he,d as Me,a9 as me,y as d,ev as ue,V as t,fd as Be,ac as ge,ap as H
60
60
  flex-direction: column;
61
61
  align-items: center;
62
62
  background: ${X.overlayDark};
63
- `,Fr=i.div`
63
+ `,Er=i.div`
64
64
  display: flex;
65
65
  flex-direction: column;
66
66
  justify-content: space-between;
@@ -74,7 +74,7 @@ import{J as he,d as Me,a9 as me,y as d,ev as ue,V as t,fd as Be,ac as ge,ap as H
74
74
  width: ${e=>ce.width.valuePx(e.windowSize)};
75
75
  padding: ${e=>`${ce.popupTopBottomPadding.valuePx(e.windowSize)} ${ce.popupLeftRightPadding.valuePx(e.windowSize)}`};
76
76
  box-sizing: border-box;
77
- `,Er=i(xe)`
77
+ `,Fr=i(xe)`
78
78
  color: ${e=>e.theme.colors.primary};
79
79
  margin-bottom: ${r.sp2};
80
80
  `,Or=i(v)`
@@ -127,7 +127,7 @@ import{J as he,d as Me,a9 as me,y as d,ev as ue,V as t,fd as Be,ac as ge,ap as H
127
127
  height: ${r.sp3};
128
128
  `,Yr=i.form`
129
129
  display: contents;
130
- `,P={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{common:S,closeCard:_}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",A=(e,h)=>`${e}.${h}`,De=e=>`${e}_form`,{common:be,dateFormat:qr,cockpit:Xr}=U.getLocalizedStrings(),Ci=({showCloseCardDrawer:e,onCloseCloseCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,closeCardFetchState:n,onRemoveCardClick:m,onConfirmClick:E,onDismissClick:N})=>{const o=he(),T=Me(),[$,B]=ae.useState(Object.fromEntries(Object.keys(l).map((a,s)=>[a,s===0]))),H=a=>{B(s=>s[a]?{...s,[a]:!1}:{...Object.fromEntries(Object.keys(s).map(g=>[g,!1])),[a]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[z]:{reason:void 0,reasonType:void 0}},values:{[z]:{reason:void 0,reasonType:void 0}}}),W=P.largeLabelWidth.value(o),{isValid:V,errors:O}=j.formState,G=a=>`${p[a].cardHolderUser?.firstName??""} ${p[a].cardHolderUser?.lastName??""}`,Z=ue(O,A(z,"reasonType")),I=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const a=j.getValues(),s={reason:a[z].reason,reasonType:a[z].reasonType};E(s)}}),u=Object.keys(l).length>1,R=Object.keys(l).length,D=Object.values(l).reduce((a,s)=>a+s.length,0);return t.jsx(Be,{anchor:"right",open:e,onClose:h,PaperProps:{style:{width:P.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:T.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(Kr,{windowSize:o,children:[t.jsxs(Gr,{windowSize:o,children:[t.jsx(Zr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:u?_.closeCards:_.closeCard}):t.jsx(dt,{children:u?_.closeCards:_.closeCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:De(Te),onSubmit:Y,children:[t.jsxs(lt,{children:[t.jsx(ct,{windowSize:o,children:u?D>0?`${_.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",R.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?S.expense:S.expenses} ${_.multipleCardsHasRecurringExpensesSuffix}`:_.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",R.toString()):_.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?S.expense:S.expenses)}),u&&t.jsx(Pt,{children:`${R} ${R===1?S.card:S.cards} ${S.selected}`}),Object.keys(l).map((a,s)=>{const g=l[a].length>0;return t.jsxs(pt,{onClick:()=>g?H(a):void 0,isMoreThanOneCard:u,isLastCard:s===Object.keys(l).length-1,children:[t.jsxs(mt,{windowSize:o,children:[t.jsxs(ut,{windowSize:o,children:[t.jsxs(gt,{windowSize:o,children:[p[a].cardHolderUser?.photo!==void 0?t.jsx(et,{src:p[a].cardHolderUser?.photo.href,alt:Xr.userProfileAltText,onError:({currentTarget:x})=>{x.onerror=null,x.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:p[a].cardHolderUser?.firstName??"",lastName:p[a].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(ht,{children:G(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:p[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&($[a]?t.jsx(Ie,{}):t.jsx(Re,{}))]}),t.jsxs(wt,{windowSize:o,children:[p[a].cardName,t.jsx(or,{cardDetail:p[a],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs($t,{windowSize:o,children:[t.jsxs(Ct,{children:[t.jsx(zt,{children:l[a].length}),t.jsx(St,{children:S.recurringExpenses})]}),o!=="small"&&g&&($[a]?t.jsx(Ie,{}):t.jsx(Re,{}))]})]}),u&&t.jsx(it,{children:t.jsx(Ve,{variant:"standard",title:be.remove,children:t.jsx(tt,{onClick:()=>m(a)})})}),$[a]&&g&&t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsxs(ft,{children:[t.jsxs(kt,{children:[t.jsx(je,{width:o==="small"?112:240,children:S.merchant}),t.jsx(je,{width:o==="small"?112:104,children:S.nextPaymentDate}),t.jsx(Lt,{width:o==="small"?100:312,children:S.amount})]}),l[a].map((x,f)=>t.jsxs("div",{children:[f>0&&t.jsx(Ne,{}),t.jsxs(yt,{children:[t.jsxs(bt,{windowSize:o,children:[t.jsx(ot,{src:x.merchant.logo?.url?.href}),t.jsx(rt,{windowSize:o,children:x.merchant.brandName??x.merchant.name})]}),t.jsx(vt,{windowSize:o,children:x.nextPaymentDate.format(qr.visual.MMMDCommaYYYYformat)}),t.jsx(jt,{windowSize:o,children:re("0,0.00",x.amount)})]},x.merchant.name)]},x.merchant.name))]})]})]},a)})]}),t.jsx(Dt,{windowSize:o,children:S.letUsKnowWhy}),t.jsxs(Tt,{isReasonTextFieldVisible:I==="other",children:[t.jsxs(at,{size:o,children:[t.jsx(Ye,{label:S.reasonLabel,htmlFor:A(z,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(st,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:S.reason.lost},style:{width:"auto"},radioField:{name:A(z,"reasonType"),id:`${A(z,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.fraud},style:{width:"auto"},radioField:{name:A(z,"reasonType"),id:`${A(z,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.not_needed},style:{width:"auto"},radioField:{name:A(z,"reasonType"),id:`${A(z,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.other},style:{width:"auto"},radioField:{name:A(z,"reasonType"),id:`${A(z,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}})]})]}),I==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${P.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:A(z,"reason"),placeholder:_.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!c,validate:a=>c?!0:!!a}}):I==null&&!c&&Z?t.jsx(Jr,{children:_.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ke,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:De(Te),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:be.confirm,isLoading:n==="In-Progress",variant:"danger"},cancelBtn:{label:be.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Kr=i.div`
130
+ `,P={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{common:S,closeCard:_}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",A=(e,h)=>`${e}.${h}`,De=e=>`${e}_form`,{common:be,dateFormat:qr,cockpit:Xr}=U.getLocalizedStrings(),Ci=({showCloseCardDrawer:e,onCloseCloseCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,closeCardFetchState:n,onRemoveCardClick:m,onConfirmClick:F,onDismissClick:N})=>{const o=he(),T=Me(),[$,B]=ae.useState(Object.fromEntries(Object.keys(l).map((a,s)=>[a,s===0]))),H=a=>{B(s=>s[a]?{...s,[a]:!1}:{...Object.fromEntries(Object.keys(s).map(g=>[g,!1])),[a]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[z]:{reason:void 0,reasonType:void 0}},values:{[z]:{reason:void 0,reasonType:void 0}}}),W=P.largeLabelWidth.value(o),{isValid:V,errors:O}=j.formState,G=a=>`${p[a].cardHolderUser?.firstName??""} ${p[a].cardHolderUser?.lastName??""}`,Z=ue(O,A(z,"reasonType")),I=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const a=j.getValues(),s={reason:a[z].reason,reasonType:a[z].reasonType};F(s)}}),u=Object.keys(l).length>1,R=Object.keys(l).length,D=Object.values(l).reduce((a,s)=>a+s.length,0);return t.jsx(Be,{anchor:"right",open:e,onClose:h,PaperProps:{style:{width:P.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:T.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(Kr,{windowSize:o,children:[t.jsxs(Gr,{windowSize:o,children:[t.jsx(Zr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:u?_.closeCards:_.closeCard}):t.jsx(dt,{children:u?_.closeCards:_.closeCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:De(Te),onSubmit:Y,children:[t.jsxs(lt,{children:[t.jsx(ct,{windowSize:o,children:u?D>0?`${_.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",R.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?S.expense:S.expenses} ${_.multipleCardsHasRecurringExpensesSuffix}`:_.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",R.toString()):_.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?S.expense:S.expenses)}),u&&t.jsx(Pt,{children:`${R} ${R===1?S.card:S.cards} ${S.selected}`}),Object.keys(l).map((a,s)=>{const g=l[a].length>0;return t.jsxs(pt,{onClick:()=>g?H(a):void 0,isMoreThanOneCard:u,isLastCard:s===Object.keys(l).length-1,children:[t.jsxs(mt,{windowSize:o,children:[t.jsxs(ut,{windowSize:o,children:[t.jsxs(gt,{windowSize:o,children:[p[a].cardHolderUser?.photo!==void 0?t.jsx(et,{src:p[a].cardHolderUser?.photo.href,alt:Xr.userProfileAltText,onError:({currentTarget:x})=>{x.onerror=null,x.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:p[a].cardHolderUser?.firstName??"",lastName:p[a].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(ht,{children:G(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:p[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&($[a]?t.jsx(Ie,{}):t.jsx(Re,{}))]}),t.jsxs(wt,{windowSize:o,children:[p[a].cardName,t.jsx(or,{cardDetail:p[a],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs($t,{windowSize:o,children:[t.jsxs(Ct,{children:[t.jsx(zt,{children:l[a].length}),t.jsx(St,{children:S.recurringExpenses})]}),o!=="small"&&g&&($[a]?t.jsx(Ie,{}):t.jsx(Re,{}))]})]}),u&&t.jsx(it,{children:t.jsx(Ve,{variant:"standard",title:be.remove,children:t.jsx(tt,{onClick:()=>m(a)})})}),$[a]&&g&&t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsxs(ft,{children:[t.jsxs(kt,{children:[t.jsx(je,{width:o==="small"?112:240,children:S.merchant}),t.jsx(je,{width:o==="small"?112:104,children:S.nextPaymentDate}),t.jsx(Lt,{width:o==="small"?100:312,children:S.amount})]}),l[a].map((x,f)=>t.jsxs("div",{children:[f>0&&t.jsx(Ne,{}),t.jsxs(yt,{children:[t.jsxs(bt,{windowSize:o,children:[t.jsx(ot,{src:x.merchant.logo?.url?.href}),t.jsx(rt,{windowSize:o,children:x.merchant.brandName??x.merchant.name})]}),t.jsx(vt,{windowSize:o,children:x.nextPaymentDate.format(qr.visual.MMMDCommaYYYYformat)}),t.jsx(jt,{windowSize:o,children:re("0,0.00",x.amount)})]},x.merchant.name)]},x.merchant.name))]})]})]},a)})]}),t.jsx(Dt,{windowSize:o,children:S.letUsKnowWhy}),t.jsxs(Tt,{isReasonTextFieldVisible:I==="other",children:[t.jsxs(at,{size:o,children:[t.jsx(Ye,{label:S.reasonLabel,htmlFor:A(z,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(st,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:S.reason.lost},style:{width:"auto"},radioField:{name:A(z,"reasonType"),id:`${A(z,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.fraud},style:{width:"auto"},radioField:{name:A(z,"reasonType"),id:`${A(z,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.not_needed},style:{width:"auto"},radioField:{name:A(z,"reasonType"),id:`${A(z,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.other},style:{width:"auto"},radioField:{name:A(z,"reasonType"),id:`${A(z,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!c,validate:a=>c?!0:!!a},radioSize:"small"}})]})]}),I==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${P.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:A(z,"reason"),placeholder:_.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!c,validate:a=>c?!0:!!a}}):I==null&&!c&&Z?t.jsx(Jr,{children:_.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ke,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:De(Te),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:be.confirm,isLoading:n==="In-Progress",variant:"danger"},cancelBtn:{label:be.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Kr=i.div`
131
131
  display: flex;
132
132
  flex-direction: column;
133
133
  background-color: ${e=>e.theme.colors.grey4};
@@ -374,7 +374,7 @@ import{J as he,d as Me,a9 as me,y as d,ev as ue,V as t,fd as Be,ac as ge,ap as H
374
374
  margin-bottom: ${r.sp3};
375
375
  margin-top: ${r.sp7};
376
376
  color: ${e=>e.theme.colors.primary};
377
- `,L={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{lockCard:M,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Ae="lockCardPage",F=(e,h)=>`${e}.${h}`,Fe=e=>`${e}_form`,{common:ve,dateFormat:Nt,cockpit:It}=U.getLocalizedStrings(),zi=({showLockCardDrawer:e,onCloseLockCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,lockCardFetchState:n,onRemoveCardClick:m,onConfirmClick:E,onDismissClick:N})=>{const o=he(),T=Me(),[$,B]=ae.useState(Object.fromEntries(Object.keys(l).map((s,g)=>[s,g===0]))),H=s=>{B(g=>g[s]?{...g,[s]:!1}:{...Object.fromEntries(Object.keys(g).map(x=>[x,!1])),[s]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[k]:{reason:void 0,reasonType:void 0}},values:{[k]:{reason:void 0,reasonType:void 0}}}),W=L.largeLabelWidth.value(o),{isValid:V,errors:O}=j.formState,G=s=>`${p[s].cardHolderUser?.firstName??""} ${p[s].cardHolderUser?.lastName??""}`,Z=ue(O,F(k,"reasonType")),I=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const s=j.getValues(),g={reason:s[k].reason,reasonType:s[k].reasonType};E(g)}}),u=Object.keys(l).length>1,R=Object.keys(l).length,D=Object.values(l).reduce((s,g)=>s+g.length,0),a=l[Object.keys(l)[0]].length>0;return t.jsx(Be,{anchor:"right",open:e,onClose:h,PaperProps:{style:{width:L.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:T.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(Rt,{windowSize:o,children:[t.jsxs(At,{windowSize:o,children:[t.jsx(Ot,{windowSize:o,children:t.jsx(Mt,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:u?M.lockCards:M.lockCard}):t.jsx(Xt,{children:u?M.lockCards:M.lockCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:Fe(Ae),onSubmit:Y,children:[t.jsxs(Kt,{children:[t.jsx(Gt,{windowSize:o,children:u?D>0?`${M.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",R.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?C.expense:C.expenses}.`:M.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",R.toString()):a?M.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?C.expense:C.expenses):M.firstCardNoRecurringExpenses}),u&&t.jsx(mi,{children:`${R} ${R===1?C.card:C.cards} ${C.selected}`}),Object.keys(l).map((s,g)=>{const x=l[s].length>0;return t.jsxs(Zt,{onClick:()=>x?H(s):void 0,isMoreThanOneCard:u,isLastCard:g===Object.keys(l).length-1,children:[t.jsxs(Qt,{windowSize:o,children:[t.jsxs(Et,{windowSize:o,children:[t.jsxs(ei,{windowSize:o,children:[p[s].cardHolderUser?.photo!==void 0?t.jsx(Bt,{src:p[s].cardHolderUser?.photo.href,alt:It.userProfileAltText,onError:({currentTarget:f})=>{f.onerror=null,f.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:p[s].cardHolderUser?.firstName??"",lastName:p[s].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(Jt,{children:G(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:p[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&x&&($[s]?t.jsx(Oe,{}):t.jsx(_e,{}))]}),t.jsxs(ti,{windowSize:o,children:[p[s].cardName,t.jsx(or,{cardDetail:p[s],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs(ii,{windowSize:o,children:[t.jsxs(li,{children:[t.jsx(pi,{children:l[s].length}),t.jsx(ci,{children:C.recurringExpenses})]}),o!=="small"&&x&&($[s]?t.jsx(Oe,{}):t.jsx(_e,{}))]})]}),u&&t.jsx(Ft,{children:t.jsx(Ve,{variant:"standard",title:ve.remove,children:t.jsx(Ut,{onClick:()=>m(s)})})}),$[s]&&x&&t.jsxs(t.Fragment,{children:[t.jsx(Ee,{}),t.jsxs(oi,{children:[t.jsxs(hi,{children:[t.jsx(Se,{width:o==="small"?112:240,children:C.merchant}),t.jsx(Se,{width:o==="small"?112:104,children:C.nextPaymentDate}),t.jsx(ui,{width:o==="small"?100:312,children:C.amount})]}),l[s].map((f,se)=>t.jsxs("div",{children:[se>0&&t.jsx(Ee,{}),t.jsxs(ai,{children:[t.jsxs(si,{windowSize:o,children:[t.jsx(Wt,{src:f.merchant.logo?.url?.href}),t.jsx(Ht,{windowSize:o,children:f.merchant.brandName??f.merchant.name})]}),t.jsx(ni,{windowSize:o,children:f.nextPaymentDate.format(Nt.visual.MMMDCommaYYYYformat)}),t.jsx(di,{windowSize:o,children:re("0,0.00",f.amount)})]},f.merchant.name)]},f.merchant.name))]})]})]},s)})]}),t.jsx(xi,{windowSize:o,children:C.letUsKnowWhy}),t.jsxs(gi,{isReasonTextFieldVisible:I==="other",children:[t.jsxs(Vt,{size:o,children:[t.jsx(Ye,{label:C.reasonLabel,htmlFor:F(k,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(Yt,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:C.reason.lost},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.fraud},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.not_needed},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.other},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},radioSize:"small"}})]})]}),I==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${L.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:F(k,"reason"),placeholder:M.reasonPlaceholder,className:"reason-text-field"}):I==null&&!c&&Z?t.jsx(_t,{children:M.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ke,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Fe(Ae),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:ve.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:ve.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Rt=i.div`
377
+ `,L={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{lockCard:M,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Ae="lockCardPage",E=(e,h)=>`${e}.${h}`,Ee=e=>`${e}_form`,{common:ve,dateFormat:Nt,cockpit:It}=U.getLocalizedStrings(),zi=({showLockCardDrawer:e,onCloseLockCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,lockCardFetchState:n,onRemoveCardClick:m,onConfirmClick:F,onDismissClick:N})=>{const o=he(),T=Me(),[$,B]=ae.useState(Object.fromEntries(Object.keys(l).map((s,g)=>[s,g===0]))),H=s=>{B(g=>g[s]?{...g,[s]:!1}:{...Object.fromEntries(Object.keys(g).map(x=>[x,!1])),[s]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[k]:{reason:void 0,reasonType:void 0}},values:{[k]:{reason:void 0,reasonType:void 0}}}),W=L.largeLabelWidth.value(o),{isValid:V,errors:O}=j.formState,G=s=>`${p[s].cardHolderUser?.firstName??""} ${p[s].cardHolderUser?.lastName??""}`,Z=ue(O,E(k,"reasonType")),I=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const s=j.getValues(),g={reason:s[k].reason,reasonType:s[k].reasonType};F(g)}}),u=Object.keys(l).length>1,R=Object.keys(l).length,D=Object.values(l).reduce((s,g)=>s+g.length,0),a=l[Object.keys(l)[0]].length>0;return t.jsx(Be,{anchor:"right",open:e,onClose:h,PaperProps:{style:{width:L.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:T.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(Rt,{windowSize:o,children:[t.jsxs(At,{windowSize:o,children:[t.jsx(Ot,{windowSize:o,children:t.jsx(Mt,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:u?M.lockCards:M.lockCard}):t.jsx(Xt,{children:u?M.lockCards:M.lockCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:Ee(Ae),onSubmit:Y,children:[t.jsxs(Kt,{children:[t.jsx(Gt,{windowSize:o,children:u?D>0?`${M.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",R.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?C.expense:C.expenses}.`:M.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",R.toString()):a?M.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?C.expense:C.expenses):M.firstCardNoRecurringExpenses}),u&&t.jsx(mi,{children:`${R} ${R===1?C.card:C.cards} ${C.selected}`}),Object.keys(l).map((s,g)=>{const x=l[s].length>0;return t.jsxs(Zt,{onClick:()=>x?H(s):void 0,isMoreThanOneCard:u,isLastCard:g===Object.keys(l).length-1,children:[t.jsxs(Qt,{windowSize:o,children:[t.jsxs(Ft,{windowSize:o,children:[t.jsxs(ei,{windowSize:o,children:[p[s].cardHolderUser?.photo!==void 0?t.jsx(Bt,{src:p[s].cardHolderUser?.photo.href,alt:It.userProfileAltText,onError:({currentTarget:f})=>{f.onerror=null,f.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:p[s].cardHolderUser?.firstName??"",lastName:p[s].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(Jt,{children:G(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:p[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&x&&($[s]?t.jsx(Oe,{}):t.jsx(_e,{}))]}),t.jsxs(ti,{windowSize:o,children:[p[s].cardName,t.jsx(or,{cardDetail:p[s],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs(ii,{windowSize:o,children:[t.jsxs(li,{children:[t.jsx(pi,{children:l[s].length}),t.jsx(ci,{children:C.recurringExpenses})]}),o!=="small"&&x&&($[s]?t.jsx(Oe,{}):t.jsx(_e,{}))]})]}),u&&t.jsx(Et,{children:t.jsx(Ve,{variant:"standard",title:ve.remove,children:t.jsx(Ut,{onClick:()=>m(s)})})}),$[s]&&x&&t.jsxs(t.Fragment,{children:[t.jsx(Fe,{}),t.jsxs(oi,{children:[t.jsxs(hi,{children:[t.jsx(Se,{width:o==="small"?112:240,children:C.merchant}),t.jsx(Se,{width:o==="small"?112:104,children:C.nextPaymentDate}),t.jsx(ui,{width:o==="small"?100:312,children:C.amount})]}),l[s].map((f,se)=>t.jsxs("div",{children:[se>0&&t.jsx(Fe,{}),t.jsxs(ai,{children:[t.jsxs(si,{windowSize:o,children:[t.jsx(Wt,{src:f.merchant.logo?.url?.href}),t.jsx(Ht,{windowSize:o,children:f.merchant.brandName??f.merchant.name})]}),t.jsx(ni,{windowSize:o,children:f.nextPaymentDate.format(Nt.visual.MMMDCommaYYYYformat)}),t.jsx(di,{windowSize:o,children:re("0,0.00",f.amount)})]},f.merchant.name)]},f.merchant.name))]})]})]},s)})]}),t.jsx(xi,{windowSize:o,children:C.letUsKnowWhy}),t.jsxs(gi,{isReasonTextFieldVisible:I==="other",children:[t.jsxs(Vt,{size:o,children:[t.jsx(Ye,{label:C.reasonLabel,htmlFor:E(k,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(Yt,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:C.reason.lost},style:{width:"auto"},radioField:{name:E(k,"reasonType"),id:`${E(k,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.fraud},style:{width:"auto"},radioField:{name:E(k,"reasonType"),id:`${E(k,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.not_needed},style:{width:"auto"},radioField:{name:E(k,"reasonType"),id:`${E(k,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.other},style:{width:"auto"},radioField:{name:E(k,"reasonType"),id:`${E(k,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},radioSize:"small"}})]})]}),I==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${L.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:E(k,"reason"),placeholder:M.reasonPlaceholder,className:"reason-text-field"}):I==null&&!c&&Z?t.jsx(_t,{children:M.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ke,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Ee(Ae),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:ve.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:ve.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Rt=i.div`
378
378
  display: flex;
379
379
  flex-direction: column;
380
380
  background-color: ${e=>e.theme.colors.grey4};
@@ -386,11 +386,11 @@ import{J as he,d as Me,a9 as me,y as d,ev as ue,V as t,fd as Be,ac as ge,ap as H
386
386
  padding-left: ${e=>`${L.containerPaddingLeft.valuePx(e.windowSize)}`};
387
387
  padding-right: ${e=>`${L.containerPaddingRight.valuePx(e.windowSize)}`};
388
388
  margin-bottom: auto;
389
- `,Ft=i.div`
389
+ `,Et=i.div`
390
390
  position: absolute;
391
391
  right: -${r.sp2};
392
392
  top: -${r.sp2};
393
- `,Et=i.div`
393
+ `,Ft=i.div`
394
394
  display: flex;
395
395
  justify-content: space-between;
396
396
  `,Ot=i.div`
@@ -548,7 +548,7 @@ import{J as he,d as Me,a9 as me,y as d,ev as ue,V as t,fd as Be,ac as ge,ap as H
548
548
  display: flex;
549
549
  justify-content: space-between;
550
550
  margin: ${r.sp2} ${r.sp0};
551
- `,Ee=i.div`
551
+ `,Fe=i.div`
552
552
  background-color: ${e=>e.theme.mode==="light"?e.theme.colors.background:X.neutralGrey3Dark};
553
553
  min-height: 1px;
554
554
  max-height: 1px;
@@ -1,4 +1,4 @@
1
- import{F as v,J as A,a9 as R,V as a,ac as W,cp as F,cN as U,y as m,cR as V,o as t,cr as z,u,ba as E,aU as J,bV as N}from"./index-6sX8sCRU.js";import{n as d}from"./mui-BKJrVh4W.js";import{tM as Y,bL as $,bh as S}from"./zeni-epic-state-DEUUJaZy.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]="79b7b675-2605-4eb4-b38a-61c60f5a2fef",e._sentryDebugIdIdentifier="sentry-dbid-79b7b675-2605-4eb4-b38a-61c60f5a2fef")}catch{}})();const s={labelWidth:new m(152,176,176),paddingBottom:new m(u[3],u[2]),width:new m(300,420,420),paddingRight:new m(u[4],u[3])},_=d.div`
1
+ import{F as v,J as A,a9 as R,V as a,ac as W,cp as F,cN as U,y as m,cR as V,o as t,cr as z,u,ba as E,aU as J,bV as N}from"./index-rJQoaAfw.js";import{n as d}from"./mui-KNfEk2A1.js";import{tM as Y,bL as $,bh as S}from"./zeni-epic-state-CiJSQQSe.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]="79b7b675-2605-4eb4-b38a-61c60f5a2fef",e._sentryDebugIdIdentifier="sentry-dbid-79b7b675-2605-4eb4-b38a-61c60f5a2fef")}catch{}})();const s={labelWidth:new m(152,176,176),paddingBottom:new m(u[3],u[2]),width:new m(300,420,420),paddingRight:new m(u[4],u[3])},_=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -0,0 +1 @@
1
+ import{V as b}from"./index-rJQoaAfw.js";import{f as l}from"./ACHDetailsPage-cAgIhKJs-bGTsqigs.js";import"./sentry-CGE1ab0x.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./zeni-epic-state-CiJSQQSe.js";import"./mui-KNfEk2A1.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";import"./BankAccountWarningSection--DkXEMWU-jfcY3ZKV.js";import"./MagicLinkTitleSection-C_Xng7ad-D4iutPsA.js";import"./BankAccountSection-C8G2PrLh-OgTv2VaB.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f54238cd-0918-4015-a88f-6fed42dbd7a9",t._sentryDebugIdIdentifier="sentry-dbid-f54238cd-0918-4015-a88f-6fed42dbd7a9")}catch{}})();const _=({magicLinkViewState:t,magicLinkBankAccountDetails:e,onSaveHandler:a,onACHDetailsUpdated:n,onFetchBankName:o,isDisabled:i,companyName:r})=>{const{fetchState:d,error:m,bankNameByRouting:c,bankAccountToCreate:s,fetchBankNameByRoutingStatus:f}=e,{currencySymbol:u,amount:p}=t;return b.jsx(l,{bankAccountToCreate:s,bankAccountCreationState:{fetchState:d,error:m},bankNameByRouting:c,fetchBankNameByRoutingStatus:f,onSaveHandler:a,onACHDetailsUpdated:n,onFetchBankName:o,isDisabled:i,companyName:r,isMagicLink:!0,currencySymbol:u,amount:p})};export{_ as default};
@@ -0,0 +1 @@
1
+ import{V as f}from"./index-rJQoaAfw.js";import{D as g}from"./DomesticWireDetailsPage-DHUzdqCs-CeJMtDxo.js";import"./sentry-CGE1ab0x.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./zeni-epic-state-CiJSQQSe.js";import"./mui-KNfEk2A1.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";import"./BankAccountSection-C8G2PrLh-OgTv2VaB.js";import"./MagicLinkTitleSection-C_Xng7ad-D4iutPsA.js";import"./BankAccountWarningSection--DkXEMWU-jfcY3ZKV.js";import"./MailingDetailsSection-Dmq45H_s-CjyySHTi.js";import"./LabeledAddressValueField-DyHTdGlm-CErilABA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="404051e4-b040-4ea4-813a-a523cc919312",e._sentryDebugIdIdentifier="sentry-dbid-404051e4-b040-4ea4-813a-a523cc919312")}catch{}})();const E=({magicLinkViewState:e,magicLinkBankAccountDetails:t,mailingAddressDetails:a,isDisabled:o,companyName:n,onSaveHandler:r,onWireDetailsUpdated:i,onFetchBankName:s,onAddressClick:d})=>{const{fetchState:m,error:c,bankNameByRouting:p,bankAccountToCreate:u,fetchBankNameByRoutingStatus:l}=t,{currencySymbol:y,amount:b}=e;return f.jsx(g,{bankAccountToCreate:u,bankAccountCreationState:{fetchState:m,error:c},bankNameByRouting:p,addressToEdit:a,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:o,onSaveHandler:r,onWireDetailsUpdated:i,onAddressClick:d,onFetchBankName:s,companyName:n,isMagicLink:!0,currencySymbol:y,amount:b})};export{E as default};
@@ -0,0 +1 @@
1
+ import{V as y}from"./index-rJQoaAfw.js";import{f as b}from"./InternationalWireSwiftDetailsPage-C1i-ujyZ-DIPsBga8.js";import"./sentry-CGE1ab0x.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./zeni-epic-state-CiJSQQSe.js";import"./mui-KNfEk2A1.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";import"./BankAccountWarningSection--DkXEMWU-jfcY3ZKV.js";import"./MailingDetailsSection-Dmq45H_s-CjyySHTi.js";import"./LabeledAddressValueField-DyHTdGlm-CErilABA.js";import"./MagicLinkTitleSection-C_Xng7ad-D4iutPsA.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="1d53ac26-0d30-4247-a1ba-79f9a15d51da",t._sentryDebugIdIdentifier="sentry-dbid-1d53ac26-0d30-4247-a1ba-79f9a15d51da")}catch{}})();const x=({magicLinkViewState:t,magicLinkBankAccountDetails:a,mailingAddressDetails:e,isDisabled:n,companyName:i,onSaveHandler:o,onBankDetailsUpdated:r,onFetchBankNameBySwift:d,onAddressClick:s})=>{const{internationalBankAccountCreateStatus:m,internationalBankAccountToCreate:c,fetchBankNameBySwiftStatus:f,bankNameBySwift:l}=a,{currencySymbol:p,amount:u}=t;return y.jsx(b,{bankAccountToCreate:c,bankAccountCreationState:m,bankNameBySwift:l,addressToEdit:e,addressType:"vendor_address",fetchBankNameBySwiftStatus:f,isDisabled:n,onSaveHandler:o,onBankDetailsUpdated:r,onAddressClick:s,onFetchBankNameBySwift:d,companyName:i,isMagicLink:!0,currencySymbol:p,amount:u})};export{x as default};
@@ -0,0 +1,31 @@
1
+ import{av as r,F as n,V as t,b5 as l,o as s,af as c,R as a,d}from"./index-rJQoaAfw.js";import{n as o}from"./mui-KNfEk2A1.js";import"./sentry-CGE1ab0x.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./zeni-epic-state-CiJSQQSe.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.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]="b398f1fd-1cf2-4a53-95c7-039a7e377cc6",e._sentryDebugIdIdentifier="sentry-dbid-b398f1fd-1cf2-4a53-95c7-039a7e377cc6")}catch{}})();const _=()=>{const[e]=r("Confetti"),i=n.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen;return e!=null?t.jsxs(p,{children:[t.jsx(l,{loop:!1,play:!0,segments:[100,299],animationData:e,style:{position:"absolute"},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}),t.jsx(u,{children:t.jsx(b,{})}),t.jsxs(f,{children:[t.jsx(m,{children:i.successTitle}),t.jsx(g,{children:i.successNote})]})]}):null},p=o.div`
2
+ z-index: 999;
3
+ height: 100vh;
4
+ width: 100%;
5
+ background-color: ${e=>e.theme.colors.background};
6
+ position: relative;
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ `,f=o.div`
11
+ display: flex;
12
+ flex-direction: column;
13
+ align-items: center;
14
+ justify-content: center;
15
+ opacity: 80%;
16
+ margin: 0 ${s.sp4};
17
+ `,m=o(a)`
18
+ color: ${e=>e.theme.colors.primary};
19
+ text-align: center;
20
+ `,g=o(d)`
21
+ color: ${e=>e.theme.colors.hero};
22
+ text-align: center;
23
+ `,u=o.div`
24
+ position: absolute;
25
+ top: ${s.sp5};
26
+ left: ${s.sp5};
27
+ background-color: ${e=>e.theme.colors.background};
28
+ `,b=o(c)`
29
+ color: ${e=>e.theme.colors.primary};
30
+ height: ${s.sp4};
31
+ `;export{_ as default};
@@ -1,4 +1,4 @@
1
- import{F as p,aY as d,V as n,R as f,o as t,al as C,p as m,ci as g}from"./index-6sX8sCRU.js";import{n as s}from"./mui-BKJrVh4W.js";import{a as l}from"./sentry-BsWDfhY_.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]="f005ff3e-932a-4853-ac79-ac483c5d21f5",e._sentryDebugIdIdentifier="sentry-dbid-f005ff3e-932a-4853-ac79-ac483c5d21f5")}catch{}})();const y=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.0257 -0.000342749C11.8221 -0.00677984 11.624 0.0667416 11.4727 0.204861C11.4727 0.204861 7.52114 3.7329 2.78947 3.7329C2.5801 3.73292 2.37931 3.81721 2.23125 3.96724C2.0832 4.11726 2.00002 4.32072 2 4.53288V11.0713C2 14.6328 3.62601 20.4933 11.6937 23.9366C11.7906 23.978 11.8948 23.9993 12 23.9993C12.1052 23.9993 12.2094 23.978 12.3063 23.9366C20.374 20.4933 22 14.6328 22 11.0713V4.53288C22 4.32072 21.9168 4.11726 21.7687 3.96724C21.6207 3.81721 21.4199 3.73292 21.2105 3.7329C16.4789 3.7329 12.5273 0.204861 12.5273 0.204861C12.3892 0.0787349 12.2115 0.00606537 12.0257 -0.000342749ZM12 5.33287C13.7421 5.33287 15.1579 6.7675 15.1579 8.53279V9.59943C16.0263 9.59943 16.7368 10.3194 16.7368 11.1994V15.466C16.7368 16.3459 16.0263 17.0659 15.1579 17.0659H8.84211C7.97368 17.0659 7.26316 16.3459 7.26316 15.466V11.1994C7.26316 10.3194 7.97368 9.59943 8.84211 9.59943V8.53279C8.84211 6.7675 10.2579 5.33287 12 5.33287ZM12 6.93283C11.1316 6.93283 10.4211 7.65281 10.4211 8.53279V9.59943H13.5789V8.53279C13.5789 7.65281 12.8684 6.93283 12 6.93283ZM12 11.7327C11.5812 11.7327 11.1796 11.9013 10.8835 12.2013C10.5874 12.5014 10.4211 12.9083 10.4211 13.3327C10.4211 13.757 10.5874 14.164 10.8835 14.464C11.1796 14.7641 11.5812 14.9326 12 14.9326C12.4188 14.9326 12.8204 14.7641 13.1165 14.464C13.4126 14.164 13.5789 13.757 13.5789 13.3327C13.5789 12.9083 13.4126 12.5014 13.1165 12.2013C12.8204 11.9013 12.4188 11.7327 12 11.7327Z",fill:"currentColor"})),j=({companyName:e,currencySymbol:a,amount:r})=>{const i=p.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen,o=r>0?` ${d("0,0.[00]",r,a)}`:"",c=i.title.replace(/<tenant_name>/,e)+o;return n.jsxs(n.Fragment,{children:[n.jsx(b,{children:c}),n.jsxs(w,{children:[i.description.replace(/<tenant_name>/,e),n.jsxs(h,{children:[n.jsx(u,{}),i.encrypted]})]})]})},h=s(g)`
1
+ import{F as p,aY as d,V as n,R as f,o as t,al as C,p as m,ci as g}from"./index-rJQoaAfw.js";import{n as s}from"./mui-KNfEk2A1.js";import{a as l}from"./sentry-CGE1ab0x.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]="f005ff3e-932a-4853-ac79-ac483c5d21f5",e._sentryDebugIdIdentifier="sentry-dbid-f005ff3e-932a-4853-ac79-ac483c5d21f5")}catch{}})();const y=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.0257 -0.000342749C11.8221 -0.00677984 11.624 0.0667416 11.4727 0.204861C11.4727 0.204861 7.52114 3.7329 2.78947 3.7329C2.5801 3.73292 2.37931 3.81721 2.23125 3.96724C2.0832 4.11726 2.00002 4.32072 2 4.53288V11.0713C2 14.6328 3.62601 20.4933 11.6937 23.9366C11.7906 23.978 11.8948 23.9993 12 23.9993C12.1052 23.9993 12.2094 23.978 12.3063 23.9366C20.374 20.4933 22 14.6328 22 11.0713V4.53288C22 4.32072 21.9168 4.11726 21.7687 3.96724C21.6207 3.81721 21.4199 3.73292 21.2105 3.7329C16.4789 3.7329 12.5273 0.204861 12.5273 0.204861C12.3892 0.0787349 12.2115 0.00606537 12.0257 -0.000342749ZM12 5.33287C13.7421 5.33287 15.1579 6.7675 15.1579 8.53279V9.59943C16.0263 9.59943 16.7368 10.3194 16.7368 11.1994V15.466C16.7368 16.3459 16.0263 17.0659 15.1579 17.0659H8.84211C7.97368 17.0659 7.26316 16.3459 7.26316 15.466V11.1994C7.26316 10.3194 7.97368 9.59943 8.84211 9.59943V8.53279C8.84211 6.7675 10.2579 5.33287 12 5.33287ZM12 6.93283C11.1316 6.93283 10.4211 7.65281 10.4211 8.53279V9.59943H13.5789V8.53279C13.5789 7.65281 12.8684 6.93283 12 6.93283ZM12 11.7327C11.5812 11.7327 11.1796 11.9013 10.8835 12.2013C10.5874 12.5014 10.4211 12.9083 10.4211 13.3327C10.4211 13.757 10.5874 14.164 10.8835 14.464C11.1796 14.7641 11.5812 14.9326 12 14.9326C12.4188 14.9326 12.8204 14.7641 13.1165 14.464C13.4126 14.164 13.5789 13.757 13.5789 13.3327C13.5789 12.9083 13.4126 12.5014 13.1165 12.2013C12.8204 11.9013 12.4188 11.7327 12 11.7327Z",fill:"currentColor"})),j=({companyName:e,currencySymbol:a,amount:r})=>{const i=p.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen,o=r>0?` ${d("0,0.[00]",r,a)}`:"",c=i.title.replace(/<tenant_name>/,e)+o;return n.jsxs(n.Fragment,{children:[n.jsx(b,{children:c}),n.jsxs(w,{children:[i.description.replace(/<tenant_name>/,e),n.jsxs(h,{children:[n.jsx(u,{}),i.encrypted]})]})]})},h=s(g)`
2
2
  display: flex;
3
3
  gap: ${t.sp1};
4
4
  color: ${m.successDark};
@@ -0,0 +1,21 @@
1
+ import{J as c,F as u,y as d,V as s,o as i,cM as h,b9 as $,u as o}from"./index-rJQoaAfw.js";import{n as g}from"./mui-KNfEk2A1.js";import{C as y}from"./LabeledAddressValueField-DyHTdGlm-CErilABA.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]="c18fb907-b668-4172-839f-15af00672f96",e._sentryDebugIdIdentifier="sentry-dbid-c18fb907-b668-4172-839f-15af00672f96")}catch{}})();const r={largeLabelWidth:new d(120,140,220),paddingTopBottom:new d(o[3],o[3]),marginRight:new d(o[3],o[8]),marginLeft:new d(o[3],o[6]),marginLeftTitle:new d(o[4],o[6])},D=({sectionId:e,addressToEdit:a,addressType:n,isDisabled:m,onAddressClick:p})=>{const l=c(),t=u.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,f=r.largeLabelWidth.value(l);return s.jsxs(s.Fragment,{children:[s.jsx(v,{size:l,children:t.addressDetailTitle}),s.jsx(x,{size:l,children:s.jsx(y,{isDisabled:m,label:{label:t.address,width:f},addressValueField:{name:w(e,"mailingAddress"),placeholder:h(t.address),defaultValue:a,registerOptions:{validate:b=>b!=null},onClick:()=>{p(n)}},additionalInfoLabel:t.additionalAddressLabel,showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${i.sp2} ${i.sp2} ${i.sp2} ${i.sp0}`},hasHoverBorder:!1})})]})},w=(e,a)=>`${e}.${a}`,x=g.div`
2
+ width: auto;
3
+ display: flex;
4
+ flex-direction: column;
5
+ background-color: ${e=>e.theme.colors.grey5};
6
+ border: 1px solid ${e=>e.theme.colors.grey3};
7
+ box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.dropShadowNormal}`};
8
+ border-radius: ${i.sp2};
9
+ margin-left: ${e=>r.marginLeft.valuePx(e.size)};
10
+ margin-right: ${e=>r.marginRight.valuePx(e.size)};
11
+ margin-top: ${e=>r.paddingTopBottom.valuePx(e.size)};
12
+ margin-bottom: ${e=>r.paddingTopBottom.valuePx(e.size)};
13
+ &:hover {
14
+ border: 1px solid ${e=>e.theme.colors.primary};
15
+ }
16
+ `,v=g($)`
17
+ color: ${e=>e.theme.colors.primary};
18
+ margin-bottom: ${i.sp3};
19
+ margin-top: ${i.sp5};
20
+ margin-left: ${e=>r.marginLeftTitle.valuePx(e.size)};
21
+ `;export{D as T};