@zeniai/web-cockpit-ui 1.15.25-dev → 1.15.26-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 (323) hide show
  1. package/dist/assets/ACHDetailsPage-CxpLuJpQ-oljmG-aN.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BXF0kUqR-BgyTM2y7.js → AIPerformancePage-BtDuOBey-B5mBQCVW.js} +104 -104
  3. package/dist/assets/AccountInfoPage-DkpBGfrR-BAuNBIod.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-QMyPHCdY-DP0akuHx.js → AccountInfoPageContent-BLF92_vF-CW7wtofP.js} +15 -15
  5. package/dist/assets/AccountLockedInfoModal-AsMkXu1I-CUepwrH5.js +59 -0
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CoXPQka7-DFQZksfD.js → AccountReconDetailsDrawerPage-CkaBrm5K-KV-fem_5.js} +10 -10
  7. package/dist/assets/AccountRow-aEmcYP8T-NzxiJ7E0.js +298 -0
  8. package/dist/assets/{AccountsPromoCardStack-Dkz2VyEk-BJf7WrAq.js → AccountsPromoCardStack-C0At5pn8-BVyntxD9.js} +22 -22
  9. package/dist/assets/AddAddressForCardDrawer-CbjThbsA-DCBhdPbu.js +6 -0
  10. package/dist/assets/{AddToWalletPage-p0T8VFfo-WTTL1b0G.js → AddToWalletPage-CMJwUbgf-CbZx4F8y.js} +47 -47
  11. package/dist/assets/{AgingReportsPage-CTzjRkV2-CkKYMdrC.js → AgingReportsPage-B_BSfude-DZk6eQ7D.js} +15 -15
  12. package/dist/assets/{AllUserItems-Dt9rMGJk-D2oOTLOS.js → AllUserItems-CGlWa60t-Bsvj0Bul.js} +13 -13
  13. package/dist/assets/{ApAgingDetailPage-71VQk7px-BPdIn6ZS.js → ApAgingDetailPage-DT3vkmLG-hWexPQ-R.js} +7 -7
  14. package/dist/assets/AppBasePage-CDy7wPlv-BdtLe6Er.js +71 -0
  15. package/dist/assets/{AppDrawerContent-ULUH1WZ3-CblzrDc2.js → AppDrawerContent-CEsXm_i6-DvQRPFBq.js} +4 -4
  16. package/dist/assets/{ApprovalRulesSettingsPage-Ciz-iaE5-ghG5WVzt.js → ApprovalRulesSettingsPage-CB2_4-2f-DqEewSSN.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DcwM2rpv-C36SsOV8.js → ArAgingChart-qxhWsIQb-BR0MyGhc.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-eGCSFdAM-BJk9vCxH.js → ArAgingDetailPage-BbzQryp_-si9TyFWf.js} +4 -4
  19. package/dist/assets/{AttachmentView-CA6PRg4p-DDr9TCOl.js → AttachmentView-duTVxc9g-Cx51cWLo.js} +4 -4
  20. package/dist/assets/{BankAccountSection-mWUT-G8y-2k5xTeyX.js → BankAccountSection-CAwAf9xK-dEu3iigm.js} +5 -5
  21. package/dist/assets/{BankAccountWarningSection-IMtILLfL-BhKJ6bLn.js → BankAccountWarningSection-CaDnP9_--B_s5lRpF.js} +11 -11
  22. package/dist/assets/{BankConnectionsSettingsPage-COyH3rdC-Be8G7lph.js → BankConnectionsSettingsPage-CDV7O8cl-CKVB9msh.js} +10 -10
  23. package/dist/assets/{BillDetailPage-BR_9uHRC-mLWBTrh1.js → BillDetailPage-DJxh2CIc-BDq5xtCx.js} +13 -13
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-cRAudMvm-CWVbYb1D.js → BillPayApprovalRuleDetailPage-B2ZPbqtr-DoqAcsu7.js} +2 -2
  25. package/dist/assets/{BillPayApprovalRulesPage-Cd0aJtip-BTxbg4yL.js → BillPayApprovalRulesPage-MM7v8ZMx-BqexuGBp.js} +8 -8
  26. package/dist/assets/{BillPayPromoPage-BYW097HT-D4YnpN75.js → BillPayPromoPage-JK-VOx4W-CHt5RuWY.js} +8 -8
  27. package/dist/assets/{BillPaySetUpPage-BahrLUn4-CqC29kIw.js → BillPaySetUpPage-h0uoCWMl-B3vp9xYH.js} +2 -2
  28. package/dist/assets/BillingSettingsPage-gJG9OxD6-sAZcxvhc.js +44 -0
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CJ-GbBhL-B7DfrKfl.js → BillsBulkReviewDrawerPage-CPPDFsZt-D7n_HeTo.js} +1 -1
  30. package/dist/assets/{BoxItem-CvhcNreT-DxmoznPD.js → BoxItem-CYe_gTmA-3TpRGAgq.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-Dos8Bnvb-tV078-eh.js +138 -0
  32. package/dist/assets/{CardNumberSubText-CfoSPAZU-BdVhRiwJ.js → CardNumberSubText-CFDhtij8-Dsv6kEZQ.js} +3 -3
  33. package/dist/assets/{CashbackDetailPage-CWlaZrqz-DvIAxVRW.js → CashbackDetailPage-BBGGzKh7-DUHJlZVl.js} +13 -13
  34. package/dist/assets/{ChargeCardDetailPage-BNNbd3G1-BtUCuJum.js → ChargeCardDetailPage-BQhago53-wjHuLhkC.js} +35 -35
  35. package/dist/assets/{ChargeCardListPage-BzIvl8RY-Ncd3QF6u.js → ChargeCardListPage-B0E-C3RH-B7k2t4T5.js} +16 -16
  36. package/dist/assets/{ChargeCardListTable-D-uQKI4t-lkMdiYYu.js → ChargeCardListTable-ByGv0xWl-DMSCDnKA.js} +46 -46
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-DmzlfD-l-OAmKFjuL.js → ChargeCardPaymentHistoryPage-LCY9rFqO-BkZDtpLS.js} +12 -12
  38. package/dist/assets/{ChargeCardPromoPage-DOYqOs6K-xBYShKSz.js → ChargeCardPromoPage-CKEnOseD-C5Oe_CBA.js} +11 -11
  39. package/dist/assets/{ChargeCardSetupPage-CSnLMycu-BkjYVqCn.js → ChargeCardSetupPage-BHv2VOdc-7YAt9Um1.js} +3 -3
  40. package/dist/assets/ChargeCardStatementsPage-UpRXyPTS-DMihpC1F.js +60 -0
  41. package/dist/assets/{CheckDepositDrawerPage-DN5Ok0Y6-DOjKYa5p.js → CheckDepositDrawerPage-0zbTQ3Fa-BLYoChOi.js} +21 -21
  42. package/dist/assets/{CollapsableReportTable-CncMWpFI-CnBbDhbn.js → CollapsableReportTable-DlYIKSlQ-CcB96aJz.js} +93 -93
  43. package/dist/assets/CompanyOfficerDetailsSection-Ck0xqZ0d-BRXSA5bv.js +260 -0
  44. package/dist/assets/{CompanyPassportCard-Ccw8l9iz-CwNj32nj.js → CompanyPassportCard-DeVPuuje-pYw0P8-e.js} +3 -3
  45. package/dist/assets/CompanyPassportPage-F_GUET9a-DyWAWfST.js +574 -0
  46. package/dist/assets/{CompleteProfile-CQUDJ-nI-DJVg2OT2.js → CompleteProfile-Y6HwKtpz-CAD13Y73.js} +2 -2
  47. package/dist/assets/ConfettiBurst-BGE3Okwr-BH3P6Vot.js +1 -0
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-BVda4Dj4.js → ConstrainedInnerElement-BeIpAPjB-BElBEfq9.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DM90rr4S-BcABoxWR.js → CreateOrEditVendorPage-BlZe6gmh-CQZW25xI.js} +16 -16
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Bh0QdxXh-Dti2BnoN.js → CreditCardPaymentDrawerPage-flPmyCaF-BN_zrabq.js} +11 -11
  51. package/dist/assets/{CurrencySelectField-BDfEzwpU-4zlCOdOf.js → CurrencySelectField-RiKAivD8-Men9-Qs8.js} +5 -5
  52. package/dist/assets/{CustomerOnboardingActivationPage-CJGtq19l-BpCso2Fz.js → CustomerOnboardingActivationPage-B7dLMk4g-9XWjuxWa.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-CAVfCCXg.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DSqc1_bS-CATYZXta.js → CustomerOnboardingDetailPageSkeleton-AWsst0XH-Dm9ock3U.js} +14 -14
  55. package/dist/assets/CustomerOnboardingNoStepsPage-Bqid4-rH-1Q4j5GPR.js +66 -0
  56. package/dist/assets/CustomerOnboardingPage-B5LrMzZS-C9Fs1CgW.js +107 -0
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-CZDipU2j-BbQ2Iy2J.js → CustomerOnboardingProductSuitePage-DqgoBLWp-CqOyrhHJ.js} +6 -6
  58. package/dist/assets/{Dashboard-DyQZQS2X-mxU1Jkng.js → Dashboard-D0KlujCx-DnjbaQQd.js} +66 -66
  59. package/dist/assets/{DashboardReportPage-Dn7pVdG9-DtcRvxDO.js → DashboardReportPage-bxKyMsG7-D9LgF6Vc.js} +13 -13
  60. package/dist/assets/DashboardSidebarBackgroundAnimation-Ch0OiH1g-8bPW9HsA.js +12 -0
  61. package/dist/assets/{DepositAccTransactionItem-DDdkQsmn-B5pGW8gX.js → DepositAccTransactionItem-BdZVCAx--B5mbkfQv.js} +6 -6
  62. package/dist/assets/{DepositAccTransactionListPage-BHdmR6m5-7yonpKjA.js → DepositAccTransactionListPage-LU0QMdSV-BPGsYfzN.js} +7 -7
  63. package/dist/assets/{DomesticWireDetailsPage-CpwSOc_0-CElrVONi.js → DomesticWireDetailsPage-CFt5GgZ1-DPIozVv0.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Dhib22Hz-D3Lt9Smx.js → DownloadOverlay-CH_bA3On-JFXgpsko.js} +11 -11
  65. package/dist/assets/{DrawerPage-nxxj86nQ-CJOa9BEO.js → DrawerPage-Cpdp-IFb-6O8ALZwh.js} +14 -14
  66. package/dist/assets/EditPeoplePage-BYnuNojX-COJTJTYl.js +55 -0
  67. package/dist/assets/{EditReimbursementDetailPage-C2kqq9QP-Bbzp1pVf.js → EditReimbursementDetailPage-DnyyPZ26-CW_m0PAT.js} +73 -73
  68. package/dist/assets/EntityDetailPage-DSfZZ1JW-NbMT0IAK.js +18 -0
  69. package/dist/assets/{EntitySummarySection-C29GLBzF-CWqpKadr.js → EntitySummarySection-BFpgAYAM-CKlhnXLV.js} +8 -8
  70. package/dist/assets/{ExpenseAutomationOverviewPage-B4kcx-VG-CGPR3A1h.js → ExpenseAutomationOverviewPage-YjOVm_Bw-BDJuPgHE.js} +22 -22
  71. package/dist/assets/{ExpenseAutomationPage-DNwnoyPg-DCSz-PUa.js → ExpenseAutomationPage-DlhH-R-e-DCW88pdW.js} +285 -295
  72. package/dist/assets/{ExpressPayPage-K-InpYtZ-DIVfrk0c.js → ExpressPayPage-CKqPEfbR-pk0o4BxB.js} +21 -21
  73. package/dist/assets/{FeaturePreviewPage-IsRBHkoD-e3f7mixU.js → FeaturePreviewPage-Cs1Y3nP0-BgQT4DqF.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-ClyCs5f_-Dx038WgT.js → FollowStepsSection-BCyL8Jdr-CPpGgHn-.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-n8XrBXXp-BZl-OsOG.js → GlobalReviewListPage-CBQFcVHd-XH4CFBRM.js} +16 -16
  76. package/dist/assets/{InformationCardStack-BnOF2kCh-C7gNsonq.js → InformationCardStack-nFMetrAy-CMfT3sbg.js} +6 -6
  77. package/dist/assets/{InsightsCardStack-Bgzkang3-CA8GAaRZ.js → InsightsCardStack-CEMeGJXy-DkdJ-vVc.js} +9 -9
  78. package/dist/assets/InsightsSection-BYiN2xB7-Tq3IZNKc.js +27 -0
  79. package/dist/assets/{IntegrationsSettingsPage-D1QWrVQw-BXx7A_Fv.js → IntegrationsSettingsPage-BQ7g3a3K-BdOaL4VS.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DNNEqdWS-B78a52iW.js → InternationalWireSwiftDetailsPage-BHRYsZgm-DSuBLSD4.js} +20 -20
  81. package/dist/assets/InternationalWireVerificationPage-tJbVtzQP-CQvYGebF.js +292 -0
  82. package/dist/assets/{InviteFormPage-C-Io8wxr-DZ679TjD.js → InviteFormPage-BVXte8w8-MDAVTXGi.js} +21 -21
  83. package/dist/assets/{InvitePageListView-B1PLdKSn-3WJcdIb9.js → InvitePageListView-DFPyLLrA-CONqmQCs.js} +55 -55
  84. package/dist/assets/InvitePeoplePage-B-uxjkke-6b_Qz0Yf.js +12 -0
  85. package/dist/assets/InvoiceUploadSection-B9q7nIs0-DhF51Ukp.js +140 -0
  86. package/dist/assets/{IssueChargeCardPage-CC6D-uPl-dzV4_AJm.js → IssueChargeCardPage-BuLj1bOl-DtlAMUV4.js} +15 -15
  87. package/dist/assets/{LabeledAddressValue-CKZJgaV5-cxiw5XUU.js → LabeledAddressValue-D2t8ti-C-Z0RI74Eh.js} +2 -2
  88. package/dist/assets/LabeledAddressValueField-DMcor_I8-C6G1J4Y2.js +45 -0
  89. package/dist/assets/LabeledControlledCheckBoxField-B6w2HGJK-6LsZxWHa.js +16 -0
  90. package/dist/assets/{LabeledCreatableSingleSelectField-N1wb0l0p-Dc3bkr-e.js → LabeledCreatableSingleSelectField-DHNAX5Pu-BPIIBKMF.js} +13 -17
  91. package/dist/assets/LabeledDocumentField-Bx1u7vv_-DaqPO373.js +41 -0
  92. package/dist/assets/LabeledDropDownFormattedTextField-BBS4da2b-Pp7kOChU.js +59 -0
  93. package/dist/assets/{LabeledText-DiJE8avC-CseM5wCJ.js → LabeledText-zjKn4Cw--WpJNibWz.js} +5 -5
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CLup6THe-B8wjUmse.js → LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-l_A9LTk7.js} +20 -20
  95. package/dist/assets/{LabeledZeniRolesDropDownField-CVg9PTpl-CmXvnZ1S.js → LabeledZeniRolesDropDownField-DiBtAWQ3-_N52HAlB.js} +33 -33
  96. package/dist/assets/{LinkJETransactionPage-DaGHGCIJ-ZPmKuaes.js → LinkJETransactionPage-D66bzDh_-B4JreFf6.js} +8 -8
  97. package/dist/assets/{LockCardPage-CGYlmPkB-BpMPFgRW.js → LockCardPage-B1g2TZWL-hWz0sEAN.js} +22 -22
  98. package/dist/assets/{LowBalancePopup-YJW7eKud-C5-4WX6d.js → LowBalancePopup-DbtHeVY--8cU4w1E0.js} +6 -6
  99. package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-7knh_ltw.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-ESO2QI-z.js +1 -0
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-COXCHYYI-DrkXHgBT.js → MagicLinkInternationalWireDetailsPage-Q4lIsHtG-J3sKHPD3.js} +1 -1
  102. package/dist/assets/MagicLinkSuccessPage-BkxuITX--B7psstiC.js +31 -0
  103. package/dist/assets/{MagicLinkTitleSection-CCF7Ahgh-BraYyP_S.js → MagicLinkTitleSection-CqkZ9wOf-BR_t9OGm.js} +4 -4
  104. package/dist/assets/MailingDetailsSection-DRFGCM2W-D_ajBet8.js +21 -0
  105. package/dist/assets/{MyBankConnectionsSettingsPage-BJi0owDl-C6fsBM4C.js → MyBankConnectionsSettingsPage-CE2ZqHBJ-DRRK16jW.js} +9 -9
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-BWIla-hh-BQ4ym9Ei.js → MyPendingActivationChargeCardListPage-BffxXDZg-DDMywOmd.js} +2 -2
  107. package/dist/assets/MyProfileSettingsPage-DrsAlesY-CW5UQDbf.js +85 -0
  108. package/dist/assets/{NavBarWithPicker-BGZvvByA-4hcBX9YX.js → NavBarWithPicker-C4VfP_Kw-BlN6D07W.js} +5 -5
  109. package/dist/assets/{NavigationArrow-C3pN6F3u-tAd2nukx.js → NavigationArrow-DCCxx6H7-HhnIS8HH.js} +7 -7
  110. package/dist/assets/{NavigationDots-D1rJnVkZ-DI_AwSe8.js → NavigationDots-tWCw6Bpk-Mo0z1mhF.js} +4 -4
  111. package/dist/assets/{NewGlobalMerchantPage-DU2Z_NYb-CczYC_Cy.js → NewGlobalMerchantPage-UIA8zAjd-D_Ilslhf.js} +12 -12
  112. package/dist/assets/{NoDataChart-DuEsebs4-BQTTXvg9.js → NoDataChart-Bvetk9za-Dz6Kgiua.js} +2 -2
  113. package/dist/assets/NoDataTable-9xF1_3XS-gmK0ApJv.js +8 -0
  114. package/dist/assets/{NotFoundPage-DLtikmoi-CJn1LsuA.js → NotFoundPage-CdH-3upl-BWvfv-me.js} +6 -6
  115. package/dist/assets/{NotificationSettingsPage-DwsCKyVM-AIL1SOh9.js → NotificationSettingsPage-DP2gGIz1-CAx-Ob95.js} +12 -12
  116. package/dist/assets/{NotificationsListConfig-CMtBeX4D-Dg29H_7b.js → NotificationsListConfig-DG-DH2Aj-B1EWk1B7.js} +1 -1
  117. package/dist/assets/{NotificationsPage-CZrXzWli-9C2iwOMz.js → NotificationsPage-CgFMmR2X-DW2MYafR.js} +24 -24
  118. package/dist/assets/{OpExByVendorPage-0PLAOQu5-DLLDMhgS.js → OpExByVendorPage-eUvIAWzt-J9dFs64l.js} +20 -20
  119. package/dist/assets/OverlayContainerPage-D4QU0p4o-CRh-4TRn.js +11 -0
  120. package/dist/assets/{PandLWithForecastPage-PkrBqcAR-Djqg6ntv.js → PandLWithForecastPage-8S06Nyi5-Bs1OiKUY.js} +11 -11
  121. package/dist/assets/PaymentAccountSetupBillingAddressSection-DQtrANhI-CgW6kWBO.js +107 -0
  122. package/dist/assets/PeoplePage-D1BLHtO0-Cm2cmSqy.js +675 -0
  123. package/dist/assets/{Preview-DaDKYAzg.js → Preview-CyX-vurX.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-fMS3PJAc-r1K9Xxoj.js → ProductsCarousel-BKSXWnFR-BT4vvSaJ.js} +5 -5
  125. package/dist/assets/{PromoBaseCards-HY42c1kU-DSpx7Fy3.js → PromoBaseCards-BYT9nEJT-1c2PW57m.js} +17 -17
  126. package/dist/assets/{QBOConnectionDialog-B_AOC_hG-BSWcu79k.js → QBOConnectionDialog-C2-omQMZ-CW3-Jgl1.js} +3 -3
  127. package/dist/assets/{QBOSetupSection-CQHdqpJF-CH_S6Ewi.js → QBOSetupSection-lgv5wVlg-Db43UmDc.js} +16 -16
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-D0oeO5MZ-95x-7hZW.js → ReimbursementApprovalRuleDetailPage-CbJViS3x-DEQyVs-F.js} +2 -2
  129. package/dist/assets/{ReimbursementApprovalRulesPage-Beg7ljMA-Cr4MOQVc.js → ReimbursementApprovalRulesPage-BuNt-Bmb-qkoyA-iD.js} +8 -8
  130. package/dist/assets/{ReimbursementDetailPage-DBxKNhum-DE3tfEga.js → ReimbursementDetailPage-CK3-Jqkd-ComGCWG4.js} +8 -8
  131. package/dist/assets/{ReimbursementPromoPage-DxZeTOQW-CNGgL2HL.js → ReimbursementPromoPage-fptOAJna-UPQyz9k9.js} +20 -20
  132. package/dist/assets/{ReimbursementSetUpPage-CN4LhFrS-BfRZlJ5w.js → ReimbursementSetUpPage-CidrpT2g-C4LYSo0t.js} +10 -10
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage--6OUmjzW-D3GoPfdC.js → ReimbursementsBulkReviewDrawerPage-Cy_Hediw-DbKZBLTq.js} +1 -1
  134. package/dist/assets/{ReloadCard-BluhBNO--D0eilzgR.js → ReloadCard-C81rGzOp-DY4k84ea.js} +5 -5
  135. package/dist/assets/{ReportTableViewSelector-8KYimU0G-YYB33_Xu.js → ReportTableViewSelector-neRSjrhV-C6WBlOcq.js} +9 -9
  136. package/dist/assets/{ReportsPage-D-UfdQ34-CNx_b_ly.js → ReportsPage-BhzQVaer-B4A4M4e5.js} +1 -1
  137. package/dist/assets/{RevenueChart-C9EztEKi-BbW9YFNy.js → RevenueChart-x7uTbFlm-CNwMod8g.js} +18 -18
  138. package/dist/assets/{ReviewDetailsPage-B6SYtYUA-d0bXCGW4.js → ReviewDetailsPage-jXZCylzg-BIFUDhZH.js} +31 -31
  139. package/dist/assets/{ReviewOverlay-C2enVZqt-C_vH9CpL.js → ReviewOverlay-nlm2HnGw-9bQU05T1.js} +18 -18
  140. package/dist/assets/RoleWithToolTip-C29QOzxS-BIz3hnmq.js +22 -0
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DmBVVX79-6-1NS4t6.js → ScheduleDetailsFixedAssetsPage-CkPzofLN-BgCHEx2z.js} +8 -8
  142. package/dist/assets/{ScheduleDetailsPage-Bp3d9tdD-Ct_0Fci8.js → ScheduleDetailsPage-BSZefKOh-6HOYgX85.js} +8 -8
  143. package/dist/assets/ScheduleSequenceTable-BW5M7Zfq-Cc7Psi6L.js +324 -0
  144. package/dist/assets/{ScreenRoutes-CvjimsD0.js → ScreenRoutes-DOxgrmyz.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-DiEFZwFL-DC1aQ-pj.js → SetUpAccountSection-C703iFL6-DWHc95vH.js} +5 -5
  146. package/dist/assets/SignIn-D9K5FklU-C-Fq_guN.js +491 -0
  147. package/dist/assets/SignInScreen-pGoo9woj.js +1 -0
  148. package/dist/assets/{SpendManagementListViewPage-BoWIPx5V-DXR-HLOL.js → SpendManagementListViewPage-CBNtC74m-DqpxdGQ6.js} +13 -13
  149. package/dist/assets/{SpendManagementPerTabPage-DRrECrxC-dCEqiObE.js → SpendManagementPerTabPage-D_sa7WRd-CzMD5xEZ.js} +25 -25
  150. package/dist/assets/{SpendManagementSection-xoH8d-PB-6nPhw1xu.js → SpendManagementSection-DpZUTV6m-Dyv3RP83.js} +23 -23
  151. package/dist/assets/StatementItem-DvdSsb8I-4NJSevH0.js +31 -0
  152. package/dist/assets/StatementsPage-73jGj5P2-DfWSq1-t.js +58 -0
  153. package/dist/assets/{StatusSwitcher-C-2QxP_3-DVOlvAn4.js → StatusSwitcher-hKYgwNLC-CE1foddz.js} +2 -2
  154. package/dist/assets/{SubTabSwitcher-D3iTZY-F-CSjMFn8K.js → SubTabSwitcher-aeDd9xiF-D4uOjs0t.js} +2 -2
  155. package/dist/assets/{SummaryCard-BbzDLzif-jCXiXuPT.js → SummaryCard-CK8Gxbiu-DemkEVCq.js} +1 -1
  156. package/dist/assets/{TaskManagementPage-DI_lMbra-CdUdFSOY.js → TaskManagementPage-D2Ooq8DR-DrMY4gdr.js} +15 -15
  157. package/dist/assets/{TimeRangeSwitcher-C3mH2YE7-CZoVUBkm.js → TimeRangeSwitcher-DEqlZxa6-BNFFHAst.js} +11 -11
  158. package/dist/assets/{TimeframeSwitcher-C8iVJfJz-B35AQLzW.js → TimeframeSwitcher-BppC6giF-D-wC9bQx.js} +6 -6
  159. package/dist/assets/TimeframeSwitcherWithToggle-CbX9ElMN-Txpnr2g5.js +31 -0
  160. package/dist/assets/{TopExCard-DlberdWy-AXYKUOGt.js → TopExCard-Cy6tPVSx-B-keVDu8.js} +6 -6
  161. package/dist/assets/{TopExDetailPage-DZyUPQ9i-kejvgUv1.js → TopExDetailPage-Rtrcdkcp-BJDfbujg.js} +11 -11
  162. package/dist/assets/{TransactionActivityLogPage-Bpdbc21v-DQ1FP9jB.js → TransactionActivityLogPage-DbwSsjPJ-BIwIVqy-.js} +15 -15
  163. package/dist/assets/TransactionDetailPage-D-vXAAB7-Bzb02Sjl.js +903 -0
  164. package/dist/assets/TransactionList-BruCNjQg-CPy3bOrg.js +153 -0
  165. package/dist/assets/{TransactionListBig-D6Q9QimF-DjvcRG58.js → TransactionListBig-bp7q3prH-B3o9La4k.js} +13 -13
  166. package/dist/assets/TransactionListPage-ZfJsaVb8--vXsSJCl.js +35 -0
  167. package/dist/assets/{TransactionVendorDetailPage-B4A4amjV-rbnaqzN7.js → TransactionVendorDetailPage-CldkuO2--QReUEWYz.js} +7 -7
  168. package/dist/assets/{TransferDrawerPage-Dfhpu5Yd-D-lZQHfG.js → TransferDrawerPage-DswS6KZf-BpK3RBCC.js} +27 -27
  169. package/dist/assets/{TreasuryOverviewPage-B6WhqRDb-BYZSOn3C.js → TreasuryOverviewPage-DWo7iRpO-gYNjYUSH.js} +1 -1
  170. package/dist/assets/{TreasuryPromoPage-C5DXueHJ-DvuJR2wv.js → TreasuryPromoPage-DQxCF3-4-BI9m1Cpo.js} +131 -131
  171. package/dist/assets/{TreasuryStatementsPage-8qXJLq1U-C7VbrxO2.js → TreasuryStatementsPage-CYkPtmaT-BgyV-fq7.js} +2 -2
  172. package/dist/assets/TreasuryTaxLetterPage-DH3su_rX-Dyk_wpPB.js +58 -0
  173. package/dist/assets/{TrendChart-FPLC1aMv-BpKn1lA4.js → TrendChart-BMHDaOeh-DUFeSEwp.js} +3 -3
  174. package/dist/assets/{TrendWithTransactions-_O4Fz3pt-B_P0jc9Y.js → TrendWithTransactions-DDLrmIrt-D7YkaYJE.js} +3 -3
  175. package/dist/assets/{UncategorizedAccountsMappingPage-rdMygvxx-CB5luTSv.js → UncategorizedAccountsMappingPage-3SW8Gj0Z-DxcmP_9M.js} +22 -22
  176. package/dist/assets/{UnitIntegrationPage-WfFukh9_-Db1kSxll.js → UnitIntegrationPage-DPMy8dXP-Ds2V7iqZ.js} +11 -11
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-xiqklxM_-C-ghpumD.js → UploadAdditionalDocumentOverlay-BHpT2al--Bh-cR8rL.js} +1 -1
  178. package/dist/assets/Vendor2FAPopup-C6gEOhUv-DnLG0jax.js +1 -0
  179. package/dist/assets/VendorACHDetailsPage-LNCcubjL-BnzYtLeS.js +1 -0
  180. package/dist/assets/{VendorDetailPage-Cexet52V-fximdJ6Q.js → VendorDetailPage-BC1FhaQA-BTYI8FHa.js} +25 -25
  181. package/dist/assets/{VendorDomesticWireDetailsPage-DbhChvIp-Cn8HKuB3.js → VendorDomesticWireDetailsPage-CLudahOt-DWedRRGC.js} +1 -1
  182. package/dist/assets/{VendorFiling1099EditablePage-Bnwp2JiZ-B1voyhYV.js → VendorFiling1099EditablePage-DYyPOA8D-SaXokDu7.js} +38 -38
  183. package/dist/assets/{VendorFirstReviewPage-C_xSf47L-YlGbjVwi.js → VendorFirstReviewPage-Cpmk7rDk-CLDuk2Z1.js} +37 -37
  184. package/dist/assets/{VendorInternationalWireDetailsPage-DVuenbq8-CpmeIHQG.js → VendorInternationalWireDetailsPage-CWAWq6kq-BqWv0FEj.js} +9 -9
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-Cnhhvl1i.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-DYSlIqnJ-D8aKvLQv.js → VendorsAccountsSection-CGQ35Mhp-CZRiYNTG.js} +2 -2
  187. package/dist/assets/{VerifyDevice-MbuunHNJ-0NsL1ICM.js → VerifyDevice-CfMJW1Vh-CQyEdsek.js} +9 -9
  188. package/dist/assets/{VideoPlayer-B-oV4gcS-IlmjYyud.js → VideoPlayer-BNBpjXJk-S1NV6cBn.js} +2 -2
  189. package/dist/assets/{VideoPopup-DFfn4tne-e-69xGLM.js → VideoPopup-BF6lmB7l-C8AjwQYx.js} +5 -5
  190. package/dist/assets/{WarningsDrawerPage-C_nKfBpS-CgVWLVpY.js → WarningsDrawerPage-Crj70lnR-CqPc_yNz.js} +3 -3
  191. package/dist/assets/{ZeniAccountDetailPage-jYwDoLiN-C9ExO4Jo.js → ZeniAccountDetailPage-CaA6m3tQ-BxjiYTPx.js} +12 -12
  192. package/dist/assets/{ZeniAccountListViewPage-CWiWh2ld-BsZ-NitY.js → ZeniAccountListViewPage-x_51gDs1-BURzAUSX.js} +9 -9
  193. package/dist/assets/ZeniAccountNavBarPieces-Csr24dri-Dtq04dNH.js +14 -0
  194. package/dist/assets/{ZeniAccountPromoPage-DPab5PDZ-CdBoWbQ6.js → ZeniAccountPromoPage-lxKBk2r5-B3car8p6.js} +13 -13
  195. package/dist/assets/{ZeniAccountSetupPage-Dbqa1LpU-DR-JNx31.js → ZeniAccountSetupPage-DUI4-2Zw-CqTcY3yC.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-SDIPg48K-6zG7DJUz.js → ZeniCopyright-DxEZ4DiK-Bx5L4V4v.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-Bg59KBt9-PXMuIYqh.js → ZeniTransferAmountSlider-4Nq4Sm9J-CWNMmcE5.js} +11 -11
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-4MTVGYLk.js → add-to-wallet-DgdBD8_G-Ckn7-tS3.js} +1 -1
  199. package/dist/assets/{analytics-DkApCpAh.js → analytics-DgE91yP9.js} +1 -1
  200. package/dist/assets/{analyticsHelper-DfCXurTN-CSH8s8BS.js → analyticsHelper-CL-t3Y2i-DqLgDKAm.js} +1 -1
  201. package/dist/assets/analyticsHelper-qCgSbR3t.js +1 -0
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-sjXlUHVP.js → arrow-south-east-round-PEovUgvH-6_ok8u4n.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-8P5UKTjR.js → auto-transfer-rule-mbafm5D3-DaMjzKK3.js} +1 -1
  204. package/dist/assets/{chartTypes-H306f0ce-DSh0OTeZ.js → chartTypes-B3501CSI-Eia1dEGg.js} +1 -1
  205. package/dist/assets/{commonDimensions-CWffpElu-DyTXC1xY.js → commonDimensions-YcBBlmYP-HRUAmifl.js} +1 -1
  206. package/dist/assets/{constants-42un7CRh.js → constants-DU2Tv8MD.js} +1 -1
  207. package/dist/assets/{core-DQ8U4CJb.js → core-CEu4PzGb.js} +1 -1
  208. package/dist/assets/{dash.all.min-xDoItceu.js → dash.all.min-wN4tXsVF.js} +1 -1
  209. package/dist/assets/{detailCommon-CfrL4ryy-K2hvWKyD.js → detailCommon-C19MYPnq-B5eEk_1Z.js} +2 -2
  210. package/dist/assets/downloadPdf-DPAqxw6u-DccTm81d.js +1 -0
  211. package/dist/assets/{empty-DBMIDect.js → empty-CarmpCiV.js} +1 -1
  212. package/dist/assets/{empty-DMdKDWd5.js → empty-SBaJLmT7.js} +1 -1
  213. package/dist/assets/epic-jB8ji6P2.js +2 -0
  214. package/dist/assets/{gift-box-Cmt9OgIZ-CKZgCX5V.js → gift-box-Cmt9OgIZ-Cfao5pzw.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-B74xUk4A.js → graphic-no-data-l-DU4J8fDt-CtMgv3E2.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CY998Ry-.js → graphic-no-data-net-burn-l-CzmycA0m-CxhhGXfI.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-ci6EVnAm.js → handshake-BPg58FML-Cr0KvGET.js} +1 -1
  218. package/dist/assets/{index-DlHdI3-w.js → index-C65pc_ms.js} +1 -1
  219. package/dist/assets/{index-Ci8_ElRT.js → index-CM4tXRl_.js} +1 -1
  220. package/dist/assets/{index-uFwLgEj2.js → index-CTIRcS5n.js} +1 -1
  221. package/dist/assets/{index-CP7n6qbn.js → index-DdSqYqAO.js} +1 -1
  222. package/dist/assets/{index-MLR605z1.js → index-DotN2qpo.js} +1 -1
  223. package/dist/assets/{index-BIYLqgct.js → index-GSKpJ8ET.js} +4076 -4065
  224. package/dist/assets/{index-C-yZdmSC.js → index-qEET5oej.js} +1 -1
  225. package/dist/assets/{lexical-CvUIM9vD.js → lexical-CnqcqOEB.js} +1 -1
  226. package/dist/assets/{liveblocks-DXGUxn7J.js → liveblocks-D1OOExFG.js} +1 -1
  227. package/dist/assets/{lottie-C1yptpVV.js → lottie-fNTw06NH.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--Bj-YdG55.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CH8Zwu7Z-DxWz5zBn.js → mapSectionWithAcOnlyToTreeNode-BDWD3x8r-CFpEHrc_.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode-Blr3egSm-C65_6eW3.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-D-fvMaDb.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-D-V0iqTB.js +1 -0
  233. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-Cn_Z85da.js +1 -0
  234. package/dist/assets/{mui-rLvQ8A4a.js → mui-DenpH-hx.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-DxBKGqnW.js → page-detail-CWX5S47F-CMu9po0A.js} +1 -1
  236. package/dist/assets/panelSelectedMixin-CzfD5-Zs-Z09J1JBQ.js +4 -0
  237. package/dist/assets/{radio-default-CiSgisfh-D50TMWyl.js → radio-default-CiSgisfh--A7TRB5H.js} +1 -1
  238. package/dist/assets/{react-CD-rvAYw.js → react-B5LP5NK7.js} +1 -1
  239. package/dist/assets/{react-XCvfp0dN.js → react-BGO_hhif.js} +1 -1
  240. package/dist/assets/{react-BGRcEI9e.js → react-BNXAqjdV.js} +1 -1
  241. package/dist/assets/{react-CeXW-10t.js → react-BbEkWrBm.js} +1 -1
  242. package/dist/assets/{react-D5l7wk4q.js → react-BbsHWhNi.js} +2 -2
  243. package/dist/assets/{react-CKPzfXiX.js → react-CX4zcxjw.js} +1 -1
  244. package/dist/assets/{react-CaPJ_R38.js → react-D97zLppZ.js} +2 -2
  245. package/dist/assets/{react-BFvwO_Qx.js → react-DvuAhc__.js} +1 -1
  246. package/dist/assets/{recharts-BYppTjSs.js → recharts-9NtTDQfo.js} +1 -1
  247. package/dist/assets/{sentry-DhNwX3jk.js → sentry-BZBky1_g.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-1dcmCA6e.js → shield-DOlUxcFf-DnxNebOP.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-D35Fk0m2-dL9iDsOU.js +1 -0
  250. package/dist/assets/{toChartData-ILqaSUrn-x9ixmlfa.js → toChartData-DzatRnt8-Cq2-M4CL.js} +1 -1
  251. package/dist/assets/{uploadAttachment-BO1VJaKW-DrgLpT8c.js → uploadAttachment-Bq8dk-Sm-DirS4o1A.js} +18 -18
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-BX-9R6_Z.js → uploadReceipts-Dge0cNF1-BKdcUL2b.js} +1 -1
  253. package/dist/assets/{url-DrmuGGE4.js → url-0W_uXmZ-.js} +1 -1
  254. package/dist/assets/{url-C7FJoqre.js → url-Z1gMB4SW.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-nce713S8.js → useLongPress-GCK2COYQ-B8bxkfF-.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-BIn3NV9C.js → usp-line-BBd1wKwW-BPsPtX_C.js} +1 -1
  257. package/dist/assets/{utils-BdIPH7k8.js → utils-CHibiken.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-DwkN4IvA.js → zeni-epic-state-BKgIzPpM.js} +18 -18
  259. package/dist/index.html +1 -1
  260. package/package.json +4 -4
  261. package/dist/assets/ACHDetailsPage-Davpg8eW-BWDILC-H.js +0 -21
  262. package/dist/assets/AccountInfoPage-Cefnidcc-Bp5rUTr8.js +0 -18
  263. package/dist/assets/AccountLockedInfoModal-BdFY6p56-RTWbIB_l.js +0 -59
  264. package/dist/assets/AccountRow-DHB-ETil-0INUiG8Z.js +0 -298
  265. package/dist/assets/AddAddressForCardDrawer-CUKknbhJ-CnCLxax6.js +0 -6
  266. package/dist/assets/AppBasePage-tDs92z31-B3gR6k96.js +0 -71
  267. package/dist/assets/BillingSettingsPage-BjMeQKM0-CpnNOiGS.js +0 -44
  268. package/dist/assets/BusinessVerificationPage-LKrdd6Ej-BKb49OWB.js +0 -138
  269. package/dist/assets/ChargeCardStatementsPage-C82CsaNY-DzvzbShn.js +0 -60
  270. package/dist/assets/CompanyOfficerDetailsSection-5Gmlo5HX-mf8toy40.js +0 -331
  271. package/dist/assets/CompanyPassportPage-IjpU53y_-BF5RjsoV.js +0 -417
  272. package/dist/assets/ConfettiBurst-C_6Uy7eR-Np_3vQFo.js +0 -1
  273. package/dist/assets/CustomerOnboardingContainerPage-CP6DdMkC-CnaDFGWF.js +0 -1
  274. package/dist/assets/CustomerOnboardingNoStepsPage-BuWnQGPi-BSZV9BI0.js +0 -66
  275. package/dist/assets/CustomerOnboardingPage-Bl2oAvin-B7GmsFRo.js +0 -107
  276. package/dist/assets/DashboardSidebarBackgroundAnimation-iiFGhvRQ-y0LRofZR.js +0 -12
  277. package/dist/assets/EditPeoplePage-CG5gmNTR-CH2Xt3X8.js +0 -55
  278. package/dist/assets/EntityDetailPage-CL0FCU_m-BGtD2JCX.js +0 -18
  279. package/dist/assets/InsightsSection-C16f1RZL-BLvjZ1kW.js +0 -27
  280. package/dist/assets/InternationalWireVerificationPage-xmHZ6XN7-DwVwtiyi.js +0 -65
  281. package/dist/assets/InvitePeoplePage-BArxsNxE-BXI3n59t.js +0 -12
  282. package/dist/assets/InvoiceUploadSection-Eo7dq75t-C9QkPoGX.js +0 -140
  283. package/dist/assets/LabeledAddressValueField-DNGOSAvq-BXE6xS8k.js +0 -45
  284. package/dist/assets/LabeledControlledCheckBoxField-CR2DslKs-Cl2J9WYt.js +0 -16
  285. package/dist/assets/LabeledCountryMultiSelectField-B8Lbv837-DgWr30M7.js +0 -237
  286. package/dist/assets/LabeledDocumentField-vSq1xSUM-C_0QT0Hr.js +0 -41
  287. package/dist/assets/LabeledDropDownFormattedTextField-CqDEmdfe-DrhnwOAX.js +0 -59
  288. package/dist/assets/MagicLinkACHDetailsPage-C3TnWCqC-ByYEbu_t.js +0 -1
  289. package/dist/assets/MagicLinkDomesticWireDetailsPage-BUjap5Q7-Bvcp-odv.js +0 -1
  290. package/dist/assets/MagicLinkSuccessPage-CdHOdUZ5-CSa0Vcf2.js +0 -31
  291. package/dist/assets/MailingDetailsSection-WMvjKFiS-C1_EkXyZ.js +0 -21
  292. package/dist/assets/MyProfileSettingsPage-B0uYhezS-DbNVKwps.js +0 -85
  293. package/dist/assets/NoDataTable-B7LkfAQX-CdTNbZgo.js +0 -8
  294. package/dist/assets/OverlayContainerPage-D4QU0p4o-D2G-CVv7.js +0 -11
  295. package/dist/assets/PaymentAccountSetupBillingAddressSection-C026Xg59-Du1LULBI.js +0 -107
  296. package/dist/assets/PeoplePage-PyWOVc5M-DILaV4hT.js +0 -727
  297. package/dist/assets/RoleWithToolTip-DA3BIg5j-DG-Lih0N.js +0 -22
  298. package/dist/assets/ScheduleSequenceTable-B1fJ-_4f-VSvFhL5f.js +0 -324
  299. package/dist/assets/SignIn-T74bkrxk-ptxkK8PP.js +0 -491
  300. package/dist/assets/SignInScreen-BYcec7re.js +0 -1
  301. package/dist/assets/StatementItem-BthXwXFQ-j2l7jY5v.js +0 -31
  302. package/dist/assets/StatementsPage-FmjXzQ3g-oWNeSYKv.js +0 -58
  303. package/dist/assets/TimeframeSwitcherWithToggle-CdFx3214-DF2bdFav.js +0 -31
  304. package/dist/assets/TransactionDetailPage-CaRcJukf-CnifEZvn.js +0 -903
  305. package/dist/assets/TransactionList-BAziC6eS-6qNOgl8E.js +0 -153
  306. package/dist/assets/TransactionListPage-Ce_lSS6C-YqGl74XY.js +0 -35
  307. package/dist/assets/TreasuryTaxLetterPage-ClJA2mWI-xsnS5RHz.js +0 -58
  308. package/dist/assets/Vendor2FAPopup-DK98Bntc-CHLdTtz5.js +0 -1
  309. package/dist/assets/VendorACHDetailsPage-Bxo11l9N-DiVKko5M.js +0 -1
  310. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BNySLbxk-CvXAX7v6.js +0 -1
  311. package/dist/assets/ZeniAccountNavBarPieces-BK32R48c-BhUfl-Q9.js +0 -14
  312. package/dist/assets/analyticsHelper-DAh0LrcL.js +0 -1
  313. package/dist/assets/commonTypes-DP3nDhtI-D-fLD29s.js +0 -1
  314. package/dist/assets/downloadPdf-C1zKY9Rq-Bj2M-x0n.js +0 -1
  315. package/dist/assets/epic-av5bi8Jm.js +0 -2
  316. package/dist/assets/helper-Byvbf3nO-BTmT7Zux.js +0 -223
  317. package/dist/assets/mapLoadingInProgressToTreeNode-9Rpdq0ZF-lTETWBpR.js +0 -1
  318. package/dist/assets/mapSpacerToTreeNode-BCRaNO17-Byu958vH.js +0 -1
  319. package/dist/assets/mapTimeframeBalancesToTreeNode-Cc1RpGkM-aNtvWBak.js +0 -1
  320. package/dist/assets/mapTimeframeBalancesToTreeNode-DRCseSgo-Bs0MPeVL.js +0 -1
  321. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BnHYlJ_0-DmtLnyQB.js +0 -1
  322. package/dist/assets/panelSelectedMixin-Cddsb26L-CUpBjaaO.js +0 -3
  323. package/dist/assets/toCOABalancesWithID-BDzeodcz-CM7cQRcs.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,d as Y,b as M,bI as ie,F as te,g0 as se,g7 as ae,aL as ne,b2 as de,bJ as L,bb as ce,bH as pe,cE as ue,p as z,g8 as U,cj as q,i as he,aj as X,am as ge,an as me,fO as be,fN as fe,bx as xe,fP as ye,bj as we,g9 as ve}from"./index-BIYLqgct.js";import{n as d,c as $e}from"./mui-rLvQ8A4a.js";import{a as D}from"./sentry-DhNwX3jk.js";import{FK as W,FL as Re}from"./zeni-epic-state-DwkN4IvA.js";import{T as je}from"./RoleWithToolTip-DA3BIg5j-DG-Lih0N.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]="50a233f1-1c9c-4a11-a2dd-ac02c8b638be",e._sentryDebugIdIdentifier="sentry-dbid-50a233f1-1c9c-4a11-a2dd-ac02c8b638be")}catch{}})();const H={grpBtnMarginTopBottom:new m(n[1],n[3]),grpBtnMarginLeftRight:new m(n[0],n[3])},Se=d.div`
1
+ import{J as M,V as l,cZ as G,y as m,o,aQ as N,u as n,cT as E,d0 as K,c$ as Q,e as q,b as V,bI as ie,F as te,fZ as se,g4 as ae,aK as ne,b2 as de,bJ as B,bb as ce,bH as pe,cD as ue,p as C,g5 as U,cj as X,i as he,ai as Y,al as ge,am as me,fL as be,fK as fe,bx as xe,fM as ye,bj as we,g6 as ve}from"./index-GSKpJ8ET.js";import{n as d,c as $e}from"./mui-DenpH-hx.js";import{a as k}from"./sentry-BZBky1_g.js";import{FE as A,FF as Re}from"./zeni-epic-state-BKgIzPpM.js";import{T as je}from"./RoleWithToolTip-C29QOzxS-BIz3hnmq.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]="3581c68d-9a60-46e4-8eb3-5672a33d4365",e._sentryDebugIdIdentifier="sentry-dbid-3581c68d-9a60-46e4-8eb3-5672a33d4365")}catch{}})();const H={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=>H.grpBtnMarginTopBottom.valuePx(e.windowSize)};
4
4
  margin-bottom: ${e=>H.grpBtnMarginTopBottom.valuePx(e.windowSize)};
@@ -11,7 +11,7 @@ import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,d a
11
11
  ${e=>e.isDisabled?e.theme.colors.grey1:e.theme.colors.primary};
12
12
  }
13
13
  }
14
- `,Ce=d.div`
14
+ `,De=d.div`
15
15
  display: flex;
16
16
  flex-direction: row;
17
17
  &:hover {
@@ -20,22 +20,22 @@ import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,d a
20
20
  ${e=>e.isDisabled?e.theme.colors.grey1:e.theme.colors.primary};
21
21
  }
22
22
  }
23
- `,De=d.div`
23
+ `,ke=d.div`
24
24
  border-left: 1px solid ${e=>e.theme.colors.grey1};
25
- `,A=({allBtnOptions:e,isDisabled:s,selectedOption:i,buttonClickHandler:c})=>{const p=B(),a=Y(),f=u=>i?.value===u.value?"primary":"secondary",$=u=>i?.value===u.value?{backgroundColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.primary},textColor:{default:a.colors.grey5,hover:a.colors.grey5,disabled:a.colors.hero},borderColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.grey3}}:{backgroundColor:{default:"transparent",hover:a.colors.grey4,disabled:"transparent"},textColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.hero},borderColor:{default:a.colors.grey1,hover:a.colors.primary,disabled:a.colors.grey3}},b=e.length,y=s==="disabled"||s==="readonly";return l.jsx(Se,{windowSize:p,isDisabled:y,children:e.map((u,x)=>l.jsxs(Ce,{"data-testid":N("grouped-button-container",u.value),className:"grpBtn",isDisabled:y||!u.enabled,children:[l.jsx(he,{label:u.label,size:"small",variant:f(u),"data-testid":N("grouped-button",u.value),onClick:()=>c(u.value),buttonColors:$(u),disabled:y||!u.enabled,style:{borderTopRightRadius:x===b-1?o.sp1:o.sp0,borderBottomRightRadius:x===b-1?o.sp1:o.sp0,borderTopLeftRadius:x===0?o.sp1:o.sp0,borderBottomLeftRadius:x===0?o.sp1:o.sp0,borderRight:x===b-1?"":"none",borderLeft:x===0?"":"none",width:"65px",display:"flex",alignItems:"center",justifyContent:"center"}}),x!==b-1?l.jsx(De,{className:"verticalLine"}):null]},u.value))})},V={allRolesMarginLeftRight:new m(n[3],n[4])},ze=d.div`
25
+ `,W=({allBtnOptions:e,isDisabled:s,selectedOption:i,buttonClickHandler:c})=>{const p=M(),a=q(),f=u=>i?.value===u.value?"primary":"secondary",$=u=>i?.value===u.value?{backgroundColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.primary},textColor:{default:a.colors.grey5,hover:a.colors.grey5,disabled:a.colors.hero},borderColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.grey3}}:{backgroundColor:{default:"transparent",hover:a.colors.grey4,disabled:"transparent"},textColor:{default:a.colors.primary,hover:a.colors.primary,disabled:a.colors.hero},borderColor:{default:a.colors.grey1,hover:a.colors.primary,disabled:a.colors.grey3}},b=e.length,y=s==="disabled"||s==="readonly";return l.jsx(Se,{windowSize:p,isDisabled:y,children:e.map((u,x)=>l.jsxs(De,{"data-testid":N("grouped-button-container",u.value),className:"grpBtn",isDisabled:y||!u.enabled,children:[l.jsx(he,{label:u.label,size:"small",variant:f(u),"data-testid":N("grouped-button",u.value),onClick:()=>c(u.value),buttonColors:$(u),disabled:y||!u.enabled,style:{borderTopRightRadius:x===b-1?o.sp1:o.sp0,borderBottomRightRadius:x===b-1?o.sp1:o.sp0,borderTopLeftRadius:x===0?o.sp1:o.sp0,borderBottomLeftRadius:x===0?o.sp1:o.sp0,borderRight:x===b-1?"":"none",borderLeft:x===0?"":"none",width:"65px",display:"flex",alignItems:"center",justifyContent:"center"}}),x!==b-1?l.jsx(ke,{className:"verticalLine"}):null]},u.value))})},L={allRolesMarginLeftRight:new m(n[3],n[4])},Ce=d.div`
26
26
  display: flex;
27
27
  flex-direction: column;
28
28
  color: ${e=>e.theme.colors.hero};
29
- margin-right: ${e=>V.allRolesMarginLeftRight.valuePx(e.windowSize)};
30
- margin-left: ${e=>V.allRolesMarginLeftRight.valuePx(e.windowSize)};
29
+ margin-right: ${e=>L.allRolesMarginLeftRight.valuePx(e.windowSize)};
30
+ margin-left: ${e=>L.allRolesMarginLeftRight.valuePx(e.windowSize)};
31
31
  &:hover {
32
32
  color: ${e=>e.theme.colors.primary};
33
33
  }
34
- `,ke=d.div`
34
+ `,ze=d.div`
35
35
  display: flex;
36
36
  flex-direction: column;
37
37
  width: 100%;
38
- `,Oe=d.div`
38
+ `,Pe=d.div`
39
39
  display: flex;
40
40
  flex-direction: column;
41
41
  padding-left: ${o.sp4};
@@ -46,21 +46,21 @@ import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,d a
46
46
  transition:
47
47
  visibility 250ms ease-in-out,
48
48
  max-height 250ms ease-in-out;
49
- `,Pe=d.div`
49
+ `,Te=d.div`
50
50
  display: flex;
51
51
  flex-direction: row;
52
52
  margin-bottom: ${o.sp3};
53
53
  justify-content: space-between;
54
- `,Te=d(q)`
54
+ `,Oe=d(X)`
55
55
  display: flex;
56
56
  color: ${e=>e.theme.colors.primary};
57
- `,J=d(X)`
57
+ `,Z=d(Y)`
58
58
  display: flex;
59
59
  color: ${e=>e.theme.colors.hero};
60
- `,Le=d.div`
60
+ `,Be=d.div`
61
61
  display: flex;
62
62
  .roleTitle {
63
- color: ${e=>e.isError?z.important:e.theme.colors.hero};
63
+ color: ${e=>e.isError?C.important:e.theme.colors.hero};
64
64
  }
65
65
  .roleSubTitle {
66
66
  color: ${e=>e.theme.colors.hero};
@@ -84,15 +84,15 @@ import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,d a
84
84
  border-color: ${e=>e.theme.colors.primary};
85
85
  }
86
86
  }
87
- `,Be=d.div`
87
+ `,Me=d.div`
88
88
  display: flex;
89
89
  flex-direction: column;
90
- `,Ie=d(q)`
90
+ `,Ie=d(X)`
91
91
  display: flex;
92
- `,Me=d(X)`
92
+ `,Ve=d(Y)`
93
93
  display: flex;
94
94
  margin-bottom: ${o.sp1};
95
- `,Ve=d(me)`
95
+ `,Le=d(me)`
96
96
  display: flex;
97
97
  padding: 1px 6px 1px 6px;
98
98
  border: 1px solid;
@@ -117,25 +117,25 @@ import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,d a
117
117
  width: ${o.sp4};
118
118
  height: ${o.sp4};
119
119
  color: ${e=>e.theme.colors.hero};
120
- `,We=d(xe)`
120
+ `,Ae=d(xe)`
121
121
  width: ${o.sp4};
122
122
  height: ${o.sp4};
123
123
  color: ${e=>e.theme.colors.hero};
124
- `,Ae=d(fe)`
124
+ `,We=d(fe)`
125
125
  width: ${o.sp4};
126
126
  height: ${o.sp4};
127
127
  color: ${e=>e.theme.colors.hero};
128
- `,Je=d(be)`
128
+ `,Ze=d(be)`
129
129
  width: ${o.sp4};
130
130
  height: ${o.sp4};
131
131
  color: ${e=>e.theme.colors.hero};
132
- `,Ze=d.div`
132
+ `,Je=d.div`
133
133
  display: flex;
134
134
  flex-direction: column;
135
- margin-right: ${e=>V.allRolesMarginLeftRight.valuePx(e.windowSize)};
136
- margin-left: ${e=>V.allRolesMarginLeftRight.valuePx(e.windowSize)};
137
- color: ${e=>e.theme.mode==="light"?z.brandColorOnyx:z.brandColorPearl};
138
- `,Ge=e=>{switch(e){case"bookkeeping":return l.jsx(Ue,{});case"zeni_bill_pay":return l.jsx(He,{});case"zeni_reimbursements":return l.jsx(Ne,{});case"zeni_checking":return l.jsx(We,{});case"zeni_cards":return l.jsx(Ae,{});case"zeni_treasury":return l.jsx(Je,{});default:return null}},Qe=e=>l.jsxs(Be,{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})]}),Ke=({name:e,isDisabled:s,selectedValue:i,onSelectionChanged:c})=>{const{formState:{errors:p}}=E(),a=K(p,`${e}.userRole.selectedRole`),f=B(),$=i.productsByUserRole.employee.findIndex(h=>h.productType==="zeni_reimbursements"),b=D.useCallback(h=>{const t=se([h]),C=ae(h),v=ne(i.productsByUserRole[t]),R=v.findIndex(O=>O.productType===C),I=v[R].selectedOption?.value===h;R>-1&&(v[R]={...v[R],selectedOption:I?void 0:v[R].options.filter(O=>O.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,k=h=>h==="employee"&&i.userRole.selectedRole==="employee";return s==="readonly"?l.jsx(Ze,{windowSize:f,children:l.jsx(je,{roles:u})}):l.jsx(ke,{children:x.map(h=>l.jsxs(ze,{windowSize:f,children:[l.jsx(Le,{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(Oe,{windowSize:f,isCollapsed:k(h),roleCount:i.productsByUserRole[h].length,children:i.productsByUserRole[h].map(t=>l.jsxs(Pe,{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(J,{children:t.subTitleUser}),l.jsx(J,{children:t.subTitleAdmin})]})]}),f!=="small"?l.jsx(A,{allBtnOptions:t.options,selectedOption:t.selectedOption,buttonClickHandler:b,isDisabled:s}):null]},t.productType))})]},h))})},Ye=({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=B();return l.jsxs(qe,{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(Ye,{...i,isDisabled:e})]})}const qe=d.div`
135
+ margin-right: ${e=>L.allRolesMarginLeftRight.valuePx(e.windowSize)};
136
+ margin-left: ${e=>L.allRolesMarginLeftRight.valuePx(e.windowSize)};
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(He,{});case"zeni_reimbursements":return l.jsx(Ne,{});case"zeni_checking":return l.jsx(Ae,{});case"zeni_cards":return l.jsx(We,{});case"zeni_treasury":return l.jsx(Ze,{});default:return null}},Ke=e=>l.jsxs(Me,{children:[l.jsx(Ie,{className:"roleTitle",children:U[e].label}),l.jsx(Ve,{className:"roleSubTitle",children:U[e].subTitle}),l.jsx(Le,{className:"roleSuitableFor",children:U[e].roleSuitableFor})]}),Qe=({name:e,isDisabled:s,selectedValue:i,onSelectionChanged:c})=>{const{formState:{errors:p}}=E(),a=Q(p,`${e}.userRole.selectedRole`),f=M(),$=i.productsByUserRole.employee.findIndex(h=>h.productType==="zeni_reimbursements"),b=k.useCallback(h=>{const t=se([h]),D=ae(h),v=ne(i.productsByUserRole[t]),R=v.findIndex(P=>P.productType===D),I=v[R].selectedOption?.value===h;R>-1&&(v[R]={...v[R],selectedOption:I?void 0:v[R].options.filter(P=>P.value===h)[0]});const _={userRole:{selectedRole:t,allRootRole:i.userRole.allRootRole},productsByUserRole:{...i.productsByUserRole,[t]:[...v]}};c(_)},[c,i]),y=i.userRole.selectedRole,u=k.useMemo(()=>y!=null?(i.productsByUserRole[y]??[]).map(h=>Re(h.selectedOption?.value)).filter(h=>h!=null):[],[y,i.productsByUserRole]);k.useEffect(()=>{y==="employee"&&u.length===0&&$>-1&&b("reimbursements_user")},[y,u,$,b]);const x=i.userRole.allRootRole,z=h=>h==="employee"&&i.userRole.selectedRole==="employee";return s==="readonly"?l.jsx(Je,{windowSize:f,children:l.jsx(je,{roles:u})}):l.jsx(ze,{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(Pe,{windowSize:f,isCollapsed:z(h),roleCount:i.productsByUserRole[h].length,children:i.productsByUserRole[h].map(t=>l.jsxs(Te,{children:[l.jsxs(Ee,{children:[l.jsx(_e,{children:t.productType&&Ge(t.productType)}),l.jsxs(Fe,{children:[l.jsx(Oe,{children:t.label}),f==="small"?l.jsx(W,{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(W,{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=M();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 B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,d a
169
169
  border-color: inherit;
170
170
  }
171
171
  }
172
- `;function Xe({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:k}}=E(),h=K(k,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=Y(),C=B(),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,O=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:O?"wrap":"nowrap",width:C==="small"||!a?"auto":"263px",paddingTop:"unset",cursor:"pointer",..._,overflow:"visible",minWidth:"auto",paddingLeft:o.sp0,paddingRight:o.sp0,display:"flex",justifyContent:"flex-start",fill:t.colors.hero,":hover":{">div>div":{fill:t.colors.primary,color:t.colors.primary}},">div:last-of-type":{span:{display:"none"}}}),singleValue:(r,g)=>({...r,color:g.selectProps.menuIsOpen===!0?t.colors.primary:t.colors.hero,maxWidth:"auto",overflow:"auto",":hover":{color:t.colors.primary},marginLeft:o.sp0,position:"inherit",transform:"none",top:o.sp0,marginRight:o.sp0,padding:o.sp0,...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:C==="small"?"230px":"100%",right:C==="small"?o.sp0:"unset",borderRadius:o.sp1,margin:o.sp0,border:C==="small"?`1px solid ${t.colors.grey3}`:"unset"}),menuList:r=>({...r,maxHeight:"240px"}),option:(r,{isSelected:g,isDisabled:T,data:P})=>{const w=W(P.value)&&s===!0,F=Z(g,w,P.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||P.value==="delete"?`1px solid ${t.colors.background}`:"none","& label":{paddingRight:"10px"},"svg:nth-of-type(2)":{display:"none"},":hover":{color:Z(!0,w,P.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:O||!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(L.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:P,selectProps:w}=r,{value:F}=w;return l.jsx(po,{menuIsOpen:g,isFocused:T,isDisabled:P,selectedValue:F,isError:h,isValuePlacedAtEnd:y,windowSize:C,children:l.jsx(L.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(L.Input,{...e,autoComplete:"new-password",placeholder:p===!0&&c?.length===0||c==null?i:void 0,children:e.children})},oo=()=>null,Z=(e,s,i,c)=>e&&!s&&i!=="delete"?c.colors.primary:s?c.colors.grey1:i==="delete"?z.important:c.colors.hero,lo=()=>null,ro=()=>null,io=()=>null,to=({children:e,data:s,...i})=>l.jsx(L.MultiValueLabel,{...i,children:l.jsxs(ao,{children:[e,l.jsx(co,{className:"seperator",children:","})]})}),so=({children:e,...s})=>l.jsx(L.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]=k.useState(),{formState:{errors:z}}=E(),h=Q(z,b??"");k.useEffect(()=>{const r=c.filter(g=>i!=null&&i.includes(g.value));x(a?r:r[0])},[i]),k.useEffect(()=>{f===!0&&a===!1&&x(void 0)},[f]);const t=q(),D=M(),v=JSON.parse(JSON.stringify(c));if(i!=null&&s){if(!i.includes("admin")){const r=v.findIndex(g=>g.value==="admin");v.splice(r,1)}if(!i.includes("bookkeeping_admin")){const r=v.findIndex(g=>g.value==="bookkeeping_admin");v.splice(r,1)}}const R=t.colors.grey5,I=V.smallRegular.cssObject,_=I,P=u?.length>3,ee={control:r=>({...r,backgroundColor:"inherit",boxShadow:R,border:"none",cursor:"pointer",":hover":{backgroundColor:"inherit"},flexWrap:"nowrap",marginTop:"unset"}),container:r=>({...r,fill:t.colors.hero,":hover":{fill:t.colors.primary},width:"100%",...$}),valueContainer:r=>({...r,flexWrap:P?"wrap":"nowrap",width:D==="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,...V.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:D==="small"?"230px":"100%",right:D==="small"?o.sp0:"unset",borderRadius:o.sp1,margin:o.sp0,border:D==="small"?`1px solid ${t.colors.grey3}`:"unset"}),menuList:r=>({...r,maxHeight:"240px"}),option:(r,{isSelected:g,isDisabled:O,data:T})=>{const w=A(T.value)&&s===!0,F=J(g,w,T.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:O?"not-allowed":"pointer",backgroundColor:g&&!w?t.colors.background:"transparent",">div":{backgroundColor:g?t.colors.background:"transparent"},borderTop:w||T.value==="delete"?`1px solid ${t.colors.background}`:"none","& label":{paddingRight:"10px"},"svg:nth-of-type(2)":{display:"none"},":hover":{color:J(!0,w,T.value,t),backgroundColor:g&&!w?t.colors.background:w?"transparent":t.colors.background,">div":{backgroundColor:t.colors.background},"svg:nth-of-type(1)":{display:w||s===!1?"inline-block":"none"},"svg:nth-of-type(2)":{display:w?"none":"inline-block"}},">div>div>div:first-of-type":{display:"flex"}}},indicatorsContainer:r=>({...r,alignItems:a?"flex-start":"center",paddingTop:P||!a?"unset":"5px"}),indicatorSeparator:()=>({}),dropdownIndicator:()=>({paddingTop:a?o.sp1:"2px",svg:{marginLeft:a&&u?.length>0?"unset":"6px"}})},oe=r=>{const{isSelected:g}=r;return k.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(O=>{g.push(O.value)}),e(a?g:r.value)},re=r=>{const{menuIsOpen:g,isFocused:O,isDisabled:T,selectProps:w}=r,{value:F}=w;return l.jsx(po,{menuIsOpen:g,isFocused:O,isDisabled:T,selectedValue:F,isError:h,isValuePlacedAtEnd:y,windowSize:D,children:l.jsx(B.Control,{...r,className:"select-control",children:r.children})})};return l.jsx(ie,{isMulti:a,menuPlacement:"auto",minMenuHeight:250,menuShouldScrollIntoView:!1,defaultValue:u,value:u,closeMenuOnSelect:!0,options:v,isDisabled:p,hideSelectedOptions:!1,onChange:r=>{le(r)},isClearable:!1,isSearchable:!0,components:{Control:re,DropdownIndicator:lo,Option:oe,MultiValueRemove:ro,IndicatorSeparator:io,MultiValueLabel:to,ValueContainer:so,Placeholder:oo,Input:eo},styles:ee,theme:r=>({...r,colors:{...r.colors,primary:R}}),placeholder:te.getLocalizedStrings().peoplePage.dropdownPlaceHolderText,isOptionDisabled:r=>s===!1&&r.enabled===!1||s===!0&&A(r.value),classNamePrefix:"zeniRolesDropDown"})}const eo=e=>{const{selectProps:s}=e,{placeholder:i,value:c,isMulti:p}=s;return l.jsx(B.Input,{...e,autoComplete:"new-password",placeholder:p===!0&&c?.length===0||c==null?i:void 0,children:e.children})},oo=()=>null,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;
@@ -181,7 +181,7 @@ import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,d a
181
181
  display: flex;
182
182
  justify-content: space-between;
183
183
  align-items: center;
184
- ${e=>W(e.role)&&e.forZeniUser===!0?`padding: ${o.sp0} 12px; height: ${o.sp6};margin-top: ${o.sp1};width: 100%`:""}
184
+ ${e=>A(e.role)&&e.forZeniUser===!0?`padding: ${o.sp0} 12px; height: ${o.sp6};margin-top: ${o.sp1};width: 100%`:""}
185
185
  `,co=d.span``,po=d.div`
186
186
  width: 100%;
187
187
  background-color: ${e=>e.theme.colors.grey5};
@@ -189,7 +189,7 @@ import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,d a
189
189
  .select-control {
190
190
  border: none;
191
191
  height: ${e=>e.windowSize==="small"?"auto":o.sp6};
192
- background-color: ${e=>e.menuIsOpen&&e.isValuePlacedAtEnd===!0?e.theme.colors.background:e.isError===!0?z.importantLight:e.theme.colors.grey5};
192
+ background-color: ${e=>e.menuIsOpen&&e.isValuePlacedAtEnd===!0?e.theme.colors.background:e.isError===!0?C.importantLight:e.theme.colors.grey5};
193
193
  box-shadow: none;
194
194
  &:hover {
195
195
  fill: ${e=>e.theme.colors.primary};
@@ -218,7 +218,7 @@ import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,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
+ ${V.standardRegular.css};
222
222
  box-sizing: border-box;
223
223
  overflow: hidden;
224
224
  text-overflow: ellipsis;
@@ -229,7 +229,7 @@ import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,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
+ ${V.standardRegular.css};
233
233
  color: ${e=>e.theme.colors.primary};
234
234
  margin: ${o.sp0};
235
235
  cursor: inherit;
@@ -247,18 +247,18 @@ import{J as B,V as l,cQ as G,y as m,o,ab as N,u as n,cL as E,eG as Q,ex as K,d a
247
247
  visibility: visible;
248
248
  }
249
249
  ::placeholder {
250
- color: ${e=>e.isError===!0&&e.menuIsOpen!==!0?z.important:e.theme.colors.grey1};
250
+ color: ${e=>e.isError===!0&&e.menuIsOpen!==!0?C.important:e.theme.colors.grey1};
251
251
  }
252
252
  }
253
253
  }
254
254
  .placeholder-container {
255
- color: ${e=>e.isError===!0&&e.menuIsOpen!==!0?z.important:e.theme.colors.grey1};
255
+ color: ${e=>e.isError===!0&&e.menuIsOpen!==!0?C.important:e.theme.colors.grey1};
256
256
  }
257
257
  > div:nth-last-of-type(2) .seperator {
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(Q,{name:e,control:y,defaultValue:c,rules:i,render:({field:{value:u,onChange:x}})=>l.jsx(Xe,{onSelectionChanged:k=>{x({allOptions:c.allOptions,selectedOptions:k}),$?.(k)},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=B();return l.jsxs(ho,{size:p,style:c,isDisabled:e!=null,"data-testid":N("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(K,{name:e,control:y,defaultValue:c,rules:i,render:({field:{value:u,onChange:x}})=>l.jsx(Ye,{onSelectionChanged:z=>{x({allOptions:c.allOptions,selectedOptions:z}),$?.(z)},forZeniUser:s,selectedRoles:u.selectedOptions,disable:p,isMulti:a,name:e,style:f,allRoles:c.allOptions,isValuePlacedAtEnd:b})})},j={width:new m(343,580,726),height:new m(n[6],n[6]),controlHeight:new m(n[6],n[6]),paddingTopBottom:new m(n[2],n[2]),marginRight:new m(n[2],n[2]),labelMarginLeft:new m(n[3],n[4]),labelMarginRight:new m(n[3],n[4]),labelMarginTop:new m(n[2],n[2])};function wo({isDisabled:e,label:s,zeniRolesDropDownField:i,style:c}){const p=M();return l.jsxs(ho,{size:p,style:c,isDisabled:e!=null,"data-testid":N("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 H,aR as ue,a9 as pe,cH as me,iM as E,ix as P,cI as he,V as n,ad as ge,ga as fe,aS as be,F as G,o as t,y as m,c as xe,x as ye,cM as R,iN as we,p as je,b as I,bi as Ce,u as r}from"./index-BIYLqgct.js";import{a as V}from"./sentry-DhNwX3jk.js";import{n as i}from"./mui-rLvQ8A4a.js";import{Gb as Q,G8 as Se,G9 as De}from"./zeni-epic-state-DwkN4IvA.js";import $e from"./TransactionDetailPage-CaRcJukf-CnifEZvn.js";import"./liveblocks-DXGUxn7J.js";import"./core-DQ8U4CJb.js";import"./recharts-BYppTjSs.js";import"./lottie-C1yptpVV.js";import"./analytics-DkApCpAh.js";import"./lexical-CvUIM9vD.js";import"./utils-BdIPH7k8.js";import"./LabeledControlledCheckBoxField-CR2DslKs-Cl2J9WYt.js";import"./TrendWithTransactions-_O4Fz3pt-B_P0jc9Y.js";import"./TrendChart-FPLC1aMv-BpKn1lA4.js";import"./chartTypes-H306f0ce-DSh0OTeZ.js";import"./toCOABalancesWithID-BDzeodcz-CM7cQRcs.js";import"./toChartData-ILqaSUrn-x9ixmlfa.js";import"./NoDataChart-DuEsebs4-BQTTXvg9.js";import"./InsightsSection-C16f1RZL-BLvjZ1kW.js";import"./NavigationDots-D1rJnVkZ-DI_AwSe8.js";import"./TransactionList-BAziC6eS-6qNOgl8E.js";import"./ConstrainedInnerElement-BeIpAPjB-BVda4Dj4.js";import"./BoxItem-CvhcNreT-DxmoznPD.js";import"./commonDimensions-CWffpElu-DyTXC1xY.js";import"./panelSelectedMixin-Cddsb26L-CUpBjaaO.js";import"./uploadAttachment-BO1VJaKW-DrgLpT8c.js";import"./radio-default-CiSgisfh-D50TMWyl.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]="3090be21-f7a4-4a41-94f8-fe3231e31b68",e._sentryDebugIdIdentifier="sentry-dbid-3090be21-f7a4-4a41-94f8-fe3231e31b68")}catch{}})();const F={labelWidth:new m(120,145,160)},ve=i.div`
1
+ import{J as G,aR as ue,a9 as pe,cG as me,iK as E,iv as P,cH as he,V as n,ac as ge,g7 as fe,aS as be,F as H,o as t,y as m,d as xe,c as ye,cJ as F,iL as we,p as je,b as I,bi as Ce,u as r}from"./index-GSKpJ8ET.js";import{a as J}from"./sentry-BZBky1_g.js";import{n as i}from"./mui-DenpH-hx.js";import{G5 as Q,G2 as Se,G3 as De}from"./zeni-epic-state-BKgIzPpM.js";import $e from"./TransactionDetailPage-D-vXAAB7-Bzb02Sjl.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";import"./LabeledControlledCheckBoxField-B6w2HGJK-6LsZxWHa.js";import"./TrendWithTransactions-DDLrmIrt-D7YkaYJE.js";import"./TrendChart-BMHDaOeh-DUFeSEwp.js";import"./chartTypes-B3501CSI-Eia1dEGg.js";import"./toCOABalancesWithID-D35Fk0m2-dL9iDsOU.js";import"./toChartData-DzatRnt8-Cq2-M4CL.js";import"./NoDataChart-Bvetk9za-Dz6Kgiua.js";import"./InsightsSection-BYiN2xB7-Tq3IZNKc.js";import"./NavigationDots-tWCw6Bpk-Mo0z1mhF.js";import"./TransactionList-BruCNjQg-CPy3bOrg.js";import"./ConstrainedInnerElement-BeIpAPjB-BElBEfq9.js";import"./BoxItem-CYe_gTmA-3TpRGAgq.js";import"./commonDimensions-YcBBlmYP-HRUAmifl.js";import"./panelSelectedMixin-CzfD5-Zs-Z09J1JBQ.js";import"./uploadAttachment-Bq8dk-Sm-DirS4o1A.js";import"./radio-default-CiSgisfh--A7TRB5H.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]="445e77d8-e0ed-40f4-864a-a606dd25a9f6",e._sentryDebugIdIdentifier="sentry-dbid-445e77d8-e0ed-40f4-864a-a606dd25a9f6")}catch{}})();const V={labelWidth:new m(120,145,160)},ve=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -19,7 +19,7 @@ import{J as H,aR as ue,a9 as pe,cH as me,iM as E,ix as P,cI as he,V as n,ad as g
19
19
  background-color: ${e=>e.theme.colors.grey3};
20
20
  min-height: 1px;
21
21
  max-height: 1px;
22
- `,J=(e,l)=>`${e}.${l}`;function Ie({sectionId:e,jePostingDate:l,qboURL:a,isJELoading:s}){const u=G.getLocalizedStrings(),{dateFormat:j,jeSchedules:{scheduleDetails:{linkJE:o,scheduleDetailsSection:C}}}=u,h=l.format(j.visual.MMMDCommaYYYYformat),g=H();return n.jsxs(ve,{children:[n.jsx(Ee,{windowSize:g,children:C.header}),n.jsxs(ke,{children:[n.jsx(R,{label:{label:o.jePostingDate,width:F.labelWidth.value(g)},style:{width:"auto"},text:{type:"text",name:J(e,"jePostingDate"),placeholder:o.jeLinkURLPlaceholder,defaultValue:h,autoComplete:"new-password"},isDisabled:"disabled"}),n.jsx(Pe,{}),n.jsx(R,{label:{label:o.jeLink,width:F.labelWidth.value(g)},style:{width:"auto"},text:{type:"url",name:J(e,"qboURL"),placeholder:o.jeLinkURLPlaceholder,defaultValue:a?.toString()??"",autoComplete:"new-password",style:{color:je.link},options:{pattern:we}},isDisabled:s?"disabled":void 0})]})]})}const x={containerPaddingLeft:new m(r[3],r[3],r[6]),containerPaddingRight:new m(r[3],r[3],r[8]),navbarContainerPaddingTop:new m(r[2],r[3]),navbarContainerPaddingBottom:new m(r[4],r[5]),emptyScheduleHeight:new m(88,88)},B="linkJETransactionPage",W="linkJETransaction",Z=G.getLocalizedStrings(),{common:{footer:O},dateFormat:Le}=Z,bt=({analytics:e,scheduleTab:l,jeScheduledTransaction:a,localData:s,saveStatus:u,isCOTEnabled:j,transactionDetail:o,firstMonthOfFY:C,qboAppUrl:h,authParams:g,isDisabled:K,controllerUserDetails:L,isVendorBulkUpdateOnTransactionEnabled:X,onUpdateLocalData:ee,onBackClick:A,onCancelClick:te,onSaveClick:ne,onFetchTransactionClick:ae})=>{const p=H(),T=ue(u),y=Q(h.toString(),s.jeLink),S=Se(L.controllers),D=De(L.controllerUserIds),U=()=>{const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:S,controllerUserIds:D}),te()},f=pe({mode:"all",reValidateMode:"onChange",resetOptions:{keepDirtyValues:!0,keepErrors:!0},defaultValues:_(s,h),values:_(s,h)}),oe=()=>{ne()},ie=async d=>{ee(d)};V.useEffect(()=>{const d=f.watch((c,{name:ce})=>{ce!=null&&c!=null&&me(()=>ie(c))});return()=>{d.unsubscribe()}}),V.useEffect(()=>{if(u==="Completed"&&T==="In-Progress"){const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:S,controllerUserIds:D}),A()}},[u,T,A]);const{common:{strings:{empty:N}},jeSchedules:{scheduleDetails:{linkJE:b}}}=Z,le=()=>{if(s.jeLink?.transactionDetailID!=null){const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryQBOFetched({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:S,controllerUserIds:D}),ae(s.jeLink.transactionDetailID)}},se=o!=null&&o.fetchState==="In-Progress",re=o!=null&&o.fetchState==="Error",$=o!=null&&o.fetchState==="Completed",de=o==null||o.fetchState==="Not-Started",z=s.jeLink.type==="recommended",M=he(f.formState.dirtyFields),v=f.formState.isValid,w=$&&M&&v||$&&z&&v,k=M&&v;return n.jsxs(Ae,{children:[n.jsxs(Ue,{windowSize:p,children:[n.jsx(Ve,{windowSize:p,children:b.linkJE}),n.jsx(Me,{children:n.jsx(Re,{onClick:U})})]}),n.jsxs(Te,{children:[n.jsx(Ne,{windowSize:p,children:n.jsx(ge,{...f,children:n.jsx("form",{id:Y(B),onSubmit:f.handleSubmit(oe),children:n.jsx(Ie,{jePostingDate:s.postingDate,sectionId:W,qboURL:y,isJELoading:o?.fetchState==="In-Progress"})})})}),z?n.jsxs(Je,{windowSize:p,children:[n.jsx(Be,{})," ",b.zeniRecommendation]}):null,$?n.jsx(ze,{children:n.jsx($e,{isCOTEnabled:j,transactionDetail:o,firstMonthOfFY:C,transactionAttachmentEndpointToDownload:N,transactionAttachmentsEndpointToFetch:N,attachmentUploadEndpoint:"",authParams:g,isDisabled:K??"readonly",isNavBarVisible:!1,containerStyles:{boxShadow:"none",backgroundColor:"inherit"},headerStyles:{boxShadow:"none",backgroundColor:"inherit"},autoCompleteData:{entityAutoCompleteView:{customer:[],vendor:[],fetchState:"Not-Started"}},isVendorBulkUpdateOnTransactionEnabled:X,onDeleteAttachment:()=>{},autoCompleteActions:{onAutoCompleteInputChange:()=>null,onCancelAutoComplete:()=>null,onAutoCompleteEntity:()=>null,onLoadOptions:()=>null},onUploadAttachmentAttachment:()=>null,enableBackClickOnSave:!0,saveLatestSelectedEntity:()=>null,updateVendorBulkRecommendationsFetchStatus:()=>null,setIsVendorUpdateAllChecked:()=>null})}):null,n.jsxs(Fe,{children:[re?n.jsx(q,{windowSize:p,children:b.transactionFetchError}):null,de?n.jsx(q,{windowSize:p,children:b.jeDetails}):null]}),se?n.jsx(fe,{fetchState:o?.fetchState}):null]}),w||k?n.jsx(be,{formId:w?Y(B):void 0,primaryBtn:{onClick:k&&!w?le:void 0,label:k&&!w?b.fetchJE:O.save,isLoading:u==="In-Progress",isDisabled:u==="In-Progress"||o?.fetchState==="In-Progress"||o?.fetchState==="Error"},cancelBtn:{label:O.cancel,shouldResetOnCancel:!0,onClick:U}}):null]})},Y=e=>`${e}_form`,_=(e,l)=>({[W]:{qboURL:Q(l.toString(),e.jeLink),jePostingDate:e.postingDate.format(Le.visual.MMMDCommaYYYYformat)}}),Ae=i.div`
22
+ `,M=(e,l)=>`${e}.${l}`;function Ie({sectionId:e,jePostingDate:l,qboURL:a,isJELoading:s}){const u=H.getLocalizedStrings(),{dateFormat:j,jeSchedules:{scheduleDetails:{linkJE:o,scheduleDetailsSection:C}}}=u,h=l.format(j.visual.MMMDCommaYYYYformat),g=G();return n.jsxs(ve,{children:[n.jsx(Ee,{windowSize:g,children:C.header}),n.jsxs(ke,{children:[n.jsx(F,{label:{label:o.jePostingDate,width:V.labelWidth.value(g)},style:{width:"auto"},text:{type:"text",name:M(e,"jePostingDate"),placeholder:o.jeLinkURLPlaceholder,defaultValue:h,autoComplete:"new-password"},isDisabled:"disabled"}),n.jsx(Pe,{}),n.jsx(F,{label:{label:o.jeLink,width:V.labelWidth.value(g)},style:{width:"auto"},text:{type:"url",name:M(e,"qboURL"),placeholder:o.jeLinkURLPlaceholder,defaultValue:a?.toString()??"",autoComplete:"new-password",style:{color:je.link},options:{pattern:we}},isDisabled:s?"disabled":void 0})]})]})}const x={containerPaddingLeft:new m(r[3],r[3],r[6]),containerPaddingRight:new m(r[3],r[3],r[8]),navbarContainerPaddingTop:new m(r[2],r[3]),navbarContainerPaddingBottom:new m(r[4],r[5]),emptyScheduleHeight:new m(88,88)},O="linkJETransactionPage",W="linkJETransaction",Z=H.getLocalizedStrings(),{common:{footer:B},dateFormat:Le}=Z,bt=({analytics:e,scheduleTab:l,jeScheduledTransaction:a,localData:s,saveStatus:u,isCOTEnabled:j,transactionDetail:o,firstMonthOfFY:C,qboAppUrl:h,authParams:g,isDisabled:K,controllerUserDetails:L,isVendorBulkUpdateOnTransactionEnabled:X,onUpdateLocalData:ee,onBackClick:A,onCancelClick:te,onSaveClick:ne,onFetchTransactionClick:ae})=>{const p=G(),T=ue(u),y=Q(h.toString(),s.jeLink),S=Se(L.controllers),D=De(L.controllerUserIds),U=()=>{const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryLinkCanceled({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:S,controllerUserIds:D}),te()},f=pe({mode:"all",reValidateMode:"onChange",resetOptions:{keepDirtyValues:!0,keepErrors:!0},defaultValues:_(s,h),values:_(s,h)}),oe=()=>{ne()},ie=async d=>{ee(d)};J.useEffect(()=>{const d=f.watch((c,{name:ce})=>{ce!=null&&c!=null&&me(()=>ie(c))});return()=>{d.unsubscribe()}}),J.useEffect(()=>{if(u==="Completed"&&T==="In-Progress"){const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryLinkedSaved({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:S,controllerUserIds:D}),A()}},[u,T,A]);const{common:{strings:{empty:N}},jeSchedules:{scheduleDetails:{linkJE:b}}}=Z,le=()=>{if(s.jeLink?.transactionDetailID!=null){const d=a.vendor,c=a.baseTransaction;e.trackScheduleDetailsJournalEntryQBOFetched({scheduleType:l,transaction:{...P(c)},scheduleExpenseCategoryAndClass:{expenseCategory:a.jeDebit.account?.accountName??null,expenseClass:a.jeDebit.accountingClass?.className??null},journalEntryDetails:{...E(s,y?.toString())},vendorName:d.name,fixedAssetsDetails:l==="fixed_assets"?{accumulatedDepreciationCategory:a.jeCredit.account?.accountName??null,assetId:a.otherAttributes.assetId??null}:void 0,controllerEmails:S,controllerUserIds:D}),ae(s.jeLink.transactionDetailID)}},se=o!=null&&o.fetchState==="In-Progress",re=o!=null&&o.fetchState==="Error",$=o!=null&&o.fetchState==="Completed",de=o==null||o.fetchState==="Not-Started",z=s.jeLink.type==="recommended",R=he(f.formState.dirtyFields),v=f.formState.isValid,w=$&&R&&v||$&&z&&v,k=R&&v;return n.jsxs(Ae,{children:[n.jsxs(Ue,{windowSize:p,children:[n.jsx(Je,{windowSize:p,children:b.linkJE}),n.jsx(Re,{children:n.jsx(Fe,{onClick:U})})]}),n.jsxs(Te,{children:[n.jsx(Ne,{windowSize:p,children:n.jsx(ge,{...f,children:n.jsx("form",{id:Y(O),onSubmit:f.handleSubmit(oe),children:n.jsx(Ie,{jePostingDate:s.postingDate,sectionId:W,qboURL:y,isJELoading:o?.fetchState==="In-Progress"})})})}),z?n.jsxs(Me,{windowSize:p,children:[n.jsx(Oe,{})," ",b.zeniRecommendation]}):null,$?n.jsx(ze,{children:n.jsx($e,{isCOTEnabled:j,transactionDetail:o,firstMonthOfFY:C,transactionAttachmentEndpointToDownload:N,transactionAttachmentsEndpointToFetch:N,attachmentUploadEndpoint:"",authParams:g,isDisabled:K??"readonly",isNavBarVisible:!1,containerStyles:{boxShadow:"none",backgroundColor:"inherit"},headerStyles:{boxShadow:"none",backgroundColor:"inherit"},autoCompleteData:{entityAutoCompleteView:{customer:[],vendor:[],fetchState:"Not-Started"}},isVendorBulkUpdateOnTransactionEnabled:X,onDeleteAttachment:()=>{},autoCompleteActions:{onAutoCompleteInputChange:()=>null,onCancelAutoComplete:()=>null,onAutoCompleteEntity:()=>null,onLoadOptions:()=>null},onUploadAttachmentAttachment:()=>null,enableBackClickOnSave:!0,saveLatestSelectedEntity:()=>null,updateVendorBulkRecommendationsFetchStatus:()=>null,setIsVendorUpdateAllChecked:()=>null})}):null,n.jsxs(Ve,{children:[re?n.jsx(q,{windowSize:p,children:b.transactionFetchError}):null,de?n.jsx(q,{windowSize:p,children:b.jeDetails}):null]}),se?n.jsx(fe,{fetchState:o?.fetchState}):null]}),w||k?n.jsx(be,{formId:w?Y(O):void 0,primaryBtn:{onClick:k&&!w?le:void 0,label:k&&!w?b.fetchJE:B.save,isLoading:u==="In-Progress",isDisabled:u==="In-Progress"||o?.fetchState==="In-Progress"||o?.fetchState==="Error"},cancelBtn:{label:B.cancel,shouldResetOnCancel:!0,onClick:U}}):null]})},Y=e=>`${e}_form`,_=(e,l)=>({[W]:{qboURL:Q(l.toString(),e.jeLink),jePostingDate:e.postingDate.format(Le.visual.MMMDCommaYYYYformat)}}),Ae=i.div`
23
23
  display: flex;
24
24
  flex: 1 1 auto;
25
25
  width: 100%;
@@ -48,12 +48,12 @@ import{J as H,aR as ue,a9 as pe,cH as me,iM as E,ix as P,cI as he,V as n,ad as g
48
48
  flex: 1;
49
49
  margin-bottom: ${t.sp12};
50
50
  background-color: inherit;
51
- `,Me=i.div`
51
+ `,Re=i.div`
52
52
  display: flex;
53
53
  justify-content: flex-end;
54
54
  align-items: center;
55
55
  padding: ${t.sp3} ${t.sp0};
56
- `,Re=i(ye)`
56
+ `,Fe=i(ye)`
57
57
  cursor: pointer;
58
58
  color: ${e=>e.theme.colors.hero};
59
59
  width: ${t.sp4};
@@ -61,7 +61,7 @@ import{J as H,aR as ue,a9 as pe,cH as me,iM as E,ix as P,cI as he,V as n,ad as g
61
61
  &:hover {
62
62
  color: ${e=>e.theme.colors.primary};
63
63
  }
64
- `,Ve=i(xe)`
64
+ `,Je=i(xe)`
65
65
  display: flex;
66
66
  width: 100%;
67
67
  flex-grow: 1;
@@ -79,10 +79,10 @@ import{J as H,aR as ue,a9 as pe,cH as me,iM as E,ix as P,cI as he,V as n,ad as g
79
79
  color: ${e=>e.theme.colors.hero};
80
80
  margin: ${t.sp3} ${t.sp1};
81
81
  ${I.standardRegular.css};
82
- `,Fe=i.div`
82
+ `,Ve=i.div`
83
83
  flex-grow: 1;
84
84
  width: 100%;
85
- `,Je=i.div`
85
+ `,Me=i.div`
86
86
  display: flex;
87
87
  align-items: center;
88
88
  gap: ${t.sp1};
@@ -92,7 +92,7 @@ import{J as H,aR as ue,a9 as pe,cH as me,iM as E,ix as P,cI as he,V as n,ad as g
92
92
  border: 1px solid ${e=>e.theme.colors.grey3};
93
93
  margin: ${t.sp3} ${t.sp1};
94
94
  ${I.standardRegular.css};
95
- `,Be=i(Ce)`
95
+ `,Oe=i(Ce)`
96
96
  width: ${t.sp3};
97
97
  height: ${t.sp3};
98
98
  `;export{bt as default,Y as uniqueFormName};
@@ -1,4 +1,4 @@
1
- import{J as he,d as Me,a9 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,bU as Ve,aP as re,cQ as Ye,b2 as q,es as qe,T as Xe,aS as Ge,F as U,ap as Ke,cM as gr,i as pe,a8 as xr,ax as wr,gW as $r,gg as fr,ab as de,u as y,x as Je,bW as xe,R as Ze,am as j,b8 as we,aj as G,dv as Qe,b0 as er,cE as rr,p as X,an as tr,iR as oe,j0 as br,j5 as yr,j6 as jr,dw as Pe,fw as vr,eN as Sr}from"./index-BIYLqgct.js";import{a as ae}from"./sentry-DhNwX3jk.js";import{n as i}from"./mui-rLvQ8A4a.js";import{EP as Cr}from"./zeni-epic-state-DwkN4IvA.js";import{T as ir}from"./RoleWithToolTip-DA3BIg5j-DG-Lih0N.js";import{j as or}from"./CardNumberSubText-CfoSPAZU-BdVhRiwJ.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]="90fef8eb-4c33-4be8-b513-7a8486ac83df",e._sentryDebugIdIdentifier="sentry-dbid-90fef8eb-4c33-4be8-b513-7a8486ac83df")}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`
1
+ import{J as he,e as Me,a9 as me,y as d,c$ as ue,V as t,fc as He,ac as ge,ap as Be,g2 as Ue,o as r,b as We,bU as Ve,aO as re,cZ as Ye,b2 as X,es as Xe,T as qe,aS as Ge,F as U,ao as Ke,cJ as gr,i as pe,a8 as xr,aw as wr,gT as $r,gd as fr,aQ as de,u as y,c as Je,bW as xe,R as Ze,al as j,b8 as we,ai as G,dw as Qe,b0 as er,cD as rr,p as q,am as tr,iP as oe,i_ as br,j3 as yr,j4 as jr,dx as Pe,ft as vr,eL as Sr}from"./index-GSKpJ8ET.js";import{a as ae}from"./sentry-BZBky1_g.js";import{n as i}from"./mui-DenpH-hx.js";import{EP as Cr}from"./zeni-epic-state-BKgIzPpM.js";import{T as ir}from"./RoleWithToolTip-C29QOzxS-BIz3hnmq.js";import{j as or}from"./CardNumberSubText-CFDhtij8-Dsv6kEZQ.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]="b3bdb863-1ac7-494f-89ad-9c6798b4680a",e._sentryDebugIdIdentifier="sentry-dbid-b3bdb863-1ac7-494f-89ad-9c6798b4680a")}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};
@@ -8,7 +8,7 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
8
8
  display: flex;
9
9
  flex-direction: column;
10
10
  align-items: center;
11
- background: ${X.overlayDark};
11
+ background: ${q.overlayDark};
12
12
  `,kr=i.div`
13
13
  display: flex;
14
14
  flex-direction: column;
@@ -44,12 +44,12 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
44
44
  :hover {
45
45
  border: ${e=>`1px solid ${e.theme.colors.primary}`};
46
46
  input {
47
- background-color: ${e=>e.hasError?X.importantLight:e.theme.colors.background} !important;
47
+ background-color: ${e=>e.hasError?q.importantLight:e.theme.colors.background} !important;
48
48
  }
49
49
  }
50
50
  `,Ir=i.form`
51
51
  display: contents;
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:E,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:E,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:E,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(Er(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(Fr,{windowSize:f,role:"presentation","data-testid":de("update-spend-limit-popup"),children:t.jsx(Ke,{onClickAway:()=>s(),children:t.jsxs(Ar,{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(_r,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(Mr,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:J==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:K})]})})]})})})}const Er=(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])},Fr=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:H,currentSpentAmount:B,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:H,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:H,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(B,O,ne))},[ne,B,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]",H),Z.slashMonth]}),t.jsxs(Br,{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>B.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(Hr,{children:t.jsxs(_r,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(Mr,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading: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:H,currentLimitAmount:B,recommendedLimitAmounts:v,cardActivationDate:W,cardIssuedByRoles:V,cardHolderRoles:O,cardIssuedByDepartmentName:K,cardHolderDepartmentName:J,loggedInUserRole:I,clickItem:Y,newSpendLimitAmount:u})=>{n!=null&&H==="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(B.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};
@@ -59,8 +59,8 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
59
59
  display: flex;
60
60
  flex-direction: column;
61
61
  align-items: center;
62
- background: ${X.overlayDark};
63
- `,Ar=i.div`
62
+ background: ${q.overlayDark};
63
+ `,Er=i.div`
64
64
  display: flex;
65
65
  flex-direction: column;
66
66
  justify-content: space-between;
@@ -86,10 +86,10 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
86
86
  padding-top: ${r.sp4};
87
87
  `,Mr=i.div`
88
88
  width: ${r.sp3};
89
- `,Br=i.div`
89
+ `,Hr=i.div`
90
90
  display: flex;
91
91
  flex-direction: column;
92
- `,Hr=i.div`
92
+ `,Br=i.div`
93
93
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
94
94
  box-shadow: ${e=>`${r.sp0} 1px 2px ${r.sp0} ${e.theme.colors.issueChargeCardBackgroundShadow}`};
95
95
  border-radius: ${r.sp2};
@@ -98,7 +98,7 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
98
98
  :hover {
99
99
  border: ${e=>`1px solid ${e.theme.colors.primary}`};
100
100
  input {
101
- background-color: ${e=>e.hasError?X.importantLight:e.theme.colors.background} !important;
101
+ background-color: ${e=>e.hasError?q.importantLight:e.theme.colors.background} !important;
102
102
  }
103
103
  }
104
104
  `,Ur=i.div`
@@ -121,13 +121,13 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
121
121
  border: ${e=>`1px solid ${e.theme.colors.primary}`};
122
122
  }
123
123
  `,Vr=i(Sr)`
124
- color: ${X.brandColorJade};
125
- fill: ${X.brandColorJade};
124
+ color: ${q.brandColorJade};
125
+ fill: ${q.brandColorJade};
126
126
  width: ${r.sp3};
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(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:_}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",F=(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=Me(),[$,B]=ae.useState(Object.fromEntries(Object.keys(l).map((a,s)=>[a,s===0]))),H=a=>{B(s=>s[a]?{...s,[a]:!1}:{...Object.fromEntries(Object.keys(s).map(g=>[g,!1])),[a]:!0})},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,F(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,E=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?_.closeCards:_.closeCard}):t.jsx(dt,{children:u?_.closeCards:_.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?`${_.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",E.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?S.expense:S.expenses} ${_.multipleCardsHasRecurringExpensesSuffix}`:_.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",E.toString()):_.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?S.expense:S.expenses)}),u&&t.jsx(Pt,{children:`${E} ${E===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(Ee,{}))]}),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(Ee,{}))]})]}),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:F(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:F(z,"reasonType"),id:`${F(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:F(z,"reasonType"),id:`${F(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:F(z,"reasonType"),id:`${F(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:F(z,"reasonType"),id:`${F(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:F(z,"reason"),placeholder:_.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!c,validate:a=>c?!0:!!a}}):I==null&&!c&&J?t.jsx(Zr,{children:_.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`
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:_}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",A=(e,h)=>`${e}.${h}`,De=e=>`${e}_form`,{common:ye,dateFormat:Xr,cockpit:qr}=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=Me(),[$,H]=ae.useState(Object.fromEntries(Object.keys(l).map((a,s)=>[a,s===0]))),B=a=>{H(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(He,{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?_.closeCards:_.closeCard}):t.jsx(dt,{children:u?_.closeCards:_.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?`${_.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",F.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?S.expense:S.expenses} ${_.multipleCardsHasRecurringExpensesSuffix}`:_.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",F.toString()):_.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?B(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:qr.userProfileAltText,onError:({currentTarget:x})=>{x.onerror=null,x.src=Be},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(Xr.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(X,{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(X,{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(X,{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(X,{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(Xe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${P.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:A(z,"reason"),placeholder:_.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!c,validate:a=>c?!0:!!a}}):I==null&&!c&&J?t.jsx(Zr,{children:_.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(qe,{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};
@@ -303,7 +303,7 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
303
303
  justify-content: space-between;
304
304
  margin: ${r.sp2} ${r.sp0};
305
305
  `,Ne=i.div`
306
- background-color: ${e=>e.theme.mode==="light"?e.theme.colors.background:X.neutralGrey3Dark};
306
+ background-color: ${e=>e.theme.mode==="light"?e.theme.colors.background:q.neutralGrey3Dark};
307
307
  min-height: 1px;
308
308
  max-height: 1px;
309
309
  width: 100%;
@@ -342,7 +342,7 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
342
342
  min-width: ${r.sp4};
343
343
  min-height: ${r.sp4};
344
344
  color: inherit;
345
- `,Ee=i(er)`
345
+ `,Fe=i(er)`
346
346
  cursor: pointer;
347
347
  width: ${r.sp4};
348
348
  height: ${r.sp4};
@@ -374,19 +374,19 @@ import{J as he,d as Me,a9 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(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:M,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Fe="lockCardPage",A=(e,h)=>`${e}.${h}`,Ae=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=Me(),[$,B]=ae.useState(Object.fromEntries(Object.keys(l).map((s,g)=>[s,g===0]))),H=s=>{B(g=>g[s]?{...g,[s]:!1}:{...Object.fromEntries(Object.keys(g).map(x=>[x,!1])),[s]:!0})},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,A(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,E=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(Et,{windowSize:o,children:[t.jsxs(Ft,{windowSize:o,children:[t.jsx(Ot,{windowSize:o,children:t.jsx(Mt,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:u?M.lockCards:M.lockCard}):t.jsx(Xt,{children:u?M.lockCards:M.lockCard}),b==="Completed"?t.jsx(ge,{...v,children:t.jsxs("form",{id:Ae(Fe),onSubmit:Y,children:[t.jsxs(Gt,{children:[t.jsx(Kt,{windowSize:o,children:u?D>0?`${M.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",E.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?C.expense:C.expenses}.`:M.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",E.toString()):a?M.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?C.expense:C.expenses):M.firstCardNoRecurringExpenses}),u&&t.jsx(mi,{children:`${E} ${E===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(_e,{}))]}),t.jsxs(ti,{windowSize:o,children:[p[s].cardName,t.jsx(or,{cardDetail:p[s],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs(ii,{windowSize:o,children:[t.jsxs(li,{children:[t.jsx(pi,{children:l[s].length}),t.jsx(ci,{children:C.recurringExpenses})]}),o!=="small"&&x&&($[s]?t.jsx(Oe,{}):t.jsx(_e,{}))]})]}),u&&t.jsx(At,{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:A(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:A(k,"reasonType"),id:`${A(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:A(k,"reasonType"),id:`${A(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:A(k,"reasonType"),id:`${A(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:A(k,"reasonType"),id:`${A(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:A(k,"reason"),placeholder:M.reasonPlaceholder,className:"reason-text-field"}):I==null&&!c&&J?t.jsx(_t,{children:M.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),b==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Ae(Fe),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:je.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:je.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Et=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:M,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=Me(),[$,H]=ae.useState(Object.fromEntries(Object.keys(l).map((s,g)=>[s,g===0]))),B=s=>{H(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(He,{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(Mt,{onClick:()=>{N()}})}),o==="small"?t.jsx(Xt,{windowSize:o,children:u?M.lockCards:M.lockCard}):t.jsx(qt,{children:u?M.lockCards:M.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?`${M.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",F.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?C.expense:C.expenses}.`:M.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",F.toString()):a?M.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?C.expense:C.expenses):M.firstCardNoRecurringExpenses}),u&&t.jsx(mi,{children:`${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?B(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(Ht,{src:p[s].cardHolderUser?.photo.href,alt:It.userProfileAltText,onError:({currentTarget:f})=>{f.onerror=null,f.src=Be},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(_e,{}))]}),t.jsxs(ti,{windowSize:o,children:[p[s].cardName,t.jsx(or,{cardDetail:p[s],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs(ii,{windowSize:o,children:[t.jsxs(li,{children:[t.jsx(pi,{children:l[s].length}),t.jsx(ci,{children:C.recurringExpenses})]}),o!=="small"&&x&&($[s]?t.jsx(Oe,{}):t.jsx(_e,{}))]})]}),u&&t.jsx(Et,{children:t.jsx(Ve,{variant:"standard",title: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(Bt,{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(X,{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(X,{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(X,{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(X,{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(Xe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${L.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:E(k,"reason"),placeholder:M.reasonPlaceholder,className:"reason-text-field"}):I==null&&!c&&J?t.jsx(_t,{children:M.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(qe,{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};
381
381
  overflow-x: hidden;
382
382
  height: 100vh;
383
383
  width: 100%;
384
- `,Ft=i.div`
384
+ `,At=i.div`
385
385
  height: auto;
386
386
  padding-left: ${e=>`${L.containerPaddingLeft.valuePx(e.windowSize)}`};
387
387
  padding-right: ${e=>`${L.containerPaddingRight.valuePx(e.windowSize)}`};
388
388
  margin-bottom: auto;
389
- `,At=i.div`
389
+ `,Et=i.div`
390
390
  position: absolute;
391
391
  right: -${r.sp2};
392
392
  top: -${r.sp2};
@@ -415,13 +415,13 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
415
415
  &:hover {
416
416
  color: ${e=>e.theme.colors.primary};
417
417
  }
418
- `,Bt=i.img`
418
+ `,Ht=i.img`
419
419
  height: ${r.sp6};
420
420
  width: ${r.sp6};
421
421
  border-radius: 50%;
422
422
  justify-content: center;
423
423
  color: ${e=>e.theme.colors.hero};
424
- `,Ht=i(j)`
424
+ `,Bt=i(j)`
425
425
  margin-right: ${r.sp3};
426
426
  color: inherit;
427
427
  -webkit-line-clamp: ${e=>L.webkitLineClamp.value(e.windowSize)};
@@ -475,12 +475,12 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
475
475
  height: ${r.sp11};
476
476
  align-items: start;
477
477
  `}
478
- `,qt=i(xe)`
478
+ `,Xt=i(xe)`
479
479
  color: ${e=>e.theme.colors.primary};
480
480
  margin-top: ${r.sp3};
481
481
  margin-bottom: ${r.sp0};
482
482
  margin-right: ${r.sp3};
483
- `,Xt=i(Ze)`
483
+ `,qt=i(Ze)`
484
484
  color: ${e=>e.theme.colors.primary};
485
485
  margin-top: ${r.sp3};
486
486
  margin-bottom: ${r.sp2};
@@ -549,7 +549,7 @@ import{J as he,d as Me,a9 as me,y as d,ex as ue,V as t,ff as Be,ad as ge,aq as H
549
549
  justify-content: space-between;
550
550
  margin: ${r.sp2} ${r.sp0};
551
551
  `,Re=i.div`
552
- background-color: ${e=>e.theme.mode==="light"?e.theme.colors.background:X.neutralGrey3Dark};
552
+ background-color: ${e=>e.theme.mode==="light"?e.theme.colors.background:q.neutralGrey3Dark};
553
553
  min-height: 1px;
554
554
  max-height: 1px;
555
555
  width: 100%;