@zeniai/web-cockpit-ui 1.15.11-dev → 1.15.12-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 (284) hide show
  1. package/dist/assets/{ACHDetailsPage-CR6ypd9o-CPuvu8Ya.js → ACHDetailsPage-BY65AQjO-Cl2Tlmft.js} +3 -3
  2. package/dist/assets/{AIPerformancePage-C1OU9y7O-Cy2fQhSN.js → AIPerformancePage-B0a7EX_p-BepCOVvT.js} +17 -17
  3. package/dist/assets/AccountInfoPage-DUYpaV3v-CL9yEZEk.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-CrSVf_Od-DxUVjtpH.js → AccountInfoPageContent-BsSGhNw9-Bhg40nPQ.js} +13 -13
  5. package/dist/assets/{AccountLockedInfoModal-DNU_J1FV-BrQt7SPM.js → AccountLockedInfoModal-uPOYP0OH-gMh9hb_c.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DghCIWni-WUADgsvH.js → AccountReconDetailsDrawerPage-BgPmbG_g-9wGOY4BN.js} +6 -6
  7. package/dist/assets/{AccountRow-CYv0Uw-I-DQCZ-Htb.js → AccountRow-B9ZIzZy7-C9nPv4rY.js} +22 -22
  8. package/dist/assets/{AccountsPromoCardStack-BANu3wYt-CQ0iVQrx.js → AccountsPromoCardStack-BLcpWU3T-CV6K5Y9x.js} +8 -8
  9. package/dist/assets/AddAddressForCardDrawer-B1oucxyM-I6biD8O7.js +6 -0
  10. package/dist/assets/{AddToWalletPage-C8keLYK6-Bn2sefuz.js → AddToWalletPage-B1GVnxRf-CndQH9vq.js} +7 -7
  11. package/dist/assets/{AgingReportsPage-L84_Ka8x-B6lkNbiG.js → AgingReportsPage-Bpp4te8m-HodwoOcT.js} +3 -3
  12. package/dist/assets/{AllUserItems-Duwm6ypi-CNUX4dOE.js → AllUserItems-CzugF5fn-8WnbDsqH.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-MH7SN7mP-D7GEtWSd.js → ApAgingDetailPage-CyUQeZY0-DHH2Dilv.js} +4 -4
  14. package/dist/assets/{AppBasePage-DpK4Drat-Bt4q9XbU.js → AppBasePage-Di7hObbX-uZJvqLhK.js} +6 -6
  15. package/dist/assets/{AppDrawerContent-CR_WXwBz-CFNPiFQp.js → AppDrawerContent-KdrUuifo-DcEK8qwb.js} +5 -5
  16. package/dist/assets/{ApprovalRulesSettingsPage-DD2E4NU5-DpHAD8Ti.js → ApprovalRulesSettingsPage-BRIgTh7x-CF-Pagn9.js} +1 -1
  17. package/dist/assets/{ArAgingChart-q1DoAAzl-IMdyrhPv.js → ArAgingChart-DeE5uhiT-BcI5cuvH.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BKqFTdkz-kMEm6GPZ.js → ArAgingDetailPage-CFiIUBWl-BXhWrXr_.js} +2 -2
  19. package/dist/assets/{AttachmentView-CwbFyo5O-DSfNvuAU.js → AttachmentView-CfacSLcU-gwYezuYM.js} +7 -7
  20. package/dist/assets/{BankAccountSection-DNYhcdas-Ddz8QKzl.js → BankAccountSection-Bm8vdxFd-DKKdvH8R.js} +6 -6
  21. package/dist/assets/{BankAccountWarningSection-B6AIe7nT-BcHAPM_q.js → BankAccountWarningSection-M3w6kP33-ChP5wvhC.js} +13 -13
  22. package/dist/assets/{BankConnectionsSettingsPage-BQSAz9yS-R3TufSTo.js → BankConnectionsSettingsPage-Dfrp0CKz-Dc4Qac0T.js} +9 -9
  23. package/dist/assets/{BillDetailPage-CJMkS2TO-CUCvdJLF.js → BillDetailPage-BA1D1bO3-Ofkt6QPd.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CWCmHWbz-BO-G290w.js → BillPayApprovalRuleDetailPage-DR8YzZt1-CQcbdF34.js} +2 -2
  25. package/dist/assets/{BillPayApprovalRulesPage-0_wlhyx9-CKOGyW5d.js → BillPayApprovalRulesPage-CfZ4aSPM-C6nI7yKc.js} +11 -11
  26. package/dist/assets/{BillPayPromoPage-CKOYCq5V-C6OfnMF1.js → BillPayPromoPage-CP9Nvd2Q-CSZ8mSrV.js} +4 -4
  27. package/dist/assets/{BillPaySetUpPage-Dibv-FD4-kIfalP85.js → BillPaySetUpPage-BwEONKu_-DARv5ESb.js} +6 -6
  28. package/dist/assets/{BillingSettingsPage-CG9gklV0-CGGGPaut.js → BillingSettingsPage-DicGyWCt-DwbmjVcE.js} +6 -6
  29. package/dist/assets/{BillsBulkReviewDrawerPage-Cgof7dpG-BwYBq9-d.js → BillsBulkReviewDrawerPage-fS3-YEdi-DKZKHDla.js} +1 -1
  30. package/dist/assets/{BoxItem-DD7d5_ky-D2d9aLr-.js → BoxItem-Cr0Y9YBV-C2AawtqJ.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-KfKed7nf-Bzkiryv0.js → BusinessVerificationPage-CvL9cdJm-Drj-tMQU.js} +3 -3
  32. package/dist/assets/CardNumberSubText-CXBKzGK5-CCtn2y_n.js +21 -0
  33. package/dist/assets/{CashbackDetailPage-D1ejnH4R-BltiUdCI.js → CashbackDetailPage-DOdPOiws-CAJxdhJ3.js} +11 -11
  34. package/dist/assets/{ChargeCardDetailPage-Cvs-BEKp-Bqa3oM5k.js → ChargeCardDetailPage-DfhAyysD-Cgd92Yem.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-CW0WF8w6-DBIJI8Xw.js → ChargeCardListPage-Bnnu4TVk-DFZAYaNm.js} +20 -20
  36. package/dist/assets/{ChargeCardListTable-43l6tEOp-BbcKoGZ2.js → ChargeCardListTable-D7zGM8uo-70otSDDQ.js} +40 -40
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-fpQhp74g-BLq-AFt8.js → ChargeCardPaymentHistoryPage-U00GbINt-BIwIfF30.js} +13 -13
  38. package/dist/assets/ChargeCardPromoPage-BpBiwjfr-DWB9eQGN.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-CFR2KfLW-Bj3pYNfL.js → ChargeCardSetupPage-Duj6901M-CIASuReJ.js} +4 -4
  40. package/dist/assets/{ChargeCardStatementsPage-BMYUlzTk-CZ02SfTF.js → ChargeCardStatementsPage-IkU86L31-ClrDQTtP.js} +4 -4
  41. package/dist/assets/{CheckDepositDrawerPage-BXWeeMR7-BYN5c48i.js → CheckDepositDrawerPage-fHeTkRJF-CdLdCkIH.js} +13 -13
  42. package/dist/assets/{CollapsableReportTable-CZJ_4MUf-TH_6P-Y_.js → CollapsableReportTable-DUo-9gOh-B_gwOhYJ.js} +32 -32
  43. package/dist/assets/{CompanyOfficerDetailsSection-b2itwQOK-DbOlSBag.js → CompanyOfficerDetailsSection-DzDZe6MU-DWguMF6d.js} +10 -10
  44. package/dist/assets/{CompanyPassportCard-C5C3AykH-DcHAKmoT.js → CompanyPassportCard-BwiwJ82k-WRVY9XX8.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-D9zWgLlj-CWyCqrqW.js → CompanyPassportPage-Bz3rzG9k-e3d2ccIM.js} +15 -15
  46. package/dist/assets/{CompleteProfile-CMnTwbXr-DZqd8rFQ.js → CompleteProfile-CRXV-nNq-DpRL426l.js} +2 -2
  47. package/dist/assets/ConfettiBurst-CapRdPno-Dlg4XvfD.js +1 -0
  48. package/dist/assets/{CreateOrEditVendorPage-CthcMxEa-PQhPjSjB.js → CreateOrEditVendorPage-BjPotKnf-De1W0m4N.js} +12 -12
  49. package/dist/assets/{CreditCardPaymentDrawerPage-LD349Ert-C4Wbd8yP.js → CreditCardPaymentDrawerPage-BTZ2Lph6-DMwCUXwV.js} +13 -13
  50. package/dist/assets/{CurrencySelectField-iXGB-cNy-BRjQHy5W.js → CurrencySelectField-DY0HeU0G-CSYPXeIb.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-BuZrVCRr-DQvZbF43.js → CustomerOnboardingActivationPage-BIKXkkcY-IFMHYYO1.js} +5 -5
  52. package/dist/assets/CustomerOnboardingContainerPage-DZfFYnVw-BG6Jz35S.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-L4WssPjU-BL2-a44j.js → CustomerOnboardingDetailPageSkeleton-DYiAmFsM-C0-Ot9Uw.js} +9 -9
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-Bqv6vbYJ-B4xhs9JC.js → CustomerOnboardingNoStepsPage-gssFllMT-DT9hupvU.js} +9 -9
  55. package/dist/assets/{CustomerOnboardingPage-D7YVlzdy-GqcXPa-d.js → CustomerOnboardingPage-CBJHj8BH-KUidrPxI.js} +6 -6
  56. package/dist/assets/{CustomerOnboardingProductSuitePage-DLzC-lxj-pVKJNYgp.js → CustomerOnboardingProductSuitePage-2V3vSjB8-BYRuju-o.js} +12 -12
  57. package/dist/assets/{Dashboard-BgpeTLE--ZF2wZzkh.js → Dashboard-BVvkfPf9-hp4sQi7A.js} +1 -1
  58. package/dist/assets/{DashboardReportPage-DJtJdsj5-D0j90p2O.js → DashboardReportPage-DHQ79h9V-C3FgTbgA.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-CL6vWi6p-DaXPDfmE.js → DashboardSidebarBackgroundAnimation-B8Q-YA_s-DLXiBeQj.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-B8Kledeo-BlVCqg6w.js → DepositAccTransactionItem-DZnqI7IQ-DR0NgZ86.js} +2 -2
  61. package/dist/assets/{DepositAccTransactionListPage-DYBIAd7n-gVv7-TK3.js → DepositAccTransactionListPage-BMNdp-3Q-CyOUea8P.js} +4 -4
  62. package/dist/assets/{DomesticWireDetailsPage-Bm-bfxSa-rYZYhMWI.js → DomesticWireDetailsPage-CCP6xoW_-BlmZjbpt.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-CAfyh0W2-BJk2KPOA.js → DownloadOverlay-B2bK30rG-B-m5Mv2I.js} +18 -18
  64. package/dist/assets/{DrawerPage-DUeVKq0Q-DB8bkP9s.js → DrawerPage-BRJDrBlv-D28-uO54.js} +8 -8
  65. package/dist/assets/{EditPeoplePage-dVrpOcc1-DgbweCi9.js → EditPeoplePage-I8E1Rs3x-DbyrgA_C.js} +6 -6
  66. package/dist/assets/{EditReimbursementDetailPage-xWwm-k8T-Hs0cdO6C.js → EditReimbursementDetailPage-C7BPmFMR-DTPMhwLH.js} +19 -19
  67. package/dist/assets/EntityDetailPage-BraBJ2k1-Wq1E4JPl.js +18 -0
  68. package/dist/assets/{EntitySummarySection-CTU-YsQl-CSwZth_c.js → EntitySummarySection-DPmL3Bnf-CHA6TrKp.js} +5 -5
  69. package/dist/assets/{ExpenseAutomationOverviewPage-DCbcWM84-DHrtqP9f.js → ExpenseAutomationOverviewPage-CDaO_5Vj-gZyomnai.js} +12 -12
  70. package/dist/assets/{ExpenseAutomationPage-DbFQ6EeA-C0i_UBmZ.js → ExpenseAutomationPage-DUenmMQD-Yh_8CeIf.js} +59 -59
  71. package/dist/assets/{ExpressPayPage-DMLKT4Nf-6YIrNvk0.js → ExpressPayPage-DxO1mXNE-DeRja-sm.js} +1 -1
  72. package/dist/assets/{FeaturePreviewPage-DFsZRRmZ-KGYTIegX.js → FeaturePreviewPage-BWPNZcYs-CdJLxzVS.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-DkBj9-hs-mJdSbXed.js → FollowStepsSection-DhVGeocZ-Ddk_z58q.js} +6 -6
  74. package/dist/assets/{GlobalReviewListPage-D1fbfssG-CByDE9EN.js → GlobalReviewListPage-8eiQXg7N-pPWYTyKl.js} +5 -5
  75. package/dist/assets/{InformationCardStack-CBsOTiOc-CgAe3fDD.js → InformationCardStack-CHVjIv01-Y1Eih__r.js} +2 -2
  76. package/dist/assets/{InsightsCardStack-BEpCIgoE-Bd7MJjyH.js → InsightsCardStack-x_tohY2Z-DNptH2Sv.js} +2 -2
  77. package/dist/assets/{InsightsSection-DcKb1p5B-QoDxUPcZ.js → InsightsSection-D7g00fg7-Bl1k6KMG.js} +2 -2
  78. package/dist/assets/{IntegrationsSettingsPage-CMEV5P0b-3g_v4D8X.js → IntegrationsSettingsPage-DVRtPRi9-ig1iJJpM.js} +10 -10
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-Bukfo0LC-DGIPKWPe.js → InternationalWireSwiftDetailsPage-DnWbUuiD-CIWMoecY.js} +11 -11
  80. package/dist/assets/{InternationalWireVerificationPage-nZvCemaM-DntrzxyD.js → InternationalWireVerificationPage-CHvUYgd8-B9TQJM22.js} +3 -3
  81. package/dist/assets/{InviteFormPage-BpgeFttq-BbrTw2ZL.js → InviteFormPage-Cw0TIkwc-D0dTmTLg.js} +25 -25
  82. package/dist/assets/{InvitePageListView-B6wJomGk-pTRfOIaC.js → InvitePageListView-B4gEzFp2-1aqNeIHc.js} +19 -19
  83. package/dist/assets/{InvitePeoplePage-BArRXjlz-BHQlwXvg.js → InvitePeoplePage-Bnsqv_IY-DhNBoZS8.js} +5 -5
  84. package/dist/assets/{InvoiceUploadSection-CTqSftrm-CyVrgEkl.js → InvoiceUploadSection-CW4hHmAi-DKFSw8te.js} +20 -20
  85. package/dist/assets/{IssueChargeCardPage-DYG5IXrC-D-2m3p9R.js → IssueChargeCardPage-sM826Uvu-DMhbp0aa.js} +21 -21
  86. package/dist/assets/{LabeledAddressValue-D09c5wJR-784mespz.js → LabeledAddressValue-AuzW29LK-99vdzqZR.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-Cac2YPpN-Ba7qdzlE.js → LabeledAddressValueField-C_KatgTA-ByiPbJgm.js} +1 -1
  88. package/dist/assets/LabeledControlledCheckBoxField-CEd7DSmU-mOU-S2fp.js +16 -0
  89. package/dist/assets/{LabeledCountryMultiSelectField-DdqOGBwp-DSHkYk9h.js → LabeledCountryMultiSelectField-CffMX6f1-C44H-4q3.js} +12 -12
  90. package/dist/assets/{LabeledCreatableSingleSelectField-K0xUavli-THytCXMe.js → LabeledCreatableSingleSelectField-CoS6DIi_-DTDCa09f.js} +2 -2
  91. package/dist/assets/LabeledDocumentField-CVBhbPHv-9665D02s.js +41 -0
  92. package/dist/assets/{LabeledDropDownFormattedTextField-Dms9ziRv-CJQkVxrk.js → LabeledDropDownFormattedTextField-CNru68eT-GPSUv36b.js} +5 -5
  93. package/dist/assets/{LabeledMultiSelectField-X5GGPnfG-0qUfOlj0.js → LabeledMultiSelectField-CTqXa2Rh-Cxu9DNT8.js} +1 -1
  94. package/dist/assets/{LabeledText-BJrI_PVT-oE-g3K8U.js → LabeledText-Da0Yn6u8-CFgd90E4.js} +2 -2
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BmMN3W3F-BzPJ9P_-.js → LabeledUserSingleSelectWithSubtitlesField-CE332GjA-BafYQ_Pm.js} +9 -9
  96. package/dist/assets/{LabeledZeniRolesDropDownField-PsaKyCCY-EbSrXIJy.js → LabeledZeniRolesDropDownField-DU4-ho4X-DQBIg45w.js} +7 -7
  97. package/dist/assets/{LinkJETransactionPage-BDIpw0zn-B_cGLw9N.js → LinkJETransactionPage-Dx4OE1-O-HLvvvZHd.js} +9 -9
  98. package/dist/assets/{LockCardPage-ChGk6VJX-BzQI96FY.js → LockCardPage-B3P6wcK_-Ckpg2eew.js} +23 -23
  99. package/dist/assets/{LowBalancePopup-Bv3kKmAV-DSB2Ymlf.js → LowBalancePopup-Dp1vEYQQ-DIw_NRSy.js} +5 -5
  100. package/dist/assets/MagicLinkACHDetailsPage-BeRQFYX3-CrMUHXPB.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-C1DDZC2_-CWTR8m-D.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-DyDp04Vn-UtoyLAup.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-ySlQc8oV-BspPWH9Z.js → MagicLinkSuccessPage-Iva17nX0-DhK2jGAZ.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-C_OYT1do-NbVFRCAZ.js → MagicLinkTitleSection-B726bP_P-CoT1ZO_f.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-IQJY4Yl0-C_b76P8R.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-CxaXh1Aj-CwKK_h51.js → MyBankConnectionsSettingsPage-Ad6xGN08-JjXBlik9.js} +6 -6
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-B9mNbLDd-Db1Atl2l.js → MyPendingActivationChargeCardListPage-BYZ61huS-YKZjMs5X.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-DDERIXlZ-CjalvgMv.js → MyProfileSettingsPage-bEru4GQJ-Cj303JTH.js} +6 -6
  109. package/dist/assets/{NavBarWithPicker-BJ_8PHPv-B6R9nMuM.js → NavBarWithPicker-BAKrtv3g-BXBcsUFZ.js} +4 -4
  110. package/dist/assets/{NavigationArrow-9HOMBxoh-CWFuMeOE.js → NavigationArrow-CKvBs9-h-DGD1r2EE.js} +1 -1
  111. package/dist/assets/{NavigationDots-DPf5iy8f-DNlf5jCf.js → NavigationDots-BdcVrwsL-D_WEvn6f.js} +1 -1
  112. package/dist/assets/{NewGlobalMerchantPage-1MfUlwkA-Dx3DZ-ZO.js → NewGlobalMerchantPage-Cx38uQAS-BBICE4OG.js} +7 -7
  113. package/dist/assets/{NoDataChart-CDHiYyiO-DHWgty-U.js → NoDataChart-BbyxZE2g-CtN5BYbf.js} +2 -2
  114. package/dist/assets/{NoDataTable-BoAJZxdS-ClNYPP1-.js → NoDataTable-BNZWGvtm-S9Fe9Ovx.js} +1 -1
  115. package/dist/assets/{NotFoundPage-C-EoeDss-DqOvJ6YN.js → NotFoundPage-CssnEz-k-ccXdF3op.js} +7 -7
  116. package/dist/assets/{NotificationSettingsPage-BfFNx-vu-Byo7BJZr.js → NotificationSettingsPage-DmgxnO9I-BH2rOJH7.js} +15 -15
  117. package/dist/assets/{NotificationsListConfig-CBQwRqMo-DVBdjTys.js → NotificationsListConfig-DdMKLqFI-DwvXMwFg.js} +1 -1
  118. package/dist/assets/{NotificationsPage-BPfRskWZ-_QOFXGgt.js → NotificationsPage-B9XIE39J-CejudHUF.js} +12 -12
  119. package/dist/assets/{OpExByVendorPage-BLI8h8LP-PGQ9bnDo.js → OpExByVendorPage-5wnFvYXt-D6A9jnRY.js} +4 -4
  120. package/dist/assets/{OverlayContainerPage-IDTUbuAC-B16J5Isr.js → OverlayContainerPage-IDTUbuAC-dv-sDcTQ.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-DvT1WQdL-CPylI6Uc.js → PandLWithForecastPage-CrtKdSaD-CYng6puq.js} +7 -7
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CyfKYJV3-CnunCi1o.js → PaymentAccountSetupBillingAddressSection-CQki5l4P-CuMomXeK.js} +9 -9
  123. package/dist/assets/{PeoplePage-BHfn-oLF-CGOapKvG.js → PeoplePage-BCjxJl1y-JBCpiTMQ.js} +10 -10
  124. package/dist/assets/{Preview-B9tjpKKL.js → Preview-DMKZka6j.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-ChWN6HhX-DEhcI5NW.js → ProductsCarousel-BYvlY6Jl-BJ6Pqq3q.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-BWpqciJW-DEw7mp3r.js → PromoBaseCards-6vRaZnUg-CBqkAept.js} +12 -12
  127. package/dist/assets/{QBOConnectionDialog-D9wVm2ga-jv2cIUQM.js → QBOConnectionDialog-C-v9bhUW-CtiRv4Zj.js} +2 -2
  128. package/dist/assets/{QBOSetupSection-CR7JQ_H9-CokKwnfI.js → QBOSetupSection-DPhwp1AB-DxJDpMHr.js} +11 -11
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-RTvnT_vl-D0AOYl_B.js → ReimbursementApprovalRuleDetailPage-Crz8RArL-DQzyot-2.js} +2 -2
  130. package/dist/assets/{ReimbursementApprovalRulesPage-Dbs4lLSo-5JjLiWWQ.js → ReimbursementApprovalRulesPage-CHrPVveg-DDlyKkun.js} +13 -13
  131. package/dist/assets/{ReimbursementDetailPage-COF-QqKR-BLj9_Zcn.js → ReimbursementDetailPage-BlfifQuc-DXXQTfQu.js} +8 -8
  132. package/dist/assets/{ReimbursementPromoPage-DSHynwPv-CMfUTDoh.js → ReimbursementPromoPage-B6rhhOye-CmIRL-Wr.js} +12 -12
  133. package/dist/assets/{ReimbursementSetUpPage-CafAtAVr-BdH5_Uu6.js → ReimbursementSetUpPage-BQwRjKZ5-CWVOKlly.js} +7 -7
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cz8keUEO-C42JglzT.js → ReimbursementsBulkReviewDrawerPage-BTaFn0Mh-DXx1vhRK.js} +1 -1
  135. package/dist/assets/{ReloadCard-Bf1jxC4B-CjPHohhm.js → ReloadCard-DETUOoLJ-Dww2RtAQ.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-DOQm7O9r-DcS436ql.js → ReportTableViewSelector-DSDclygb-CPmwPKtZ.js} +29 -29
  137. package/dist/assets/{ReportsPage-Deg59aYB-VaMTaqOC.js → ReportsPage-BrmMmYET-qm3o80ge.js} +4 -4
  138. package/dist/assets/{RevenueChart-C1RR_51e-Bn1LRvSc.js → RevenueChart-B711QWTX-ztc9NA65.js} +17 -17
  139. package/dist/assets/{ReviewDetailsPage-D3bqGZYb-DmpMCAqo.js → ReviewDetailsPage-Bkw0FfE--BL2mmyys.js} +52 -52
  140. package/dist/assets/{ReviewOverlay-CKB9LulM-CUNk2W-s.js → ReviewOverlay-CkB3Z8hH-CX5FMXRQ.js} +11 -11
  141. package/dist/assets/{RoleWithToolTip-BGlbeXtJ-BQ5iinOT.js → RoleWithToolTip-CkpqxMzB-CgYpd1vG.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D4OkyPNa-6prKuM88.js → ScheduleDetailsFixedAssetsPage-C-4zVu03-B-3H4CNH.js} +9 -9
  143. package/dist/assets/{ScheduleDetailsPage-9oUScaFD-Czq02-r0.js → ScheduleDetailsPage-D4mYRUnv-CIK0kUkx.js} +3 -3
  144. package/dist/assets/{ScheduleSequenceTable-CuOC0Niz-BzAvMkBB.js → ScheduleSequenceTable-q-031a_C-Cl6g3k1V.js} +8 -8
  145. package/dist/assets/{ScreenRoutes-DhG0rKVC.js → ScreenRoutes-D9-sd0S3.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-CK2Ibij3-DvyPJ8FZ.js → SetUpAccountSection-Mm8JelXc-DJkSxyLc.js} +6 -6
  147. package/dist/assets/{SignIn-CLLS0cqt-G1jKv-f1.js → SignIn-faWXqi7o-BVPJ-uzq.js} +16 -16
  148. package/dist/assets/{SignInScreen-BdhVUUiU.js → SignInScreen-DTTr8TvQ.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-C1hg05PB-BMXGChah.js → SpendManagementListViewPage-BLWEPKWO-zjDi64vH.js} +6 -6
  150. package/dist/assets/{SpendManagementPerTabPage-7uggjzlM-BBdEOhcD.js → SpendManagementPerTabPage-vZNK6DuA-DHQi0ok2.js} +23 -23
  151. package/dist/assets/{SpendManagementSection-DFiL_yNI-ca-vlRub.js → SpendManagementSection-CeDmloNd-CJQVf2yR.js} +1 -1
  152. package/dist/assets/StatementItem-CJShifEl-gXZiawe9.js +31 -0
  153. package/dist/assets/StatementsPage-BRxP-Jwn-CibgKP9E.js +58 -0
  154. package/dist/assets/{StatusSwitcher-DPzwQ_o1-DkaIBc47.js → StatusSwitcher-CPuONMOx-IUewbXcR.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-Dztt2rN9-DqHo5u0Z.js → SubTabSwitcher-ibTbIxr5-87SzITqK.js} +1 -1
  156. package/dist/assets/SummaryCard-vWpHXMPE-j4-YbXA_.js +1 -0
  157. package/dist/assets/{TaskManagementPage-BRAt26fv-om-zuIgh.js → TaskManagementPage-COs5ebo9-LStJ5YyB.js} +22 -22
  158. package/dist/assets/{TimeRangeSwitcher-DMCbeOcI-C4mgjK4U.js → TimeRangeSwitcher-fD5vvYGO-Cg6AHBEd.js} +11 -11
  159. package/dist/assets/{TimeframeSwitcher-YCgPbEnk-CJUz-kg1.js → TimeframeSwitcher-BYXKRKtc-BTNUudrw.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-BBJP1nmh-D1jTbV4O.js → TimeframeSwitcherWithToggle-f92qNjEk-CshyNxhp.js} +2 -2
  161. package/dist/assets/{TopExCard-LesAF7Ot-CWhGtv9n.js → TopExCard-Bs4nI9Q9-C9Jpq9jc.js} +10 -10
  162. package/dist/assets/{TopExDetailPage-BTG2W95T-CAgJv3QR.js → TopExDetailPage-B0kS11k0-IiO7dIt-.js} +8 -8
  163. package/dist/assets/{TransactionDetailPage-BqHVfK2K-CBoMen48.js → TransactionDetailPage-BXl6y7sy-B_wNV2dF.js} +1 -1
  164. package/dist/assets/{TransactionList-CGmpQyNM-BGohJsUE.js → TransactionList-BYXPQXN1-C2WkgSOj.js} +11 -11
  165. package/dist/assets/{TransactionListBig-CSYpIxGa-Bd2xJZzC.js → TransactionListBig-lrbHUS38-D0fzERPt.js} +16 -16
  166. package/dist/assets/{TransactionListPage-CV5U_pA6-DsUhS_R3.js → TransactionListPage-OOLJzsmw-Dmoozb9S.js} +2 -2
  167. package/dist/assets/{TransactionVendorDetailPage-DvqHmq7y-C8mjIShR.js → TransactionVendorDetailPage-CmjrngD2-DvxXX996.js} +4 -4
  168. package/dist/assets/{TransferDrawerPage-Cm5reG35-B5qd6-NU.js → TransferDrawerPage-CnFrzA_M-C6390hZV.js} +15 -15
  169. package/dist/assets/{TreasuryOverviewPage-CwcehiRb-BBfaI9Ls.js → TreasuryOverviewPage-CGxccIcU-CgXb0qH5.js} +25 -25
  170. package/dist/assets/{TreasuryPromoPage-BagqhZgO-BswlnynL.js → TreasuryPromoPage-BmMVa8cX-BOYWbSX7.js} +8 -8
  171. package/dist/assets/{TreasuryStatementsPage-o-ID2nvn-DTg8AAgQ.js → TreasuryStatementsPage-DL94A9mN-DZ6yoZ74.js} +1 -1
  172. package/dist/assets/{TreasuryTaxLetterPage-D9f3ohGF-DEP20r26.js → TreasuryTaxLetterPage-BJ9-ZsCQ-DnDmd1Op.js} +2 -2
  173. package/dist/assets/{TrendChart-CqxpheW7-DiPHNgeC.js → TrendChart-ClyJQTBF-TLthRW_O.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-CK_je__x-C1Qk91i9.js → TrendWithTransactions-D4m4sVkf-DJ-5Yugx.js} +4 -4
  175. package/dist/assets/{UncategorizedAccountsMappingPage-BBYQFJxE-nEmuJTEW.js → UncategorizedAccountsMappingPage-BLwx8CVj-dhOY5qHO.js} +1 -1
  176. package/dist/assets/{UnitIntegrationPage-ULhazfl5-DPlYAGvC.js → UnitIntegrationPage-CgbOyIBt-nz_B7FQx.js} +10 -10
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-BPNLdaLG-DQNAWd7N.js → UploadAdditionalDocumentOverlay-CmVwCxA2-BL_6rNZZ.js} +1 -1
  178. package/dist/assets/Vendor2FAPopup-DQtP0bm--CecMTi1i.js +1 -0
  179. package/dist/assets/VendorACHDetailsPage-CuCteqbL-CrfAmoz7.js +1 -0
  180. package/dist/assets/{VendorDetailPage-DPiVnh93-CAOlBr9d.js → VendorDetailPage-CFkDOdUe-B1GqtBiD.js} +93 -93
  181. package/dist/assets/VendorDomesticWireDetailsPage-Cr1fyB0u-N7obKAAe.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-CFrvW8qi-C-v6Mx4-.js → VendorFiling1099EditablePage-Bkn9p2Sf-xXTYWhq9.js} +32 -32
  183. package/dist/assets/{VendorFirstReviewPage-CRLGuw2s-wfeT2fAg.js → VendorFirstReviewPage-CKvnB4Q7-wJi46XXQ.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage-CV11lzdw-BWhlaMax.js → VendorInternationalWireDetailsPage--B2XU_hP-CbzsnIo2.js} +8 -8
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJFB7SEO-BecYrM5_.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-vd0V4UXY-BNPavepY.js → VendorsAccountsSection-DJP1yZx7-OlnsbsSP.js} +3 -3
  187. package/dist/assets/{VerifyDevice-DbyjJVTH-_0YHPiw6.js → VerifyDevice-dFsnt44d-C1LsKxM_.js} +3 -3
  188. package/dist/assets/{VideoPlayer-CoI7aj8a-B3tmTxCF.js → VideoPlayer-Dy6rImBJ-QOYygi-i.js} +2 -2
  189. package/dist/assets/{VideoPopup-Bp7fCV1r-BulLqsQx.js → VideoPopup-DM5Buf4j-CFLugl6n.js} +4 -4
  190. package/dist/assets/{WarningsDrawerPage-jMslD0FX-CrUmOPLP.js → WarningsDrawerPage-C8i8v3rq-BqkJBNMa.js} +5 -5
  191. package/dist/assets/{ZeniAccountDetailPage-C1Vq8cMd-BzjwyTwn.js → ZeniAccountDetailPage-CI7znfzM-Vqgai5nW.js} +12 -12
  192. package/dist/assets/{ZeniAccountListViewPage-BNTb04x5-DcvhdCN4.js → ZeniAccountListViewPage-CBnYQpc8-Dv81IpSI.js} +7 -7
  193. package/dist/assets/{ZeniAccountNavBarPieces-ByYrxg3x-w6kmpmKh.js → ZeniAccountNavBarPieces-sMjtAlej-CO7nbf-u.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-BCkk0NbR-juw5u7mQ.js → ZeniAccountPromoPage-B_NJMHHV-DWsuBCOP.js} +13 -13
  195. package/dist/assets/{ZeniAccountSetupPage-ClZTjZhF-C_sOqJTM.js → ZeniAccountSetupPage-C9cJ0F8e-BF5g947U.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-C8wXM9Gr-qMGnv8al.js → ZeniCopyright-DzWFQiAt-07AcK5yb.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-NAR_1h8K-DARDrTsk.js → ZeniTransferAmountSlider-B424bcSV-CHepSJQx.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-flwj0i1s.js → add-to-wallet-DgdBD8_G-pWZi41H8.js} +1 -1
  199. package/dist/assets/{analytics-EizVTK6x.js → analytics-BvXI56dE.js} +1 -1
  200. package/dist/assets/{analyticsHelper-DjynPp_X-s29on7ka.js → analyticsHelper-CzevEN9D-BUYGstD0.js} +1 -1
  201. package/dist/assets/{analyticsHelper-BRPQgKH6.js → analyticsHelper-DP-LgJhR.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-DbFUNUBk.js → arrow-south-east-round-PEovUgvH-B9_UwdI_.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-T83isyAA.js → auto-transfer-rule-mbafm5D3-CRwly3T1.js} +1 -1
  204. package/dist/assets/{chartTypes-CXNoxZp_-CJ_wyUtd.js → chartTypes-n3TS0IBf-DRx7aLxA.js} +1 -1
  205. package/dist/assets/{commonDimensions-i9Qxk1O2-XYIUogON.js → commonDimensions-6BcP8EhU-CPpjZ-C4.js} +1 -1
  206. package/dist/assets/{commonTypes-CcEHeA3z-sEqnsPbS.js → commonTypes-Q1WP-Ym3-Cmq2uCPt.js} +1 -1
  207. package/dist/assets/{constants-BGXrwDfx.js → constants-B97TsRRb.js} +1 -1
  208. package/dist/assets/{core-C5wq1_Bk.js → core-CIefpDlV.js} +1 -1
  209. package/dist/assets/{dash.all.min-B4_top4V.js → dash.all.min-RUznf6Xj.js} +1 -1
  210. package/dist/assets/{detailCommon-DVTOw71--Wk0Evzej.js → detailCommon-D3YbmSu3-CiTGsaNF.js} +7 -7
  211. package/dist/assets/{downloadPdf-1-N8Pf0G-CMW67koi.js → downloadPdf-Bf11NXjY-DUwuSlsF.js} +1 -1
  212. package/dist/assets/{empty-fb3xJ2Vb.js → empty-BQQX0XD1.js} +1 -1
  213. package/dist/assets/{empty-DuP8pCf7.js → empty-DJIJO66a.js} +1 -1
  214. package/dist/assets/{epic-4LjfR2JF.js → epic-C6ygjjdM.js} +1 -1
  215. package/dist/assets/{gift-box-Cmt9OgIZ-BtixTK1k.js → gift-box-Cmt9OgIZ-BWCTqneo.js} +1 -1
  216. package/dist/assets/{graphic-no-data-l-DU4J8fDt--UnjJCr0.js → graphic-no-data-l-DU4J8fDt-C8GXOUxr.js} +1 -1
  217. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-8oQBXM_J.js → graphic-no-data-net-burn-l-CzmycA0m-BQAFQuCs.js} +1 -1
  218. package/dist/assets/{handshake-BPg58FML-BSCdA5zo.js → handshake-BPg58FML-BCnezDN8.js} +1 -1
  219. package/dist/assets/{index-tW1FBxGF.js → index-BzA0Xv0P.js} +1 -1
  220. package/dist/assets/{index-Ko3PkHk3.js → index-CQs92n2L.js} +1 -1
  221. package/dist/assets/{index-CzJUh-iK.js → index-DAj0zPwk.js} +1 -1
  222. package/dist/assets/{index-J8KI2Uyc.js → index-DtRGsySN.js} +1 -1
  223. package/dist/assets/{index-DVgY55Ab.js → index-WEj6FS32.js} +10 -8
  224. package/dist/assets/{index-_TIifI_v.js → index-rikpsdq-.js} +1 -1
  225. package/dist/assets/{index-DqRCO-H6.js → index-smQbM7l5.js} +1 -1
  226. package/dist/assets/{lexical-xuKHFvUb.js → lexical-Dp1JhPKz.js} +1 -1
  227. package/dist/assets/{liveblocks-B14TpO3l.js → liveblocks-CrODURpx.js} +1 -1
  228. package/dist/assets/{lottie-BIQaRIZs.js → lottie-hIwSKdQS.js} +1 -1
  229. package/dist/assets/{mapLoadingInProgressToTreeNode-UA-QQZJo-DsDuha6V.js → mapLoadingInProgressToTreeNode-BArKDqgr-Ce9uxfyP.js} +1 -1
  230. package/dist/assets/{mapSectionWithAcOnlyToTreeNode--y3nO5uZ-DP42yTzT.js → mapSectionWithAcOnlyToTreeNode-BCmFQbuz-BJl1ilV_.js} +1 -1
  231. package/dist/assets/mapSpacerToTreeNode-DdwRxjlP-Bw1NwZTY.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-CR-gDA51-Dr9tcN9g.js +1 -0
  233. package/dist/assets/mapTimeframeBalancesToTreeNode-ClmNRrTo-Covijrhn.js +1 -0
  234. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-aD-96xtj-BAIV3Qln.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DT4LUXl9-COTrRRrU.js} +1 -1
  235. package/dist/assets/{mui-CR-wYMmN.js → mui-BTtN6lbG.js} +1 -1
  236. package/dist/assets/{page-detail-CWX5S47F-Dp0GDjdb.js → page-detail-CWX5S47F-vL4oE1Hd.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-CInIhD3e.js → radio-default-CiSgisfh-CzTG_UVX.js} +1 -1
  238. package/dist/assets/{react-D2cRiLcJ.js → react-BZDhaeWn.js} +1 -1
  239. package/dist/assets/{react-C8urvt-z.js → react-CZT8R2xg.js} +1 -1
  240. package/dist/assets/{react-D_2r5dmn.js → react-D8h_J9ua.js} +1 -1
  241. package/dist/assets/{react-BW87X3sj.js → react-DTawl0rf.js} +1 -1
  242. package/dist/assets/{react-DHV7aTmN.js → react-FdUpWGdd.js} +2 -2
  243. package/dist/assets/{react-CCZeJYV_.js → react-RUf-G1wy.js} +1 -1
  244. package/dist/assets/{react-BHi_eEiU.js → react-dGc0O2tO.js} +1 -1
  245. package/dist/assets/{react-CcqTmi2W.js → react-yNxKnTJa.js} +1 -1
  246. package/dist/assets/{recharts-C3mrSjO2.js → recharts-BfU_srYC.js} +1 -1
  247. package/dist/assets/{sentry-DMXY90dB.js → sentry-B0WgNUxa.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-BYs2EC5i.js → shield-DOlUxcFf-Z1Xg2OMK.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-BzzH0Io4-q6KiTxht.js +1 -0
  250. package/dist/assets/{toChartData-Dv-QcYgv-C4sd-ifC.js → toChartData-Bl-lEYbQ-Cv_10vbn.js} +1 -1
  251. package/dist/assets/{uploadAttachment-DSmux1Yp-Dl4ms4pR.js → uploadAttachment-B_0cN84g-C7pQHANb.js} +8 -8
  252. package/dist/assets/{uploadReceipts-DJRtId-4-CHJq-raT.js → uploadReceipts-DJRtId-4-B1jpX457.js} +1 -1
  253. package/dist/assets/{url-20Ls3nS_.js → url-CHEcUoer.js} +1 -1
  254. package/dist/assets/{url-DojBAuFA.js → url-D-l_68oE.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-C5_U_XBl.js → useLongPress-GCK2COYQ-BysG3lqG.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-l2et8N9o.js → usp-line-BBd1wKwW-ZROsAmzr.js} +1 -1
  257. package/dist/assets/{utils-BCuN6woZ.js → utils-DZQMbqmw.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-BXMuLX_S.js → zeni-epic-state-DnAAAEmj.js} +3 -3
  259. package/dist/index.html +1 -1
  260. package/package.json +4 -4
  261. package/dist/assets/AccountInfoPage-CyJ0eFqc-oDTaIYye.js +0 -18
  262. package/dist/assets/AddAddressForCardDrawer-D1XOklKz-D41jak46.js +0 -6
  263. package/dist/assets/CardNumberSubText-sE2DGwYG-B174guLL.js +0 -21
  264. package/dist/assets/ChargeCardPromoPage-D0np03A--Bpq9wCjH.js +0 -222
  265. package/dist/assets/ConfettiBurst-BRie0bid-CKCgsLzT.js +0 -1
  266. package/dist/assets/CustomerOnboardingContainerPage-DrNstqxI-DBMIRSp3.js +0 -1
  267. package/dist/assets/EntityDetailPage-Cpdbw3XR-C8k1xBJc.js +0 -18
  268. package/dist/assets/LabeledControlledCheckBoxField--EmdYCME-BUoRkObt.js +0 -16
  269. package/dist/assets/LabeledDocumentField--JZn0qDn-Ck_rkdmF.js +0 -41
  270. package/dist/assets/MagicLinkACHDetailsPage-D4Vmz8ms-ItRZ63_N.js +0 -1
  271. package/dist/assets/MagicLinkDomesticWireDetailsPage-B7C30ROh-C843OBvj.js +0 -1
  272. package/dist/assets/MagicLinkInternationalWireDetailsPage-DVFrpmvm-COXfeIQs.js +0 -1
  273. package/dist/assets/MailingDetailsSection-CTPCXpZR-Dv3Iye8Q.js +0 -21
  274. package/dist/assets/StatementItem-CdytKcBE-CavJc8fo.js +0 -31
  275. package/dist/assets/StatementsPage-DU32IYXF-Dj_pMhMm.js +0 -58
  276. package/dist/assets/SummaryCard-D3ev0zFr-CHfcyxTY.js +0 -1
  277. package/dist/assets/Vendor2FAPopup-C3Z-3poJ-Cxx265s1.js +0 -1
  278. package/dist/assets/VendorACHDetailsPage-DnB2b-v_-C755XLlO.js +0 -1
  279. package/dist/assets/VendorDomesticWireDetailsPage-BbfatdWd-DhsLa-3A.js +0 -1
  280. package/dist/assets/VendorInternationalWireSwiftDetailsPage-D3asjWH_-BXIinpkC.js +0 -1
  281. package/dist/assets/mapSpacerToTreeNode-BOG_274U-C0W1M9EX.js +0 -1
  282. package/dist/assets/mapTimeframeBalancesToTreeNode-Btd_0ZvL-CEgQnhXV.js +0 -1
  283. package/dist/assets/mapTimeframeBalancesToTreeNode-LWHXAvJU-B42MwYQ_.js +0 -1
  284. package/dist/assets/toCOABalancesWithID-C_7wlYeT-C3P4q5bp.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as He,f$ as Ue,o as r,b as We,bS as Ve,aN as re,cN as Ye,b1 as q,em as qe,T as Xe,aR as Ge,F as U,ao as Je,cJ as gr,r as pe,a8 as xr,aw as wr,gR as $r,ga as fr,aP as de,u as y,x as Ke,bU as xe,M as Ze,al as j,b7 as we,ai as G,ds as Qe,a$ as er,cB as rr,p as X,am as tr,iM as oe,iX as br,j0 as yr,j1 as jr,dt as Pe,fq as vr,eH as Sr}from"./index-DVgY55Ab.js";import{a as ae}from"./sentry-DMXY90dB.js";import{n as i}from"./mui-CR-wYMmN.js";import{EL as Cr}from"./zeni-epic-state-BXMuLX_S.js";import{T as ir}from"./RoleWithToolTip-BGlbeXtJ-BQ5iinOT.js";import{j as or}from"./CardNumberSubText-sE2DGwYG-B174guLL.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]="3b92d0ab-74b2-46cf-932b-82d56fac321f",e._sentryDebugIdIdentifier="sentry-dbid-3b92d0ab-74b2-46cf-932b-82d56fac321f")}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(Je,{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,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as He,f$ as Ue,o as r,b as We,bS as Ve,aN as re,cN as Ye,b1 as q,em as qe,T as Xe,aR as Ke,F as U,ao as Ge,cJ as gr,r as pe,a8 as xr,aw as wr,gR as $r,ga as fr,aP as de,u as y,x as Je,bU as xe,M as Ze,al as j,b7 as we,ai as K,ds as Qe,a$ as er,cB as rr,p as X,am as tr,iM as oe,iX as br,j0 as yr,j1 as jr,dt as Pe,fq as vr,eH as Sr}from"./index-WEj6FS32.js";import{a as ae}from"./sentry-B0WgNUxa.js";import{n as i}from"./mui-BTtN6lbG.js";import{EL as Cr}from"./zeni-epic-state-DnAAAEmj.js";import{T as ir}from"./RoleWithToolTip-CkpqxMzB-CgYpd1vG.js";import{j as or}from"./CardNumberSubText-CXBKzGK5-CCtn2y_n.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]="305b651b-ba57-4b54-8706-bf11a3afe8d3",e._sentryDebugIdIdentifier="sentry-dbid-305b651b-ba57-4b54-8706-bf11a3afe8d3")}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(Ge,{onClickAway:()=>c(),children:t.jsxs(kr,{windowSize:l,children:[t.jsx(ge,{...n,children:t.jsxs(Ir,{id:b,onSubmit:$=>{$.preventDefault(),R()},children:[t.jsx(Pr,{windowSize:l,children:fe.heading}),t.jsx(Nr,{hasError:N,children:t.jsx(gr,{label:{label:fe.newName,width:T},style:{width:"auto"},text:{type:"text",name:Q,defaultValue:e,placeholder:fe.placeholder,options:{required:!0,validate:$=>$!=null}}})})]})}),t.jsx(Dr,{children:t.jsxs(Lr,{children:[t.jsx(pe,{label:o.cancel,onClick:m,style:{width:84}}),t.jsx(Tr,{}),t.jsx(pe,{variant:"primary",label:o.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:h==="In-Progress",type:"submit",form:b})]})})]})})})}const le={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(y[5],y[6]),popupTopBottomPadding:new d(y[5],y[5])},zr=i.div`
2
2
  position: fixed;
3
3
  top: ${r.sp0};
4
4
  left: ${r.sp0};
@@ -49,7 +49,7 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
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:J,updateLimitFetchState:K,recommendations:I,cardIssuedByRoles:Y,cardHolderRoles:u,loggedInUserRole:A,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:A,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:A,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(Ar(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(Er,{windowSize:f,role:"presentation","data-testid":de("update-spend-limit-popup"),children:t.jsx(Je,{onClickAway:()=>s(),children:t.jsxs(Fr,{windowSize:f,children:[t.jsx(ge,{...te,children:t.jsxs(Yr,{id:se,onSubmit:w=>{w.preventDefault(),pr()},children:[t.jsx(Rr,{windowSize:f,children:Z.heading}),t.jsxs(Or,{windowSize:f,children:[Z.currentLimit,$e.strings.space," ",re("0,0.[00]",B),Z.slashMonth]}),t.jsxs(Hr,{hasError:ke,children:[t.jsx(fr,{label:{label:Z.newLimit,width:mr},showAdditionalInfoLabel:ke,additionalInfoLabel:dr,formattedTextField:{type:"number",name:ee,defaultValue:void 0,placeholder:Z.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:w=>!!w&&w>0&&w>H.amount&&(O!=null?w<=O.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),I?.length?t.jsx(Ur,{windowSize:f,children:I?.map((w,ie)=>ur(w.creditLimit,ie))}):null]})]})}),t.jsx(Br,{children:t.jsxs(Mr,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(_r,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:K==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:J})]})})]})})})}const Ar=(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:J,cardHolderDepartmentName:K,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:J},{cardholderName:Pe(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:O,cardholderUserId:n.cardHolderUser?.userId,cardholderDepartment:K},{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])},Er=i.div`
52
+ `,ee="spendLimit",Z=U.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:be}=U.getLocalizedStrings();function Si({controllerEmails:e,isChargeCardFeatureEnabled:h,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:p,isChargeCardSetupEnabled:l,cardDetail:b,transactionStatistics:n,depositAccountLimitFetchState:m,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:$,currentLimitAmount:B,currentSpentAmount:H,productInformation:v,creditAccountInformation:W,debitAccountInformation:V,maxLimitAmount:M,isDisabled:G,updateLimitFetchState:J,recommendations:I,cardIssuedByRoles:Y,cardHolderRoles:u,loggedInUserRole:A,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:A,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:A,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(Ar(H,M,ne))},[ne,H,M]);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(Er,{windowSize:f,role:"presentation","data-testid":de("update-spend-limit-popup"),children:t.jsx(Ge,{onClickAway:()=>s(),children:t.jsxs(Fr,{windowSize:f,children:[t.jsx(ge,{...te,children:t.jsxs(Yr,{id:se,onSubmit:w=>{w.preventDefault(),pr()},children:[t.jsx(Rr,{windowSize:f,children:Z.heading}),t.jsxs(Mr,{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&&(M!=null?w<=M.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(Or,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(_r,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:J==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:G})]})})]})})})}const Ar=(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:M,cardIssuedByDepartmentName:G,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:G},{cardholderName:Pe(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:M,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])},Er=i.div`
53
53
  position: fixed;
54
54
  top: ${r.sp0};
55
55
  left: ${r.sp0};
@@ -77,10 +77,10 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
77
77
  `,Rr=i(xe)`
78
78
  color: ${e=>e.theme.colors.primary};
79
79
  margin-bottom: ${r.sp2};
80
- `,Or=i(j)`
80
+ `,Mr=i(j)`
81
81
  color: ${e=>e.theme.colors.hero};
82
82
  margin-bottom: ${r.sp3};
83
- `,Mr=i.div`
83
+ `,Or=i.div`
84
84
  display: flex;
85
85
  justify-content: center;
86
86
  padding-top: ${r.sp4};
@@ -127,19 +127,19 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
127
127
  height: ${r.sp3};
128
128
  `,Yr=i.form`
129
129
  display: contents;
130
- `,P={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(y[3],y[4]),cardNameSectionMarginLeft:new d(y[7],0),cardHolderDetailsGap:new d(y[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(y[3],0)},{common:S,closeCard:M}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",E=(e,h)=>`${e}.${h}`,De=e=>`${e}_form`,{common:ye,dateFormat:qr,cockpit:Xr}=U.getLocalizedStrings(),Ci=({showCloseCardDrawer:e,onCloseCloseCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:b,closeCardFetchState:n,onRemoveCardClick:m,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[$,B]=ae.useState(Object.fromEntries(Object.keys(l).map((a,s)=>[a,s===0]))),H=a=>{B(s=>s[a]?{...s,[a]:!1}:{...Object.fromEntries(Object.keys(s).map(g=>[g,!1])),[a]:!0})},v=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[z]:{reason:void 0,reasonType:void 0}},values:{[z]:{reason:void 0,reasonType:void 0}}}),W=P.largeLabelWidth.value(o),{isValid:V,errors:O}=v.formState,J=a=>`${p[a].cardHolderUser?.firstName??""} ${p[a].cardHolderUser?.lastName??""}`,K=ue(O,E(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,A=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(Jr,{windowSize:o,children:[t.jsx(Kr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:u?M.closeCards:M.closeCard}):t.jsx(dt,{children:u?M.closeCards:M.closeCard}),b==="Completed"?t.jsx(ge,{...v,children:t.jsxs("form",{id:De(Te),onSubmit:Y,children:[t.jsxs(lt,{children:[t.jsx(ct,{windowSize:o,children:u?D>0?`${M.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",A.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?S.expense:S.expenses} ${M.multipleCardsHasRecurringExpensesSuffix}`:M.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",A.toString()):M.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?S.expense:S.expenses)}),u&&t.jsx(Pt,{children:`${A} ${A===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:J(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:p[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&($[a]?t.jsx(Ie,{}):t.jsx(Ae,{}))]}),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(Ae,{}))]})]}),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:E(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:E(z,"reasonType"),id:`${E(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:E(z,"reasonType"),id:`${E(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:E(z,"reasonType"),id:`${E(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:E(z,"reasonType"),id:`${E(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:E(z,"reason"),placeholder:M.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!c,validate:a=>c?!0:!!a}}):I==null&&!c&&K?t.jsx(Zr,{children:M.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),b==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:De(Te),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:ye.confirm,isLoading:n==="In-Progress",variant:"danger"},cancelBtn:{label:ye.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Gr=i.div`
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:O}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",E=(e,h)=>`${e}.${h}`,De=e=>`${e}_form`,{common:ye,dateFormat:qr,cockpit:Xr}=U.getLocalizedStrings(),Ci=({showCloseCardDrawer:e,onCloseCloseCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:b,closeCardFetchState:n,onRemoveCardClick:m,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[$,B]=ae.useState(Object.fromEntries(Object.keys(l).map((a,s)=>[a,s===0]))),H=a=>{B(s=>s[a]?{...s,[a]:!1}:{...Object.fromEntries(Object.keys(s).map(g=>[g,!1])),[a]:!0})},v=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[z]:{reason:void 0,reasonType:void 0}},values:{[z]:{reason:void 0,reasonType:void 0}}}),W=P.largeLabelWidth.value(o),{isValid:V,errors:M}=v.formState,G=a=>`${p[a].cardHolderUser?.firstName??""} ${p[a].cardHolderUser?.lastName??""}`,J=ue(M,E(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,A=Object.keys(l).length,D=Object.values(l).reduce((a,s)=>a+s.length,0);return t.jsx(Be,{anchor:"right",open:e,onClose:h,PaperProps:{style:{width:P.overlayWidth.valuePercentage(o),boxShadow:"none"}},slotProps:{backdrop:{style:{backgroundColor:T.colors.black,opacity:.75,cursor:"pointer"}}},transitionDuration:250,children:t.jsxs(Kr,{windowSize:o,children:[t.jsxs(Gr,{windowSize:o,children:[t.jsx(Jr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:u?O.closeCards:O.closeCard}):t.jsx(dt,{children:u?O.closeCards:O.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?`${O.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",A.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?S.expense:S.expenses} ${O.multipleCardsHasRecurringExpensesSuffix}`:O.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",A.toString()):O.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?S.expense:S.expenses)}),u&&t.jsx(Pt,{children:`${A} ${A===1?S.card:S.cards} ${S.selected}`}),Object.keys(l).map((a,s)=>{const g=l[a].length>0;return t.jsxs(pt,{onClick:()=>g?H(a):void 0,isMoreThanOneCard:u,isLastCard:s===Object.keys(l).length-1,children:[t.jsxs(mt,{windowSize:o,children:[t.jsxs(ut,{windowSize:o,children:[t.jsxs(gt,{windowSize:o,children:[p[a].cardHolderUser?.photo!==void 0?t.jsx(et,{src:p[a].cardHolderUser?.photo.href,alt:Xr.userProfileAltText,onError:({currentTarget:x})=>{x.onerror=null,x.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:p[a].cardHolderUser?.firstName??"",lastName:p[a].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(ht,{children:G(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:p[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&($[a]?t.jsx(Ie,{}):t.jsx(Ae,{}))]}),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(Ae,{}))]})]}),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:E(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:E(z,"reasonType"),id:`${E(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:E(z,"reasonType"),id:`${E(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:E(z,"reasonType"),id:`${E(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:E(z,"reasonType"),id:`${E(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:E(z,"reason"),placeholder:O.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!c,validate:a=>c?!0:!!a}}):I==null&&!c&&J?t.jsx(Zr,{children:O.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),b==="Completed"&&t.jsx(Ke,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:De(Te),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:ye.confirm,isLoading:n==="In-Progress",variant:"danger"},cancelBtn:{label:ye.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Kr=i.div`
131
131
  display: flex;
132
132
  flex-direction: column;
133
133
  background-color: ${e=>e.theme.colors.grey4};
134
134
  overflow-x: hidden;
135
135
  height: 100vh;
136
136
  width: 100%;
137
- `,Jr=i.div`
137
+ `,Gr=i.div`
138
138
  height: auto;
139
139
  padding-left: ${e=>`${P.containerPaddingLeft.valuePx(e.windowSize)}`};
140
140
  padding-right: ${e=>`${P.containerPaddingRight.valuePx(e.windowSize)}`};
141
141
  margin-bottom: auto;
142
- `,Kr=i.div`
142
+ `,Jr=i.div`
143
143
  display: flex;
144
144
  flex-direction: row-reverse;
145
145
  justify-content: space-between;
@@ -149,10 +149,10 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
149
149
  padding: ${e=>`${P.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${r.sp0}`};
150
150
  z-index: 2;
151
151
  background-color: ${e=>e.theme.colors.grey4};
152
- `,Zr=i(G)`
152
+ `,Zr=i(K)`
153
153
  color: ${e=>e.theme.colors.important};
154
154
  text-align: end;
155
- `,Qr=i(Ke)`
155
+ `,Qr=i(Je)`
156
156
  cursor: pointer;
157
157
  color: ${e=>e.theme.colors.hero};
158
158
  width: ${r.sp4};
@@ -277,7 +277,7 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
277
277
  overflow: hidden;
278
278
  text-overflow: ellipsis;
279
279
  white-space: nowrap;
280
- `,xt=i(G)`
280
+ `,xt=i(K)`
281
281
  color: inherit;
282
282
  position: relative;
283
283
  top: -5px;
@@ -321,11 +321,11 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
321
321
  width: ${e=>`${P.recurringExpenseAmountWidth.valuePx(e.windowSize)}`};
322
322
  text-align: right;
323
323
  color: inherit;
324
- `,St=i(G)`
324
+ `,St=i(K)`
325
325
  color: inherit;
326
326
  position: relative;
327
327
  top: -5px;
328
- `,Ct=i(G)`
328
+ `,Ct=i(K)`
329
329
  color: inherit;
330
330
  `,zt=i(j)`
331
331
  color: inherit;
@@ -374,7 +374,7 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
374
374
  margin-bottom: ${r.sp3};
375
375
  margin-top: ${r.sp7};
376
376
  color: ${e=>e.theme.colors.primary};
377
- `,L={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(y[3],y[4]),cardNameSectionMarginLeft:new d(y[7],0),cardHolderDetailsGap:new d(y[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(y[3],0)},{lockCard:_,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Ee="lockCardPage",F=(e,h)=>`${e}.${h}`,Fe=e=>`${e}_form`,{common:je,dateFormat:Nt,cockpit:It}=U.getLocalizedStrings(),zi=({showLockCardDrawer:e,onCloseLockCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:b,lockCardFetchState:n,onRemoveCardClick:m,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[$,B]=ae.useState(Object.fromEntries(Object.keys(l).map((s,g)=>[s,g===0]))),H=s=>{B(g=>g[s]?{...g,[s]:!1}:{...Object.fromEntries(Object.keys(g).map(x=>[x,!1])),[s]:!0})},v=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[k]:{reason:void 0,reasonType:void 0}},values:{[k]:{reason:void 0,reasonType:void 0}}}),W=L.largeLabelWidth.value(o),{isValid:V,errors:O}=v.formState,J=s=>`${p[s].cardHolderUser?.firstName??""} ${p[s].cardHolderUser?.lastName??""}`,K=ue(O,F(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,A=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(At,{windowSize:o,children:[t.jsxs(Et,{windowSize:o,children:[t.jsx(Ot,{windowSize:o,children:t.jsx(_t,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:u?_.lockCards:_.lockCard}):t.jsx(Xt,{children:u?_.lockCards:_.lockCard}),b==="Completed"?t.jsx(ge,{...v,children:t.jsxs("form",{id:Fe(Ee),onSubmit:Y,children:[t.jsxs(Gt,{children:[t.jsx(Jt,{windowSize:o,children:u?D>0?`${_.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",A.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?C.expense:C.expenses}.`:_.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",A.toString()):a?_.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?C.expense:C.expenses):_.firstCardNoRecurringExpenses}),u&&t.jsx(mi,{children:`${A} ${A===1?C.card:C.cards} ${C.selected}`}),Object.keys(l).map((s,g)=>{const x=l[s].length>0;return t.jsxs(Kt,{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:J(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:p[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&x&&($[s]?t.jsx(Oe,{}):t.jsx(Me,{}))]}),t.jsxs(ti,{windowSize:o,children:[p[s].cardName,t.jsx(or,{cardDetail:p[s],forDetailPage:!0,styles:{...We.smallRegular.cssObject,position:"relative",top:"-5px"}})]}),t.jsxs(ii,{windowSize:o,children:[t.jsxs(li,{children:[t.jsx(pi,{children:l[s].length}),t.jsx(ci,{children:C.recurringExpenses})]}),o!=="small"&&x&&($[s]?t.jsx(Oe,{}):t.jsx(Me,{}))]})]}),u&&t.jsx(Ft,{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:F(k,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(Yt,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:C.reason.lost},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.fraud},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.not_needed},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.other},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},radioSize:"small"}})]})]}),I==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${L.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:F(k,"reason"),placeholder:_.reasonPlaceholder,className:"reason-text-field"}):I==null&&!c&&K?t.jsx(Mt,{children:_.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),b==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Fe(Ee),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:je.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:je.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},At=i.div`
377
+ `,L={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(y[3],y[4]),cardNameSectionMarginLeft:new d(y[7],0),cardHolderDetailsGap:new d(y[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(y[3],0)},{lockCard:_,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Ee="lockCardPage",F=(e,h)=>`${e}.${h}`,Fe=e=>`${e}_form`,{common:je,dateFormat:Nt,cockpit:It}=U.getLocalizedStrings(),zi=({showLockCardDrawer:e,onCloseLockCardDrawer:h,isChargeCardAdmin:c,chargeCardsByCardId:p,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:b,lockCardFetchState:n,onRemoveCardClick:m,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[$,B]=ae.useState(Object.fromEntries(Object.keys(l).map((s,g)=>[s,g===0]))),H=s=>{B(g=>g[s]?{...g,[s]:!1}:{...Object.fromEntries(Object.keys(g).map(x=>[x,!1])),[s]:!0})},v=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[k]:{reason:void 0,reasonType:void 0}},values:{[k]:{reason:void 0,reasonType:void 0}}}),W=L.largeLabelWidth.value(o),{isValid:V,errors:M}=v.formState,G=s=>`${p[s].cardHolderUser?.firstName??""} ${p[s].cardHolderUser?.lastName??""}`,J=ue(M,F(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,A=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(At,{windowSize:o,children:[t.jsxs(Et,{windowSize:o,children:[t.jsx(Mt,{windowSize:o,children:t.jsx(_t,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:u?_.lockCards:_.lockCard}):t.jsx(Xt,{children:u?_.lockCards:_.lockCard}),b==="Completed"?t.jsx(ge,{...v,children:t.jsxs("form",{id:Fe(Ee),onSubmit:Y,children:[t.jsxs(Kt,{children:[t.jsx(Gt,{windowSize:o,children:u?D>0?`${_.multipleCardsHasRecurringExpenses.replace("_number_of_cards_",A.toString()).replace("_number_of_recurring_expenses_",D.toString())} ${D===1?C.expense:C.expenses}.`:_.multipleCardsNoRecurringExpenses.replace("_number_of_cards_",A.toString()):a?_.firstCardHasRecurringExpenses.replace("_number_of_recurring_expenses_",D.toString()).replace("_expense_",D===1?C.expense:C.expenses):_.firstCardNoRecurringExpenses}),u&&t.jsx(mi,{children:`${A} ${A===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:G(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:p[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&x&&($[s]?t.jsx(Me,{}):t.jsx(Oe,{}))]}),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(Me,{}):t.jsx(Oe,{}))]})]}),u&&t.jsx(Ft,{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:F(k,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(Yt,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:C.reason.lost},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.fraud},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.not_needed},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.other},style:{width:"auto"},radioField:{name:F(k,"reasonType"),id:`${F(k,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},radioSize:"small"}})]})]}),I==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${L.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:F(k,"reason"),placeholder:_.reasonPlaceholder,className:"reason-text-field"}):I==null&&!c&&J?t.jsx(Ot,{children:_.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),b==="Completed"&&t.jsx(Ke,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Fe(Ee),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:je.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:je.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},At=i.div`
378
378
  display: flex;
379
379
  flex-direction: column;
380
380
  background-color: ${e=>e.theme.colors.grey4};
@@ -393,7 +393,7 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
393
393
  `,Rt=i.div`
394
394
  display: flex;
395
395
  justify-content: space-between;
396
- `,Ot=i.div`
396
+ `,Mt=i.div`
397
397
  display: flex;
398
398
  flex-direction: row-reverse;
399
399
  justify-content: space-between;
@@ -403,10 +403,10 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
403
403
  padding: ${e=>`${L.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${r.sp0}`};
404
404
  z-index: 2;
405
405
  background-color: ${e=>e.theme.colors.grey4};
406
- `,Mt=i(G)`
406
+ `,Ot=i(K)`
407
407
  color: ${e=>e.theme.colors.important};
408
408
  text-align: end;
409
- `,_t=i(Ke)`
409
+ `,_t=i(Je)`
410
410
  cursor: pointer;
411
411
  color: ${e=>e.theme.colors.hero};
412
412
  width: ${r.sp4};
@@ -484,10 +484,10 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
484
484
  color: ${e=>e.theme.colors.primary};
485
485
  margin-top: ${r.sp3};
486
486
  margin-bottom: ${r.sp2};
487
- `,Gt=i.div``,Jt=i(j)`
487
+ `,Kt=i.div``,Gt=i(j)`
488
488
  color: ${e=>e.theme.colors.hero};
489
489
  margin-bottom: ${r.sp3};
490
- `,Kt=i.div`
490
+ `,Jt=i.div`
491
491
  cursor: pointer;
492
492
  background-color: ${e=>e.theme.colors.grey5};
493
493
  border-radius: ${r.sp2};
@@ -523,7 +523,7 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
523
523
  overflow: hidden;
524
524
  text-overflow: ellipsis;
525
525
  white-space: nowrap;
526
- `,ri=i(G)`
526
+ `,ri=i(K)`
527
527
  color: inherit;
528
528
  position: relative;
529
529
  top: -5px;
@@ -567,9 +567,9 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
567
567
  width: ${e=>`${L.recurringExpenseAmountWidth.valuePx(e.windowSize)}`};
568
568
  text-align: right;
569
569
  color: inherit;
570
- `,li=i(G)`
570
+ `,li=i(K)`
571
571
  color: inherit;
572
- `,ci=i(G)`
572
+ `,ci=i(K)`
573
573
  color: inherit;
574
574
  position: relative;
575
575
  top: -5px;
@@ -582,13 +582,13 @@ import{Q as he,g as _e,a9 as me,y as d,er as ue,V as t,f9 as Be,ac as ge,ap as H
582
582
  `,mi=i(we)`
583
583
  color: ${e=>e.theme.colors.primary};
584
584
  padding: ${r.sp3} ${r.sp0};
585
- `,Oe=i(Qe)`
585
+ `,Me=i(Qe)`
586
586
  width: ${r.sp4};
587
587
  height: ${r.sp4};
588
588
  min-width: ${r.sp4};
589
589
  min-height: ${r.sp4};
590
590
  color: inherit;
591
- `,Me=i(er)`
591
+ `,Oe=i(er)`
592
592
  cursor: pointer;
593
593
  width: ${r.sp4};
594
594
  height: ${r.sp4};
@@ -1,4 +1,4 @@
1
- import{F as M,Q as A,a9 as R,V as a,ac as W,co as C,cM as U,y as m,cQ as z,o as t,cq as E,u,ba as V,aU as Y,bU as _}from"./index-DVgY55Ab.js";import{n as d}from"./mui-CR-wYMmN.js";import{tM as J,bL as $,bh as S}from"./zeni-epic-state-BXMuLX_S.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="2dbcb231-ff8e-43e7-b8ba-91ab346b4be9",e._sentryDebugIdIdentifier="sentry-dbid-2dbcb231-ff8e-43e7-b8ba-91ab346b4be9")}catch{}})();const s={labelWidth:new m(152,176,176),paddingBottom:new m(u[3],u[2]),width:new m(300,420,420),paddingRight:new m(u[4],u[3])},N=d.div`
1
+ import{F as M,J as A,a9 as R,V as a,ac as W,co as C,cM as U,y as m,cQ as z,o as t,cq as E,u,ba as J,aU as V,bU as Y}from"./index-WEj6FS32.js";import{n as d}from"./mui-BTtN6lbG.js";import{tM as _,bL as $,bh as S}from"./zeni-epic-state-DnAAAEmj.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1efe9e36-2183-4fd9-ae59-f25de3cf22ab",e._sentryDebugIdIdentifier="sentry-dbid-1efe9e36-2183-4fd9-ae59-f25de3cf22ab")}catch{}})();const s={labelWidth:new m(152,176,176),paddingBottom:new m(u[3],u[2]),width:new m(300,420,420),paddingRight:new m(u[4],u[3])},N=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -12,7 +12,7 @@ import{F as M,Q as A,a9 as R,V as a,ac as W,co as C,cM as U,y as m,cQ as z,o as
12
12
  background-color: ${e=>e.theme.colors.grey3};
13
13
  min-height: 1px;
14
14
  max-height: 1px;
15
- `;function ee({saveDetailsFetchState:e,paymentData:o,onProceedForMarkAsPaid:r,onCancel:y}){const{spendManagement:{billPay:{billDetails:{paymentOutsideZeni:h,paymentDate:b,cancel:i}}},dateFormat:{visual:f,analytics:g}}=M.getLocalizedStrings(),{popUpTitle:w,paymentModeLabel:F,markAsPaid:B,defaultDateInfo:j,paymentModeOptions:x,selectDate:I,selectMethod:P}=h,l=A(),D="payment-outside-zeni-form",p="paymentMode",c="paymentDate",k=R({mode:"all",values:{[p]:{selectedOption:o?.paymentMode,allOptions:x.map(n=>n.value)},[c]:o?.paymentDate?.toDate()}}),O=k.handleSubmit(n=>{r({paymentDate:n[c]!=null?$(n[c].toString()):$(S().startOf("month").format(g.YYYYDashMMDashDDFormat).toString()),paymentMode:n[p]?.selectedOption!=null?J(n[p]?.selectedOption):"other"})}),L=n=>x.find(T=>T.value===n)?.label??"";return a.jsx(W,{...k,children:a.jsx("form",{id:D,onSubmit:O,children:a.jsx(C,{formId:D,titleComponent:a.jsx(E,{children:w}),primaryButtonText:B,primaryButtonWidth:128,secondaryButtonWidth:128,secondaryButtonText:i,isLoading:e==="In-Progress",isDisabled:e==="In-Progress",isEditPopup:!0,shouldClickAway:e!=="In-Progress",action:{onOkClick:()=>null,onCancelClick:y},children:a.jsxs(N,{windowSize:l,children:[a.jsx(U,{label:{label:F,width:s.labelWidth.value(l)},style:{width:s.width.valuePx(l)},singleSelectField:{singleSelect:{getLabelForId:L,showTickMark:!1,alwaysShowEyeTooltip:!1,name:p,placeholder:P,showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:o?.paymentMode,allOptions:x?.map(n=>n.value)??[]}},isFunctional:!0}),a.jsx(q,{}),a.jsx(z,{label:{label:b,width:s.labelWidth.value(l)},style:{paddingBottom:s.paddingBottom.valuePx(l),width:s.width.valuePx(l),borderRadius:t.sp0},additionalPaymentInfoLabel:j,additionalPaymentInfoLabelStyle:{borderBottomRightRadius:t.sp2,borderBottomLeftRadius:t.sp2,paddingTop:t.sp1,paddingBottom:t.sp1,paddingLeft:t.sp3,paddingRight:s.paddingRight.valuePx(l),textAlign:"left"},dateField:{name:c,placeholder:I,defaultValue:o?.paymentDate,dateFormat:f.defaultInput,maxDate:S(),minDate:$("01 Jan 1900"),autoComplete:"off"}})]})})})})}const te=({withdrawFrom:e,paymentDate:o,onOkClick:r,onCancelClick:y,onClickAway:h})=>{const{dateFormat:b,spendManagement:{billPay:i},common:{strings:f}}=M.getLocalizedStrings();if(e!=null&&o!=null){const g=`${e?.label} ${e?.maskedAccountNumber}`,w=a.jsx(H,{children:a.jsxs(Q,{children:[a.jsx(v,{children:g}),i.insufficientFunds.popUp.hasLowBalance,f.space,i.insufficientFunds.popUp.addMoney,a.jsx(v,{children:o?.format(b.visual.MMMDFormat)}),i.insufficientFunds.popUp.avoidFailure]})});return a.jsx(C,{titleComponent:a.jsx(Z,{children:i.insufficientFunds.popUp.title}),primaryButtonText:i.billDetails.buttons.approveAnyways,secondaryButtonText:i.billDetails.editBill,containerStyle:{maxWidth:474},descriptionComponent:w,action:{onOkClick:r,onCancelClick:y,onClickAway:h},secondaryButtonWidth:166,primaryButtonWidth:"auto",showLine:!1,buttonSeparatorStyle:{width:t.sp3},buttonContainerStyle:{paddingBottom:t.sp6}})}},H=d.div`
15
+ `;function ee({saveDetailsFetchState:e,paymentData:o,onProceedForMarkAsPaid:r,onCancel:y}){const{spendManagement:{billPay:{billDetails:{paymentOutsideZeni:h,paymentDate:f,cancel:i}}},dateFormat:{visual:g,analytics:b}}=M.getLocalizedStrings(),{popUpTitle:w,paymentModeLabel:F,markAsPaid:B,defaultDateInfo:j,paymentModeOptions:x,selectDate:I,selectMethod:P}=h,l=A(),D="payment-outside-zeni-form",p="paymentMode",c="paymentDate",k=R({mode:"all",values:{[p]:{selectedOption:o?.paymentMode,allOptions:x.map(n=>n.value)},[c]:o?.paymentDate?.toDate()}}),O=k.handleSubmit(n=>{r({paymentDate:n[c]!=null?$(n[c].toString()):$(S().startOf("month").format(b.YYYYDashMMDashDDFormat).toString()),paymentMode:n[p]?.selectedOption!=null?_(n[p]?.selectedOption):"other"})}),L=n=>x.find(T=>T.value===n)?.label??"";return a.jsx(W,{...k,children:a.jsx("form",{id:D,onSubmit:O,children:a.jsx(C,{formId:D,titleComponent:a.jsx(E,{children:w}),primaryButtonText:B,primaryButtonWidth:128,secondaryButtonWidth:128,secondaryButtonText:i,isLoading:e==="In-Progress",isDisabled:e==="In-Progress",isEditPopup:!0,shouldClickAway:e!=="In-Progress",action:{onOkClick:()=>null,onCancelClick:y},children:a.jsxs(N,{windowSize:l,children:[a.jsx(U,{label:{label:F,width:s.labelWidth.value(l)},style:{width:s.width.valuePx(l)},singleSelectField:{singleSelect:{getLabelForId:L,showTickMark:!1,alwaysShowEyeTooltip:!1,name:p,placeholder:P,showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:o?.paymentMode,allOptions:x?.map(n=>n.value)??[]}},isFunctional:!0}),a.jsx(q,{}),a.jsx(z,{label:{label:f,width:s.labelWidth.value(l)},style:{paddingBottom:s.paddingBottom.valuePx(l),width:s.width.valuePx(l),borderRadius:t.sp0},additionalPaymentInfoLabel:j,additionalPaymentInfoLabelStyle:{borderBottomRightRadius:t.sp2,borderBottomLeftRadius:t.sp2,paddingTop:t.sp1,paddingBottom:t.sp1,paddingLeft:t.sp3,paddingRight:s.paddingRight.valuePx(l),textAlign:"left"},dateField:{name:c,placeholder:I,defaultValue:o?.paymentDate,dateFormat:g.defaultInput,maxDate:S(),minDate:$("01 Jan 1900"),autoComplete:"off"}})]})})})})}const te=({withdrawFrom:e,paymentDate:o,onOkClick:r,onCancelClick:y,onClickAway:h})=>{const{dateFormat:f,spendManagement:{billPay:i},common:{strings:g}}=M.getLocalizedStrings();if(e!=null&&o!=null){const b=`${e?.label} ${e?.maskedAccountNumber}`,w=a.jsx(H,{children:a.jsxs(Z,{children:[a.jsx(v,{children:b}),i.insufficientFunds.popUp.hasLowBalance,g.space,i.insufficientFunds.popUp.addMoney,a.jsx(v,{children:o?.format(f.visual.MMMDFormat)}),i.insufficientFunds.popUp.avoidFailure]})});return a.jsx(C,{titleComponent:a.jsx(G,{children:i.insufficientFunds.popUp.title}),primaryButtonText:i.billDetails.buttons.approveAnyways,secondaryButtonText:i.billDetails.editBill,containerStyle:{maxWidth:474},descriptionComponent:w,action:{onOkClick:r,onCancelClick:y,onClickAway:h},secondaryButtonWidth:166,primaryButtonWidth:"auto",showLine:!1,buttonSeparatorStyle:{width:t.sp3},buttonContainerStyle:{paddingBottom:t.sp6}})}},H=d.div`
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  align-items: center;
@@ -21,11 +21,11 @@ import{F as M,Q as A,a9 as R,V as a,ac as W,co as C,cM as U,y as m,cQ as z,o as
21
21
  padding-right: ${t.sp7};
22
22
  margin-top: ${t.sp3};
23
23
  white-space: pre-line;
24
- `,Q=d(V)`
24
+ `,Z=d(J)`
25
25
  color: ${e=>e.theme.colors.hero};
26
- `,v=d(Y)`
26
+ `,v=d(V)`
27
27
  color: ${e=>e.theme.colors.primary};
28
- `,Z=d(_)`
28
+ `,G=d(Y)`
29
29
  margin-top: ${t.sp6};
30
30
  padding-left: ${t.sp8};
31
31
  padding-right: ${t.sp8};
@@ -0,0 +1 @@
1
+ import{V as p}from"./index-WEj6FS32.js";import{f as l}from"./ACHDetailsPage-BY65AQjO-Cl2Tlmft.js";import"./sentry-B0WgNUxa.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./zeni-epic-state-DnAAAEmj.js";import"./mui-BTtN6lbG.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./BankAccountWarningSection-M3w6kP33-ChP5wvhC.js";import"./MagicLinkTitleSection-B726bP_P-CoT1ZO_f.js";import"./BankAccountSection-Bm8vdxFd-DKKdvH8R.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c0feee21-31db-4d21-b799-fb3cf1545195",e._sentryDebugIdIdentifier="sentry-dbid-c0feee21-31db-4d21-b799-fb3cf1545195")}catch{}})();const _=({magicLinkViewState:e,magicLinkBankAccountDetails:t,onSaveHandler:n,onACHDetailsUpdated:o,onFetchBankName:a,isDisabled:i,companyName:r})=>{const{fetchState:m,error:c,bankNameByRouting:d,bankAccountToCreate:s,fetchBankNameByRoutingStatus:f}=t,{currencySymbol:u,amount:b}=e;return p.jsx(l,{bankAccountToCreate:s,bankAccountCreationState:{fetchState:m,error:c},bankNameByRouting:d,fetchBankNameByRoutingStatus:f,onSaveHandler:n,onACHDetailsUpdated:o,onFetchBankName:a,isDisabled:i,companyName:r,isMagicLink:!0,currencySymbol:u,amount:b})};export{_ as default};
@@ -0,0 +1 @@
1
+ import{V as y}from"./index-WEj6FS32.js";import{w as g}from"./DomesticWireDetailsPage-CCP6xoW_-BlmZjbpt.js";import"./sentry-B0WgNUxa.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./zeni-epic-state-DnAAAEmj.js";import"./mui-BTtN6lbG.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./BankAccountSection-Bm8vdxFd-DKKdvH8R.js";import"./MagicLinkTitleSection-B726bP_P-CoT1ZO_f.js";import"./BankAccountWarningSection-M3w6kP33-ChP5wvhC.js";import"./MailingDetailsSection-IQJY4Yl0-C_b76P8R.js";import"./LabeledAddressValueField-C_KatgTA-ByiPbJgm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="638d76e9-3c0b-476a-ad20-72efdf80361b",e._sentryDebugIdIdentifier="sentry-dbid-638d76e9-3c0b-476a-ad20-72efdf80361b")}catch{}})();const E=({magicLinkViewState:e,magicLinkBankAccountDetails:t,mailingAddressDetails:a,isDisabled:o,companyName:n,onSaveHandler:r,onWireDetailsUpdated:i,onFetchBankName:d,onAddressClick:s})=>{const{fetchState:m,error:c,bankNameByRouting:p,bankAccountToCreate:u,fetchBankNameByRoutingStatus:f}=t,{currencySymbol:l,amount:b}=e;return y.jsx(g,{bankAccountToCreate:u,bankAccountCreationState:{fetchState:m,error:c},bankNameByRouting:p,addressToEdit:a,addressType:"vendor_address",fetchBankNameByRoutingStatus:f,isDisabled:o,onSaveHandler:r,onWireDetailsUpdated:i,onAddressClick:s,onFetchBankName:d,companyName:n,isMagicLink:!0,currencySymbol:l,amount:b})};export{E as default};
@@ -0,0 +1 @@
1
+ import{V as b}from"./index-WEj6FS32.js";import{f as y}from"./InternationalWireSwiftDetailsPage-DnWbUuiD-CIWMoecY.js";import"./sentry-B0WgNUxa.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./zeni-epic-state-DnAAAEmj.js";import"./mui-BTtN6lbG.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./BankAccountWarningSection-M3w6kP33-ChP5wvhC.js";import"./MailingDetailsSection-IQJY4Yl0-C_b76P8R.js";import"./LabeledAddressValueField-C_KatgTA-ByiPbJgm.js";import"./MagicLinkTitleSection-B726bP_P-CoT1ZO_f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1444fe2b-59e6-468f-8d01-ba0cc6eec3b2",e._sentryDebugIdIdentifier="sentry-dbid-1444fe2b-59e6-468f-8d01-ba0cc6eec3b2")}catch{}})();const x=({magicLinkViewState:e,magicLinkBankAccountDetails:t,mailingAddressDetails:a,isDisabled:n,companyName:i,onSaveHandler:o,onBankDetailsUpdated:r,onFetchBankNameBySwift:d,onAddressClick:s})=>{const{internationalBankAccountCreateStatus:c,internationalBankAccountToCreate:m,fetchBankNameBySwiftStatus:f,bankNameBySwift:l}=t,{currencySymbol:p,amount:u}=e;return b.jsx(y,{bankAccountToCreate:m,bankAccountCreationState:c,bankNameBySwift:l,addressToEdit:a,addressType:"vendor_address",fetchBankNameBySwiftStatus:f,isDisabled:n,onSaveHandler:o,onBankDetailsUpdated:r,onAddressClick:s,onFetchBankNameBySwift:d,companyName:i,isMagicLink:!0,currencySymbol:p,amount:u})};export{x as default};
@@ -1,4 +1,4 @@
1
- import{av as r,F as n,V as t,b5 as l,o as s,af as a,M as c,f as d}from"./index-DVgY55Ab.js";import{n as o}from"./mui-CR-wYMmN.js";import"./sentry-DMXY90dB.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./zeni-epic-state-BXMuLX_S.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="a97c67ac-bff5-4896-947e-088b108581ca",e._sentryDebugIdIdentifier="sentry-dbid-a97c67ac-bff5-4896-947e-088b108581ca")}catch{}})();const S=()=>{const[e]=r("Confetti"),i=n.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen;return e!=null?t.jsxs(p,{children:[t.jsx(l,{loop:!1,play:!0,segments:[100,299],animationData:e,style:{position:"absolute"},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}),t.jsx(u,{children:t.jsx(b,{})}),t.jsxs(m,{children:[t.jsx(f,{children:i.successTitle}),t.jsx(g,{children:i.successNote})]})]}):null},p=o.div`
1
+ import{av as r,F as n,V as t,b5 as l,o as s,af as a,M as c,f as d}from"./index-WEj6FS32.js";import{n as o}from"./mui-BTtN6lbG.js";import"./sentry-B0WgNUxa.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./zeni-epic-state-DnAAAEmj.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="a97c67ac-bff5-4896-947e-088b108581ca",e._sentryDebugIdIdentifier="sentry-dbid-a97c67ac-bff5-4896-947e-088b108581ca")}catch{}})();const S=()=>{const[e]=r("Confetti"),i=n.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen;return e!=null?t.jsxs(p,{children:[t.jsx(l,{loop:!1,play:!0,segments:[100,299],animationData:e,style:{position:"absolute"},rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}),t.jsx(u,{children:t.jsx(b,{})}),t.jsxs(m,{children:[t.jsx(f,{children:i.successTitle}),t.jsx(g,{children:i.successNote})]})]}):null},p=o.div`
2
2
  z-index: 999;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{F as d,aY as p,V as n,M as C,o as a,al as f,p as m,ch as g}from"./index-DVgY55Ab.js";import{n as s}from"./mui-CR-wYMmN.js";import{a as l}from"./sentry-DMXY90dB.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ad2704a9-e809-49ea-af1e-36e85903dce3",e._sentryDebugIdIdentifier="sentry-dbid-ad2704a9-e809-49ea-af1e-36e85903dce3")}catch{}})();const y=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.0257 -0.000342749C11.8221 -0.00677984 11.624 0.0667416 11.4727 0.204861C11.4727 0.204861 7.52114 3.7329 2.78947 3.7329C2.5801 3.73292 2.37931 3.81721 2.23125 3.96724C2.0832 4.11726 2.00002 4.32072 2 4.53288V11.0713C2 14.6328 3.62601 20.4933 11.6937 23.9366C11.7906 23.978 11.8948 23.9993 12 23.9993C12.1052 23.9993 12.2094 23.978 12.3063 23.9366C20.374 20.4933 22 14.6328 22 11.0713V4.53288C22 4.32072 21.9168 4.11726 21.7687 3.96724C21.6207 3.81721 21.4199 3.73292 21.2105 3.7329C16.4789 3.7329 12.5273 0.204861 12.5273 0.204861C12.3892 0.0787349 12.2115 0.00606537 12.0257 -0.000342749ZM12 5.33287C13.7421 5.33287 15.1579 6.7675 15.1579 8.53279V9.59943C16.0263 9.59943 16.7368 10.3194 16.7368 11.1994V15.466C16.7368 16.3459 16.0263 17.0659 15.1579 17.0659H8.84211C7.97368 17.0659 7.26316 16.3459 7.26316 15.466V11.1994C7.26316 10.3194 7.97368 9.59943 8.84211 9.59943V8.53279C8.84211 6.7675 10.2579 5.33287 12 5.33287ZM12 6.93283C11.1316 6.93283 10.4211 7.65281 10.4211 8.53279V9.59943H13.5789V8.53279C13.5789 7.65281 12.8684 6.93283 12 6.93283ZM12 11.7327C11.5812 11.7327 11.1796 11.9013 10.8835 12.2013C10.5874 12.5014 10.4211 12.9083 10.4211 13.3327C10.4211 13.757 10.5874 14.164 10.8835 14.464C11.1796 14.7641 11.5812 14.9326 12 14.9326C12.4188 14.9326 12.8204 14.7641 13.1165 14.464C13.4126 14.164 13.5789 13.757 13.5789 13.3327C13.5789 12.9083 13.4126 12.5014 13.1165 12.2013C12.8204 11.9013 12.4188 11.7327 12 11.7327Z",fill:"currentColor"})),$=({companyName:e,currencySymbol:t,amount:r})=>{const i=d.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen,o=r>0?` ${p("0,0.[00]",r,t)}`:"",c=i.title.replace(/<tenant_name>/,e)+o;return n.jsxs(n.Fragment,{children:[n.jsx(b,{children:c}),n.jsxs(w,{children:[i.description.replace(/<tenant_name>/,e),n.jsxs(h,{children:[n.jsx(u,{}),i.encrypted]})]})]})},h=s(g)`
1
+ import{F as d,aY as p,V as n,M as C,o as a,al as f,p as m,ch as g}from"./index-WEj6FS32.js";import{n as s}from"./mui-BTtN6lbG.js";import{a as l}from"./sentry-B0WgNUxa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ad2704a9-e809-49ea-af1e-36e85903dce3",e._sentryDebugIdIdentifier="sentry-dbid-ad2704a9-e809-49ea-af1e-36e85903dce3")}catch{}})();const y=e=>l.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.0257 -0.000342749C11.8221 -0.00677984 11.624 0.0667416 11.4727 0.204861C11.4727 0.204861 7.52114 3.7329 2.78947 3.7329C2.5801 3.73292 2.37931 3.81721 2.23125 3.96724C2.0832 4.11726 2.00002 4.32072 2 4.53288V11.0713C2 14.6328 3.62601 20.4933 11.6937 23.9366C11.7906 23.978 11.8948 23.9993 12 23.9993C12.1052 23.9993 12.2094 23.978 12.3063 23.9366C20.374 20.4933 22 14.6328 22 11.0713V4.53288C22 4.32072 21.9168 4.11726 21.7687 3.96724C21.6207 3.81721 21.4199 3.73292 21.2105 3.7329C16.4789 3.7329 12.5273 0.204861 12.5273 0.204861C12.3892 0.0787349 12.2115 0.00606537 12.0257 -0.000342749ZM12 5.33287C13.7421 5.33287 15.1579 6.7675 15.1579 8.53279V9.59943C16.0263 9.59943 16.7368 10.3194 16.7368 11.1994V15.466C16.7368 16.3459 16.0263 17.0659 15.1579 17.0659H8.84211C7.97368 17.0659 7.26316 16.3459 7.26316 15.466V11.1994C7.26316 10.3194 7.97368 9.59943 8.84211 9.59943V8.53279C8.84211 6.7675 10.2579 5.33287 12 5.33287ZM12 6.93283C11.1316 6.93283 10.4211 7.65281 10.4211 8.53279V9.59943H13.5789V8.53279C13.5789 7.65281 12.8684 6.93283 12 6.93283ZM12 11.7327C11.5812 11.7327 11.1796 11.9013 10.8835 12.2013C10.5874 12.5014 10.4211 12.9083 10.4211 13.3327C10.4211 13.757 10.5874 14.164 10.8835 14.464C11.1796 14.7641 11.5812 14.9326 12 14.9326C12.4188 14.9326 12.8204 14.7641 13.1165 14.464C13.4126 14.164 13.5789 13.757 13.5789 13.3327C13.5789 12.9083 13.4126 12.5014 13.1165 12.2013C12.8204 11.9013 12.4188 11.7327 12 11.7327Z",fill:"currentColor"})),$=({companyName:e,currencySymbol:t,amount:r})=>{const i=d.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen,o=r>0?` ${p("0,0.[00]",r,t)}`:"",c=i.title.replace(/<tenant_name>/,e)+o;return n.jsxs(n.Fragment,{children:[n.jsx(b,{children:c}),n.jsxs(w,{children:[i.description.replace(/<tenant_name>/,e),n.jsxs(h,{children:[n.jsx(u,{}),i.encrypted]})]})]})},h=s(g)`
2
2
  display: flex;
3
3
  gap: ${a.sp1};
4
4
  color: ${m.successDark};
@@ -0,0 +1,21 @@
1
+ import{J as c,F as u,y as r,V as s,o as a,cL as h,b9 as $,u as i}from"./index-WEj6FS32.js";import{n as g}from"./mui-BTtN6lbG.js";import{W as y}from"./LabeledAddressValueField-C_KatgTA-ByiPbJgm.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="39bfaa04-8f08-401f-8ac3-bfd3ba2a8b41",e._sentryDebugIdIdentifier="sentry-dbid-39bfaa04-8f08-401f-8ac3-bfd3ba2a8b41")}catch{}})();const d={largeLabelWidth:new r(120,140,220),paddingTopBottom:new r(i[3],i[3]),marginRight:new r(i[3],i[8]),marginLeft:new r(i[3],i[6]),marginLeftTitle:new r(i[4],i[6])},z=({sectionId:e,addressToEdit:o,addressType:n,isDisabled:m,onAddressClick:p})=>{const l=c(),t=u.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,b=d.largeLabelWidth.value(l);return s.jsxs(s.Fragment,{children:[s.jsx(v,{size:l,children:t.addressDetailTitle}),s.jsx(x,{size:l,children:s.jsx(y,{isDisabled:m,label:{label:t.address,width:b},addressValueField:{name:w(e,"mailingAddress"),placeholder:h(t.address),defaultValue:o,registerOptions:{validate:f=>f!=null},onClick:()=>{p(n)}},additionalInfoLabel:t.additionalAddressLabel,showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`},hasHoverBorder:!1})})]})},w=(e,o)=>`${e}.${o}`,x=g.div`
2
+ width: auto;
3
+ display: flex;
4
+ flex-direction: column;
5
+ background-color: ${e=>e.theme.colors.grey5};
6
+ border: 1px solid ${e=>e.theme.colors.grey3};
7
+ box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
8
+ border-radius: ${a.sp2};
9
+ margin-left: ${e=>d.marginLeft.valuePx(e.size)};
10
+ margin-right: ${e=>d.marginRight.valuePx(e.size)};
11
+ margin-top: ${e=>d.paddingTopBottom.valuePx(e.size)};
12
+ margin-bottom: ${e=>d.paddingTopBottom.valuePx(e.size)};
13
+ &:hover {
14
+ border: 1px solid ${e=>e.theme.colors.primary};
15
+ }
16
+ `,v=g($)`
17
+ color: ${e=>e.theme.colors.primary};
18
+ margin-bottom: ${a.sp3};
19
+ margin-top: ${a.sp5};
20
+ margin-left: ${e=>d.marginLeftTitle.valuePx(e.size)};
21
+ `;export{z as T};
@@ -1,11 +1,11 @@
1
- import{g as z,Q as M,fy as I,F as $,aV as x,V as i,bB as _,aa as v,fs as L,o,bw as P,y as d,am as H,al as B,b as F,a as W,fE as j,fF as C,u,fO as V,p as A,ai as E}from"./index-DVgY55Ab.js";import{a as y}from"./sentry-DMXY90dB.js";import{n as t}from"./mui-CR-wYMmN.js";import{bL as R}from"./zeni-epic-state-BXMuLX_S.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="94ea159d-4bfc-4b79-b8dc-737a0837f8cd",e._sentryDebugIdIdentifier="sentry-dbid-94ea159d-4bfc-4b79-b8dc-737a0837f8cd")}catch{}})();const s={sectionWidth:new d(343,580,726),iconContainerMaxWidthHeight:new d(u[6],u[7]),iconContainerMarginRight:new d(12,u[3]),iconPadding:new d(10,12),iconWidthHeight:new d(20,u[4]),elementsMarginLeftRight:new d(u[3],u[4])},N={title:new W("standardMedium","largeMedium")},J=t.img`
1
+ import{g as z,J as M,fy as I,F as v,aV as x,V as i,bB as _,aa as $,fs as L,o,bw as P,y as d,am as H,al as B,b as F,a as W,fE as j,fF as C,u,fO as V,p as A,ai as E}from"./index-WEj6FS32.js";import{a as y}from"./sentry-B0WgNUxa.js";import{n as t}from"./mui-BTtN6lbG.js";import{bL as R}from"./zeni-epic-state-DnAAAEmj.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8051803a-dc46-4ea6-a5e8-bd44d5fd1cd0",e._sentryDebugIdIdentifier="sentry-dbid-8051803a-dc46-4ea6-a5e8-bd44d5fd1cd0")}catch{}})();const s={sectionWidth:new d(343,580,726),iconContainerMaxWidthHeight:new d(u[6],u[7]),iconContainerMarginRight:new d(12,u[3]),iconPadding:new d(10,12),iconWidthHeight:new d(20,u[4]),elementsMarginLeftRight:new d(u[3],u[4])},J={title:new W("standardMedium","largeMedium")},N=t.img`
2
2
  width: ${e=>s.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
3
3
  height: ${e=>s.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
4
4
  border-radius: ${o.sp11};
5
5
  margin-right: ${e=>s.iconContainerMarginRight.valuePx(e.windowSize)};
6
6
  `,O=t.div`
7
7
  display: flex;
8
- `,Q=t.div`
8
+ `,G=t.div`
9
9
  display: flex;
10
10
  align-items: center;
11
11
  flex-direction: row;
@@ -14,7 +14,7 @@ import{g as z,Q as M,fy as I,F as $,aV as x,V as i,bB as _,aa as v,fs as L,o,bw
14
14
  margin-right: ${e=>s.elementsMarginLeftRight.valuePx(e.windowSize)};
15
15
  padding-top: ${o.sp4};
16
16
  padding-bottom: ${o.sp4};
17
- `,G=t.div`
17
+ `,Q=t.div`
18
18
  display: flex;
19
19
  align-items: flex-start;
20
20
  `,Y=t.div`
@@ -24,7 +24,7 @@ import{g as z,Q as M,fy as I,F as $,aV as x,V as i,bB as _,aa as v,fs as L,o,bw
24
24
  display: flex;
25
25
  flex-direction: column;
26
26
  `,K=t.div``,U=t.div`
27
- ${e=>`${N.title.style(e.windowSize)}`};
27
+ ${e=>`${J.title.style(e.windowSize)}`};
28
28
  color: ${e=>e.isError===!0?A.important:e.theme.colors.primary};
29
29
  `,X=t.div`
30
30
  display: flex;
@@ -65,7 +65,7 @@ import{g as z,Q as M,fy as I,F as $,aV as x,V as i,bB as _,aa as v,fs as L,o,bw
65
65
  color: ${e=>e.theme.colors.grey1};
66
66
  justify-content: space-between;
67
67
  box-sizing: border-box;
68
- `,te=({bankAccount:e,paymentAccount:n,accountStatus:l})=>{const a=M(),h=z(),m=e.bankName,r=h.mode==="light"?new x(h.colors.brandColorJadeLight):new x(h.colors.brandColorJadeDark),b={element:i.jsx(P,{width:s.iconWidthHeight.valuePx(a),height:s.iconWidthHeight.valuePx(a)}),color:r},c=n?.providerVerificationStatus?.code,p=`${n?.accountSubType?.name!=null?n.accountSubType.name.substring(0,1).toUpperCase().concat(n.accountSubType.name.substring(1)):""} ${n?.maskedAccountNumber??e.maskedAccountNumber}`.trim(),g=n?.institutionDetails?.zeniInstitutionId.toLowerCase()==="chase";return i.jsx(ne,{windowSize:a,children:i.jsxs(Q,{windowSize:a,children:[i.jsxs(G,{children:[i.jsx(Y,{children:oe(b,a,h.mode==="dark",n)}),i.jsxs(q,{children:[i.jsxs(K,{children:[i.jsx(U,{windowSize:a,children:m}),i.jsx(Z,{children:p?i.jsxs(i.Fragment,{children:[i.jsx(ee,{children:p}),a!=="small"&&(c!=="verification_failed"&&n?.providerVerificationStatus?.code==="pending_manual_verification"||g)?i.jsx(ie,{}):null]}):null})]}),l!=null&&a==="small"?i.jsx(j,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:l.name,textColor:C(l.code)}):null]})]}),i.jsx(O,{children:l!=null&&a!=="small"?i.jsx(j,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:l.name,textColor:C(l.code)}):null})]})})},oe=(e,n,l,a)=>a?.institutionDetails.logo?.base64!=null?i.jsx(J,{windowSize:n,src:`${V}${a.institutionDetails.logo.base64.toString()}`,alt:a.institutionDetails.institutionName,loading:"lazy"}):i.jsx(X,{iconColor:e.color,windowSize:n,isDarkMode:l,children:e.element}),f={iconWidthHeight:new d(20,u[4]),sectionWidth:new d(343,580,726),subtitleSectionWidth:new d(343,580,1200)},ae={title:new W("standardMedium","largeMedium")},le=t.div`
68
+ `,te=({bankAccount:e,paymentAccount:n,accountStatus:l})=>{const a=M(),h=z(),m=e.bankName,r=h.mode==="light"?new x(h.colors.brandColorJadeLight):new x(h.colors.brandColorJadeDark),b={element:i.jsx(P,{width:s.iconWidthHeight.valuePx(a),height:s.iconWidthHeight.valuePx(a)}),color:r},c=n?.providerVerificationStatus?.code,p=`${n?.accountSubType?.name!=null?n.accountSubType.name.substring(0,1).toUpperCase().concat(n.accountSubType.name.substring(1)):""} ${n?.maskedAccountNumber??e.maskedAccountNumber}`.trim(),g=n?.institutionDetails?.zeniInstitutionId.toLowerCase()==="chase";return i.jsx(ne,{windowSize:a,children:i.jsxs(G,{windowSize:a,children:[i.jsxs(Q,{children:[i.jsx(Y,{children:oe(b,a,h.mode==="dark",n)}),i.jsxs(q,{children:[i.jsxs(K,{children:[i.jsx(U,{windowSize:a,children:m}),i.jsx(Z,{children:p?i.jsxs(i.Fragment,{children:[i.jsx(ee,{children:p}),a!=="small"&&(c!=="verification_failed"&&n?.providerVerificationStatus?.code==="pending_manual_verification"||g)?i.jsx(ie,{}):null]}):null})]}),l!=null&&a==="small"?i.jsx(j,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:l.name,textColor:C(l.code)}):null]})]}),i.jsx(O,{children:l!=null&&a!=="small"?i.jsx(j,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:l.name,textColor:C(l.code)}):null})]})})},oe=(e,n,l,a)=>a?.institutionDetails.logo?.base64!=null?i.jsx(N,{windowSize:n,src:`${V}${a.institutionDetails.logo.base64.toString()}`,alt:a.institutionDetails.institutionName,loading:"lazy"}):i.jsx(X,{iconColor:e.color,windowSize:n,isDarkMode:l,children:e.element}),f={iconWidthHeight:new d(20,u[4]),sectionWidth:new d(343,580,726),subtitleSectionWidth:new d(343,580,1200)},ae={title:new W("standardMedium","largeMedium")},le=t.div`
69
69
  display: flex;
70
70
  row-gap: ${o.sp3};
71
71
  flex-direction: column;
@@ -107,4 +107,4 @@ import{g as z,Q as M,fy as I,F as $,aV as x,V as i,bB as _,aa as v,fs as L,o,bw
107
107
  display: flex;
108
108
  align-items: center;
109
109
  color: ${e=>e.theme.colors.hero};
110
- `,ve=({plaidConnectionDetails:e,myBankConnectionsView:n,onEstablishConnectionClick:l,onFetchLinkTokenClick:a,onClickMenuIcon:h})=>{const m=z(),r=M(),b=y.useCallback(w=>{l(w)},[l]),c=y.useMemo(()=>e.link_account_no_microdeposit,[e]),{open:p}=I({token:c.linkToken??null,onSuccess:b}),g=$.getLocalizedStrings().common.settings,D=m.mode==="light"?new x(m.colors.brandColorJadeLight):new x(m.colors.brandColorJadeDark),k=$.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;return y.useEffect(()=>{(R(new Date().toISOString()).isAfter(c.expiration)||c.linkToken==null)&&a("link_account_no_microdeposit")},[a,c.expiration,c.linkToken]),i.jsxs(re,{children:[i.jsx(_,{source:"MyBankConnectionsSettingsPage",title:g.title.myBankConnections,backgroundColor:m.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:r==="medium-compact"||r==="small",onClickMenuIcon:h}),i.jsxs(se,{windowSize:r,children:[i.jsx(ue,{windowSize:r,children:i.jsx(he,{windowSize:r,children:g.infoText.myBankConnections})}),n.bankAccounts.length>0?i.jsx(de,{windowSize:r,children:i.jsx(ce,{windowSize:r,children:g.subtitle.myBankConnections})}):null,i.jsx(v,{controller:n.bankAccounts.length>0,children:i.jsx(le,{children:n.bankAccounts.map(w=>{const S=n.paymentAccounts.find(T=>T.bankAccountId==w.bankAccountId);return i.jsx(te,{bankAccount:w,accountStatus:S?.verificationStatus,paymentAccount:S},w.bankAccountId)})})}),i.jsx(v,{controller:n.bankAccounts.length===0,children:i.jsx(L,{onClick:()=>{p()},title:k.connectYourBank,subTitle:k.loginToBank,header:g.label.reimbursements,icon:{element:i.jsx(P,{width:f.iconWidthHeight.valuePx(r),height:f.iconWidthHeight.valuePx(r)}),color:D},style:{width:"unset",rowGap:r==="small"?o.sp2:void 0}})})]})]})};export{ve as default};
110
+ `,$e=({plaidConnectionDetails:e,myBankConnectionsView:n,onEstablishConnectionClick:l,onFetchLinkTokenClick:a,onClickMenuIcon:h})=>{const m=z(),r=M(),b=y.useCallback(w=>{l(w)},[l]),c=y.useMemo(()=>e.link_account_no_microdeposit,[e]),{open:p}=I({token:c.linkToken??null,onSuccess:b}),g=v.getLocalizedStrings().common.settings,T=m.mode==="light"?new x(m.colors.brandColorJadeLight):new x(m.colors.brandColorJadeDark),k=v.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;return y.useEffect(()=>{(R(new Date().toISOString()).isAfter(c.expiration)||c.linkToken==null)&&a("link_account_no_microdeposit")},[a,c.expiration,c.linkToken]),i.jsxs(re,{children:[i.jsx(_,{source:"MyBankConnectionsSettingsPage",title:g.title.myBankConnections,backgroundColor:m.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:r==="medium-compact"||r==="small",onClickMenuIcon:h}),i.jsxs(se,{windowSize:r,children:[i.jsx(ue,{windowSize:r,children:i.jsx(he,{windowSize:r,children:g.infoText.myBankConnections})}),n.bankAccounts.length>0?i.jsx(de,{windowSize:r,children:i.jsx(ce,{windowSize:r,children:g.subtitle.myBankConnections})}):null,i.jsx($,{controller:n.bankAccounts.length>0,children:i.jsx(le,{children:n.bankAccounts.map(w=>{const S=n.paymentAccounts.find(D=>D.bankAccountId==w.bankAccountId);return i.jsx(te,{bankAccount:w,accountStatus:S?.verificationStatus,paymentAccount:S},w.bankAccountId)})})}),i.jsx($,{controller:n.bankAccounts.length===0,children:i.jsx(L,{onClick:()=>{p()},title:k.connectYourBank,subTitle:k.loginToBank,header:g.label.reimbursements,icon:{element:i.jsx(P,{width:f.iconWidthHeight.valuePx(r),height:f.iconWidthHeight.valuePx(r)}),color:T},style:{width:"unset",rowGap:r==="small"?o.sp2:void 0}})})]})]})};export{$e as default};
@@ -1,4 +1,4 @@
1
- import{g as B,aw as N,iM as a,V as n,bB as D,g4 as x,F as M,o as O}from"./index-DVgY55Ab.js";import{n as P}from"./mui-CR-wYMmN.js";import{EL as $}from"./zeni-epic-state-BXMuLX_S.js";import{r as V,i as _}from"./ChargeCardListTable-43l6tEOp-BbcKoGZ2.js";import"./sentry-DMXY90dB.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";import"./RoleWithToolTip-BGlbeXtJ-BQ5iinOT.js";import"./CardNumberSubText-sE2DGwYG-B174guLL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="b6c422a2-e456-43db-9023-b3d73202fb78",e._sentryDebugIdIdentifier="sentry-dbid-b6c422a2-e456-43db-9023-b3d73202fb78")}catch{}})();const{spendManagement:{chargeCard:u}}=M.getLocalizedStrings(),at=({myPendingActivationChargeCardListView:e,isChargeCardFeatureEnabled:i,isDebitCardFeatureEnabled:o,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,chargeCardCashbackDetailState:r,creditAccount:d,creditAccountRepayment:C,depositAccountListWithDebitCardIssued:c,controllerEmails:m,signedInUser:S,onChargeCardRowClick:p,onBackClick:f,onReloadCards:g,onColumnSortConfigChanged:k})=>{const A=B(),y=N(),h=$(y.loggedInUserRoleMap),F=e.cards.some(t=>t.type.code.includes("credit")),b=e.cards.some(t=>t.type.code.includes("debit")),I=F&&b?u.cardList.title.cards:b?u.cardList.title.debit:u.cardList.title.credit,v=h===!0?{creditCardCashbackOffer:`${r.cashbackAnalytics.creditCardCashbackOffer}%`,debitCardCashbackOffer:`${r.cashbackAnalytics.debitCardCashbackOffer}%`,totalEarnedCashback:a(r.cashbackSummary.cashbackEarned.amount),redeemedCashback:a(r.cashbackSummary.cashbackRedeemed.amount),availableCashback:a(r.cashbackSummary.cashbackAvailable.amount),creditCardCashbackRedemptionMode:r.cashbackAnalytics.creditCardCashbackRedemptionMode,debitCardCashbackRedemptionMode:r.cashbackAnalytics.debitCardCashbackRedemptionMode}:void 0,w=i&&l&&h===!0?{creditAccountId:d.id,creditAccountLimit:a(d.limit.amount),creditAccountAvailableAmount:a(d.available.amount),creditAccountSpentAmount:a(d.balance.amount+d.hold.amount),creditAccountStatus:d.status,outstandingBalance:a(C.remainingAmountDue.amount)}:void 0,E=o&&s?{debitAccountId:c.depositAccounts.map(t=>t.id),debitAccountName:c.depositAccounts.map(t=>t.accountName),debitAccountBalance:c.depositAccounts.map(t=>a(t.accountBalance.available.amount)),debitCardsSpend:0,debitAccountStatus:c.depositAccounts.map(t=>t.accountStatus)}:void 0,L={isCreditCardOffered:i,isDebitCardOffered:o,isDebitCardEnabled:s,isCreditCardEnabled:l},R={revokeChargeCardFetchState:{fetchState:"Not-Started"},unlockChargeCardsFetchState:{fetchState:"Not-Started"},lockChargeCardsFetchState:{fetchState:"Not-Started"},closeChargeCardsFetchState:{fetchState:"Not-Started"},updateChargeCardLimitFetchState:{fetchState:"Not-Started"},updateChargeCardNameFetchState:{fetchState:"Not-Started"},depositAccountLimitFetchState:{fetchState:"Not-Started"},recurringExpenses:[],recurringExpensesFetchState:{fetchState:"Not-Started"}};return n.jsxs(j,{children:[n.jsx(D,{title:I,backgroundColor:A.colors.grey4,style:{zIndex:3},onBackClick:f,source:"MyPendingActivationChargeCardListPage"}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?n.jsx(x,{fetchState:e.fetchState,styles:{margin:"auto"}}):n.jsx(V,{onBulkCloseClick:()=>{},onBulkLockClick:()=>{},bulkSubmissionLimit:_,isCardControlsEnabled:!1,cardsSelectedForBulkAction:[],isBulkActionAllowed:!1,firstSelectedCardStatus:void 0,setActionTypeForRowAction:()=>{},setCardIdForRowAction:()=>{},controllerEmails:m,isChargeCardFeatureEnabled:i,isDebitCardFeatureEnabled:o,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,creditAccount:d,creditAccountRepayment:C,productInformation:L,cashbackInformation:v,creditAccountInformation:w,debitAccountInformation:E,depositAccountListWithDebitCardIssued:c,cardList:e.cards,showViewForCardUser:!0,signedInUser:S,fetchState:e.fetchState,unlockChargeCardsFetchState:"Not-Started",revokeChargeCardsInviteFetchState:"Not-Started",rowActionView:R,onProceedForBulkActionClick:t=>{},removeAllCardsFromBulkActionList:()=>{},setShowBulkChangeSpendLimitPopup:t=>{},updateBulkActionList:t=>{},onReloadCards:g,onChargeCardRowClick:(t,U)=>{p(t)},uiState:e.uiState,onColumnSortConfigChanged:k,onChargeCardResendInviteClick:()=>{}})]})},j=P.div`
1
+ import{g as B,aw as N,iM as a,V as n,bB as D,g4 as x,F as M,o as O}from"./index-WEj6FS32.js";import{n as P}from"./mui-BTtN6lbG.js";import{EL as $}from"./zeni-epic-state-DnAAAEmj.js";import{r as V,i as _}from"./ChargeCardListTable-D7zGM8uo-70otSDDQ.js";import"./sentry-B0WgNUxa.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./RoleWithToolTip-CkpqxMzB-CgYpd1vG.js";import"./CardNumberSubText-CXBKzGK5-CCtn2y_n.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="29bad63b-d13e-4e5b-ac87-c6664e2dd4f5",e._sentryDebugIdIdentifier="sentry-dbid-29bad63b-d13e-4e5b-ac87-c6664e2dd4f5")}catch{}})();const{spendManagement:{chargeCard:u}}=M.getLocalizedStrings(),at=({myPendingActivationChargeCardListView:e,isChargeCardFeatureEnabled:i,isDebitCardFeatureEnabled:o,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,chargeCardCashbackDetailState:r,creditAccount:d,creditAccountRepayment:C,depositAccountListWithDebitCardIssued:c,controllerEmails:m,signedInUser:S,onChargeCardRowClick:f,onBackClick:p,onReloadCards:g,onColumnSortConfigChanged:k})=>{const A=B(),y=N(),h=$(y.loggedInUserRoleMap),F=e.cards.some(t=>t.type.code.includes("credit")),b=e.cards.some(t=>t.type.code.includes("debit")),I=F&&b?u.cardList.title.cards:b?u.cardList.title.debit:u.cardList.title.credit,v=h===!0?{creditCardCashbackOffer:`${r.cashbackAnalytics.creditCardCashbackOffer}%`,debitCardCashbackOffer:`${r.cashbackAnalytics.debitCardCashbackOffer}%`,totalEarnedCashback:a(r.cashbackSummary.cashbackEarned.amount),redeemedCashback:a(r.cashbackSummary.cashbackRedeemed.amount),availableCashback:a(r.cashbackSummary.cashbackAvailable.amount),creditCardCashbackRedemptionMode:r.cashbackAnalytics.creditCardCashbackRedemptionMode,debitCardCashbackRedemptionMode:r.cashbackAnalytics.debitCardCashbackRedemptionMode}:void 0,w=i&&l&&h===!0?{creditAccountId:d.id,creditAccountLimit:a(d.limit.amount),creditAccountAvailableAmount:a(d.available.amount),creditAccountSpentAmount:a(d.balance.amount+d.hold.amount),creditAccountStatus:d.status,outstandingBalance:a(C.remainingAmountDue.amount)}:void 0,E=o&&s?{debitAccountId:c.depositAccounts.map(t=>t.id),debitAccountName:c.depositAccounts.map(t=>t.accountName),debitAccountBalance:c.depositAccounts.map(t=>a(t.accountBalance.available.amount)),debitCardsSpend:0,debitAccountStatus:c.depositAccounts.map(t=>t.accountStatus)}:void 0,L={isCreditCardOffered:i,isDebitCardOffered:o,isDebitCardEnabled:s,isCreditCardEnabled:l},R={revokeChargeCardFetchState:{fetchState:"Not-Started"},unlockChargeCardsFetchState:{fetchState:"Not-Started"},lockChargeCardsFetchState:{fetchState:"Not-Started"},closeChargeCardsFetchState:{fetchState:"Not-Started"},updateChargeCardLimitFetchState:{fetchState:"Not-Started"},updateChargeCardNameFetchState:{fetchState:"Not-Started"},depositAccountLimitFetchState:{fetchState:"Not-Started"},recurringExpenses:[],recurringExpensesFetchState:{fetchState:"Not-Started"}};return n.jsxs(j,{children:[n.jsx(D,{title:I,backgroundColor:A.colors.grey4,style:{zIndex:3},onBackClick:p,source:"MyPendingActivationChargeCardListPage"}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?n.jsx(x,{fetchState:e.fetchState,styles:{margin:"auto"}}):n.jsx(V,{onBulkCloseClick:()=>{},onBulkLockClick:()=>{},bulkSubmissionLimit:_,isCardControlsEnabled:!1,cardsSelectedForBulkAction:[],isBulkActionAllowed:!1,firstSelectedCardStatus:void 0,setActionTypeForRowAction:()=>{},setCardIdForRowAction:()=>{},controllerEmails:m,isChargeCardFeatureEnabled:i,isDebitCardFeatureEnabled:o,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,creditAccount:d,creditAccountRepayment:C,productInformation:L,cashbackInformation:v,creditAccountInformation:w,debitAccountInformation:E,depositAccountListWithDebitCardIssued:c,cardList:e.cards,showViewForCardUser:!0,signedInUser:S,fetchState:e.fetchState,unlockChargeCardsFetchState:"Not-Started",revokeChargeCardsInviteFetchState:"Not-Started",rowActionView:R,onProceedForBulkActionClick:t=>{},removeAllCardsFromBulkActionList:()=>{},setShowBulkChangeSpendLimitPopup:t=>{},updateBulkActionList:t=>{},onReloadCards:g,onChargeCardRowClick:(t,U)=>{f(t)},uiState:e.uiState,onColumnSortConfigChanged:k,onChargeCardResendInviteClick:()=>{}})]})},j=P.div`
2
2
  display: flex;
3
3
  min-height: ${`calc(100vh - ${O.sp9})`};
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{Q as ie,fR as te,g as ge,aw as be,fS as ye,a9 as we,aD as xe,cF as Pe,cE as $e,F as re,V as l,fT as De,bB as ve,ac as Se,aR as Oe,o as s,cA as ne,fU as de,fV as ce,fW as ue,y as T,am as me,b as Re,a as je,aJ as ee,cT as Ce,cJ as Te,fX as Z,cQ as Le,cO as Ie,fY as Ve,a$ as Be,u as _}from"./index-DVgY55Ab.js";import{a as $}from"./sentry-DMXY90dB.js";import{n as m}from"./mui-CR-wYMmN.js";import{bi as le,bg as pe,bL as Fe,bh as ke}from"./zeni-epic-state-BXMuLX_S.js";import{W as ze}from"./LabeledAddressValueField-Cac2YPpN-Ba7qdzlE.js";import{Y as Ae}from"./LabeledUserSingleSelectWithSubtitlesField-BmMN3W3F-BzPJ9P_-.js";import{C as Ne,j as We}from"./LabeledZeniRolesDropDownField-PsaKyCCY-EbSrXIJy.js";import"./liveblocks-B14TpO3l.js";import"./core-C5wq1_Bk.js";import"./recharts-C3mrSjO2.js";import"./lottie-BIQaRIZs.js";import"./analytics-EizVTK6x.js";import"./lexical-xuKHFvUb.js";import"./utils-BCuN6woZ.js";import"./RoleWithToolTip-BGlbeXtJ-BQ5iinOT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="e3f00483-b976-44c2-ad2a-a651380e2b54",e._sentryDebugIdIdentifier="sentry-dbid-e3f00483-b976-44c2-ad2a-a651380e2b54")}catch{}})();const b=(e,o)=>`${e}.${o}`,k={largeLabelWidth:new T(120,120,160),textFieldPaddingHorizontal:new T(_[2],_[3]),toolTipWidth:new T(215,237),notePadding:new T(_[3],_[4]),noteGap:new T(_[0],6)},{peoplePage:a,common:{settings:se,labels:E,placeholder:F,errorMessage:Me},dateFormat:_e}=re.getLocalizedStrings(),Ue=({myProfileView:e,isZeniFinopsRolesUser:o,sectionId:t,isDisabled:u,isReimbursementDisabled:y,isZeniAccountsDisabled:p,isChargeCardDisabled:i,isBankingOnlyTenant:f,isCardsOnlyTenant:D,isLiteRoleDisabled:L,isTreasuryDisabled:h,onAddressClick:w})=>{const n=ie(),{person:r,managersList:z,classList:A,manager:G,department:g,controllersList:N,myProfileLocalData:W,addressData:Q}=e,H=e.person.user?.birthday!=null?"readonly":void 0,v=k.largeLabelWidth.value(n),I=k.largeLabelWidth.value(n),J=$.useMemo(()=>te(y,p,i,f,D,L,h),[y,p,i,f,D,L,h]),{firstController:x,restControllerEmailsStr:S}=$.useMemo(()=>{const c=ee(N),O=c.splice(0,1),R=c.reduce((V,B)=>V.concat(`${B.email},`),"");return{firstController:O,restControllerEmailsStr:R}},[N]),Y=$.useMemo(()=>ee(ne.roles),[]),d=pe(r.userRole!=null?r.userRole.userRoles:[]),U=$.useMemo(()=>A.map(c=>({label:c.fullyQualifiedAccountingClassName,value:c.classId,hoverText:c.accountingClassNumber})),[A]);return l.jsxs(Ze,{windowSize:n,children:[l.jsx(Ce,{isDisabled:u,label:{label:E.name,width:I},nameField:{name:b(t,"name"),placeHolder:{firstName:F.firstNamePlaceholder,lastName:F.lastNamePlaceholder,name:F.namePlaceholder},showFullNameError:!0},errorInfoLabel:Me.nameError.replace("_product_type_",se.common.productTypeString)}),l.jsx(C,{}),l.jsx(Te,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:v},text:{type:"text",name:b(t,"email"),placeholder:Z(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${k.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(C,{}),l.jsx(Le,{label:{label:E.dateOfBirth,width:I},style:{width:"auto"},isDisabled:H,dateField:{name:b(t,"dateOfBirth"),placeholder:F.datePlaceholder,defaultValue:W.dateOfBirth,dateFormat:_e.visual.defaultInput,autoComplete:"off",maxDate:ke().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(ze,{label:{label:E.mailingAddress,width:I},addressValueField:{name:b(t,"mailingAddress"),placeholder:F.addressPlaceholder,defaultValue:Q?.addressToCreate,onClick:()=>{w("user_address")}},showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${s.sp2} ${s.sp2} ${s.sp2} ${s.sp0}`}}),l.jsx(C,{}),l.jsx(Ie,{label:{label:E.phone,width:I},text:{name:b(t,"phone"),placeholder:F.phonePlaceholder,defaultValue:W.phone,autoComplete:"off"},showVerified:W.isPhoneVerified,style:{width:"auto"}}),l.jsx(C,{}),o?l.jsx(Ne,{label:{label:a.invitePage.role,width:v},zeniRolesDropDownField:{name:b(t,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:Y},registerOptions:{required:!0},placeholderLabel:Z(a.selectPlaceholderPrefix,a.invitePage.role),isMulti:!0,forZeniUser:!0},isDisabled:"readonly"}):l.jsxs(l.Fragment,{children:[l.jsx(We,{label:{label:a.invitePage.role,width:v},rolesDropDownField:{name:b(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ue(r.userRole?.userRoles??[]),allRootRole:ce(f,D)},productsByUserRole:de(r.userRole?.userRoles??[],J)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(Ae,{label:{label:a.invitePage.manager,width:v},showTooltip:!0,toolTipWidth:k.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(qe,{}),userSingleSelectWithSubTitlesField:{name:b(t,"manager"),value:{allUsers:d?[]:z,selectedUser:d?void 0:G?.userId},valueToSubtitle:c=>{const O=z.findIndex(R=>R.userId===c);if(O!==-1){const R=z[O],V=A.find(X=>X.classId===R.userRole.accountingClassIDs[0]),B=[];return V!=null&&B.push(V.className),B}else return[]},placeholderLabel:d?a.notApplicable:Z(a.selectPlaceholderPrefix,a.invitePage.manager),registerOptions:{required:!d},showOneOffLabel:{label:se.label.noManager,value:"no_manager",position:"top",subtitles:[]}},isDisabled:"readonly",opacity:d?.32:1}),l.jsx(C,{}),l.jsx(Ve,{label:{label:a.invitePage.department,width:v},singleSelectWithoutClearableField:{name:b(t,"department"),defaultValue:{allOptions:d?[]:U,selectedOption:d?void 0:U.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:Z(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),o?null:l.jsxs(Ee,{windowSize:n,children:[a.invitePage.controllerText,x[0]?l.jsxs(Ge,{href:`mailto:${x[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(Qe,{children:`${x[0].firstName} ${x[0].lastName}`}),l.jsx(Be,{className:"arrowIcon"})]}):null]})]})]})},qe=()=>a.invitePage.managerTooltipText,Ze=m.div`
1
+ import{J as ie,fR as te,g as ge,aw as be,fS as ye,a9 as we,aD as xe,cF as Pe,cE as $e,F as re,V as l,fT as De,bB as ve,ac as Se,aR as Oe,o as s,cA as ne,fU as de,fV as ce,fW as ue,y as T,am as me,b as Re,a as je,aJ as ee,cT as Ce,cJ as Te,fX as Z,cQ as Le,cO as Ie,fY as Ve,a$ as Be,u as _}from"./index-WEj6FS32.js";import{a as $}from"./sentry-B0WgNUxa.js";import{n as m}from"./mui-BTtN6lbG.js";import{bi as le,bg as pe,bL as Fe,bh as ke}from"./zeni-epic-state-DnAAAEmj.js";import{W as ze}from"./LabeledAddressValueField-C_KatgTA-ByiPbJgm.js";import{Y as Ae}from"./LabeledUserSingleSelectWithSubtitlesField-CE332GjA-BafYQ_Pm.js";import{C as Ne,j as Me}from"./LabeledZeniRolesDropDownField-DU4-ho4X-DQBIg45w.js";import"./liveblocks-CrODURpx.js";import"./core-CIefpDlV.js";import"./recharts-BfU_srYC.js";import"./lottie-hIwSKdQS.js";import"./analytics-BvXI56dE.js";import"./lexical-Dp1JhPKz.js";import"./utils-DZQMbqmw.js";import"./RoleWithToolTip-CkpqxMzB-CgYpd1vG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="8e3cb148-e752-4fc2-a407-d9e1cd8fa35a",e._sentryDebugIdIdentifier="sentry-dbid-8e3cb148-e752-4fc2-a407-d9e1cd8fa35a")}catch{}})();const b=(e,o)=>`${e}.${o}`,k={largeLabelWidth:new T(120,120,160),textFieldPaddingHorizontal:new T(_[2],_[3]),toolTipWidth:new T(215,237),notePadding:new T(_[3],_[4]),noteGap:new T(_[0],6)},{peoplePage:a,common:{settings:se,labels:E,placeholder:F,errorMessage:We},dateFormat:_e}=re.getLocalizedStrings(),Ue=({myProfileView:e,isZeniFinopsRolesUser:o,sectionId:t,isDisabled:u,isReimbursementDisabled:y,isZeniAccountsDisabled:p,isChargeCardDisabled:i,isBankingOnlyTenant:f,isCardsOnlyTenant:D,isLiteRoleDisabled:L,isTreasuryDisabled:h,onAddressClick:w})=>{const n=ie(),{person:r,managersList:z,classList:A,manager:G,department:g,controllersList:N,myProfileLocalData:M,addressData:J}=e,Y=e.person.user?.birthday!=null?"readonly":void 0,v=k.largeLabelWidth.value(n),I=k.largeLabelWidth.value(n),H=$.useMemo(()=>te(y,p,i,f,D,L,h),[y,p,i,f,D,L,h]),{firstController:x,restControllerEmailsStr:S}=$.useMemo(()=>{const c=ee(N),O=c.splice(0,1),R=c.reduce((V,B)=>V.concat(`${B.email},`),"");return{firstController:O,restControllerEmailsStr:R}},[N]),Q=$.useMemo(()=>ee(ne.roles),[]),d=pe(r.userRole!=null?r.userRole.userRoles:[]),U=$.useMemo(()=>A.map(c=>({label:c.fullyQualifiedAccountingClassName,value:c.classId,hoverText:c.accountingClassNumber})),[A]);return l.jsxs(Ze,{windowSize:n,children:[l.jsx(Ce,{isDisabled:u,label:{label:E.name,width:I},nameField:{name:b(t,"name"),placeHolder:{firstName:F.firstNamePlaceholder,lastName:F.lastNamePlaceholder,name:F.namePlaceholder},showFullNameError:!0},errorInfoLabel:We.nameError.replace("_product_type_",se.common.productTypeString)}),l.jsx(C,{}),l.jsx(Te,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:v},text:{type:"text",name:b(t,"email"),placeholder:Z(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${k.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(C,{}),l.jsx(Le,{label:{label:E.dateOfBirth,width:I},style:{width:"auto"},isDisabled:Y,dateField:{name:b(t,"dateOfBirth"),placeholder:F.datePlaceholder,defaultValue:M.dateOfBirth,dateFormat:_e.visual.defaultInput,autoComplete:"off",maxDate:ke().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(ze,{label:{label:E.mailingAddress,width:I},addressValueField:{name:b(t,"mailingAddress"),placeholder:F.addressPlaceholder,defaultValue:J?.addressToCreate,onClick:()=>{w("user_address")}},showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${s.sp2} ${s.sp2} ${s.sp2} ${s.sp0}`}}),l.jsx(C,{}),l.jsx(Ie,{label:{label:E.phone,width:I},text:{name:b(t,"phone"),placeholder:F.phonePlaceholder,defaultValue:M.phone,autoComplete:"off"},showVerified:M.isPhoneVerified,style:{width:"auto"}}),l.jsx(C,{}),o?l.jsx(Ne,{label:{label:a.invitePage.role,width:v},zeniRolesDropDownField:{name:b(t,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:Q},registerOptions:{required:!0},placeholderLabel:Z(a.selectPlaceholderPrefix,a.invitePage.role),isMulti:!0,forZeniUser:!0},isDisabled:"readonly"}):l.jsxs(l.Fragment,{children:[l.jsx(Me,{label:{label:a.invitePage.role,width:v},rolesDropDownField:{name:b(t,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ue(r.userRole?.userRoles??[]),allRootRole:ce(f,D)},productsByUserRole:de(r.userRole?.userRoles??[],H)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(Ae,{label:{label:a.invitePage.manager,width:v},showTooltip:!0,toolTipWidth:k.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(qe,{}),userSingleSelectWithSubTitlesField:{name:b(t,"manager"),value:{allUsers:d?[]:z,selectedUser:d?void 0:G?.userId},valueToSubtitle:c=>{const O=z.findIndex(R=>R.userId===c);if(O!==-1){const R=z[O],V=A.find(K=>K.classId===R.userRole.accountingClassIDs[0]),B=[];return V!=null&&B.push(V.className),B}else return[]},placeholderLabel:d?a.notApplicable:Z(a.selectPlaceholderPrefix,a.invitePage.manager),registerOptions:{required:!d},showOneOffLabel:{label:se.label.noManager,value:"no_manager",position:"top",subtitles:[]}},isDisabled:"readonly",opacity:d?.32:1}),l.jsx(C,{}),l.jsx(Ve,{label:{label:a.invitePage.department,width:v},singleSelectWithoutClearableField:{name:b(t,"department"),defaultValue:{allOptions:d?[]:U,selectedOption:d?void 0:U.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:Z(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),o?null:l.jsxs(Ee,{windowSize:n,children:[a.invitePage.controllerText,x[0]?l.jsxs(Ge,{href:`mailto:${x[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(Je,{children:`${x[0].firstName} ${x[0].lastName}`}),l.jsx(Be,{className:"arrowIcon"})]}):null]})]})]})},qe=()=>a.invitePage.managerTooltipText,Ze=m.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -43,14 +43,14 @@ import{Q as ie,fR as te,g as ge,aw as be,fS as ye,a9 as we,aD as xe,cF as Pe,cE
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
45
  }
46
- `,Qe=m.span``,he={sectionWidth:new T(343,580,726),subtitleSectionWidth:new T(343,580,1200)},He={title:new je("standardMedium","largeMedium")},P="userDetails",yl=({myProfileView:e,isReimbursementDisabled:o,isZeniAccountsDisabled:t,isChargeCardDisabled:u,isTreasuryDisabled:y,isBankingOnlyTenant:p,isCardsOnlyTenant:i,isLiteRoleDisabled:f,onClickMenuIcon:D,onAddressClick:L,updateMyProfileLocalData:h,onCancelClick:w,onGetOtp:n,onResendOtp:r,onSaveClick:z,onVerifyOtp:A,onVerifyOtpSuccess:G})=>{const g=ie(),N=$.useMemo(()=>te(o,t,u,p,i,f,y),[o,t,u,p,i,f,y]),[W,Q]=$.useState(!1),[H,v]=$.useState(!1),I=ge(),J=be(),x=ye(J),S=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:oe(e,x,N,p,i),values:oe(e,x,N,p,i)}),Y=e.myProfileLocalData.dateOfBirth!=null&&e.person.user?.birthday!=null&&!e.myProfileLocalData.dateOfBirth.isSame(e.person.user?.birthday)||e.myProfileLocalData.dateOfBirth!=null&&e.person.user?.birthday==null,d=e.myProfileLocalData.phone!==e.person.user?.phone,U=e.addressData?.addressToCreate!=null&&e.person.address!=null&&!xe(le(e.addressData?.addressToCreate),le(e.person.address))||e.addressData?.addressToCreate!=null&&e.person.address==null,c=Y||d||U,O=Object.keys(S.formState.errors).length===0,R=Pe(S.formState.dirtyFields),V=O&&(R||c),B=async(K,q)=>{if(K!=null){const j={...q},fe={...e.myProfileLocalData,phone:j[P].phone,isPhoneVerified:j[P].phone!==e.person.user?.phone?!1:e.person.user?.isPhoneVerified??!1,dateOfBirth:j[P].dateOfBirth!=null?Fe(j[P].dateOfBirth.toString()):void 0};h(fe)}};$.useEffect(()=>{const K=S.watch((q,{name:j})=>{j!=null&&q!=null&&$e(()=>B(j,q))});return()=>{K.unsubscribe()}});const X=S.handleSubmit(()=>{O&&(e.myProfileLocalData.phone!=null&&(e.myProfileLocalData.isPhoneVerified==null||e.myProfileLocalData.isPhoneVerified===!1)?n(e.myProfileLocalData.phone):z())}),{common:M}=re.getLocalizedStrings();return l.jsxs(Je,{children:[l.jsx(De,{showOtpPopup:W,phoneNumberPopupDescription:"show something",showPhoneNumberPopup:H,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.myProfileLocalData.phone,onVerifyOtp:A,onVerifyOtpSuccess:G,setShowOtpPopup:Q,onResendOtp:r,setShowPhoneNumberPopup:v,onGetOtp:n}),l.jsx(ve,{source:"MyProfileSettingsPage",title:M.settings.title.myProfile,backgroundColor:I.colors.grey4,showBackButton:!1,showMenuIcon:g==="medium-compact"||g==="small",onClickMenuIcon:D}),l.jsxs(Ye,{windowSize:g,children:[l.jsx(Xe,{windowSize:g,children:l.jsx(Ke,{windowSize:g,children:M.settings.infoText.myProfile})}),l.jsx(Se,{...S,children:l.jsxs("form",{id:ae(P),onSubmit:X,children:[l.jsx(el,{windowSize:g,children:l.jsx(ll,{windowSize:g,children:M.settings.subtitle.myProfile})}),l.jsx(Ue,{myProfileView:e,isZeniFinopsRolesUser:x,isDisabled:"readonly",isReimbursementDisabled:o,sectionId:P,isZeniAccountsDisabled:t,isChargeCardDisabled:u,isTreasuryDisabled:y,isBankingOnlyTenant:p,isCardsOnlyTenant:i,isLiteRoleDisabled:f,onAddressClick:L})]})})]}),V?l.jsx(Oe,{style:{zIndex:1,paddingTop:s.sp3,paddingBottom:s.sp3},formId:ae(P),helperStyle:{paddingTop:s.sp0,paddingBottom:s.sp0},primaryBtn:{label:M.footer.save,isLoading:e.updateProfileStatus.fetchState==="In-Progress",style:{minWidth:103}},cancelBtn:{label:M.cancel,onClick:w,shouldResetOnCancel:!0,style:{minWidth:103}}}):null]})},ae=e=>`${e}_form`,Je=m.div`
46
+ `,Je=m.span``,he={sectionWidth:new T(343,580,726),subtitleSectionWidth:new T(343,580,1200)},Ye={title:new je("standardMedium","largeMedium")},P="userDetails",yl=({myProfileView:e,isReimbursementDisabled:o,isZeniAccountsDisabled:t,isChargeCardDisabled:u,isTreasuryDisabled:y,isBankingOnlyTenant:p,isCardsOnlyTenant:i,isLiteRoleDisabled:f,onClickMenuIcon:D,onAddressClick:L,updateMyProfileLocalData:h,onCancelClick:w,onGetOtp:n,onResendOtp:r,onSaveClick:z,onVerifyOtp:A,onVerifyOtpSuccess:G})=>{const g=ie(),N=$.useMemo(()=>te(o,t,u,p,i,f,y),[o,t,u,p,i,f,y]),[M,J]=$.useState(!1),[Y,v]=$.useState(!1),I=ge(),H=be(),x=ye(H),S=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:oe(e,x,N,p,i),values:oe(e,x,N,p,i)}),Q=e.myProfileLocalData.dateOfBirth!=null&&e.person.user?.birthday!=null&&!e.myProfileLocalData.dateOfBirth.isSame(e.person.user?.birthday)||e.myProfileLocalData.dateOfBirth!=null&&e.person.user?.birthday==null,d=e.myProfileLocalData.phone!==e.person.user?.phone,U=e.addressData?.addressToCreate!=null&&e.person.address!=null&&!xe(le(e.addressData?.addressToCreate),le(e.person.address))||e.addressData?.addressToCreate!=null&&e.person.address==null,c=Q||d||U,O=Object.keys(S.formState.errors).length===0,R=Pe(S.formState.dirtyFields),V=O&&(R||c),B=async(X,q)=>{if(X!=null){const j={...q},fe={...e.myProfileLocalData,phone:j[P].phone,isPhoneVerified:j[P].phone!==e.person.user?.phone?!1:e.person.user?.isPhoneVerified??!1,dateOfBirth:j[P].dateOfBirth!=null?Fe(j[P].dateOfBirth.toString()):void 0};h(fe)}};$.useEffect(()=>{const X=S.watch((q,{name:j})=>{j!=null&&q!=null&&$e(()=>B(j,q))});return()=>{X.unsubscribe()}});const K=S.handleSubmit(()=>{O&&(e.myProfileLocalData.phone!=null&&(e.myProfileLocalData.isPhoneVerified==null||e.myProfileLocalData.isPhoneVerified===!1)?n(e.myProfileLocalData.phone):z())}),{common:W}=re.getLocalizedStrings();return l.jsxs(He,{children:[l.jsx(De,{showOtpPopup:M,phoneNumberPopupDescription:"show something",showPhoneNumberPopup:Y,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.myProfileLocalData.phone,onVerifyOtp:A,onVerifyOtpSuccess:G,setShowOtpPopup:J,onResendOtp:r,setShowPhoneNumberPopup:v,onGetOtp:n}),l.jsx(ve,{source:"MyProfileSettingsPage",title:W.settings.title.myProfile,backgroundColor:I.colors.grey4,showBackButton:!1,showMenuIcon:g==="medium-compact"||g==="small",onClickMenuIcon:D}),l.jsxs(Qe,{windowSize:g,children:[l.jsx(Ke,{windowSize:g,children:l.jsx(Xe,{windowSize:g,children:W.settings.infoText.myProfile})}),l.jsx(Se,{...S,children:l.jsxs("form",{id:ae(P),onSubmit:K,children:[l.jsx(el,{windowSize:g,children:l.jsx(ll,{windowSize:g,children:W.settings.subtitle.myProfile})}),l.jsx(Ue,{myProfileView:e,isZeniFinopsRolesUser:x,isDisabled:"readonly",isReimbursementDisabled:o,sectionId:P,isZeniAccountsDisabled:t,isChargeCardDisabled:u,isTreasuryDisabled:y,isBankingOnlyTenant:p,isCardsOnlyTenant:i,isLiteRoleDisabled:f,onAddressClick:L})]})})]}),V?l.jsx(Oe,{style:{zIndex:1,paddingTop:s.sp3,paddingBottom:s.sp3},formId:ae(P),helperStyle:{paddingTop:s.sp0,paddingBottom:s.sp0},primaryBtn:{label:W.footer.save,isLoading:e.updateProfileStatus.fetchState==="In-Progress",style:{minWidth:103}},cancelBtn:{label:W.cancel,onClick:w,shouldResetOnCancel:!0,style:{minWidth:103}}}):null]})},ae=e=>`${e}_form`,He=m.div`
47
47
  display: flex;
48
48
  height: 100vh;
49
49
  width: 100%;
50
50
  flex-direction: column;
51
51
  row-gap: ${s.sp3};
52
52
  background-color: ${e=>e.theme.colors.grey4};
53
- `,Ye=m.div`
53
+ `,Qe=m.div`
54
54
  display: flex;
55
55
  width: 100%;
56
56
  margin: auto;
@@ -59,13 +59,13 @@ import{Q as ie,fR as te,g as ge,aw as be,fS as ye,a9 as we,aD as xe,cF as Pe,cE
59
59
  overflow-y: auto;
60
60
  flex-direction: column;
61
61
  align-items: center;
62
- `,Xe=m(me)`
62
+ `,Ke=m(me)`
63
63
  display: flex;
64
64
  justify-content: center;
65
65
  align-items: center;
66
66
  width: ${e=>he.subtitleSectionWidth.valuePx(e.windowSize)};
67
67
  margin-bottom: ${s.sp5};
68
- `,Ke=m.div`
68
+ `,Xe=m.div`
69
69
  display: flex;
70
70
  align-items: center;
71
71
 
@@ -81,5 +81,5 @@ import{Q as ie,fR as te,g as ge,aw as be,fS as ye,a9 as we,aD as xe,cF as Pe,cE
81
81
  align-items: center;
82
82
 
83
83
  color: ${e=>e.theme.colors.primary};
84
- ${e=>`${He.title.style(e.windowSize)}`};
84
+ ${e=>`${Ye.title.style(e.windowSize)}`};
85
85
  `,oe=(e,o,t,u,y)=>{const{classList:p,person:i,managersList:f,manager:D,department:L,myProfileLocalData:h}=e,w=pe(i.userRole!=null?i.userRole.userRoles:[]),n=p.map(r=>({label:r.fullyQualifiedAccountingClassName,value:r.classId,hoverText:r.accountingClassNumber}));return{[P]:{name:{firstName:i.user?.firstName??"",lastName:i.user?.lastName??""},email:i.user?.email??"",role:o?{allOptions:ne.roles,selectedOptions:i.userRole?.userRoles??[]}:void 0,nonZeniRole:o?void 0:{userRole:{selectedRole:ue(i.userRole?.userRoles??[]),allRootRole:ce(u,y)},productsByUserRole:de(i.userRole?.userRoles??[],t)},manager:{allUsers:w?[]:f,selectedUser:sl(w,D)},department:{allOptions:w?[]:n,selectedOption:w?void 0:n.find(r=>r.value===L?.classId)},dateOfBirth:h.dateOfBirth?.toDate(),phone:h.phone,syncToken:h?.syncToken,isPhoneVerified:h?.isPhoneVerified,otpChallenge:h?.otpChallenge,mailingAddress:e.addressData?.addressToCreate}}},sl=(e,o)=>{if(!e)return o!=null?o.userId:"no_manager"};export{yl as default,ae as uniqueFormName};