@zeniai/web-cockpit-ui 1.15.53-qa → 1.15.54-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 (265) hide show
  1. package/dist/assets/{ACHDetailsPage-D2Xav-UW-_MS3Dbs8.js → ACHDetailsPage-D2Xav-UW-Qg9KmM1J.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DlTdGosv-D9K7xeED.js → AIPerformancePage-DlTdGosv-Cm3Mp4Ij.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-B8-8kUGD-tlC0Bi2R.js → AccountInfoPage-B8-8kUGD-BasVn8pp.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BS2TBUSE-CM1jjEAn.js → AccountInfoPageContent-BS2TBUSE-CLPMkGHT.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-aukulrV7-7E9I77o3.js → AccountLockedInfoModal-aukulrV7-B3RnytHh.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-kQJld6_N-BEIicJSf.js → AccountReconDetailsDrawerPage-kQJld6_N-BI4KDB6U.js} +3 -3
  7. package/dist/assets/{AccountRow-BiEYR4Y1-K1NDuQb6.js → AccountRow-BiEYR4Y1-C9bV-VJJ.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DBQnDPXQ-D2qv7EpN.js → AccountsPromoCardStack-DBQnDPXQ-BC7xAkRe.js} +6 -6
  9. package/dist/assets/{AddAddressForCardDrawer-DTnfk8K7-CatvMLJa.js → AddAddressForCardDrawer-DTnfk8K7-BreM9Gsb.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-C4EwdLZJ-Dbo52T5y.js → AddToWalletPage-C4EwdLZJ-VBws5aqc.js} +11 -11
  11. package/dist/assets/{AgingReportsPage-vAvkUfOS-DOtieopz.js → AgingReportsPage-vAvkUfOS-DFuQAC2I.js} +1 -1
  12. package/dist/assets/{AllUserItems-qrYg6Gdx-DGLMc4Ea.js → AllUserItems-qrYg6Gdx-B3OIKnJo.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-BRYQMwo2-Bx1uK2ID.js → ApAgingDetailPage-BRYQMwo2-CYZVbNYW.js} +1 -1
  14. package/dist/assets/{AppBasePage-DrE-W6d7-BLasnT39.js → AppBasePage-DrE-W6d7-CTdjVQGy.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-ATbZG_cu-B0p0REDy.js → AppDrawerContent-ATbZG_cu-Ddm9lxLJ.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-5MYC1I6k-29gx1_sx.js → ApprovalRulesSettingsPage-5MYC1I6k-Cc66UBZg.js} +6 -6
  17. package/dist/assets/{ArAgingChart-CuzG9AZY-sMoSQKQM.js → ArAgingChart-CuzG9AZY-zbnvDcY1.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-DwRkcLEu-BbH7utAd.js → ArAgingDetailPage-DwRkcLEu-DRFArK6d.js} +1 -1
  19. package/dist/assets/{AttachmentView-BrQRChzc-BPL0XTAx.js → AttachmentView-BrQRChzc-uiw2DPZW.js} +1 -1
  20. package/dist/assets/{BankAccountSection-hcKEMs80-BU43XCzu.js → BankAccountSection-hcKEMs80-B_7x03fQ.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CpxVDMSZ-Cd0VrLFE.js → BankAccountWarningSection-CpxVDMSZ-CzExELRC.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-Bdw1K00m-CTp0Zcax.js → BankConnectionsSettingsPage-Bdw1K00m-DccCEkIk.js} +1 -1
  23. package/dist/assets/{BillDetailPage-D0NLFZXA-BhmSttsy.js → BillDetailPage-D0NLFZXA-CnaW9EO9.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DkpCvYvo-DZUsIMzm.js → BillPayApprovalRuleDetailPage-DkpCvYvo-CT0Os_Zy.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BEqZD0GU-BNM0CL1U.js → BillPayApprovalRulesPage-BEqZD0GU-CdjJT8mp.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-BMcP4EU5-a_ssGz0T.js → BillPayPromoPage-BMcP4EU5-CfE2_TGE.js} +6 -6
  27. package/dist/assets/{BillPaySetUpPage-WdEdbf16-TkqOuwgT.js → BillPaySetUpPage-WdEdbf16-BMLL6j3q.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-GtRUqSZm-CrfYbiy6.js → BillingSettingsPage-GtRUqSZm-CJIarZd-.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DAUoo9pq-DNap9DWO.js → BillsBulkReviewDrawerPage-DAUoo9pq-DGXSx6AQ.js} +1 -1
  30. package/dist/assets/{BoxItem-CACRFWG2-BB7KWtP2.js → BoxItem-CACRFWG2-DUMZBWzz.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-9gZbBDL6-BPjZUS_X.js → BusinessVerificationPage-9gZbBDL6-BiZWXFlI.js} +2 -2
  32. package/dist/assets/{CardNumberSubText-C-oVdziK-DsJNwxlk.js → CardNumberSubText-C-oVdziK-CNdm0o_p.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BhFKSl4p-DfOrkK1f.js → CashbackDetailPage-BhFKSl4p-Dkaiw9E_.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-D8J6HINu-CNRhhw1b.js → ChargeCardDetailPage-D8J6HINu-BHr_Yylr.js} +26 -26
  35. package/dist/assets/{ChargeCardListPage-tdUKyHdz-CVk9IeAy.js → ChargeCardListPage-tdUKyHdz-BPbUlj_4.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-CByk3iqX-BZfvVsAb.js → ChargeCardListTable-CByk3iqX-BT6o3vDc.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-B8zRcrjo-Bm08l8mB.js → ChargeCardPaymentHistoryPage-B8zRcrjo-BwhMfhXy.js} +1 -1
  38. package/dist/assets/{ChargeCardPromoPage-C4cgx2gm-X_f8Uw2k.js → ChargeCardPromoPage-C4cgx2gm-CcfcnQop.js} +14 -14
  39. package/dist/assets/{ChargeCardSetupPage-DtwiTNKA-D_Cn2vhP.js → ChargeCardSetupPage-DtwiTNKA-ChAdhbCU.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-B0KPw52e-RetYFPUe.js → ChargeCardStatementsPage-B0KPw52e-CCgT_BKu.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-DKNAXI77-CREWt2i7.js → CheckDepositDrawerPage-DKNAXI77-C7lds4J9.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-Cq8bhaYC-C9u2JLOd.js → CollapsableReportTable-Cq8bhaYC-Ujx1GJOf.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-Rk0B5cB5-Diddq3D6.js → CompanyOfficerDetailsSection-Rk0B5cB5-C0IZ5szF.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-CHaKk74P-CcDYfW2A.js → CompanyPassportCard-CHaKk74P-BVtbTVag.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-DXWXFFKM-6Dbnjn3d.js → CompanyPassportPage-DXWXFFKM-D9MC_Bo-.js} +1 -1
  46. package/dist/assets/{CompleteProfile-ChaWsK6t-B97QNuLL.js → CompleteProfile-ChaWsK6t-bu0jnc14.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-CdB5fRMt-CoqJmaBB.js → ConfettiBurst-CdB5fRMt-CIzjwHnv.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-2nYINCi5.js → ConstrainedInnerElement-BeIpAPjB-Cv6zV673.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-C_8Jqubo-DZRxOCTJ.js → CreateOrEditVendorPage-C_8Jqubo-CWou3-7a.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-lOjOtk28-D4Z9YuFI.js → CreditCardPaymentDrawerPage-lOjOtk28-tK9qUV-H.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-BDqU4HVy-x6dsjsw1.js → CurrencySelectField-BDqU4HVy-DwEarU92.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-DO6NCakm-jfd_UipR.js → CustomerOnboardingActivationPage-DO6NCakm-t-JLGbfV.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-BRE4lysv.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-D4L9yqKc.js → CustomerOnboardingDetailPageSkeleton-BYXyF1CQ-D-s8t6ri.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CbG5WshV-C0cIUA33.js → CustomerOnboardingNoStepsPage-CbG5WshV-gJc5SJgc.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-DyVyf8oK-P_Vvk1ga.js → CustomerOnboardingPage-DyVyf8oK-_9gyCcxN.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-1F3JfCRp-CjetVE6h.js → CustomerOnboardingProductSuitePage-1F3JfCRp-C_uN4HgV.js} +1 -1
  58. package/dist/assets/{Dashboard-Csggwob0-XGLjB31v.js → Dashboard-Csggwob0-CkKOxFPp.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-DFIdi_I0-DOBj8BM6.js → DashboardReportPage-DFIdi_I0-B1mTyLry.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-C3Ovv-ob-BHKaXSba.js → DashboardSidebarBackgroundAnimation-C3Ovv-ob-B5OP-B4I.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-CZ7v1T4S-CYNI8YhK.js → DepositAccTransactionItem-CZ7v1T4S-CQvhxMi2.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionListPage-FldPGX6K-CZ6j7jLe.js → DepositAccTransactionListPage-FldPGX6K-C_uA3w3F.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-C--eZ-UG-BVeDTM8b.js → DomesticWireDetailsPage-C--eZ-UG-Mxsf66Bz.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-4f9deyJS-EICSDMoH.js → DownloadOverlay-4f9deyJS-BSI2hAvk.js} +1 -1
  65. package/dist/assets/{DrawerPage-roO3xvRT-M0GBNoWH.js → DrawerPage-roO3xvRT-CGGhEL5F.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-pi5RclAj-CKnQT0Ux.js → EditPeoplePage-pi5RclAj-pfYPT_VC.js} +3 -3
  67. package/dist/assets/{EditReimbursementDetailPage-CIUcImns-CVxoM56o.js → EditReimbursementDetailPage-CIUcImns-DcoVubyD.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-OTKTVNMD-DMHVkS2a.js → EntityDetailPage-OTKTVNMD-adwqIyWQ.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-fBL4TZpT-BFju8nQm.js → EntitySummarySection-fBL4TZpT-D7wkgp-a.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CnhNINCc-CxNxg9dU.js → ExpenseAutomationOverviewPage-CnhNINCc-Dli7RRLy.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-BDLCJbFw-KqztxljN.js → ExpenseAutomationPage-BDLCJbFw-1KO3CMej.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-c8oTCnBR-B-HoySFx.js → ExpressPayPage-c8oTCnBR-BXmzf5Uy.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-DkiAajs2-BJcd_edm.js → FeaturePreviewPage-DkiAajs2-IydRKNFw.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-GaWu1kt9-Dac8UX-h.js → FollowStepsSection-GaWu1kt9-BVHL41Jb.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-DEzj0RVG-BWMVJIHc.js → GlobalReviewListPage-DEzj0RVG-nBOLLb61.js} +1 -1
  76. package/dist/assets/{InformationCardStack-dMFbHUWM-G7a-UMJS.js → InformationCardStack-dMFbHUWM-C2wRbB6p.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-BlXkyuyz-7zwNqnyc.js → InsightsCardStack-BlXkyuyz-B4OX5_7l.js} +1 -1
  78. package/dist/assets/{InsightsSection-D-oCmrir-zwdAlcVd.js → InsightsSection-D-oCmrir-BSx2VeKU.js} +1 -1
  79. package/dist/assets/{IntegrationsSettingsPage-D-hfghuq-BVcofzzj.js → IntegrationsSettingsPage-D-hfghuq-Bp-0H88m.js} +1 -1
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DxdKE300-BAhiCZtA.js → InternationalWireSwiftDetailsPage-DxdKE300-DHFTD16I.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-CkSmhOrS-DEyLBA5A.js → InternationalWireVerificationPage-CkSmhOrS-CVsCnKKl.js} +1 -1
  82. package/dist/assets/{InviteFormPage-BCdalqtP-DvWknn44.js → InviteFormPage-BCdalqtP-DKh7L2Sm.js} +1 -1
  83. package/dist/assets/{InvitePageListView-B88FW48q-Bm3QF_Yx.js → InvitePageListView-B88FW48q-CXkqQYlA.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-Z-2L7lWc-DFev5HvB.js → InvitePeoplePage-Z-2L7lWc-CK4VlvZI.js} +4 -4
  85. package/dist/assets/{InvoiceUploadSection-C8hytmay-B9oVp1v8.js → InvoiceUploadSection-C8hytmay-BLOWx67x.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-B6wmvbEr-Bl83LR42.js → IssueChargeCardPage-B6wmvbEr-DXeeJUlY.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-CQrDCgNs-ngfVs4C6.js → LabeledAddressValue-CQrDCgNs-pzINZxmu.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-BoHS44YO-Bob3pkds.js → LabeledAddressValueField-BoHS44YO-DTrVpXEk.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-BsFqjCpn-CKjTDhsz.js → LabeledControlledCheckBoxField-BsFqjCpn-D3fNKAIX.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-D1fVDYR_-pKkP60Kn.js → LabeledCountryMultiSelectField-D1fVDYR_-CyehacHQ.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-Bhka-Faj-CCFbRNWN.js → LabeledCreatableSingleSelectField-Bhka-Faj-j-LA5cB8.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-CnRk5aKZ-CWrIkusZ.js → LabeledDocumentField-CnRk5aKZ-BLPH0bCm.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-ChgtJqPr-BeTvOZvm.js → LabeledDropDownFormattedTextField-ChgtJqPr-iLOroUl9.js} +1 -1
  94. package/dist/assets/{LabeledText-2EDpuXZ4-BfAHyQUy.js → LabeledText-2EDpuXZ4-D9Lc7z1n.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-Ca3kyKh2.js → LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-BU13Lrvj.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CpH0eDWO-CWb7Poua.js → LabeledZeniRolesDropDownField-CpH0eDWO-Cxup6JwI.js} +8 -8
  97. package/dist/assets/{LinkJETransactionPage-BhV2MnCY-B93FExBV.js → LinkJETransactionPage-BhV2MnCY-DFTRCWhL.js} +1 -1
  98. package/dist/assets/{LockCardPage-CHv1xi2J-D9zH1CYi.js → LockCardPage-CHv1xi2J-BWG37HMS.js} +6 -6
  99. package/dist/assets/{LowBalancePopup-Cb55PGLc-DJaQ2d7B.js → LowBalancePopup-Cb55PGLc-C8NZMVGO.js} +6 -6
  100. package/dist/assets/{MagicLinkACHDetailsPage-Dnp01hnF-DLEv4Hck.js → MagicLinkACHDetailsPage-Dnp01hnF-4f89SlZa.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-B36rsikS-ByxlZ4Q4.js → MagicLinkDomesticWireDetailsPage-B36rsikS-LLMqNHY7.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-Zo4oNZez-DuN7y5fH.js → MagicLinkInternationalWireDetailsPage-Zo4oNZez-DDiVUQRg.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-09NLbjFG-ZnMng-Jj.js → MagicLinkSuccessPage-09NLbjFG-CW-X5RMu.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-BA-i6vzA-_69P063R.js → MagicLinkTitleSection-BA-i6vzA-CYBavCDH.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-EwtoQ2TZ-ifrSOG66.js → MailingDetailsSection-EwtoQ2TZ-LI0y4mBJ.js} +1 -1
  106. package/dist/assets/{MyBankConnectionsSettingsPage-Aer6AWxY-BE-Q6nRH.js → MyBankConnectionsSettingsPage-Aer6AWxY-CuyPBRvz.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-Ddy4bAEY-Di4ZO52Y.js → MyPendingActivationChargeCardListPage-Ddy4bAEY-CWM80C9z.js} +2 -2
  108. package/dist/assets/{MyProfileSettingsPage-DMz-6h9F-CuhazKF_.js → MyProfileSettingsPage-DMz-6h9F-CeEAIQ0T.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-D8WNahg--kgpFMbZJ.js → NavBarWithPicker-D8WNahg--ZQJt0jhX.js} +1 -1
  110. package/dist/assets/{NavigationArrow-kQWS5Pzb-Bn2gzJsz.js → NavigationArrow-kQWS5Pzb-Bmz73CyZ.js} +1 -1
  111. package/dist/assets/{NavigationDots-BQb_Fodq-C676OOhh.js → NavigationDots-BQb_Fodq-DGHg-XPw.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-z86XZorn-BI7ZaiJs.js → NewGlobalMerchantPage-z86XZorn-72MLj5sA.js} +1 -1
  113. package/dist/assets/{NoDataChart-CyYJ6icu-UFnH1bQE.js → NoDataChart-CyYJ6icu-BGrJ0dxK.js} +1 -1
  114. package/dist/assets/{NoDataTable-DVe7sQhD-ugfGxCQf.js → NoDataTable-DVe7sQhD-D01UQalg.js} +1 -1
  115. package/dist/assets/{NotFoundPage-B1XCmhSe-DebnEALd.js → NotFoundPage-B1XCmhSe-ClJov-vk.js} +1 -1
  116. package/dist/assets/{NotificationSettingsPage-BaN20EGV-CxWiSCH2.js → NotificationSettingsPage-BaN20EGV-CRbziqST.js} +12 -12
  117. package/dist/assets/{NotificationsListConfig-BOW_TmPC-Cu2orVJH.js → NotificationsListConfig-BOW_TmPC-D3PYkPzl.js} +1 -1
  118. package/dist/assets/{NotificationsPage-C9efAgjo-bD9M0hhw.js → NotificationsPage-C9efAgjo-RjPyyT0q.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-DXeBU3-z-Bu6l0TiB.js → OpExByVendorPage-DXeBU3-z-DOskH6tO.js} +1 -1
  120. package/dist/assets/{OverlayContainerPage-D4QU0p4o-Dxo8qiAq.js → OverlayContainerPage-D4QU0p4o-DfcYfj9I.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-CXtJhnA_-Vc_lT7Bs.js → PandLWithForecastPage-CXtJhnA_-DiIco4Yi.js} +2 -2
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-Deb_ngk6-kTC9f4zM.js → PaymentAccountSetupBillingAddressSection-Deb_ngk6-VwXepOfB.js} +1 -1
  123. package/dist/assets/{PeoplePage-DXC2CtOt-jglRXuAU.js → PeoplePage-DXC2CtOt-Bdp4QywP.js} +13 -13
  124. package/dist/assets/{Preview-DLSswg8i.js → Preview-C_scJ0LA.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-ufZlh7Rx-QxXMcnzU.js → ProductsCarousel-ufZlh7Rx-CVm981GO.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-D2UbhBhT-CKuo_xyF.js → PromoBaseCards-D2UbhBhT-uOFnp-4I.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-BrQ71F06-BxGAQN3l.js → QBOConnectionDialog-BrQ71F06-AzQWwAtU.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-EOFscEW--caOZ4mOT.js → QBOSetupSection-EOFscEW--NVc0ejxZ.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-C-HPI4Ng-HGqK4_6T.js → ReimbursementApprovalRuleDetailPage-C-HPI4Ng-D-iB_52F.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-CMpYn5y_-BDImgN8u.js → ReimbursementApprovalRulesPage-CMpYn5y_-ClImBwJb.js} +1 -1
  131. package/dist/assets/{ReimbursementDetailPage-CfmICHZb-DCELL3Jj.js → ReimbursementDetailPage-CfmICHZb-elcZOrMn.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-DXTAY8c7-DVYIUiIc.js → ReimbursementPromoPage-DXTAY8c7-7C3gCnRu.js} +4 -4
  133. package/dist/assets/{ReimbursementSetUpPage-KrGPXTCb-DljBAjp7.js → ReimbursementSetUpPage-KrGPXTCb-DQ-XytVS.js} +1 -1
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-l2mYNEKn-Br80Kz3u.js → ReimbursementsBulkReviewDrawerPage-l2mYNEKn-CZfr1E1q.js} +1 -1
  135. package/dist/assets/{ReloadCard-vAhL7B8U-Cgus7erx.js → ReloadCard-vAhL7B8U-C7D11pQg.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-Y97ney3W-D7F8Figc.js → ReportTableViewSelector-Y97ney3W-jWWgIP_J.js} +1 -1
  137. package/dist/assets/{ReportsPage-DKM0gVzR-nmSyduXP.js → ReportsPage-DKM0gVzR-sNMocqQY.js} +1 -1
  138. package/dist/assets/{RevenueChart-BEjDS1u4-CSVYKV0y.js → RevenueChart-BEjDS1u4-C3yac_pt.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-BlQLrN9z-BnfRtnTo.js → ReviewDetailsPage-BlQLrN9z-Dh8B7Ysm.js} +6 -6
  140. package/dist/assets/{ReviewOverlay-Bn3TFqfi-fhFFeQ61.js → ReviewOverlay-Bn3TFqfi-D6E2loSx.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-DhBFvJea-gODf7-hE.js → RoleWithToolTip-DhBFvJea-Dgz4vQkX.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BMkFjf9Y-k5-sEVqH.js → ScheduleDetailsFixedAssetsPage-BMkFjf9Y-DwpSWYLV.js} +3 -3
  143. package/dist/assets/{ScheduleDetailsPage-BP0wdtoP-CAXsoeUv.js → ScheduleDetailsPage-BP0wdtoP-CjgxsIYK.js} +3 -3
  144. package/dist/assets/{ScheduleSequenceTable-D-rZ4ftr-kGWch2W0.js → ScheduleSequenceTable-D-rZ4ftr-aitk-8Mk.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-BrIM8A1p.js → ScreenRoutes-BLEdjKb7.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-CoVrSSYL-BirtNl9h.js → SetUpAccountSection-CoVrSSYL-DiujdYoE.js} +1 -1
  147. package/dist/assets/{SignIn-BoAejo7r-DhkZ2CuU.js → SignIn-BoAejo7r-PuJlj8Mq.js} +6 -6
  148. package/dist/assets/{SignInScreen-q7f54phH.js → SignInScreen-B_VXRHI7.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-D3eISFuA-CJycx0Zc.js → SpendManagementListViewPage-D3eISFuA-COuHisVc.js} +7 -7
  150. package/dist/assets/{SpendManagementPerTabPage-BWDjZyLp-BUgMzHX3.js → SpendManagementPerTabPage-BWDjZyLp-RbFC5Do1.js} +34 -34
  151. package/dist/assets/{SpendManagementSection-D8rBpC-y-Lugdskyo.js → SpendManagementSection-D8rBpC-y-DQQhx2Xa.js} +7 -7
  152. package/dist/assets/{StatementItem-Cu6dlAsl-DerHhv3i.js → StatementItem-Cu6dlAsl-BerGXuRv.js} +1 -1
  153. package/dist/assets/{StatementsPage-DiY2BOcu-DFQww83X.js → StatementsPage-DiY2BOcu-BxFY6ioB.js} +1 -1
  154. package/dist/assets/{StatusSwitcher-B9MARTyR-Bd4MBQeV.js → StatusSwitcher-B9MARTyR-DmEculcy.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-C3rtSwro-BFXLgQG1.js → SubTabSwitcher-C3rtSwro-CD-oYAPp.js} +1 -1
  156. package/dist/assets/{SummaryCard-CShVbqhj-g8V_c36y.js → SummaryCard-CShVbqhj-C6jVeTIc.js} +1 -1
  157. package/dist/assets/{TaskManagementPage-RVS8nv0n-sq8H_E-9.js → TaskManagementPage-RVS8nv0n-COwnCLsL.js} +13 -13
  158. package/dist/assets/{TimeRangeSwitcher-DFnX6_WT-BmsC8wpz.js → TimeRangeSwitcher-DFnX6_WT-BAyfgggy.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcher-CW08yYgo-Byy81mMi.js → TimeframeSwitcher-CW08yYgo-8vdqQbDR.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-DJOCWqpZ-BP_yz81G.js → TimeframeSwitcherWithToggle-DJOCWqpZ-utPOZmzZ.js} +1 -1
  161. package/dist/assets/{TopExCard-dI_WEGWb-DHrASS4Q.js → TopExCard-dI_WEGWb-DQ0a1B-p.js} +1 -1
  162. package/dist/assets/{TopExDetailPage-BWy5E8Lp-DosxAD6z.js → TopExDetailPage-BWy5E8Lp-CH3uXpM1.js} +1 -1
  163. package/dist/assets/{TransactionActivityLogPage-DjhEIUYm-CTSUyijq.js → TransactionActivityLogPage-DjhEIUYm-B9IfdM5q.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-CuxqQd8U-Dt1rWnVY.js → TransactionDetailPage-CuxqQd8U-C7HaHQgc.js} +1 -1
  165. package/dist/assets/{TransactionList-80KjM8Kg-BHuPkwXo.js → TransactionList-80KjM8Kg-yWcw7Xvy.js} +1 -1
  166. package/dist/assets/{TransactionListBig-DWQXH4ID-B3DGuMye.js → TransactionListBig-DWQXH4ID-DwDp-KdB.js} +4 -4
  167. package/dist/assets/{TransactionListPage-DC08rCC9-Bhjoj0pu.js → TransactionListPage-DC08rCC9-D3Cy0p7j.js} +1 -1
  168. package/dist/assets/{TransactionVendorDetailPage-CzfJ5b_3-DueE_9zr.js → TransactionVendorDetailPage-CzfJ5b_3-BoWlXDih.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-6z-MoZZP-BlfKQ7hb.js → TransferDrawerPage-6z-MoZZP-Bu91SQjn.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-CF_ter0o-BgOTd3mX.js → TreasuryOverviewPage-CF_ter0o-C4V908yo.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-Do-PTcjI-hteu9yQt.js → TreasuryPromoPage-Do-PTcjI-BhpVWXqG.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-l_HC4zsb-CTgkSfj0.js → TreasuryStatementsPage-l_HC4zsb-OlwbyynI.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-B8YxWytK-D64UM-OT.js → TreasuryTaxLetterPage-B8YxWytK-D7CPKEkg.js} +1 -1
  174. package/dist/assets/{TrendChart-C6B61CAm-bXXragiZ.js → TrendChart-C6B61CAm-siwog8qJ.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-Bp3vhaPa-ZS_RG_DW.js → TrendWithTransactions-Bp3vhaPa-e76VZDlM.js} +1 -1
  176. package/dist/assets/{UncategorizedAccountsMappingPage-cbFqKAv4-tfpQdIjx.js → UncategorizedAccountsMappingPage-cbFqKAv4-_N19TXgF.js} +6 -6
  177. package/dist/assets/{UnitIntegrationPage-DZ0ZpE5p-Bjt3mIfH.js → UnitIntegrationPage-DZ0ZpE5p-C8dxwLt9.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-BKY6hK51-BjoPNevN.js → UploadAdditionalDocumentOverlay-BKY6hK51-y-fz9noY.js} +4 -4
  179. package/dist/assets/{Vendor2FAPopup-DezpDfp8-RFvPiWDa.js → Vendor2FAPopup-DezpDfp8-wvjmetSL.js} +1 -1
  180. package/dist/assets/{VendorACHDetailsPage-C8TWKYfc-BrQZEG-V.js → VendorACHDetailsPage-C8TWKYfc-CLh_He1D.js} +1 -1
  181. package/dist/assets/{VendorDetailPage-C4g_Gfsl-cfzvYJ9k.js → VendorDetailPage-C4g_Gfsl-gAl6AQiQ.js} +9 -9
  182. package/dist/assets/{VendorDomesticWireDetailsPage-BhJQ-Vmn-DAqfYhFQ.js → VendorDomesticWireDetailsPage-BhJQ-Vmn-CXw-nX5E.js} +1 -1
  183. package/dist/assets/{VendorFiling1099EditablePage-Ckt2MiVN-D079pRbJ.js → VendorFiling1099EditablePage-Ckt2MiVN-BwmhSJwI.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-CIKRaTax-ruTov0yD.js → VendorFirstReviewPage-CIKRaTax-CoRAyvQo.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-Dz8mMD8d-BvzGzcpv.js → VendorInternationalWireDetailsPage-Dz8mMD8d-DyxRi8OU.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-XcV7Ot44-BWIFx2bC.js → VendorInternationalWireSwiftDetailsPage-XcV7Ot44-Br-V9Ms7.js} +1 -1
  187. package/dist/assets/{VendorsAccountsSection-BT-RADSV-CKh-nWLp.js → VendorsAccountsSection-BT-RADSV-Cggl-rQg.js} +1 -1
  188. package/dist/assets/{VerifyDevice-Cxc9CVMi-rFyBi4Y7.js → VerifyDevice-Cxc9CVMi-BfmCJlPA.js} +1 -1
  189. package/dist/assets/{VideoPlayer-9UkKMhGy-DLo10Ipx.js → VideoPlayer-9UkKMhGy-B3TbligX.js} +2 -2
  190. package/dist/assets/{VideoPopup-rfiYmtio-DqZb38Wf.js → VideoPopup-rfiYmtio-DTzyP3EH.js} +1 -1
  191. package/dist/assets/{WarningsDrawerPage-DrUA4asI-yVycA0Ua.js → WarningsDrawerPage-DrUA4asI-CGOd9KLu.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-K016HgQt-CH_u5tmb.js → ZeniAccountDetailPage-K016HgQt-CHQYyMvD.js} +7 -7
  193. package/dist/assets/{ZeniAccountListViewPage-1oZZynB1-BeTnaRlR.js → ZeniAccountListViewPage-1oZZynB1-B8wIFo45.js} +7 -7
  194. package/dist/assets/{ZeniAccountNavBarPieces-C6Oicpue-Crw_LmUH.js → ZeniAccountNavBarPieces-C6Oicpue-CWA-3mz6.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-BCgys-YM-oDx3xq8Z.js → ZeniAccountPromoPage-BCgys-YM-CDo3p8GM.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-BubBgkoa-BUflxDEA.js → ZeniAccountSetupPage-BubBgkoa-pxnHtdbo.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-BxIwmms--C8fQjezy.js → ZeniCopyright-BxIwmms--CI9yS63f.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-DVJ0puXA-DflfdXEj.js → ZeniTransferAmountSlider-DVJ0puXA-CBa-WxKr.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-DrzGEZUO.js → add-to-wallet-DgdBD8_G-UcbWekjH.js} +1 -1
  200. package/dist/assets/{analytics-BB7e_ruj.js → analytics-T3rNNQ2m.js} +1 -1
  201. package/dist/assets/{analyticsHelper-CT5zOInj-CLTaCUMK.js → analyticsHelper-CT5zOInj-DoqyoFKO.js} +1 -1
  202. package/dist/assets/{analyticsHelper--QOmPWcZ.js → analyticsHelper-Dwo-ncj8.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-DYD4P8U3.js → arrow-south-east-round-PEovUgvH-olgOFIka.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-Cx19s1IV.js → auto-transfer-rule-mbafm5D3-OAp9gfx6.js} +1 -1
  205. package/dist/assets/{chartTypes-Ddw_3-6f-Csaj7V69.js → chartTypes-Ddw_3-6f-CfWoV01X.js} +1 -1
  206. package/dist/assets/{commonDimensions-ClmbdehE-C4kq5775.js → commonDimensions-ClmbdehE-CI63aI0W.js} +1 -1
  207. package/dist/assets/{commonTypes-B-foaEwJ-CFGkbWWX.js → commonTypes-B-foaEwJ-DW3G1NS6.js} +1 -1
  208. package/dist/assets/{constants-WZhEa7dG.js → constants-C6THrgLW.js} +1 -1
  209. package/dist/assets/{core-ynj-rcGI.js → core-Cgphrdqi.js} +1 -1
  210. package/dist/assets/{dash.all.min-CbTBF1nm.js → dash.all.min-CO8eAuLp.js} +1 -1
  211. package/dist/assets/{detailCommon-Cpgf9GLg-BT_EhNYu.js → detailCommon-Cpgf9GLg-CZXpr6Ou.js} +1 -1
  212. package/dist/assets/{downloadPdf-DfRYmfsd-B_VLkj-_.js → downloadPdf-DfRYmfsd-BofmxfcJ.js} +1 -1
  213. package/dist/assets/{empty-ghkwToUg.js → empty-BwSS8C26.js} +1 -1
  214. package/dist/assets/{empty-DOnnW6ps.js → empty-C8tkeh8X.js} +1 -1
  215. package/dist/assets/{epic-n7OsXwIY.js → epic-25jnn6zT.js} +2 -2
  216. package/dist/assets/{gift-box-Cmt9OgIZ-IkS_PRlU.js → gift-box-Cmt9OgIZ-DbPQXtKu.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-B-vjfNa1.js → graphic-no-data-l-DU4J8fDt-BCQF8DO3.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-C-Lgg2zB.js → graphic-no-data-net-burn-l-CzmycA0m-C6bp_xvO.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-B3_wZwig.js → handshake-BPg58FML-CXWtMOZc.js} +1 -1
  220. package/dist/assets/{helper-DP3YY99s-Ba64ClTl.js → helper-DP3YY99s-D-PL5wk1.js} +1 -1
  221. package/dist/assets/{index-BTLnMSBu.js → index--_rdliV7.js} +1 -1
  222. package/dist/assets/{index-BjiMkPNd.js → index-Bh4f2Teb.js} +1 -1
  223. package/dist/assets/{index-WBPDS3-Z.js → index-CDUn2Emk.js} +1 -1
  224. package/dist/assets/{index-BkgFwDrN.js → index-CE4a3GDT.js} +7 -7
  225. package/dist/assets/{index-Ct14P_QF.js → index-C_6Z7efJ.js} +1 -1
  226. package/dist/assets/{index-BEy87smT.js → index-D3PatgcD.js} +1 -1
  227. package/dist/assets/{index-v6BtqX9b.js → index-DMJM1J8R.js} +1 -1
  228. package/dist/assets/{lexical-f2bgmP7p.js → lexical-B-NT_OOU.js} +1 -1
  229. package/dist/assets/{liveblocks-Fce3U47w.js → liveblocks-mJOf9rAw.js} +1 -1
  230. package/dist/assets/{lottie-DfQwbfZe.js → lottie-CH7yL4lR.js} +1 -1
  231. package/dist/assets/{mapLoadingInProgressToTreeNode-C0YIUOnb-pGmyZ5k8.js → mapLoadingInProgressToTreeNode-C0YIUOnb-DtMCCLe4.js} +1 -1
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-QJI_OYzu-BcM0_MMx.js → mapSectionWithAcOnlyToTreeNode-QJI_OYzu-Bc99xQK8.js} +1 -1
  233. package/dist/assets/{mapSpacerToTreeNode-DKDsz0vw-DrfhqLUC.js → mapSpacerToTreeNode-DKDsz0vw-C00tHB1T.js} +1 -1
  234. package/dist/assets/{mapTimeframeBalancesToTreeNode-DqDJAeAj-D90hoIRT.js → mapTimeframeBalancesToTreeNode-DqDJAeAj-Bb2v0uWi.js} +1 -1
  235. package/dist/assets/{mapTimeframeBalancesToTreeNode-J3b1nb_T-DJ4YBp4i.js → mapTimeframeBalancesToTreeNode-J3b1nb_T-C60OkAbY.js} +1 -1
  236. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-Dn_bFC9p.js → mapTimeframeHeaderLoadingInProgressToTreeNode-Dg4cktKO-COXJNYz6.js} +1 -1
  237. package/dist/assets/{mui-B8eJ9Mf-.js → mui-4aI62okM.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-DHzFrl8D.js → page-detail-CWX5S47F-DNNHDs11.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-CiHp6UKy.js → panelSelectedMixin-CzfD5-Zs-C5j9Taxu.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-DJRkcPvg.js → radio-default-CiSgisfh-DBK2UBgp.js} +1 -1
  241. package/dist/assets/{react-CFlKsGqS.js → react-14tgf1ik.js} +1 -1
  242. package/dist/assets/{react-KPbq6YvL.js → react-B4F47UeE.js} +1 -1
  243. package/dist/assets/{react-DGuEmiZJ.js → react-Bx8qq35O.js} +1 -1
  244. package/dist/assets/{react-X8-6TOPN.js → react-BxtZMNkY.js} +2 -2
  245. package/dist/assets/{react-1AASI5B3.js → react-D2-N_PY-.js} +1 -1
  246. package/dist/assets/{react-dxyEk0M0.js → react-pcnMIbV9.js} +1 -1
  247. package/dist/assets/{react-BmpaTIjZ.js → react-tQd3sk8G.js} +1 -1
  248. package/dist/assets/{react-DTkKR0hX.js → react-uhreOVUJ.js} +1 -1
  249. package/dist/assets/{recharts-DcXbW3wD.js → recharts-D-YAfDZj.js} +1 -1
  250. package/dist/assets/{sentry-DG5QSuAU.js → sentry-wpLc0w9b.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-CPsw4sab.js → shield-DOlUxcFf-DeyPctcI.js} +1 -1
  252. package/dist/assets/{toCOABalancesWithID-AzKAZ-Cv-CCwxF2fh.js → toCOABalancesWithID-AzKAZ-Cv-CQOX84Xq.js} +1 -1
  253. package/dist/assets/toChartData-BEjMhb7--hwFvZNwn.js +1 -0
  254. package/dist/assets/{uploadAttachment-DUpHzqMe-CZ5MQPFU.js → uploadAttachment-DUpHzqMe-DfPSBMVO.js} +1 -1
  255. package/dist/assets/{uploadReceipts-Dge0cNF1-9bGZSaw_.js → uploadReceipts-Dge0cNF1-CG_JuBSh.js} +1 -1
  256. package/dist/assets/{url-D76wlScu.js → url-cU6drSVy.js} +1 -1
  257. package/dist/assets/{url-bzK3lhiJ.js → url-vFuKL29u.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-DXAzB75a.js → useLongPress-GCK2COYQ-DYzZ4MNW.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-lgGVTPyO.js → usp-line-BBd1wKwW-Sh2YvFJY.js} +1 -1
  260. package/dist/assets/{utils-BaLrPeRI.js → utils-DCLZL4US.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-DJMVsfEo.js → zeni-epic-state-BwFYSQY8.js} +6 -6
  262. package/dist/index.html +1 -1
  263. package/package.json +2 -2
  264. package/dist/assets/CustomerOnboardingContainerPage-CckCX7Vt-CfrOyVnL.js +0 -1
  265. package/dist/assets/toChartData-BEjMhb7--DYoES1lW.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as s1,J as d1,F as K,V as l,T as q,o,p as d,y as E,gD as L1,gE as E1,aR as J,cr as j1,cs as B1,ct as z1,at as A1,bb as c1,u as C,b as i1,a as T1,c as H1,aj as p1,gF as P1}from"./index-BkgFwDrN.js";import{a as t}from"./sentry-DG5QSuAU.js";import{n as i}from"./mui-B8eJ9Mf-.js";import R1 from"./AttachmentView-BrQRChzc-BPL0XTAx.js";import{l as M1}from"./uploadReceipts-Dge0cNF1-9bGZSaw_.js";import"./liveblocks-Fce3U47w.js";import"./core-ynj-rcGI.js";import"./recharts-DcXbW3wD.js";import"./zeni-epic-state-DJMVsfEo.js";import"./lottie-DfQwbfZe.js";import"./analytics-BB7e_ruj.js";import"./lexical-f2bgmP7p.js";import"./utils-BaLrPeRI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="3f8f8347-a502-4573-871e-dba770d7c7f5",e._sentryDebugIdIdentifier="sentry-dbid-3f8f8347-a502-4573-871e-dba770d7c7f5")}catch{}})();const V1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_623_1439",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_623_1439)"})),t.createElement("g",{mask:"url(#mask0_623_1439)"},t.createElement("path",{d:"M24.4551 10.7549C24.8693 10.7549 25.2051 11.0907 25.2051 11.5049V13.6938L28.3834 13.6938C28.7976 13.6938 29.1334 14.0296 29.1334 14.4438C29.1334 14.8581 28.7976 15.1938 28.3834 15.1938H22.4209C21.6794 15.1944 20.9613 15.4529 20.3896 15.925C19.8179 16.3972 19.4282 17.0536 19.2875 17.7816C19.1468 18.5096 19.2638 19.264 19.6184 19.9152C19.973 20.5662 20.543 21.0736 21.2306 21.3505L27.2968 23.7781C28.3078 24.1849 29.1457 24.9308 29.6669 25.8878C30.1881 26.8448 30.36 27.9534 30.1532 29.0234C29.9464 30.0933 29.3738 31.058 28.5335 31.7519C27.6933 32.4458 26.6377 32.8257 25.548 32.8265H25.2051V35.0149C25.2051 35.4292 24.8693 35.7649 24.4551 35.7649C24.0409 35.7649 23.7051 35.4292 23.7051 35.0149V32.8265H19.567C19.1528 32.8265 18.817 32.4907 18.817 32.0765C18.817 31.6623 19.1528 31.3265 19.567 31.3265H24.4327C24.4401 31.3263 24.4476 31.3262 24.4551 31.3262C24.4626 31.3262 24.47 31.3263 24.4775 31.3265H25.5469C26.2884 31.326 27.0066 31.0675 27.5784 30.5953C28.1501 30.1232 28.5398 29.4668 28.6805 28.7387C28.8212 28.0107 28.7042 27.2564 28.3496 26.6052C27.9951 25.9543 27.4253 25.4469 26.7378 25.1701L26.7369 25.1697L20.6712 22.7422C19.6602 22.3355 18.8223 21.5896 18.3011 20.6325C17.7799 19.6755 17.608 18.5669 17.8148 17.497C18.0216 16.427 18.5942 15.4624 19.4345 14.7684C20.2748 14.0745 21.3308 13.6946 22.4206 13.6938H23.7051V11.5049C23.7051 11.0907 24.0409 10.7549 24.4551 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 42.2959C17.7295 41.8817 18.0653 41.5459 18.4795 41.5459H42.5621C42.9763 41.5459 43.3121 41.8817 43.3121 42.2959C43.3121 42.7101 42.9763 43.0459 42.5621 43.0459H18.4795C18.0653 43.0459 17.7295 42.7101 17.7295 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 52.2962C17.7295 51.882 18.0653 51.5462 18.4795 51.5462L40.7106 51.5461C41.1248 51.5461 41.4606 51.8819 41.4606 52.2961C41.4606 52.7104 41.1248 53.0461 40.7106 53.0461L18.4795 53.0462C18.0653 53.0462 17.7295 52.7104 17.7295 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7295 31.9541C37.7295 31.5399 38.0653 31.2041 38.4795 31.2041H48.1263C48.5406 31.2041 48.8763 31.5399 48.8763 31.9541C48.8763 32.3683 48.5406 32.7041 48.1263 32.7041H38.4795C38.0653 32.7041 37.7295 32.3683 37.7295 31.9541Z",fill:"#A6B0B1"})),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5502 49.191C55.6639 49.0732 55.8234 49 56 49C56 49 56 49 56 49C56.0071 49 56.0143 49.0001 56.0214 49.0004C56.1742 49.0055 56.3254 49.0664 56.4421 49.1831L61.0135 53.7545C61.2576 53.9986 61.2576 54.3943 61.0135 54.6384C60.7694 54.8824 60.3737 54.8824 60.1296 54.6384L56.625 51.1337V60.7976C56.625 61.1427 56.3452 61.4226 56 61.4226C55.6548 61.4226 55.375 61.1427 55.375 60.7976V51.134L51.8707 54.6384C51.6266 54.8824 51.2308 54.8824 50.9868 54.6384C50.7427 54.3943 50.7427 53.9986 50.9868 53.7545L55.5502 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_623_1439",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),I1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_836_6609",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_836_6609)"})),t.createElement("g",{mask:"url(#mask0_836_6609)"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 18.25C5.41421 18.25 5.75 18.5858 5.75 19V61C5.75 63.8995 8.10051 66.25 11 66.25H35C35.4142 66.25 35.75 66.5858 35.75 67C35.75 67.4142 35.4142 67.75 35 67.75H11C7.27208 67.75 4.25 64.7279 4.25 61V19C4.25 18.5858 4.58579 18.25 5 18.25Z",fill:"#A6B0B1"}),t.createElement("path",{d:"M24.4561 10.7549C24.8703 10.7549 25.2061 11.0907 25.2061 11.5049V13.6938L28.3843 13.6938C28.7985 13.6938 29.1343 14.0296 29.1343 14.4438C29.1343 14.8581 28.7985 15.1938 28.3843 15.1938H22.4218C21.6804 15.1944 20.9623 15.4529 20.3906 15.925C19.8189 16.3972 19.4292 17.0536 19.2885 17.7816C19.1478 18.5096 19.2648 19.264 19.6194 19.9152C19.974 20.5662 20.5439 21.0736 21.2316 21.3505L27.2978 23.7781C28.3087 24.1849 29.1467 24.9308 29.6679 25.8878C30.1891 26.8448 30.361 27.9534 30.1542 29.0234C29.9474 30.0933 29.3748 31.058 28.5345 31.7519C27.6942 32.4458 26.6387 32.8257 25.5489 32.8265H25.2061V35.0149C25.2061 35.4292 24.8703 35.7649 24.4561 35.7649C24.0418 35.7649 23.7061 35.4292 23.7061 35.0149V32.8265H19.568C19.1538 32.8265 18.818 32.4907 18.818 32.0765C18.818 31.6623 19.1538 31.3265 19.568 31.3265H24.4337C24.4411 31.3263 24.4486 31.3262 24.4561 31.3262C24.4635 31.3262 24.471 31.3263 24.4785 31.3265H25.5479C26.2894 31.326 27.0076 31.0675 27.5794 30.5953C28.1511 30.1232 28.5408 29.4668 28.6815 28.7387C28.8222 28.0107 28.7052 27.2564 28.3506 26.6052C27.9961 25.9543 27.4263 25.4469 26.7388 25.1701L26.7378 25.1697L20.6722 22.7422C19.6612 22.3355 18.8233 21.5896 18.3021 20.6325C17.7809 19.6755 17.609 18.5669 17.8158 17.497C18.0226 16.427 18.5952 15.4624 19.4355 14.7684C20.2757 14.0745 21.3318 13.6946 22.4216 13.6938H23.7061V11.5049C23.7061 11.0907 24.0418 10.7549 24.4561 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 42.2959C17.7305 41.8817 18.0663 41.5459 18.4805 41.5459H42.5631C42.9773 41.5459 43.3131 41.8817 43.3131 42.2959C43.3131 42.7101 42.9773 43.0459 42.5631 43.0459H18.4805C18.0663 43.0459 17.7305 42.7101 17.7305 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 52.2962C17.7305 51.882 18.0663 51.5462 18.4805 51.5462L40.7116 51.5461C41.1258 51.5461 41.4616 51.8819 41.4616 52.2961C41.4616 52.7104 41.1258 53.0461 40.7116 53.0461L18.4805 53.0462C18.0663 53.0462 17.7305 52.7104 17.7305 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7305 31.9541C37.7305 31.5399 38.0663 31.2041 38.4805 31.2041H48.1273C48.5415 31.2041 48.8773 31.5399 48.8773 31.9541C48.8773 32.3683 48.5415 32.7041 48.1273 32.7041H38.4805C38.0663 32.7041 37.7305 32.3683 37.7305 31.9541Z",fill:"#A6B0B1"})),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5512 49.191C55.6649 49.0732 55.8244 49 56.001 49C56.001 49 56.001 49 56.001 49C56.0081 49 56.0153 49.0001 56.0224 49.0004C56.1752 49.0055 56.3264 49.0664 56.4431 49.1831L61.0145 53.7545C61.2586 53.9986 61.2586 54.3943 61.0145 54.6384C60.7704 54.8824 60.3747 54.8824 60.1306 54.6384L56.626 51.1337V60.7976C56.626 61.1427 56.3462 61.4226 56.001 61.4226C55.6558 61.4226 55.376 61.1427 55.376 60.7976V51.134L51.8716 54.6384C51.6276 54.8824 51.2318 54.8824 50.9877 54.6384C50.7437 54.3943 50.7437 53.9986 50.9877 53.7545L55.5512 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_836_6609",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),_1=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M15.4931 3.87109H11.4776C10.5275 3.89973 9.62765 4.30445 8.97582 4.99631C8.324 5.68817 7.97357 6.61054 8.00156 7.56068C7.99312 8.23377 8.16758 8.89652 8.50634 9.47821C8.84509 10.0599 9.33542 10.5387 9.92501 10.8635L13.5771 12.8038C14.1642 13.1295 14.6523 13.6079 14.9896 14.1884C15.3269 14.7688 15.5009 15.4297 15.4931 16.101C15.5211 17.0505 15.1712 17.9724 14.5202 18.6641C13.8691 19.3559 12.9702 19.761 12.0208 19.7906H8.00156",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M11.2829 19.7908V22.6001",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M13.1558 1V3.87113",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),g={memoPaddingTopBottomRight:new E(12,C[3]),billReceiptSize:new E(60,C[10]),rootContainerPaddingTop:new E(C[3],62),rootContainerPaddingRight:new E(C[3],C[6]),rootContainerPaddingBottom:new E(C[5],C[9]),rootContainerPaddingLeft:new E(C[3],C[8])},r1=i(T1)`
1
+ import{d as s1,J as d1,F as K,V as l,T as q,o,p as d,y as E,gD as L1,gE as E1,aR as J,cr as j1,cs as B1,ct as z1,at as A1,bb as c1,u as C,b as i1,a as T1,c as H1,aj as p1,gF as P1}from"./index-CE4a3GDT.js";import{a as t}from"./sentry-wpLc0w9b.js";import{n as i}from"./mui-4aI62okM.js";import R1 from"./AttachmentView-BrQRChzc-uiw2DPZW.js";import{l as M1}from"./uploadReceipts-Dge0cNF1-CG_JuBSh.js";import"./liveblocks-mJOf9rAw.js";import"./core-Cgphrdqi.js";import"./recharts-D-YAfDZj.js";import"./zeni-epic-state-BwFYSQY8.js";import"./lottie-CH7yL4lR.js";import"./analytics-T3rNNQ2m.js";import"./lexical-B-NT_OOU.js";import"./utils-DCLZL4US.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},x=new e.Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="3f8f8347-a502-4573-871e-dba770d7c7f5",e._sentryDebugIdIdentifier="sentry-dbid-3f8f8347-a502-4573-871e-dba770d7c7f5")}catch{}})();const V1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_623_1439",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_623_1439)"})),t.createElement("g",{mask:"url(#mask0_623_1439)"},t.createElement("path",{d:"M24.4551 10.7549C24.8693 10.7549 25.2051 11.0907 25.2051 11.5049V13.6938L28.3834 13.6938C28.7976 13.6938 29.1334 14.0296 29.1334 14.4438C29.1334 14.8581 28.7976 15.1938 28.3834 15.1938H22.4209C21.6794 15.1944 20.9613 15.4529 20.3896 15.925C19.8179 16.3972 19.4282 17.0536 19.2875 17.7816C19.1468 18.5096 19.2638 19.264 19.6184 19.9152C19.973 20.5662 20.543 21.0736 21.2306 21.3505L27.2968 23.7781C28.3078 24.1849 29.1457 24.9308 29.6669 25.8878C30.1881 26.8448 30.36 27.9534 30.1532 29.0234C29.9464 30.0933 29.3738 31.058 28.5335 31.7519C27.6933 32.4458 26.6377 32.8257 25.548 32.8265H25.2051V35.0149C25.2051 35.4292 24.8693 35.7649 24.4551 35.7649C24.0409 35.7649 23.7051 35.4292 23.7051 35.0149V32.8265H19.567C19.1528 32.8265 18.817 32.4907 18.817 32.0765C18.817 31.6623 19.1528 31.3265 19.567 31.3265H24.4327C24.4401 31.3263 24.4476 31.3262 24.4551 31.3262C24.4626 31.3262 24.47 31.3263 24.4775 31.3265H25.5469C26.2884 31.326 27.0066 31.0675 27.5784 30.5953C28.1501 30.1232 28.5398 29.4668 28.6805 28.7387C28.8212 28.0107 28.7042 27.2564 28.3496 26.6052C27.9951 25.9543 27.4253 25.4469 26.7378 25.1701L26.7369 25.1697L20.6712 22.7422C19.6602 22.3355 18.8223 21.5896 18.3011 20.6325C17.7799 19.6755 17.608 18.5669 17.8148 17.497C18.0216 16.427 18.5942 15.4624 19.4345 14.7684C20.2748 14.0745 21.3308 13.6946 22.4206 13.6938H23.7051V11.5049C23.7051 11.0907 24.0409 10.7549 24.4551 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 42.2959C17.7295 41.8817 18.0653 41.5459 18.4795 41.5459H42.5621C42.9763 41.5459 43.3121 41.8817 43.3121 42.2959C43.3121 42.7101 42.9763 43.0459 42.5621 43.0459H18.4795C18.0653 43.0459 17.7295 42.7101 17.7295 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7295 52.2962C17.7295 51.882 18.0653 51.5462 18.4795 51.5462L40.7106 51.5461C41.1248 51.5461 41.4606 51.8819 41.4606 52.2961C41.4606 52.7104 41.1248 53.0461 40.7106 53.0461L18.4795 53.0462C18.0653 53.0462 17.7295 52.7104 17.7295 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7295 31.9541C37.7295 31.5399 38.0653 31.2041 38.4795 31.2041H48.1263C48.5406 31.2041 48.8763 31.5399 48.8763 31.9541C48.8763 32.3683 48.5406 32.7041 48.1263 32.7041H38.4795C38.0653 32.7041 37.7295 32.3683 37.7295 31.9541Z",fill:"#A6B0B1"})),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5502 49.191C55.6639 49.0732 55.8234 49 56 49C56 49 56 49 56 49C56.0071 49 56.0143 49.0001 56.0214 49.0004C56.1742 49.0055 56.3254 49.0664 56.4421 49.1831L61.0135 53.7545C61.2576 53.9986 61.2576 54.3943 61.0135 54.6384C60.7694 54.8824 60.3737 54.8824 60.1296 54.6384L56.625 51.1337V60.7976C56.625 61.1427 56.3452 61.4226 56 61.4226C55.6548 61.4226 55.375 61.1427 55.375 60.7976V51.134L51.8707 54.6384C51.6266 54.8824 51.2308 54.8824 50.9868 54.6384C50.7427 54.3943 50.7427 53.9986 50.9868 53.7545L55.5502 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_623_1439",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),I1=e=>t.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("mask",{id:"mask0_836_6609",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:-16,width:72,height:88},t.createElement("rect",{y:-16,width:72,height:88,fill:"url(#paint0_linear_836_6609)"})),t.createElement("g",{mask:"url(#mask0_836_6609)"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 18.25C5.41421 18.25 5.75 18.5858 5.75 19V61C5.75 63.8995 8.10051 66.25 11 66.25H35C35.4142 66.25 35.75 66.5858 35.75 67C35.75 67.4142 35.4142 67.75 35 67.75H11C7.27208 67.75 4.25 64.7279 4.25 61V19C4.25 18.5858 4.58579 18.25 5 18.25Z",fill:"#A6B0B1"}),t.createElement("path",{d:"M24.4561 10.7549C24.8703 10.7549 25.2061 11.0907 25.2061 11.5049V13.6938L28.3843 13.6938C28.7985 13.6938 29.1343 14.0296 29.1343 14.4438C29.1343 14.8581 28.7985 15.1938 28.3843 15.1938H22.4218C21.6804 15.1944 20.9623 15.4529 20.3906 15.925C19.8189 16.3972 19.4292 17.0536 19.2885 17.7816C19.1478 18.5096 19.2648 19.264 19.6194 19.9152C19.974 20.5662 20.5439 21.0736 21.2316 21.3505L27.2978 23.7781C28.3087 24.1849 29.1467 24.9308 29.6679 25.8878C30.1891 26.8448 30.361 27.9534 30.1542 29.0234C29.9474 30.0933 29.3748 31.058 28.5345 31.7519C27.6942 32.4458 26.6387 32.8257 25.5489 32.8265H25.2061V35.0149C25.2061 35.4292 24.8703 35.7649 24.4561 35.7649C24.0418 35.7649 23.7061 35.4292 23.7061 35.0149V32.8265H19.568C19.1538 32.8265 18.818 32.4907 18.818 32.0765C18.818 31.6623 19.1538 31.3265 19.568 31.3265H24.4337C24.4411 31.3263 24.4486 31.3262 24.4561 31.3262C24.4635 31.3262 24.471 31.3263 24.4785 31.3265H25.5479C26.2894 31.326 27.0076 31.0675 27.5794 30.5953C28.1511 30.1232 28.5408 29.4668 28.6815 28.7387C28.8222 28.0107 28.7052 27.2564 28.3506 26.6052C27.9961 25.9543 27.4263 25.4469 26.7388 25.1701L26.7378 25.1697L20.6722 22.7422C19.6612 22.3355 18.8233 21.5896 18.3021 20.6325C17.7809 19.6755 17.609 18.5669 17.8158 17.497C18.0226 16.427 18.5952 15.4624 19.4355 14.7684C20.2757 14.0745 21.3318 13.6946 22.4216 13.6938H23.7061V11.5049C23.7061 11.0907 24.0418 10.7549 24.4561 10.7549Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.0762 2.2644C37.4904 2.2644 37.8262 2.60019 37.8262 3.0144V17.4438C37.8262 18.0243 38.0568 18.581 38.4672 18.9915C38.8777 19.402 39.4344 19.6326 40.0149 19.6326H54.4443C54.8585 19.6326 55.1943 19.9684 55.1943 20.3826C55.1943 20.7968 54.8585 21.1326 54.4443 21.1326H40.0149C39.0366 21.1326 38.0984 20.7439 37.4066 20.0521C36.7148 19.3604 36.3262 18.4221 36.3262 17.4438V3.0144C36.3262 2.60019 36.662 2.2644 37.0762 2.2644Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 42.2959C17.7305 41.8817 18.0663 41.5459 18.4805 41.5459H42.5631C42.9773 41.5459 43.3131 41.8817 43.3131 42.2959C43.3131 42.7101 42.9773 43.0459 42.5631 43.0459H18.4805C18.0663 43.0459 17.7305 42.7101 17.7305 42.2959Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7305 52.2962C17.7305 51.882 18.0663 51.5462 18.4805 51.5462L40.7116 51.5461C41.1258 51.5461 41.4616 51.8819 41.4616 52.2961C41.4616 52.7104 41.1258 53.0461 40.7116 53.0461L18.4805 53.0462C18.0663 53.0462 17.7305 52.7104 17.7305 52.2962Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.7305 31.9541C37.7305 31.5399 38.0663 31.2041 38.4805 31.2041H48.1273C48.5415 31.2041 48.8773 31.5399 48.8773 31.9541C48.8773 32.3683 48.5415 32.7041 48.1273 32.7041H38.4805C38.0663 32.7041 37.7305 32.3683 37.7305 31.9541Z",fill:"#A6B0B1"})),t.createElement("path",{d:"M63.1838 60.0608V61.3101C63.1836 61.807 62.9861 62.2834 62.6348 62.6348C62.2835 62.9861 61.807 63.1836 61.3101 63.1837H50.69C50.1931 63.1837 49.7166 62.9863 49.3652 62.635C49.0138 62.2836 48.8164 61.807 48.8164 61.3101V60.0608",stroke:"#A6B0B1",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M55.5512 49.191C55.6649 49.0732 55.8244 49 56.001 49C56.001 49 56.001 49 56.001 49C56.0081 49 56.0153 49.0001 56.0224 49.0004C56.1752 49.0055 56.3264 49.0664 56.4431 49.1831L61.0145 53.7545C61.2586 53.9986 61.2586 54.3943 61.0145 54.6384C60.7704 54.8824 60.3747 54.8824 60.1306 54.6384L56.626 51.1337V60.7976C56.626 61.1427 56.3462 61.4226 56.001 61.4226C55.6558 61.4226 55.376 61.1427 55.376 60.7976V51.134L51.8716 54.6384C51.6276 54.8824 51.2318 54.8824 50.9877 54.6384C50.7437 54.3943 50.7437 53.9986 50.9877 53.7545L55.5512 49.191Z",fill:"#A6B0B1"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.8739 3.50002C37.1624 3.49921 37.4482 3.55546 37.7149 3.66552C37.9816 3.77558 38.224 3.93737 38.428 4.14141L54.3387 20.0521C54.7491 20.4624 54.9797 21.0193 54.98 21.5996L54.9696 40.7471H56.4696L56.48 21.5993C56.4798 20.621 56.091 19.6829 55.3992 18.9913L39.4887 3.08083C39.145 2.73695 38.7366 2.46443 38.2871 2.27894C37.838 2.0936 37.3567 1.99881 36.8708 2.00001H12.6888C11.7105 2.00001 10.7722 2.38865 10.0804 3.08043C9.38864 3.77222 9 4.71048 9 5.68881V59.4034C9 60.3817 9.38864 61.32 10.0804 62.0117C10.7722 62.7035 11.7105 63.0922 12.6888 63.0922H42.0703V61.5922H12.6888C12.1083 61.5922 11.5516 61.3615 11.1411 60.9511C10.7306 60.5406 10.5 59.9839 10.5 59.4034V5.68881C10.5 5.1083 10.7306 4.55158 11.1411 4.1411C11.5516 3.73062 12.1083 3.50002 12.6888 3.50002H36.8718L36.8739 3.50002Z",fill:"#A6B0B1"}),t.createElement("rect",{x:40.75,y:40.75,width:30.5,height:30.5,rx:15.25,stroke:"#A6B0B1",strokeWidth:1.5}),t.createElement("defs",null,t.createElement("linearGradient",{id:"paint0_linear_836_6609",x1:36,y1:-16,x2:36,y2:72,gradientUnits:"userSpaceOnUse"},t.createElement("stop",{stopColor:"#C9ABC7",stopOpacity:0}),t.createElement("stop",{offset:1e-4,stopColor:"#C9ABC7"})))),_1=e=>t.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M15.4931 3.87109H11.4776C10.5275 3.89973 9.62765 4.30445 8.97582 4.99631C8.324 5.68817 7.97357 6.61054 8.00156 7.56068C7.99312 8.23377 8.16758 8.89652 8.50634 9.47821C8.84509 10.0599 9.33542 10.5387 9.92501 10.8635L13.5771 12.8038C14.1642 13.1295 14.6523 13.6079 14.9896 14.1884C15.3269 14.7688 15.5009 15.4297 15.4931 16.101C15.5211 17.0505 15.1712 17.9724 14.5202 18.6641C13.8691 19.3559 12.9702 19.761 12.0208 19.7906H8.00156",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M11.2829 19.7908V22.6001",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),t.createElement("path",{d:"M13.1558 1V3.87113",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),g={memoPaddingTopBottomRight:new E(12,C[3]),billReceiptSize:new E(60,C[10]),rootContainerPaddingTop:new E(C[3],62),rootContainerPaddingRight:new E(C[3],C[6]),rootContainerPaddingBottom:new E(C[5],C[9]),rootContainerPaddingLeft:new E(C[3],C[8])},r1=i(T1)`
2
2
  color: ${e=>e.isPlaceholderText===!0?e.theme.colors.grey1:e.theme.colors.hero};
3
3
  white-space: pre-wrap;
4
4
  text-align: center;
@@ -1,4 +1,4 @@
1
- import{J as oe,aa as Oa,cH as _a,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT as Ua,o as a,y as C,F as le,bz as Fa,b9 as Na,H as be,a as na,x as qa,R as Ea,p as ie,G as Ma,ck as ka,cL as fe,ep as Ba,u as d,bV as Va,b3 as Y,cQ as me,d1 as oa,js as Ha,jt as Wa,d0 as Ga,d as Te,ju as Ie,cM as Ae,gg as Oe,f4 as xe,b as de,f0 as he,gc as ca,aj as _e,aP as Ka,g$ as Xa,an as Ja,h0 as Ya}from"./index-BkgFwDrN.js";import{a as E}from"./sentry-DG5QSuAU.js";import{n as l}from"./mui-B8eJ9Mf-.js";import{Y as ua}from"./LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-Ca3kyKh2.js";import{bd as Qa}from"./zeni-epic-state-DJMVsfEo.js";import{T as pa}from"./RoleWithToolTip-DhBFvJea-gODf7-hE.js";import"./liveblocks-Fce3U47w.js";import"./core-ynj-rcGI.js";import"./recharts-DcXbW3wD.js";import"./lottie-DfQwbfZe.js";import"./analytics-BB7e_ruj.js";import"./lexical-f2bgmP7p.js";import"./utils-BaLrPeRI.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]="2e7c1dcc-6896-46ba-8c4b-914d6ba4542b",e._sentryDebugIdIdentifier="sentry-dbid-2e7c1dcc-6896-46ba-8c4b-914d6ba4542b")}catch{}})();const ge=e=>{const{common:i,spendManagement:{chargeCard:{issueCard:t}}}=le.getLocalizedStrings();switch(e){case"monthly":return t.frequencySubLabels.monthly;case"quarterly":return t.frequencySubLabels.quarterly;case"weekly":return t.frequencySubLabels.weekly;case"yearly":return t.frequencySubLabels.yearly;default:return i.strings.empty}},Za=["creditCard","debitCard"],ke=e=>Qa(e,Za),u=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:Be,customAddressPlaceholder:er}},spendManagement:{chargeCard:{issueCard:N}}}=le.getLocalizedStrings(),k={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0]),radioLabelPaddingLeftRight:new C(d[2],d[3]),radioLabelPaddingLeft:new C(d[0],d[3]),radioLabelPaddingRight:new C(10,d[3])},ar={infoLabel:new be("smallRegular","smallRegular")},rr="creditCard.physicalCard.amount",ir="creditCard.physicalCard.cardName",dr="creditCard.physicalCard.user",lr="creditCard.physicalCard.frequency",te="creditCard.physicalCard.addressType",tr=({lineData:e,issueCardSectionId:i,limit:t,creditLimitFrequency:m,activeChargeCardCount:v,allRoles:f,allAccountingClasses:D,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalChargeCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),q=Te(),{getValues:B}=fe(),$=k.largeLabelWidth.value(s),V=()=>{g(e.lineId,"creditCard")},c=(h,U)=>r.jsx(nr,{isOptionSelected:U,children:ge(h)}),n=e.creditCard.physicalCard.addressType,x=e.creditCard.physicalCard.amount,L=Ie(t.amount),I=x!=null&&x>t.amount,z=I?N.amountExceedError.replace("_amount_",L):void 0,j=e.creditCard.physicalCard.user,O=j.allUsers.find(h=>h.userId===j.selectedUser),G=O?.userId,Q=G!=null?A[G]:void 0,p=h=>{let U=v[h]?.physicalCardCount??0;return B().lineInfo.forEach(y=>{y.creditCard.cardType==="business_physical_credit_card"&&y.creditCard.physicalCard.user.selectedUser===h&&(U+=1)}),U>=S};return r.jsxs(r.Fragment,{children:[r.jsx(ua,{label:{label:N.cardholderLabel,width:$},userSingleSelectWithSubTitlesField:{name:u(i,dr),placeholderLabel:N.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:h=>h?.selectedUser?.length>0},valueToSubtitle:h=>{const U=f.find(R=>R.userId===h),y=[];return U?.accountingClassIDs.forEach(R=>{const J=D.find(De=>De.classId===R);J!=null&&J.className&&y.push(J.className)}),y},additionalLabelInfo:N.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:p,disabledOptionHint:N.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"100%",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(Ae,{label:{label:N.cardNameLabel,width:$},style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)},text:{type:"text",name:u(i,ir),defaultValue:e.creditCard.physicalCard.cardName,placeholder:N.cardNamePlaceholder,options:{required:!0,validate:h=>h!=null}}}),r.jsx(we,{}),r.jsx(Oe,{label:{label:N.amountLabel,width:$},showAdditionalInfoLabel:I,additionalInfoLabel:z,formattedTextField:{type:"number",name:u(i,rr),defaultValue:e.creditCard.physicalCard.amount,placeholder:N.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:h=>!!h&&h>0&&h<=t.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:I,style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:N.frequencyLabel,width:$,style:{marginBottom:k.labelMarginBottom.valuePx(s),marginRight:k.labelMarginRight.valuePx(s)}},style:{width:"100%",paddingLeft:k.labelMarginBottom.valuePx(s)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:k.infoLabelMarginTop.valuePx(s),color:q.colors.hero},valueToAdditionalLabel:h=>ge(h),singleSelectPickerField:{name:u(i,lr),placeholder:N.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.physicalCard.frequency.selectedOption,allOptions:m.map(h=>({label:h.name,value:h.code}))},valueToSubLabels:(h,U)=>c(h,U),textAlignment:"right",registerOptions:{required:!0,validate:h=>h!=null&&!!h.selectedOption}}}),r.jsx(we,{}),r.jsxs(or,{windowSize:s,children:[r.jsxs(pr,{windowSize:s,children:[r.jsx(me,{label:N.address.shippingAddressLabel,htmlFor:u(i,te),style:{marginLeft:a.sp4,marginRight:k.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":$}}),r.jsx(cr,{windowSize:s,children:r.jsxs(hr,{isDisabled:O==null,children:[Q!=null&&r.jsx(Y,{isContainerClickable:!0,label:{label:N.address.personal},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeftRight.value(s),paddingRight:k.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Y,{isContainerClickable:!0,label:{label:N.address.company},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(s),paddingRight:k.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Y,{isContainerClickable:!0,label:{label:N.address.custom},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(s),paddingRight:k.radioLabelPaddingLeftRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(ur,{windowSize:s,children:O?.user!=null&&n!=null&&r.jsx(sr,{children:n==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:Q,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ve,{windowSize:s,children:N.address.personalAddressText.replace("_name_",O.user.firstName)})]}):n==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:b,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:T[e.lineId],placeholder:er,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:V}),r.jsx(Ve,{windowSize:s,children:N.address.customAddressText})]})})})]})]})},sr=l.div`
1
+ import{J as oe,aa as Oa,cH as _a,V as r,aR as je,jr as Da,c1 as Ra,ad as za,aT as Ua,o as a,y as C,F as le,bz as Fa,b9 as Na,H as be,a as na,x as qa,R as Ea,p as ie,G as Ma,ck as ka,cL as fe,ep as Ba,u as d,bV as Va,b3 as Y,cQ as me,d1 as oa,js as Ha,jt as Wa,d0 as Ga,d as Te,ju as Ie,cM as Ae,gg as Oe,f4 as xe,b as de,f0 as he,gc as ca,aj as _e,aP as Ka,g$ as Xa,an as Ja,h0 as Ya}from"./index-CE4a3GDT.js";import{a as E}from"./sentry-wpLc0w9b.js";import{n as l}from"./mui-4aI62okM.js";import{Y as ua}from"./LabeledUserSingleSelectWithSubtitlesField-CZbyOdRR-BU13Lrvj.js";import{bd as Qa}from"./zeni-epic-state-BwFYSQY8.js";import{T as pa}from"./RoleWithToolTip-DhBFvJea-Dgz4vQkX.js";import"./liveblocks-mJOf9rAw.js";import"./core-Cgphrdqi.js";import"./recharts-D-YAfDZj.js";import"./lottie-CH7yL4lR.js";import"./analytics-T3rNNQ2m.js";import"./lexical-B-NT_OOU.js";import"./utils-DCLZL4US.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]="2e7c1dcc-6896-46ba-8c4b-914d6ba4542b",e._sentryDebugIdIdentifier="sentry-dbid-2e7c1dcc-6896-46ba-8c4b-914d6ba4542b")}catch{}})();const ge=e=>{const{common:i,spendManagement:{chargeCard:{issueCard:t}}}=le.getLocalizedStrings();switch(e){case"monthly":return t.frequencySubLabels.monthly;case"quarterly":return t.frequencySubLabels.quarterly;case"weekly":return t.frequencySubLabels.weekly;case"yearly":return t.frequencySubLabels.yearly;default:return i.strings.empty}},Za=["creditCard","debitCard"],ke=e=>Qa(e,Za),u=(e,i)=>`${e}.${i}`,{commonSetUp:{businessVerification:{addressPlaceholder:Be,customAddressPlaceholder:er}},spendManagement:{chargeCard:{issueCard:N}}}=le.getLocalizedStrings(),k={largeLabelWidth:new C(120,120,200),labelMarginRight:new C(d[3],d[4]),labelMarginBottom:new C(d[2],d[0]),infoLabelMarginTop:new C(d[1],d[0]),radioLabelPaddingLeftRight:new C(d[2],d[3]),radioLabelPaddingLeft:new C(d[0],d[3]),radioLabelPaddingRight:new C(10,d[3])},ar={infoLabel:new be("smallRegular","smallRegular")},rr="creditCard.physicalCard.amount",ir="creditCard.physicalCard.cardName",dr="creditCard.physicalCard.user",lr="creditCard.physicalCard.frequency",te="creditCard.physicalCard.addressType",tr=({lineData:e,issueCardSectionId:i,limit:t,creditLimitFrequency:m,activeChargeCardCount:v,allRoles:f,allAccountingClasses:D,companyAddress:b,customAddress:T,userAddress:A,userList:o,maxPhysicalChargeCardPerUser:S,openAddAddressDrawerHandler:g})=>{const s=oe(),q=Te(),{getValues:B}=fe(),$=k.largeLabelWidth.value(s),V=()=>{g(e.lineId,"creditCard")},c=(h,U)=>r.jsx(nr,{isOptionSelected:U,children:ge(h)}),n=e.creditCard.physicalCard.addressType,x=e.creditCard.physicalCard.amount,L=Ie(t.amount),I=x!=null&&x>t.amount,z=I?N.amountExceedError.replace("_amount_",L):void 0,j=e.creditCard.physicalCard.user,O=j.allUsers.find(h=>h.userId===j.selectedUser),G=O?.userId,Q=G!=null?A[G]:void 0,p=h=>{let U=v[h]?.physicalCardCount??0;return B().lineInfo.forEach(y=>{y.creditCard.cardType==="business_physical_credit_card"&&y.creditCard.physicalCard.user.selectedUser===h&&(U+=1)}),U>=S};return r.jsxs(r.Fragment,{children:[r.jsx(ua,{label:{label:N.cardholderLabel,width:$},userSingleSelectWithSubTitlesField:{name:u(i,dr),placeholderLabel:N.usersPlaceholder,value:{allUsers:o,selectedUser:e.creditCard.physicalCard.user.selectedUser},registerOptions:{required:!0,validate:h=>h?.selectedUser?.length>0},valueToSubtitle:h=>{const U=f.find(R=>R.userId===h),y=[];return U?.accountingClassIDs.forEach(R=>{const J=D.find(De=>De.classId===R);J!=null&&J.className&&y.push(J.className)}),y},additionalLabelInfo:N.additionalInfoPhysical,showOnlyAvatar:!0,showAvatarAndSubtitles:!1,isOptionDisabled:p,disabledOptionHint:N.cardLimitWarning,bigMarginRightForSmallScreens:!0,optionStyles:{maxHeight:a.sp10,minHeight:a.sp6,height:"max-content"}},style:{width:"100%",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(Ae,{label:{label:N.cardNameLabel,width:$},style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)},text:{type:"text",name:u(i,ir),defaultValue:e.creditCard.physicalCard.cardName,placeholder:N.cardNamePlaceholder,options:{required:!0,validate:h=>h!=null}}}),r.jsx(we,{}),r.jsx(Oe,{label:{label:N.amountLabel,width:$},showAdditionalInfoLabel:I,additionalInfoLabel:z,formattedTextField:{type:"number",name:u(i,rr),defaultValue:e.creditCard.physicalCard.amount,placeholder:N.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:h=>!!h&&h>0&&h<=t.amount},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},isFieldError:I,style:{width:"auto",paddingLeft:k.labelMarginBottom.value(s)}}),r.jsx(we,{}),r.jsx(xe,{isDisabled:"readonly",label:{label:N.frequencyLabel,width:$,style:{marginBottom:k.labelMarginBottom.valuePx(s),marginRight:k.labelMarginRight.valuePx(s)}},style:{width:"100%",paddingLeft:k.labelMarginBottom.valuePx(s)},infoLabelStyle:{...de.smallRegular.cssObject,textAlign:"right",paddingRight:a.sp3,marginTop:k.infoLabelMarginTop.valuePx(s),color:q.colors.hero},valueToAdditionalLabel:h=>ge(h),singleSelectPickerField:{name:u(i,lr),placeholder:N.frequencyPlaceholder,style:{position:"relative"},capitalizeOptions:!0,showSubLabelsInSingleValue:!1,defaultValue:{selectedOption:e.creditCard.physicalCard.frequency.selectedOption,allOptions:m.map(h=>({label:h.name,value:h.code}))},valueToSubLabels:(h,U)=>c(h,U),textAlignment:"right",registerOptions:{required:!0,validate:h=>h!=null&&!!h.selectedOption}}}),r.jsx(we,{}),r.jsxs(or,{windowSize:s,children:[r.jsxs(pr,{windowSize:s,children:[r.jsx(me,{label:N.address.shippingAddressLabel,htmlFor:u(i,te),style:{marginLeft:a.sp4,marginRight:k.labelMarginRight.valuePx(s),marginTop:a.sp2,width:s==="small"?"auto":$}}),r.jsx(cr,{windowSize:s,children:r.jsxs(hr,{isDisabled:O==null,children:[Q!=null&&r.jsx(Y,{isContainerClickable:!0,label:{label:N.address.personal},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeftRight.value(s),paddingRight:k.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.personal}`,value:"card_holder_personal_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Y,{isContainerClickable:!0,label:{label:N.address.company},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(s),paddingRight:k.radioLabelPaddingRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.company}`,value:"company_address",radioSize:"small",registerOptions:{required:!0}}}),r.jsx(Y,{isContainerClickable:!0,label:{label:N.address.custom},isDisabled:O==null?"disabled":void 0,style:{padding:`${a.sp2} ${a.sp0}`,paddingLeft:k.radioLabelPaddingLeft.value(s),paddingRight:k.radioLabelPaddingLeftRight.value(s),width:"fit-content"},radioField:{name:u(i,te),id:`${u(i,te)}.${N.address.custom}`,value:"custom_address",radioSize:"small",registerOptions:{required:!0}}})]})})]}),r.jsx(ur,{windowSize:s,children:O?.user!=null&&n!=null&&r.jsx(sr,{children:n==="card_holder_personal_address"?r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"personal_address_value_field",defaultValue:Q,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}),r.jsx(Ve,{windowSize:s,children:N.address.personalAddressText.replace("_name_",O.user.firstName)})]}):n==="company_address"?r.jsx(he,{name:"company_address_value_field",defaultValue:b,isDisabled:"readonly",placeholder:Be,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1}}):r.jsxs(r.Fragment,{children:[r.jsx(he,{name:"custom_address_value_field",defaultValue:T[e.lineId],placeholder:er,style:{minHeight:a.sp4,paddingTop:a.sp2,paddingBottom:a.sp2,width:"100%",display:"flex",flexGrow:1},onClick:V}),r.jsx(Ve,{windowSize:s,children:N.address.customAddressText})]})})})]})]})},sr=l.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{J as u,V as n,cQ as h,y as a,eZ as f,u as t,H as b}from"./index-BkgFwDrN.js";import{n as r}from"./mui-B8eJ9Mf-.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]="1a10d372-1329-4514-af97-a45cf8e0abcd",e._sentryDebugIdIdentifier="sentry-dbid-1a10d372-1329-4514-af97-a45cf8e0abcd")}catch{}})();const i={width:new a(343,580,726),height:new a(t[6],t[6]),controlMinHeight:new a(t[4],t[4]),paddingTopBottom:new a(t[2],t[2]),marginRight:new a(t[2],t[2]),labelMarginLeft:new a(t[3],t[4]),labelMarginRight:new a(t[3],t[4]),labelMarginTop:new a(t[2],t[2])},c={infoLabel:new b("extraSmallRegular","smallRegular")};function $({isDisabled:e,label:o,additionalInfoLabel:d,addressValue:s,isOptional:g,style:p}){const l=u();return n.jsxs(y,{size:l,style:p,isDisabled:e!=null,children:[n.jsxs(x,{children:[n.jsx(h,{isOptional:g,isDisabled:e,label:o.label,style:{marginLeft:i.labelMarginLeft.value(l),marginRight:i.labelMarginRight.value(l),marginTop:i.labelMarginTop.value(l),width:o.width??"auto"}}),n.jsx(f,{...s,isDisabled:e,style:{minHeight:i.controlMinHeight.value(l),paddingTop:i.paddingTopBottom.valuePx(l),paddingBottom:i.paddingTopBottom.valuePx(l),maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",display:"flex",flexGrow:1,...s.style}})]}),d?n.jsx(m,{size:l,children:d}):null]})}const m=r.label`
1
+ import{J as u,V as n,cQ as h,y as a,eZ as f,u as t,H as b}from"./index-CE4a3GDT.js";import{n as r}from"./mui-4aI62okM.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]="1a10d372-1329-4514-af97-a45cf8e0abcd",e._sentryDebugIdIdentifier="sentry-dbid-1a10d372-1329-4514-af97-a45cf8e0abcd")}catch{}})();const i={width:new a(343,580,726),height:new a(t[6],t[6]),controlMinHeight:new a(t[4],t[4]),paddingTopBottom:new a(t[2],t[2]),marginRight:new a(t[2],t[2]),labelMarginLeft:new a(t[3],t[4]),labelMarginRight:new a(t[3],t[4]),labelMarginTop:new a(t[2],t[2])},c={infoLabel:new b("extraSmallRegular","smallRegular")};function $({isDisabled:e,label:o,additionalInfoLabel:d,addressValue:s,isOptional:g,style:p}){const l=u();return n.jsxs(y,{size:l,style:p,isDisabled:e!=null,children:[n.jsxs(x,{children:[n.jsx(h,{isOptional:g,isDisabled:e,label:o.label,style:{marginLeft:i.labelMarginLeft.value(l),marginRight:i.labelMarginRight.value(l),marginTop:i.labelMarginTop.value(l),width:o.width??"auto"}}),n.jsx(f,{...s,isDisabled:e,style:{minHeight:i.controlMinHeight.value(l),paddingTop:i.paddingTopBottom.valuePx(l),paddingBottom:i.paddingTopBottom.valuePx(l),maxWidth:o.width!=null?`calc(100% - ${o.width}px)`:"auto",display:"flex",flexGrow:1,...s.style}})]}),d?n.jsx(m,{size:l,children:d}):null]})}const m=r.label`
2
2
  color: ${e=>e.theme.colors.grey1};
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{J as x,cL as y,ex as w,V as d,cQ as v,y as l,f0 as $,aR as D,F as T,p as g,u as i,H as z}from"./index-BkgFwDrN.js";import{n as s}from"./mui-B8eJ9Mf-.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]="7a5f0e36-574f-496c-8553-9b96a56771f5",e._sentryDebugIdIdentifier="sentry-dbid-7a5f0e36-574f-496c-8553-9b96a56771f5")}catch{}})();const t={width:new l(343,580,726),height:new l(i[6],i[6]),controlMinHeight:new l(i[4],i[4]),paddingTopBottom:new l(i[2],i[2]),marginRight:new l(i[2],i[2]),labelMarginLeft:new l(i[3],i[4]),labelMarginRight:new l(i[3],i[4]),labelMarginTop:new l(i[2],i[2])},B={infoLabel:new z("extraSmallRegular","smallRegular")},L=T.getLocalizedStrings();function j({isDisabled:e,label:o,addressValueField:r,additionalInfoLabel:h,showAdditionalInfoLabel:f=!1,style:b,hasHoverBorder:p,isOptional:u}){const a=x(),{formState:{errors:m}}=y(),n=w(m,r.name),c=n?h:L.commonSetUp.businessVerification.addressAdditionInfo;return d.jsxs(M,{size:a,style:b,isDisabled:e!=null,isError:n,hasHoverBorder:p??!0,"data-testid":D("labeled-address-value-field",r.name),children:[d.jsx(v,{isDisabled:e,isOptional:u,label:o.label,htmlFor:r.name,style:{marginLeft:t.labelMarginLeft.value(a),marginRight:t.labelMarginRight.value(a),marginTop:t.labelMarginTop.value(a),width:o.width??"auto"}}),d.jsxs(R,{labelWidth:o.width,children:[d.jsx($,{...r,isDisabled:e,style:{minHeight:t.controlMinHeight.value(a),paddingTop:t.paddingTopBottom.valuePx(a),paddingBottom:t.paddingTopBottom.valuePx(a),width:"-webkit-fill-available",display:"flex",flexGrow:1,...r.style}}),(f||n)&&d.jsx(H,{size:a,isError:n,children:c})]})]})}const M=s.div`
1
+ import{J as x,cL as y,ex as w,V as d,cQ as v,y as l,f0 as $,aR as D,F as T,p as g,u as i,H as z}from"./index-CE4a3GDT.js";import{n as s}from"./mui-4aI62okM.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]="7a5f0e36-574f-496c-8553-9b96a56771f5",e._sentryDebugIdIdentifier="sentry-dbid-7a5f0e36-574f-496c-8553-9b96a56771f5")}catch{}})();const t={width:new l(343,580,726),height:new l(i[6],i[6]),controlMinHeight:new l(i[4],i[4]),paddingTopBottom:new l(i[2],i[2]),marginRight:new l(i[2],i[2]),labelMarginLeft:new l(i[3],i[4]),labelMarginRight:new l(i[3],i[4]),labelMarginTop:new l(i[2],i[2])},B={infoLabel:new z("extraSmallRegular","smallRegular")},L=T.getLocalizedStrings();function j({isDisabled:e,label:o,addressValueField:r,additionalInfoLabel:h,showAdditionalInfoLabel:f=!1,style:b,hasHoverBorder:p,isOptional:u}){const a=x(),{formState:{errors:m}}=y(),n=w(m,r.name),c=n?h:L.commonSetUp.businessVerification.addressAdditionInfo;return d.jsxs(M,{size:a,style:b,isDisabled:e!=null,isError:n,hasHoverBorder:p??!0,"data-testid":D("labeled-address-value-field",r.name),children:[d.jsx(v,{isDisabled:e,isOptional:u,label:o.label,htmlFor:r.name,style:{marginLeft:t.labelMarginLeft.value(a),marginRight:t.labelMarginRight.value(a),marginTop:t.labelMarginTop.value(a),width:o.width??"auto"}}),d.jsxs(R,{labelWidth:o.width,children:[d.jsx($,{...r,isDisabled:e,style:{minHeight:t.controlMinHeight.value(a),paddingTop:t.paddingTopBottom.valuePx(a),paddingBottom:t.paddingTopBottom.valuePx(a),width:"-webkit-fill-available",display:"flex",flexGrow:1,...r.style}}),(f||n)&&d.jsx(H,{size:a,isError:n,children:c})]})]})}const M=s.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{J as a,V as i,eO as o,cQ as n,o as s,aR as r,y as b}from"./index-BkgFwDrN.js";import{c,n as y}from"./mui-B8eJ9Mf-.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]="0335382d-7c10-45b3-ab0e-b98763dc4fa0",e._sentryDebugIdIdentifier="sentry-dbid-0335382d-7c10-45b3-ab0e-b98763dc4fa0")}catch{}})();const f={width:new b(343,580,726)};function u({label:e,checkBoxField:l,style:t}){const d=a();return i.jsxs(h,{size:d,style:t,isDisabled:l.isDisabled,"data-testid":r(l.name,"labeled-check-box-field"),isSelected:l.defaultChecked??!1,children:[i.jsx(o,{...l,style:{...l.style}}),i.jsx(n,{isDisabled:l.isDisabled,label:e.label,labelStyle:e.style,htmlFor:l.name,style:{display:"flex",flex:1,minHeight:s.sp4,marginLeft:s.sp2,width:e.width,backgroundColor:"inherit",...e.style}})]})}const h=y.div`
1
+ import{J as a,V as i,eO as o,cQ as n,o as s,aR as r,y as b}from"./index-CE4a3GDT.js";import{c,n as y}from"./mui-4aI62okM.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]="0335382d-7c10-45b3-ab0e-b98763dc4fa0",e._sentryDebugIdIdentifier="sentry-dbid-0335382d-7c10-45b3-ab0e-b98763dc4fa0")}catch{}})();const f={width:new b(343,580,726)};function u({label:e,checkBoxField:l,style:t}){const d=a();return i.jsxs(h,{size:d,style:t,isDisabled:l.isDisabled,"data-testid":r(l.name,"labeled-check-box-field"),isSelected:l.defaultChecked??!1,children:[i.jsx(o,{...l,style:{...l.style}}),i.jsx(n,{isDisabled:l.isDisabled,label:e.label,labelStyle:e.style,htmlFor:l.name,style:{display:"flex",flex:1,minHeight:s.sp4,marginLeft:s.sp2,width:e.width,backgroundColor:"inherit",...e.style}})]})}const h=y.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{J as E,cL as k,ex as S,V as o,cQ as V,y as u,p as g,o as l,u as s,d as C,eG as P,bJ as T,H as N,bK as p,eY as H,x as B,am as J,b as $,bI as G}from"./index-BkgFwDrN.js";import{n as a}from"./mui-B8eJ9Mf-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="de581fd7-e117-47fb-8cf5-03dcab11fac3",e._sentryDebugIdIdentifier="sentry-dbid-de581fd7-e117-47fb-8cf5-03dcab11fac3")}catch{}})();const Q=({name:e,registerOptions:r,defaultValue:t,isDisabled:n,style:h,placeholder:b})=>{const{control:f,formState:{errors:d}}=k(),w=C(),x=S(d,e??""),D=i=>({value:i.value,label:i.label}),_=i=>i.map(m=>D(m)),L=i=>{if(!(i==null||!i))return{value:i,label:t.allOptions.find(m=>m.value===i)?.label??i}},I=i=>i.map(m=>L(m)),M={container:i=>({...i,width:"100%",...h}),menu:i=>({...i,backgroundColor:w.colors.grey5,borderRadius:l.sp1,boxShadow:`${l.sp0} 2px ${l.sp2} ${w.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,width:"100%",margin:0}),menuList:i=>({...i,borderRadius:l.sp1})},F={hasError:x};return o.jsx(P,{name:e,control:f,defaultValue:t,rules:r,render:({field:{onChange:i,onBlur:m,value:y,ref:R}})=>o.jsx(T,{...F,ref:R,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:b,value:I(y.selectedOptions),options:_(y.allOptions),onChange:z=>{i({selectedOptions:z.map(O=>O?.value),allOptions:y.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:m,menuPlacement:"auto",maxMenuHeight:210,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:A,Option:ee,Input:Y,MultiValue:U,MultiValueLabel:W,MultiValueRemove:X,ValueContainer:K,DropdownIndicator:de,IndicatorSeparator:ce,Placeholder:q,ClearIndicator:Z},hideSelectedOptions:!1,styles:M,isDisabled:n!=null})})},A=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:n,selectProps:h}=e,{value:b,hasError:f}=h;return o.jsx(oe,{menuIsOpen:r,isFocused:t,isDisabled:n,optionsLen:b.length,hasError:f,children:o.jsx(p.Control,{...e,className:"select-control",children:e.children})})},K=e=>{const{selectProps:r}=e,{value:t}=r;return o.jsxs(p.ValueContainer,{...e,className:"select-value-container",children:[e.children,o.jsx(le,{className:"selected-options",children:t.map(n=>n.label).join(", ")})]})},Y=e=>{const{selectProps:r}=e,{placeholder:t,value:n}=r;return o.jsx(p.Input,{...e,autoComplete:"new-password",placeholder:n.length===0?t:void 0,children:e.children})},U=e=>o.jsx(p.MultiValue,{...e,children:e.children}),W=e=>{const{data:r}=e;return o.jsx(p.MultiValueLabel,{...e,children:r.label})},X=e=>o.jsx(p.MultiValueRemove,{...e,children:o.jsx(v,{style:{marginTop:"2px"}})}),Z=e=>o.jsx(p.ClearIndicator,{...e,children:o.jsx(v,{})}),q=()=>null,ee=e=>{const{isSelected:r,isDisabled:t,isFocused:n}=e;return o.jsx(ie,{isFocused:n,isSelected:r,isDisabled:t,children:o.jsx(p.Option,{...e,className:"select-option",children:o.jsxs(re,{children:[o.jsx(H,{...e.value.length===2?{countryCode2:e.value}:{countryCode3:e.value}}),o.jsx(se,{children:o.jsx(te,{isSelected:r,isDisabled:t,children:e.label})}),r?o.jsxs(ne,{children:[o.jsx(ae,{className:"right-tick-icon"}),o.jsx(v,{className:"close-tick-icon"})]}):null]})})})},oe=a.div`
1
+ import{J as E,cL as k,ex as S,V as o,cQ as V,y as u,p as g,o as l,u as s,d as C,eG as P,bJ as T,H as N,bK as p,eY as H,x as B,am as J,b as $,bI as G}from"./index-CE4a3GDT.js";import{n as a}from"./mui-4aI62okM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="de581fd7-e117-47fb-8cf5-03dcab11fac3",e._sentryDebugIdIdentifier="sentry-dbid-de581fd7-e117-47fb-8cf5-03dcab11fac3")}catch{}})();const Q=({name:e,registerOptions:r,defaultValue:t,isDisabled:n,style:h,placeholder:b})=>{const{control:f,formState:{errors:d}}=k(),w=C(),x=S(d,e??""),D=i=>({value:i.value,label:i.label}),_=i=>i.map(m=>D(m)),L=i=>{if(!(i==null||!i))return{value:i,label:t.allOptions.find(m=>m.value===i)?.label??i}},I=i=>i.map(m=>L(m)),M={container:i=>({...i,width:"100%",...h}),menu:i=>({...i,backgroundColor:w.colors.grey5,borderRadius:l.sp1,boxShadow:`${l.sp0} 2px ${l.sp2} ${w.colors.dropShadowHover}`,whiteSpace:"nowrap",zIndex:10,width:"100%",margin:0}),menuList:i=>({...i,borderRadius:l.sp1})},F={hasError:x};return o.jsx(P,{name:e,control:f,defaultValue:t,rules:r,render:({field:{onChange:i,onBlur:m,value:y,ref:R}})=>o.jsx(T,{...F,ref:R,isMulti:!0,isSearchable:!0,isClearable:!0,controlShouldRenderValue:!0,placeholder:b,value:I(y.selectedOptions),options:_(y.allOptions),onChange:z=>{i({selectedOptions:z.map(O=>O?.value),allOptions:y.allOptions})},tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"multi-select-field",onBlur:m,menuPlacement:"auto",maxMenuHeight:210,menuShouldScrollIntoView:!1,closeMenuOnSelect:!1,components:{Control:A,Option:ee,Input:Y,MultiValue:U,MultiValueLabel:W,MultiValueRemove:X,ValueContainer:K,DropdownIndicator:de,IndicatorSeparator:ce,Placeholder:q,ClearIndicator:Z},hideSelectedOptions:!1,styles:M,isDisabled:n!=null})})},A=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:n,selectProps:h}=e,{value:b,hasError:f}=h;return o.jsx(oe,{menuIsOpen:r,isFocused:t,isDisabled:n,optionsLen:b.length,hasError:f,children:o.jsx(p.Control,{...e,className:"select-control",children:e.children})})},K=e=>{const{selectProps:r}=e,{value:t}=r;return o.jsxs(p.ValueContainer,{...e,className:"select-value-container",children:[e.children,o.jsx(le,{className:"selected-options",children:t.map(n=>n.label).join(", ")})]})},Y=e=>{const{selectProps:r}=e,{placeholder:t,value:n}=r;return o.jsx(p.Input,{...e,autoComplete:"new-password",placeholder:n.length===0?t:void 0,children:e.children})},U=e=>o.jsx(p.MultiValue,{...e,children:e.children}),W=e=>{const{data:r}=e;return o.jsx(p.MultiValueLabel,{...e,children:r.label})},X=e=>o.jsx(p.MultiValueRemove,{...e,children:o.jsx(v,{style:{marginTop:"2px"}})}),Z=e=>o.jsx(p.ClearIndicator,{...e,children:o.jsx(v,{})}),q=()=>null,ee=e=>{const{isSelected:r,isDisabled:t,isFocused:n}=e;return o.jsx(ie,{isFocused:n,isSelected:r,isDisabled:t,children:o.jsx(p.Option,{...e,className:"select-option",children:o.jsxs(re,{children:[o.jsx(H,{...e.value.length===2?{countryCode2:e.value}:{countryCode3:e.value}}),o.jsx(se,{children:o.jsx(te,{isSelected:r,isDisabled:t,children:e.label})}),r?o.jsxs(ne,{children:[o.jsx(ae,{className:"right-tick-icon"}),o.jsx(v,{className:"close-tick-icon"})]}):null]})})})},oe=a.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 W,cL as F,ex as z,V as t,cQ as B,y as x,aR as I,p as u,u as s,o as i,eG as G,H as Q,d as J,F as K,eW as X,B as q,dn as A,cv as U,bK as S,d1 as Y,dO as Z,b as k,bI as ee,x as le}from"./index-BkgFwDrN.js";import{n as a}from"./mui-B8eJ9Mf-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="3ee16b20-5f5f-485e-9931-804c48e11acc",e._sentryDebugIdIdentifier="sentry-dbid-3ee16b20-5f5f-485e-9931-804c48e11acc")}catch{}})();const te=({allValues:e,selectedValue:r,name:o,onSelectedValueChanged:n,isDisabled:d,placeholder:h,isOptionRemovable:w=!0,addIconInCreateLabel:b,getLabelForId:m,tagProperties:f,hasError:j,style:c})=>{const y=J(),$=Se(e,m),C=K.getLocalizedStrings().dropDowns,O=$.sort((l,p)=>l.label.localeCompare(p.label)),v=r!=null&&r?R(r,m):void 0,P={container:l=>({...l,width:"100%",...c}),menu:l=>({...l,backgroundColor:y.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${y.colors.dropShadowHover}`,border:`1px solid ${y.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${i.sp0} ${i.sp0} ${i.sp0}`,overflow:"hidden"}),menuList:l=>({...l,borderRadius:i.sp1}),input:(l,{selectProps:p})=>({...l,":after":{width:p.inputValue.length>0?i.sp0:"unset"}})},E=l=>t.jsxs(fe,{children:[t.jsx(me,{children:t.jsx(Y,{fill:"currentColor",height:i.sp3,width:i.sp3})}),t.jsx(xe,{children:`${C.createOption} "${l}"`})]}),T=l=>{const{menuIsOpen:p,isFocused:D,isDisabled:L,selectProps:H}=l,{value:N}=H;return t.jsx(se,{menuIsOpen:p,isFocused:D,isDisabled:L,selectedValue:N,hasError:j,"data-testid":I("creatable-single-select-control",o),children:t.jsx(S.Control,{...l,className:"select-control",children:l.children})})},M=l=>t.jsx($e,{children:t.jsxs(S.SingleValue,{...l,children:[l.selectProps.menuIsOpen===!1&&f!=null&&f.isTagShownForOption(l.data.value)===!0&&t.jsx(we,{children:t.jsx(ye,{style:f.style,children:f.tagName})}),l.children]})}),_=l=>{const{selectProps:p}=l,{placeholder:D,value:L}=p;return t.jsx(S.Input,{...l,autoComplete:"new-password",placeholder:L==null?D:void 0,"data-testid":I("creatable-single-select-input",o),children:l.children})};return t.jsx(X,{isMulti:!1,onCreateOption:l=>{const p=q(l);n(p)},onChange:l=>{w!==!1&&l?.value!=null&&v?.value===l.value?n(void 0):n(l?.value)},formatCreateLabel:l=>b===!0?E(l):`${C.otherOption} ${l}`,tabSelectsValue:!1,openMenuOnFocus:!0,"data-testid":I("creatable-single-select",o),classNamePrefix:"creatable-single-select-field",createOptionPosition:"last",allowCreateWhileLoading:!0,controlShouldRenderValue:!0,placeholder:h,menuPlacement:"auto",maxMenuHeight:288,defaultValue:v,value:v,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:T,Option:ae,Input:_,SingleValue:M,ValueContainer:ie,DropdownIndicator:ve,IndicatorSeparator:Ie,ClearIndicator:je,Placeholder:oe,MenuList:re},hideSelectedOptions:!1,styles:P,options:O,isClearable:!0,isSearchable:!0,isDisabled:d!=null},A())},ie=e=>t.jsx(S.ValueContainer,{...e,className:"select-value-container",children:e.children}),re=e=>{const{options:r,children:o,maxHeight:n,getValue:d}=e,[h]=d(),w=r.indexOf(h)*40;return t.jsx(U,{height:o.length>7?n:o.length*40,width:"100%",itemCount:o.length,itemSize:()=>40,initialScrollOffset:w,children:({index:b,style:m})=>t.jsx(pe,{style:m,children:o[b]})})},oe=()=>null,ae=e=>{const{isSelected:r,isDisabled:o,isFocused:n,data:d}=e,h=typeof d.label=="string"?d.label:d.value;return t.jsx(ne,{isFocused:n,isSelected:r,isDisabled:o,children:t.jsx(S.Option,{...e,className:"select-option",children:t.jsxs(de,{"data-testid":I("creatable-single-select-option",h),children:[t.jsx(he,{children:t.jsx(ce,{isSelected:r,isDisabled:o,children:e.label})}),r?t.jsxs(ue,{children:[t.jsx(ge,{className:"right-tick-icon"}),t.jsx(be,{className:"close-tick-icon"})]}):null]})})})},se=a.div`
1
+ import{J as W,cL as F,ex as z,V as t,cQ as B,y as x,aR as I,p as u,u as s,o as i,eG as G,H as Q,d as J,F as K,eW as X,B as q,dn as A,cv as U,bK as S,d1 as Y,dO as Z,b as k,bI as ee,x as le}from"./index-CE4a3GDT.js";import{n as a}from"./mui-4aI62okM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="3ee16b20-5f5f-485e-9931-804c48e11acc",e._sentryDebugIdIdentifier="sentry-dbid-3ee16b20-5f5f-485e-9931-804c48e11acc")}catch{}})();const te=({allValues:e,selectedValue:r,name:o,onSelectedValueChanged:n,isDisabled:d,placeholder:h,isOptionRemovable:w=!0,addIconInCreateLabel:b,getLabelForId:m,tagProperties:f,hasError:j,style:c})=>{const y=J(),$=Se(e,m),C=K.getLocalizedStrings().dropDowns,O=$.sort((l,p)=>l.label.localeCompare(p.label)),v=r!=null&&r?R(r,m):void 0,P={container:l=>({...l,width:"100%",...c}),menu:l=>({...l,backgroundColor:y.colors.grey5,borderRadius:i.sp1,boxShadow:`${i.sp0} 2px ${i.sp2} ${y.colors.dropShadowHover}`,border:`1px solid ${y.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${i.sp0} ${i.sp0} ${i.sp0}`,overflow:"hidden"}),menuList:l=>({...l,borderRadius:i.sp1}),input:(l,{selectProps:p})=>({...l,":after":{width:p.inputValue.length>0?i.sp0:"unset"}})},E=l=>t.jsxs(fe,{children:[t.jsx(me,{children:t.jsx(Y,{fill:"currentColor",height:i.sp3,width:i.sp3})}),t.jsx(xe,{children:`${C.createOption} "${l}"`})]}),T=l=>{const{menuIsOpen:p,isFocused:D,isDisabled:L,selectProps:H}=l,{value:N}=H;return t.jsx(se,{menuIsOpen:p,isFocused:D,isDisabled:L,selectedValue:N,hasError:j,"data-testid":I("creatable-single-select-control",o),children:t.jsx(S.Control,{...l,className:"select-control",children:l.children})})},M=l=>t.jsx($e,{children:t.jsxs(S.SingleValue,{...l,children:[l.selectProps.menuIsOpen===!1&&f!=null&&f.isTagShownForOption(l.data.value)===!0&&t.jsx(we,{children:t.jsx(ye,{style:f.style,children:f.tagName})}),l.children]})}),_=l=>{const{selectProps:p}=l,{placeholder:D,value:L}=p;return t.jsx(S.Input,{...l,autoComplete:"new-password",placeholder:L==null?D:void 0,"data-testid":I("creatable-single-select-input",o),children:l.children})};return t.jsx(X,{isMulti:!1,onCreateOption:l=>{const p=q(l);n(p)},onChange:l=>{w!==!1&&l?.value!=null&&v?.value===l.value?n(void 0):n(l?.value)},formatCreateLabel:l=>b===!0?E(l):`${C.otherOption} ${l}`,tabSelectsValue:!1,openMenuOnFocus:!0,"data-testid":I("creatable-single-select",o),classNamePrefix:"creatable-single-select-field",createOptionPosition:"last",allowCreateWhileLoading:!0,controlShouldRenderValue:!0,placeholder:h,menuPlacement:"auto",maxMenuHeight:288,defaultValue:v,value:v,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:T,Option:ae,Input:_,SingleValue:M,ValueContainer:ie,DropdownIndicator:ve,IndicatorSeparator:Ie,ClearIndicator:je,Placeholder:oe,MenuList:re},hideSelectedOptions:!1,styles:P,options:O,isClearable:!0,isSearchable:!0,isDisabled:d!=null},A())},ie=e=>t.jsx(S.ValueContainer,{...e,className:"select-value-container",children:e.children}),re=e=>{const{options:r,children:o,maxHeight:n,getValue:d}=e,[h]=d(),w=r.indexOf(h)*40;return t.jsx(U,{height:o.length>7?n:o.length*40,width:"100%",itemCount:o.length,itemSize:()=>40,initialScrollOffset:w,children:({index:b,style:m})=>t.jsx(pe,{style:m,children:o[b]})})},oe=()=>null,ae=e=>{const{isSelected:r,isDisabled:o,isFocused:n,data:d}=e,h=typeof d.label=="string"?d.label:d.value;return t.jsx(ne,{isFocused:n,isSelected:r,isDisabled:o,children:t.jsx(S.Option,{...e,className:"select-option",children:t.jsxs(de,{"data-testid":I("creatable-single-select-option",h),children:[t.jsx(he,{children:t.jsx(ce,{isSelected:r,isDisabled:o,children:e.label})}),r?t.jsxs(ue,{children:[t.jsx(ge,{className:"right-tick-icon"}),t.jsx(be,{className:"close-tick-icon"})]}):null]})})})},se=a.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 W,cL as j,ex as g,V as r,cQ as U,y as a,eX as k,F as N,aR as O,u as i,o,p as _,H as A}from"./index-BkgFwDrN.js";import{n as d}from"./mui-B8eJ9Mf-.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]="ccc46613-5943-4616-903c-f4e4b1b45d61",e._sentryDebugIdIdentifier="sentry-dbid-ccc46613-5943-4616-903c-f4e4b1b45d61")}catch{}})();const t={width:new a(343,580,726),height:new a(i[6],i[6]),paddingTopBottom:new a(i[2],i[2]),marginRight:new a(i[2],i[2]),labelMarginLeft:new a(i[3],i[4]),labelMarginRight:new a(i[3],i[4]),labelMarginTop:new a(i[2],i[2])},J={infoLabel:new A("extraSmallRegular","smallRegular")};function Q({label:e,isDisabled:l,isOptional:p,style:c,file:h,name:n,registerOptions:u,additionalInfoLabel:f,acceptableTypes:y,sizeLimit:w,filemetadataPayload:x,deleteFileStatusById:$,updateFileStatusById:z,filesEndPoint:P,authParams:F,hasError:D=!1,placeholderText:E,showPhotoPicker:S,useMobileCam:v,showUploadSuccessAnimation:I,showWebCamPopUpCloseIcon:T,updateFilesEntity:L,onDeleteFile:R,onEditFileName:B,onFileSizeError:M}){const s=W(),{formState:{errors:m}}=j(),b=g(m,n),C=g(m,`${n}.fileName`);return r.jsxs(V,{size:s,style:c,isDisabled:l!=null,"data-testid":O("document-field",n),children:[r.jsx(U,{isDisabled:l,label:e.label,isOptional:p,style:{marginLeft:t.labelMarginLeft.value(s),marginRight:t.labelMarginRight.value(s),marginTop:t.labelMarginTop.value(s),width:e.width??"auto",...e.style}}),r.jsxs(H,{labelWidth:e.width,size:s,children:[r.jsx(k,{name:n,filesEndPoint:P,authParams:F,registerOptions:u,file:h,sizeLimit:w,acceptableTypes:y,isDisabled:l==="disabled"||l==="readonly",filemetadataPayload:x,deleteFileStatusById:$,updateFileStatusById:z,hasError:D,updateFilesEntity:L,onFileSizeError:M,onDeleteFile:R,onEditFileName:B,placeholderText:E,showPhotoPicker:S,useMobileCam:v,showWebCamPopUpCloseIcon:T,showUploadSuccessAnimation:I}),b&&r.jsx(q,{size:s,isError:b,children:C&&h!=null?N.getLocalizedStrings().commonSetUp.businessVerification.fileNameRequired:f})]})]})}const V=d.div`
1
+ import{J as W,cL as j,ex as g,V as r,cQ as U,y as a,eX as k,F as N,aR as O,u as i,o,p as _,H as A}from"./index-CE4a3GDT.js";import{n as d}from"./mui-4aI62okM.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]="ccc46613-5943-4616-903c-f4e4b1b45d61",e._sentryDebugIdIdentifier="sentry-dbid-ccc46613-5943-4616-903c-f4e4b1b45d61")}catch{}})();const t={width:new a(343,580,726),height:new a(i[6],i[6]),paddingTopBottom:new a(i[2],i[2]),marginRight:new a(i[2],i[2]),labelMarginLeft:new a(i[3],i[4]),labelMarginRight:new a(i[3],i[4]),labelMarginTop:new a(i[2],i[2])},J={infoLabel:new A("extraSmallRegular","smallRegular")};function Q({label:e,isDisabled:l,isOptional:p,style:c,file:h,name:n,registerOptions:u,additionalInfoLabel:f,acceptableTypes:y,sizeLimit:w,filemetadataPayload:x,deleteFileStatusById:$,updateFileStatusById:z,filesEndPoint:P,authParams:F,hasError:D=!1,placeholderText:E,showPhotoPicker:S,useMobileCam:v,showUploadSuccessAnimation:I,showWebCamPopUpCloseIcon:T,updateFilesEntity:L,onDeleteFile:R,onEditFileName:B,onFileSizeError:M}){const s=W(),{formState:{errors:m}}=j(),b=g(m,n),C=g(m,`${n}.fileName`);return r.jsxs(V,{size:s,style:c,isDisabled:l!=null,"data-testid":O("document-field",n),children:[r.jsx(U,{isDisabled:l,label:e.label,isOptional:p,style:{marginLeft:t.labelMarginLeft.value(s),marginRight:t.labelMarginRight.value(s),marginTop:t.labelMarginTop.value(s),width:e.width??"auto",...e.style}}),r.jsxs(H,{labelWidth:e.width,size:s,children:[r.jsx(k,{name:n,filesEndPoint:P,authParams:F,registerOptions:u,file:h,sizeLimit:w,acceptableTypes:y,isDisabled:l==="disabled"||l==="readonly",filemetadataPayload:x,deleteFileStatusById:$,updateFileStatusById:z,hasError:D,updateFilesEntity:L,onFileSizeError:M,onDeleteFile:R,onEditFileName:B,placeholderText:E,showPhotoPicker:S,useMobileCam:v,showWebCamPopUpCloseIcon:T,showUploadSuccessAnimation:I}),b&&r.jsx(q,{size:s,isError:b,children:C&&h!=null?N.getLocalizedStrings().commonSetUp.businessVerification.fileNameRequired:f})]})]})}const V=d.div`
2
2
  display: flex;
3
3
  flex-direction: ${e=>e.size==="small"?"column":"row"};
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{J as V,d as C,cL as h,ex as R,V as r,o,eG as _,bT as H,b as J,gk as M,p as s,H as P,bI as A}from"./index-BkgFwDrN.js";import{n as i}from"./mui-B8eJ9Mf-.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]="e3c0a617-c22c-4454-a62f-2946259524b2",e._sentryDebugIdIdentifier="sentry-dbid-e3c0a617-c22c-4454-a62f-2946259524b2")}catch{}})();const F={infoLabel:new P("extraSmallRegular","smallRegular")};function N({isDisabled:e,label:a,formattedText:t,dropdownStyle:f,style:m,additionalInfoLabel:y,showAdditionalInfoLabel:x=!0,isSaveError:d=!1,showTickIcon:w,showErrorInfoLabel:$,errorInfoLabel:L,registerOptions:k,defaultValue:p,isSelectDisabled:D,menuPlacement:v,name:I,placeholderLabel:j}){const n=V(),g=C(),{formState:{errors:E}}=h(),c=R(E,t.name),{control:S}=h(),z=l=>typeof l=="string"?l.toLocaleUpperCase():l.toString().toLocaleUpperCase();return r.jsxs(G,{size:n,style:m,isDisabled:e!=null,isError:c||d,children:[r.jsx(K,{windowSize:n,style:{width:a?.width??"auto",marginRight:o.sp2},children:r.jsx(W,{style:{width:"auto",...f},children:r.jsx(_,{name:I,control:S,defaultValue:p.dropDownValue,rules:k,render:({field:{value:l,onChange:T}})=>r.jsx(H,{pickerValues:p.dropDownList.map(u=>u.code),valueToLabel:z,selectedValue:l??void 0,isDisabled:e!=null||D,onPickerSelectionChanged:u=>{T(u)},menuPlacement:v,titleTextStyle:J.standardRegular,titleColor:g.colors.hero,valueOpacity:1,backgroundColor:g.colors.grey5,placeholder:j})})})}),r.jsxs(O,{children:[r.jsx(M,{...t,style:t.style,isDisabled:t.isDisabled,isMasked:!0}),(x||c||d)&&r.jsxs(b,{size:n,isError:c||d,children:[w===!0?r.jsx(U,{children:r.jsx(B,{})}):null,y]}),$===!0&&r.jsx(b,{size:n,isError:!0,children:L})]})]})}const G=i.div`
1
+ import{J as V,d as C,cL as h,ex as R,V as r,o,eG as _,bT as H,b as J,gk as M,p as s,H as P,bI as A}from"./index-CE4a3GDT.js";import{n as i}from"./mui-4aI62okM.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]="e3c0a617-c22c-4454-a62f-2946259524b2",e._sentryDebugIdIdentifier="sentry-dbid-e3c0a617-c22c-4454-a62f-2946259524b2")}catch{}})();const F={infoLabel:new P("extraSmallRegular","smallRegular")};function N({isDisabled:e,label:a,formattedText:t,dropdownStyle:f,style:m,additionalInfoLabel:y,showAdditionalInfoLabel:x=!0,isSaveError:d=!1,showTickIcon:w,showErrorInfoLabel:$,errorInfoLabel:L,registerOptions:k,defaultValue:p,isSelectDisabled:D,menuPlacement:v,name:I,placeholderLabel:j}){const n=V(),g=C(),{formState:{errors:E}}=h(),c=R(E,t.name),{control:S}=h(),z=l=>typeof l=="string"?l.toLocaleUpperCase():l.toString().toLocaleUpperCase();return r.jsxs(G,{size:n,style:m,isDisabled:e!=null,isError:c||d,children:[r.jsx(K,{windowSize:n,style:{width:a?.width??"auto",marginRight:o.sp2},children:r.jsx(W,{style:{width:"auto",...f},children:r.jsx(_,{name:I,control:S,defaultValue:p.dropDownValue,rules:k,render:({field:{value:l,onChange:T}})=>r.jsx(H,{pickerValues:p.dropDownList.map(u=>u.code),valueToLabel:z,selectedValue:l??void 0,isDisabled:e!=null||D,onPickerSelectionChanged:u=>{T(u)},menuPlacement:v,titleTextStyle:J.standardRegular,titleColor:g.colors.hero,valueOpacity:1,backgroundColor:g.colors.grey5,placeholder:j})})})}),r.jsxs(O,{children:[r.jsx(M,{...t,style:t.style,isDisabled:t.isDisabled,isMasked:!0}),(x||c||d)&&r.jsxs(b,{size:n,isError:c||d,children:[w===!0?r.jsx(U,{children:r.jsx(B,{})}):null,y]}),$===!0&&r.jsx(b,{size:n,isError:!0,children:L})]})]})}const G=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{J as p,V as d,cQ as f,y as l,aR as g,u as t,o as a,am as u,H as c}from"./index-BkgFwDrN.js";import{n as r}from"./mui-B8eJ9Mf-.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]="122a783e-af40-4e86-986e-d9dac7672bb3",e._sentryDebugIdIdentifier="sentry-dbid-122a783e-af40-4e86-986e-d9dac7672bb3")}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 R({label:e,value:o,additionalInfoLabel:s,style:b,infoLabelStyle:h}){const n=p();return d.jsxs(m,{size:n,style:b,"data-testid":g("labeled-text",e.label),children:[d.jsx(f,{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:h,children:s}):null]})]})}const m=r.div`
1
+ import{J as p,V as d,cQ as f,y as l,aR as g,u as t,o as a,am as u,H as c}from"./index-CE4a3GDT.js";import{n as r}from"./mui-4aI62okM.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]="122a783e-af40-4e86-986e-d9dac7672bb3",e._sentryDebugIdIdentifier="sentry-dbid-122a783e-af40-4e86-986e-d9dac7672bb3")}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 R({label:e,value:o,additionalInfoLabel:s,style:b,infoLabelStyle:h}){const n=p();return d.jsxs(m,{size:n,style:b,"data-testid":g("labeled-text",e.label),children:[d.jsx(f,{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:h,children:s}):null]})]})}const m=r.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -1,4 +1,4 @@
1
- import{J as U,V as l,cQ as me,o as s,y as I,aR as B,u as m,cL as K,eG as ge,ex as be,d as fe,g3 as xe,F as R,H as we,bK as _,g4 as Z,aq as H,g5 as G,bI as J,p as F,b as Y,am as X,g6 as $e,an as ye,aj as ve}from"./index-BkgFwDrN.js";import{n as r}from"./mui-B8eJ9Mf-.js";import{T as je}from"./RoleWithToolTip-DhBFvJea-gODf7-hE.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]="3d70547d-39cf-4483-b643-38281138bd3a",e._sentryDebugIdIdentifier="sentry-dbid-3d70547d-39cf-4483-b643-38281138bd3a")}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,cQ as me,o as s,y as I,aR as B,u as m,cL as K,eG as ge,ex as be,d as fe,g3 as xe,F as R,H as we,bK as _,g4 as Z,aq as H,g5 as G,bI as J,p as F,b as Y,am as X,g6 as $e,an as ye,aj as ve}from"./index-CE4a3GDT.js";import{n as r}from"./mui-4aI62okM.js";import{T as je}from"./RoleWithToolTip-DhBFvJea-Dgz4vQkX.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]="3d70547d-39cf-4483-b643-38281138bd3a",e._sentryDebugIdIdentifier="sentry-dbid-3d70547d-39cf-4483-b643-38281138bd3a")}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;
@@ -1,4 +1,4 @@
1
- import{J as L,V as l,cQ as G,y as m,o,aR as H,u as n,cL as E,eG as K,ex as q,d as Q,b as M,bJ as ie,F as te,g0 as se,g7 as ae,aL as ne,b3 as de,bK as B,bc as ce,bI as pe,cE as ue,p as C,g8 as U,ck as X,i as he,aj as Y,am as ge,an as me,fO as be,fN as fe,by as xe,fP as ye,bk as we,g9 as ve}from"./index-BkgFwDrN.js";import{n as d,c as $e}from"./mui-B8eJ9Mf-.js";import{a as D}from"./sentry-DG5QSuAU.js";import{FK as W,FL as Re}from"./zeni-epic-state-DJMVsfEo.js";import{T as je}from"./RoleWithToolTip-DhBFvJea-gODf7-hE.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]="2ca40470-9683-4f00-8033-d6307c500340",e._sentryDebugIdIdentifier="sentry-dbid-2ca40470-9683-4f00-8033-d6307c500340")}catch{}})();const N={grpBtnMarginTopBottom:new m(n[1],n[3]),grpBtnMarginLeftRight:new m(n[0],n[3])},Se=d.div`
1
+ import{J as L,V as l,cQ as G,y as m,o,aR as H,u as n,cL as E,eG as q,ex as K,d as Q,b as I,bJ as ie,F as te,g0 as se,g7 as ae,aL as ne,b3 as de,bK as B,bc as ce,bI as pe,cE as ue,p as C,g8 as U,ck as X,i as he,aj as Y,am as ge,an as me,fO as be,fN as fe,by as xe,fP as ye,bk as we,g9 as ve}from"./index-CE4a3GDT.js";import{n as d,c as $e}from"./mui-4aI62okM.js";import{a as D}from"./sentry-wpLc0w9b.js";import{FL as W,FM as Re}from"./zeni-epic-state-BwFYSQY8.js";import{T as je}from"./RoleWithToolTip-DhBFvJea-Dgz4vQkX.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]="ab66fc4a-e419-43bd-9939-30bc3ae5bf9d",e._sentryDebugIdIdentifier="sentry-dbid-ab66fc4a-e419-43bd-9939-30bc3ae5bf9d")}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)};
@@ -87,9 +87,9 @@ import{J as L,V as l,cQ as G,y as m,o,aR as H,u as n,cL as E,eG as K,ex as q,d a
87
87
  `,Le=d.div`
88
88
  display: flex;
89
89
  flex-direction: column;
90
- `,Ie=d(X)`
90
+ `,Me=d(X)`
91
91
  display: flex;
92
- `,Me=d(Y)`
92
+ `,Ie=d(Y)`
93
93
  display: flex;
94
94
  margin-bottom: ${o.sp1};
95
95
  `,Ve=d(me)`
@@ -135,7 +135,7 @@ import{J as L,V as l,cQ as G,y as m,o,aR as H,u as n,cL as E,eG as K,ex as q,d a
135
135
  margin-right: ${e=>V.allRolesMarginLeftRight.valuePx(e.windowSize)};
136
136
  margin-left: ${e=>V.allRolesMarginLeftRight.valuePx(e.windowSize)};
137
137
  color: ${e=>e.theme.mode==="light"?C.brandColorOnyx:C.brandColorPearl};
138
- `,Ge=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(We,{});case"zeni_cards":return l.jsx(Ae,{});case"zeni_treasury":return l.jsx(Ze,{});default:return null}},Ke=e=>l.jsxs(Le,{children:[l.jsx(Ie,{className:"roleTitle",children:U[e].label}),l.jsx(Me,{className:"roleSubTitle",children:U[e].subTitle}),l.jsx(Ve,{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=L(),$=i.productsByUserRole.employee.findIndex(h=>h.productType==="zeni_reimbursements"),b=D.useCallback(h=>{const t=se([h]),k=ae(h),v=ne(i.productsByUserRole[t]),R=v.findIndex(z=>z.productType===k),I=v[R].selectedOption?.value===h;R>-1&&(v[R]={...v[R],selectedOption:I?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(Je,{windowSize:f,children:l.jsx(je,{roles:u})}):l.jsx(Pe,{children:x.map(h=>l.jsxs(Ce,{windowSize:f,children:[l.jsx(Be,{isError:a,children:l.jsx(de,{isDisabled:s,label:{label:Ke(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&&Ge(t.productType)}),l.jsxs(Fe,{children:[l.jsx(Te,{children:t.label}),f==="small"?l.jsx(A,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b}):null,l.jsx(Z,{children:t.subTitleUser}),l.jsx(Z,{children:t.subTitleAdmin})]})]}),f!=="small"?l.jsx(A,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b,isDisabled:s}):null]},t.productType))})]},h))})},Qe=({name:e,defaultValue:s,isDisabled:i,registerOptions:c})=>{const{control:p}=E();return l.jsx(K,{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=L();return l.jsxs(Xe,{size:p,style:c,isDisabled:e!=null,children:[l.jsx(G,{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(Qe,{...i,isDisabled:e})]})}const Xe=d.div`
138
+ `,Ge=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(We,{});case"zeni_cards":return l.jsx(Ae,{});case"zeni_treasury":return l.jsx(Ze,{});default:return null}},qe=e=>l.jsxs(Le,{children:[l.jsx(Me,{className:"roleTitle",children:U[e].label}),l.jsx(Ie,{className:"roleSubTitle",children:U[e].subTitle}),l.jsx(Ve,{className:"roleSuitableFor",children:U[e].roleSuitableFor})]}),Ke=({name:e,isDisabled:s,selectedValue:i,onSelectionChanged:c})=>{const{formState:{errors:p}}=E(),a=K(p,`${e}.userRole.selectedRole`),f=L(),$=i.productsByUserRole.employee.findIndex(h=>h.productType==="zeni_reimbursements"),b=D.useCallback(h=>{const t=se([h]),k=ae(h),v=ne(i.productsByUserRole[t]),R=v.findIndex(z=>z.productType===k),M=v[R].selectedOption?.value===h;R>-1&&(v[R]={...v[R],selectedOption:M?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(Je,{windowSize:f,children:l.jsx(je,{roles:u})}):l.jsx(Pe,{children:x.map(h=>l.jsxs(Ce,{windowSize:f,children:[l.jsx(Be,{isError:a,children:l.jsx(de,{isDisabled:s,label:{label:qe(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&&Ge(t.productType)}),l.jsxs(Fe,{children:[l.jsx(Te,{children:t.label}),f==="small"?l.jsx(A,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b}):null,l.jsx(Z,{children:t.subTitleUser}),l.jsx(Z,{children:t.subTitleAdmin})]})]}),f!=="small"?l.jsx(A,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b,isDisabled:s}):null]},t.productType))})]},h))})},Qe=({name:e,defaultValue:s,isDisabled:i,registerOptions:c})=>{const{control:p}=E();return l.jsx(q,{name:e,control:p,defaultValue:s,rules:c,render:({field:{onChange:a,value:f}})=>{const $=f;return l.jsx(Ke,{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=L();return l.jsxs(Xe,{size:p,style:c,isDisabled:e!=null,children:[l.jsx(G,{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(Qe,{...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 L,V as l,cQ as G,y as m,o,aR as H,u as n,cL as E,eG as K,ex 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=Q(),k=L(),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,I=M.smallRegular.cssObject,_=I,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:k==="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,...M.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:k==="small"?"230px":"100%",right:k==="small"?o.sp0:"unset",borderRadius:o.sp1,margin:o.sp0,border:k==="small"?`1px solid ${t.colors.grey3}`:"unset"}),menuList:r=>({...r,maxHeight:"240px"}),option:(r,{isSelected:g,isDisabled:T,data:O})=>{const w=W(O.value)&&s===!0,F=J(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,...I,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:J(!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:k,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&&W(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,J=(e,s,i,c)=>e&&!s&&i!=="delete"?c.colors.primary:s?c.colors.grey1:i==="delete"?C.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:P}}=E(),h=K(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=Q(),k=L(),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,M=I.smallRegular.cssObject,_=M,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:k==="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:k==="small"?"230px":"100%",right:k==="small"?o.sp0:"unset",borderRadius:o.sp1,margin:o.sp0,border:k==="small"?`1px solid ${t.colors.grey3}`:"unset"}),menuList:r=>({...r,maxHeight:"240px"}),option:(r,{isSelected:g,isDisabled:T,data:O})=>{const w=W(O.value)&&s===!0,F=J(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,...M,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:J(!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:k,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&&W(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,J=(e,s,i,c)=>e&&!s&&i!=="delete"?c.colors.primary:s?c.colors.grey1:i==="delete"?C.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;
@@ -218,7 +218,7 @@ import{J as L,V as l,cQ as G,y as m,o,aR as H,u as n,cL as E,eG as K,ex as q,d a
218
218
  border-radius: ${o.sp0};
219
219
  margin: ${o.sp0};
220
220
  color: ${e=>e.theme.colors.primary};
221
- ${M.standardRegular.css};
221
+ ${I.standardRegular.css};
222
222
  box-sizing: border-box;
223
223
  overflow: hidden;
224
224
  text-overflow: ellipsis;
@@ -229,7 +229,7 @@ import{J as L,V as l,cQ as G,y as m,o,aR as H,u as n,cL as E,eG as K,ex as q,d a
229
229
  display: flex;
230
230
  width: ${e=>e.menuIsOpen===!1&&e.selectedValue==null?o.sp0:"100%"};
231
231
  position: ${e=>e.isFocused===!1&&e.selectedValue==null?"initial":"absolute"};
232
- ${M.standardRegular.css};
232
+ ${I.standardRegular.css};
233
233
  color: ${e=>e.theme.colors.primary};
234
234
  margin: ${o.sp0};
235
235
  cursor: inherit;
@@ -258,7 +258,7 @@ import{J as L,V as l,cQ as G,y as m,o,aR as H,u as n,cL as E,eG as K,ex 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(K,{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=L();return l.jsxs(ho,{size:p,style:c,isDisabled:e!=null,"data-testid":H("labeled-zeni-roles-dropdown-field",i.name),children:[l.jsx(G,{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(q,{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=L();return l.jsxs(ho,{size:p,style:c,isDisabled:e!=null,"data-testid":H("labeled-zeni-roles-dropdown-field",i.name),children:[l.jsx(G,{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,aS as ue,aa as pe,cH as me,iN as E,iy as I,cI as he,V as n,ad as ge,ga as fe,aT as be,F as H,o as t,y as m,c as xe,x as ye,cM as M,iO as we,p as je,b as P,bj as Ce,u as r}from"./index-BkgFwDrN.js";import{a as O}from"./sentry-DG5QSuAU.js";import{n as i}from"./mui-B8eJ9Mf-.js";import{Gb as Q,G8 as Se,G9 as De}from"./zeni-epic-state-DJMVsfEo.js";import $e from"./TransactionDetailPage-CuxqQd8U-Dt1rWnVY.js";import"./liveblocks-Fce3U47w.js";import"./core-ynj-rcGI.js";import"./recharts-DcXbW3wD.js";import"./lottie-DfQwbfZe.js";import"./analytics-BB7e_ruj.js";import"./lexical-f2bgmP7p.js";import"./utils-BaLrPeRI.js";import"./LabeledControlledCheckBoxField-BsFqjCpn-CKjTDhsz.js";import"./TrendWithTransactions-Bp3vhaPa-ZS_RG_DW.js";import"./TrendChart-C6B61CAm-bXXragiZ.js";import"./chartTypes-Ddw_3-6f-Csaj7V69.js";import"./toCOABalancesWithID-AzKAZ-Cv-CCwxF2fh.js";import"./toChartData-BEjMhb7--DYoES1lW.js";import"./NoDataChart-CyYJ6icu-UFnH1bQE.js";import"./InsightsSection-D-oCmrir-zwdAlcVd.js";import"./NavigationDots-BQb_Fodq-C676OOhh.js";import"./TransactionList-80KjM8Kg-BHuPkwXo.js";import"./ConstrainedInnerElement-BeIpAPjB-2nYINCi5.js";import"./BoxItem-CACRFWG2-BB7KWtP2.js";import"./commonDimensions-ClmbdehE-C4kq5775.js";import"./panelSelectedMixin-CzfD5-Zs-CiHp6UKy.js";import"./uploadAttachment-DUpHzqMe-CZ5MQPFU.js";import"./radio-default-CiSgisfh-DJRkcPvg.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]="03b970cf-9e67-4d27-87fa-588240d9e60d",e._sentryDebugIdIdentifier="sentry-dbid-03b970cf-9e67-4d27-87fa-588240d9e60d")}catch{}})();const R={labelWidth:new m(120,145,160)},ve=i.div`
1
+ import{J as G,aS as ue,aa as pe,cH as me,iN as E,iy as I,cI as he,V as n,ad as ge,ga as fe,aT as be,F as H,o as t,y as m,c as xe,x as ye,cM as M,iO as we,p as je,b as P,bj as Ce,u as r}from"./index-CE4a3GDT.js";import{a as O}from"./sentry-wpLc0w9b.js";import{n as i}from"./mui-4aI62okM.js";import{Gc as Q,G9 as Se,Ga as De}from"./zeni-epic-state-BwFYSQY8.js";import $e from"./TransactionDetailPage-CuxqQd8U-C7HaHQgc.js";import"./liveblocks-mJOf9rAw.js";import"./core-Cgphrdqi.js";import"./recharts-D-YAfDZj.js";import"./lottie-CH7yL4lR.js";import"./analytics-T3rNNQ2m.js";import"./lexical-B-NT_OOU.js";import"./utils-DCLZL4US.js";import"./LabeledControlledCheckBoxField-BsFqjCpn-D3fNKAIX.js";import"./TrendWithTransactions-Bp3vhaPa-e76VZDlM.js";import"./TrendChart-C6B61CAm-siwog8qJ.js";import"./chartTypes-Ddw_3-6f-CfWoV01X.js";import"./toCOABalancesWithID-AzKAZ-Cv-CQOX84Xq.js";import"./toChartData-BEjMhb7--hwFvZNwn.js";import"./NoDataChart-CyYJ6icu-BGrJ0dxK.js";import"./InsightsSection-D-oCmrir-BSx2VeKU.js";import"./NavigationDots-BQb_Fodq-DGHg-XPw.js";import"./TransactionList-80KjM8Kg-yWcw7Xvy.js";import"./ConstrainedInnerElement-BeIpAPjB-Cv6zV673.js";import"./BoxItem-CACRFWG2-DUMZBWzz.js";import"./commonDimensions-ClmbdehE-CI63aI0W.js";import"./panelSelectedMixin-CzfD5-Zs-C5j9Taxu.js";import"./uploadAttachment-DUpHzqMe-DfPSBMVO.js";import"./radio-default-CiSgisfh-DBK2UBgp.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]="1ec2f6d5-7074-4909-b8eb-c3f939a3b941",e._sentryDebugIdIdentifier="sentry-dbid-1ec2f6d5-7074-4909-b8eb-c3f939a3b941")}catch{}})();const R={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 _e,aa as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as He,g5 as Ue,o as r,b as We,bV as Ve,aP as re,cQ as Ye,b3 as q,es as qe,T as Xe,aT as Ge,F as U,ap as Ke,cM as gr,i as pe,a9 as xr,ax as wr,gW as $r,gg as fr,aR as de,u as b,x as Je,bX as xe,R as Ze,am as j,b9 as we,aj as G,dw as Qe,b1 as er,cE as rr,p as X,an as tr,iS as oe,j1 as yr,j6 as br,j7 as jr,dx as Pe,fw as vr,eN as Sr}from"./index-BkgFwDrN.js";import{a as ae}from"./sentry-DG5QSuAU.js";import{n as i}from"./mui-B8eJ9Mf-.js";import{EP as Cr}from"./zeni-epic-state-DJMVsfEo.js";import{T as ir}from"./RoleWithToolTip-DhBFvJea-gODf7-hE.js";import{j as or}from"./CardNumberSubText-C-oVdziK-DsJNwxlk.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]="a154536c-f68c-45ea-947d-576406ab227a",e._sentryDebugIdIdentifier="sentry-dbid-a154536c-f68c-45ea-947d-576406ab227a")}catch{}})();const Q="cardName",fe=U.getLocalizedStrings().spendManagement.chargeCard.renamePopup;function vi({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()},R=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(Ke,{onClickAway:()=>c(),children:t.jsxs(kr,{windowSize:l,children:[t.jsx(ge,{...n,children:t.jsxs(Ir,{id:y,onSubmit:$=>{$.preventDefault(),R()},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,d as _e,aa as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as He,g5 as Ue,o as r,b as We,bV as Ve,aP as re,cQ as Ye,b3 as q,es as qe,T as Xe,aT as Ge,F as U,ap as Ke,cM as gr,i as pe,a9 as xr,ax as wr,gW as $r,gg as fr,aR as de,u as y,x as Je,bX as xe,R as Ze,am as j,b9 as we,aj as G,dw as Qe,b1 as er,cE as rr,p as X,an as tr,iS as oe,j1 as br,j6 as yr,j7 as jr,dx as Pe,fw as vr,eN as Sr}from"./index-CE4a3GDT.js";import{a as ae}from"./sentry-wpLc0w9b.js";import{n as i}from"./mui-4aI62okM.js";import{EQ as Cr}from"./zeni-epic-state-BwFYSQY8.js";import{T as ir}from"./RoleWithToolTip-DhBFvJea-Dgz4vQkX.js";import{j as or}from"./CardNumberSubText-C-oVdziK-CNdm0o_p.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]="5fc6a49e-ab4a-4eb6-a245-17df93c2f8bd",e._sentryDebugIdIdentifier="sentry-dbid-5fc6a49e-ab4a-4eb6-a245-17df93c2f8bd")}catch{}})();const Q="cardName",fe=U.getLocalizedStrings().spendManagement.chargeCard.renamePopup;function vi({currentCardName:e,renameFetchState:h,onCancelClick:c,onSubmitClick:p}){const l=he(),b="RenameCardForm",n=me({mode:"all",defaultValues:{[Q]:e},values:{[Q]:e}});ae.useEffect(()=>{n.setFocus(Q)},[]);const m=()=>{c()},R=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(Ke,{onClickAway:()=>c(),children:t.jsxs(kr,{windowSize:l,children:[t.jsx(ge,{...n,children:t.jsxs(Ir,{id:b,onSubmit:$=>{$.preventDefault(),R()},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:b})]})})]})})})}const le={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(y[5],y[6]),popupTopBottomPadding:new d(y[5],y[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 _e,aa as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
49
49
  }
50
50
  `,Ir=i.form`
51
51
  display: contents;
52
- `,ee="spendLimit",Z=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:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,currentSpentAmount:H,productInformation:v,creditAccountInformation:W,debitAccountInformation:V,maxLimitAmount:O,isDisabled:K,updateLimitFetchState:J,recommendations:I,cardIssuedByRoles:Y,cardHolderRoles:u,loggedInUserRole:F,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:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:u,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:F,clickItem:"Cancel",newSpendLimitAmount:ne,productInformation:v,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:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:u,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:F,productInformation:v,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(Fr(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(Ke,{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(Rr,{windowSize:f,children:Z.heading}),t.jsxs(Or,{windowSize:f,children:[Z.currentLimit,$e.strings.space," ",re("0,0.[00]",B),Z.slashMonth]}),t.jsxs(Hr,{hasError:ke,children:[t.jsx(fr,{label:{label:Z.newLimit,width:mr},showAdditionalInfoLabel:ke,additionalInfoLabel:dr,formattedTextField:{type:"number",name:ee,defaultValue:void 0,placeholder:Z.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(Mr,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(_r,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:J==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:K})]})})]})})})}const Fr=(e,h,c)=>{if(c!=null){if(c<=e.amount)return Z.amountBelowError.replace("_amount_",re("0,0.[00]",e));if(h!=null&&c>h.amount)return Z.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:R,creditAccount:N,creditAccountRepayment:o,signedInUser:T,isDebitCard:$,classListFetchState:B,currentLimitAmount:H,recommendedLimitAmounts:v,cardActivationDate:W,cardIssuedByRoles:V,cardHolderRoles:O,cardIssuedByDepartmentName:K,cardHolderDepartmentName:J,loggedInUserRole:I,clickItem:Y,newSpendLimitAmount:u})=>{n!=null&&B==="Completed"&&m!=null&&m.fetchState==="Completed"&&(!c||N.fetchState==="Completed"&&o.fetchState==="Completed")&&(!$||R==="Completed")&&e.trackCardsUpdateSpendLimitClick(h,p,{cardId:n.id,cardName:n.cardName,cardType:jr(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:K},{cardholderName:Pe(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:O,cardholderUserId:n.cardHolderUser?.userId,cardholderDepartment:J},{cardLimitUpdatedByName:vr(T),cardLimitUpdatedByEmail:T.userEmail,cardLimitUpdatedByRole:I,cardLimitUpdatedByUserId:T.userId},Y,oe(H.amount),v,u!=null?v.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",Z=U.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:be}=U.getLocalizedStrings();function Si({controllerEmails:e,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:l,cardDetail:b,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,currentSpentAmount:H,productInformation:v,creditAccountInformation:W,debitAccountInformation:V,maxLimitAmount:O,isDisabled:K,updateLimitFetchState:J,recommendations:I,cardIssuedByRoles:Y,cardHolderRoles:u,loggedInUserRole:F,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=b?.type.code.includes("physical")===!0?b.cardActivationAttemptHistory[0]?.timestamp:b?.createTime,ze=(b?.recommendations??[]).map(w=>w.creditLimit.amount),cr=()=>{b!=null&&Le({analytics:x,controllerEmails:e,isChargeCardFeatureEnabled:h,cardDetail:b,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:u,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:F,clickItem:"Cancel",newSpendLimitAmount:ne,productInformation:v,creditAccountInformation:W,debitAccountInformation:V}),s()},pr=te.handleSubmit(()=>{const w=te.getValues(ee);w!=null&&(Le({analytics:x,controllerEmails:e,isChargeCardFeatureEnabled:h,cardDetail:b,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:u,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:F,productInformation:v,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(Fr(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(Ke,{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(Rr,{windowSize:f,children:Z.heading}),t.jsxs(Or,{windowSize:f,children:[Z.currentLimit,$e.strings.space," ",re("0,0.[00]",B),Z.slashMonth]}),t.jsxs(Hr,{hasError:ke,children:[t.jsx(fr,{label:{label:Z.newLimit,width:mr},showAdditionalInfoLabel:ke,additionalInfoLabel:dr,formattedTextField:{type:"number",name:ee,defaultValue:void 0,placeholder:Z.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(Mr,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(_r,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:J==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:K})]})})]})})})}const Fr=(e,h,c)=>{if(c!=null){if(c<=e.amount)return Z.amountBelowError.replace("_amount_",re("0,0.[00]",e));if(h!=null&&c>h.amount)return Z.amountExceedError.replace("_amount_",re("0,0.[00]",h))}},Le=({analytics:e,controllerEmails:h,isChargeCardFeatureEnabled:c,productInformation:p,creditAccountInformation:l,debitAccountInformation:b,cardDetail:n,transactionStatistics:m,depositAccountLimitFetchState:R,creditAccount:N,creditAccountRepayment:o,signedInUser:T,isDebitCard:$,classListFetchState:B,currentLimitAmount:H,recommendedLimitAmounts:v,cardActivationDate:W,cardIssuedByRoles:V,cardHolderRoles:O,cardIssuedByDepartmentName:K,cardHolderDepartmentName:J,loggedInUserRole:I,clickItem:Y,newSpendLimitAmount:u})=>{n!=null&&B==="Completed"&&m!=null&&m.fetchState==="Completed"&&(!c||N.fetchState==="Completed"&&o.fetchState==="Completed")&&(!$||R==="Completed")&&e.trackCardsUpdateSpendLimitClick(h,p,{cardId:n.id,cardName:n.cardName,cardType:jr(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(be.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:n.providerCardCreateTime?.format(be.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:W?.format(be.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:n.creditLimitFrequency.name,cardSpentAmount:oe(n.balance.amount),cardAvailableLimit:oe(n.available.amount),cardUtilizationPercent:yr(n.limit.amount,n.available.amount),cardUtilizationAmount:oe(br(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:K},{cardholderName:Pe(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:O,cardholderUserId:n.cardHolderUser?.userId,cardholderDepartment:J},{cardLimitUpdatedByName:vr(T),cardLimitUpdatedByEmail:T.userEmail,cardLimitUpdatedByRole:I,cardLimitUpdatedByUserId:T.userId},Y,oe(H.amount),v,u!=null?v.includes(u):!1,u,l,b)},ce={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(y[5],y[6]),popupTopBottomPadding:new d(y[5],y[5])},Ar=i.div`
53
53
  position: fixed;
54
54
  top: ${r.sp0};
55
55
  left: ${r.sp0};
@@ -127,7 +127,7 @@ import{J as he,d as _e,aa as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq 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:M}=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:R,onDismissClick:N})=>{const o=he(),T=_e(),[$,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})},v=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}=v.formState,K=a=>`${p[a].cardHolderUser?.firstName??""} ${p[a].cardHolderUser?.lastName??""}`,J=ue(O,A(z,"reasonType")),I=v.watch("reasonSection.reasonType"),Y=v.handleSubmit(()=>{if(V){const a=v.getValues(),s={reason:a[z].reason,reasonType:a[z].reasonType};R(s)}}),u=Object.keys(l).length>1,F=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(Gr,{windowSize:o,children:[t.jsxs(Kr,{windowSize:o,children:[t.jsx(Jr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:u?M.closeCards:M.closeCard}):t.jsx(dt,{children:u?M.closeCards:M.closeCard}),y==="Completed"?t.jsx(ge,{...v,children:t.jsxs("form",{id:De(Te),onSubmit:Y,children:[t.jsxs(lt,{children:[t.jsx(ct,{windowSize:o,children:u?D>0?`${M.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",F.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?S.expense:S.expenses} ${M.multipleCardsHasRecurringExpensesSuffix}`:M.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",F.toString()):M.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?S.expense:S.expenses)}),u&&t.jsx(Pt,{children:`${F} ${F===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:K(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:p[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&($[a]?t.jsx(Ie,{}):t.jsx(Fe,{}))]}),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(Fe,{}))]})]}),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(ve,{width:o==="small"?112:240,children:S.merchant}),t.jsx(ve,{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(jt,{windowSize:o,children:x.nextPaymentDate.format(qr.visual.MMMDCommaYYYYformat)}),t.jsx(vt,{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:M.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!c,validate:a=>c?!0:!!a}}):I==null&&!c&&J?t.jsx(Zr,{children:M.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{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?.()}}})]})})},Gr=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(y[3],y[4]),cardNameSectionMarginLeft:new d(y[7],0),cardHolderDetailsGap:new d(y[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(y[3],0)},{common:S,closeCard:M}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",A=(e,h)=>`${e}.${h}`,De=e=>`${e}_form`,{common:ye,dateFormat:qr,cockpit:Xr}=U.getLocalizedStrings(),Ci=({showCloseCardDrawer:e,onCloseCloseCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:b,closeCardFetchState:n,onRemoveCardClick:m,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[$,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})},v=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}=v.formState,K=a=>`${p[a].cardHolderUser?.firstName??""} ${p[a].cardHolderUser?.lastName??""}`,J=ue(O,A(z,"reasonType")),I=v.watch("reasonSection.reasonType"),Y=v.handleSubmit(()=>{if(V){const a=v.getValues(),s={reason:a[z].reason,reasonType:a[z].reasonType};R(s)}}),u=Object.keys(l).length>1,F=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(Gr,{windowSize:o,children:[t.jsxs(Kr,{windowSize:o,children:[t.jsx(Jr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:u?M.closeCards:M.closeCard}):t.jsx(dt,{children:u?M.closeCards:M.closeCard}),b==="Completed"?t.jsx(ge,{...v,children:t.jsxs("form",{id:De(Te),onSubmit:Y,children:[t.jsxs(lt,{children:[t.jsx(ct,{windowSize:o,children:u?D>0?`${M.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",F.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?S.expense:S.expenses} ${M.multipleCardsHasRecurringExpensesSuffix}`:M.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",F.toString()):M.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?S.expense:S.expenses)}),u&&t.jsx(Pt,{children:`${F} ${F===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:K(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:p[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&($[a]?t.jsx(Ie,{}):t.jsx(Fe,{}))]}),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(Fe,{}))]})]}),u&&t.jsx(it,{children:t.jsx(Ve,{variant:"standard",title:ye.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(ve,{width:o==="small"?112:240,children:S.merchant}),t.jsx(ve,{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(bt,{children:[t.jsxs(yt,{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(jt,{windowSize:o,children:x.nextPaymentDate.format(qr.visual.MMMDCommaYYYYformat)}),t.jsx(vt,{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:M.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!c,validate:a=>c?!0:!!a}}):I==null&&!c&&J?t.jsx(Zr,{children:M.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),b==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:De(Te),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:ye.confirm,isLoading:n==="In-Progress",variant:"danger"},cancelBtn:{label:ye.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Gr=i.div`
131
131
  display: flex;
132
132
  flex-direction: column;
133
133
  background-color: ${e=>e.theme.colors.grey4};
@@ -298,7 +298,7 @@ import{J as he,d as _e,aa as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
298
298
  `,ft=i.div`
299
299
  margin: ${r.sp3} ${r.sp4} ${r.sp0} ${r.sp4};
300
300
  padding-bottom: ${r.sp2};
301
- `,yt=i.div`
301
+ `,bt=i.div`
302
302
  display: flex;
303
303
  justify-content: space-between;
304
304
  margin: ${r.sp2} ${r.sp0};
@@ -307,7 +307,7 @@ import{J as he,d as _e,aa as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
307
307
  min-height: 1px;
308
308
  max-height: 1px;
309
309
  width: 100%;
310
- `,bt=i(j)`
310
+ `,yt=i(j)`
311
311
  width: ${e=>`${P.recurringExpenseMerchantWidth.valuePx(e.windowSize)}`};
312
312
  text-align: left;
313
313
  color: inherit;
@@ -374,7 +374,7 @@ import{J as he,d as _e,aa as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq 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:_,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Ae="lockCardPage",E=(e,h)=>`${e}.${h}`,Ee=e=>`${e}_form`,{common:je,dateFormat:Nt,cockpit:It}=U.getLocalizedStrings(),zi=({showLockCardDrawer:e,onCloseLockCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,lockCardFetchState:n,onRemoveCardClick:m,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[$,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})},v=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}=v.formState,K=s=>`${p[s].cardHolderUser?.firstName??""} ${p[s].cardHolderUser?.lastName??""}`,J=ue(O,E(k,"reasonType")),I=v.watch("reasonSection.reasonType"),Y=v.handleSubmit(()=>{if(V){const s=v.getValues(),g={reason:s[k].reason,reasonType:s[k].reasonType};R(g)}}),u=Object.keys(l).length>1,F=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(Ft,{windowSize:o,children:[t.jsxs(At,{windowSize:o,children:[t.jsx(Ot,{windowSize:o,children:t.jsx(_t,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:u?_.lockCards:_.lockCard}):t.jsx(Xt,{children:u?_.lockCards:_.lockCard}),y==="Completed"?t.jsx(ge,{...v,children:t.jsxs("form",{id:Ee(Ae),onSubmit:Y,children:[t.jsxs(Gt,{children:[t.jsx(Kt,{windowSize:o,children:u?D>0?`${_.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",F.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?C.expense:C.expenses}.`:_.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",F.toString()):a?_.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?C.expense:C.expenses):_.firstCardNoRecurringExpenses}),u&&t.jsx(mi,{children:`${F} ${F===1?C.card:C.cards} ${C.selected}`}),Object.keys(l).map((s,g)=>{const x=l[s].length>0;return t.jsxs(Jt,{onClick:()=>x?H(s):void 0,isMoreThanOneCard:u,isLastCard:g===Object.keys(l).length-1,children:[t.jsxs(Qt,{windowSize:o,children:[t.jsxs(Rt,{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(Zt,{children:K(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:p[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&x&&($[s]?t.jsx(Oe,{}):t.jsx(Me,{}))]}),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(Me,{}))]})]}),u&&t.jsx(Et,{children:t.jsx(Ve,{variant:"standard",title:je.remove,children:t.jsx(Ut,{onClick:()=>m(s)})})}),$[s]&&x&&t.jsxs(t.Fragment,{children:[t.jsx(Re,{}),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(Re,{}),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:_.reasonPlaceholder,className:"reason-text-field"}):I==null&&!c&&J?t.jsx(Mt,{children:_.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Ee(Ae),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:je.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:je.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Ft=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(y[3],y[4]),cardNameSectionMarginLeft:new d(y[7],0),cardHolderDetailsGap:new d(y[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(y[3],0)},{lockCard:_,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Ae="lockCardPage",E=(e,h)=>`${e}.${h}`,Ee=e=>`${e}_form`,{common:je,dateFormat:Nt,cockpit:It}=U.getLocalizedStrings(),zi=({showLockCardDrawer:e,onCloseLockCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:b,lockCardFetchState:n,onRemoveCardClick:m,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[$,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})},v=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}=v.formState,K=s=>`${p[s].cardHolderUser?.firstName??""} ${p[s].cardHolderUser?.lastName??""}`,J=ue(O,E(k,"reasonType")),I=v.watch("reasonSection.reasonType"),Y=v.handleSubmit(()=>{if(V){const s=v.getValues(),g={reason:s[k].reason,reasonType:s[k].reasonType};R(g)}}),u=Object.keys(l).length>1,F=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(Ft,{windowSize:o,children:[t.jsxs(At,{windowSize:o,children:[t.jsx(Ot,{windowSize:o,children:t.jsx(_t,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:u?_.lockCards:_.lockCard}):t.jsx(Xt,{children:u?_.lockCards:_.lockCard}),b==="Completed"?t.jsx(ge,{...v,children:t.jsxs("form",{id:Ee(Ae),onSubmit:Y,children:[t.jsxs(Gt,{children:[t.jsx(Kt,{windowSize:o,children:u?D>0?`${_.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",F.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?C.expense:C.expenses}.`:_.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",F.toString()):a?_.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?C.expense:C.expenses):_.firstCardNoRecurringExpenses}),u&&t.jsx(mi,{children:`${F} ${F===1?C.card:C.cards} ${C.selected}`}),Object.keys(l).map((s,g)=>{const x=l[s].length>0;return t.jsxs(Jt,{onClick:()=>x?H(s):void 0,isMoreThanOneCard:u,isLastCard:g===Object.keys(l).length-1,children:[t.jsxs(Qt,{windowSize:o,children:[t.jsxs(Rt,{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(Zt,{children:K(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:p[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&x&&($[s]?t.jsx(Oe,{}):t.jsx(Me,{}))]}),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(Me,{}))]})]}),u&&t.jsx(Et,{children:t.jsx(Ve,{variant:"standard",title:je.remove,children:t.jsx(Ut,{onClick:()=>m(s)})})}),$[s]&&x&&t.jsxs(t.Fragment,{children:[t.jsx(Re,{}),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(Re,{}),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:_.reasonPlaceholder,className:"reason-text-field"}):I==null&&!c&&J?t.jsx(Mt,{children:_.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),b==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Ee(Ae),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:je.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:je.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Ft=i.div`
378
378
  display: flex;
379
379
  flex-direction: column;
380
380
  background-color: ${e=>e.theme.colors.grey4};