@zeniai/web-cockpit-ui 1.14.84-qa → 1.14.85-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 (221) hide show
  1. package/dist/assets/{ACHDetailsPage-BXgsd50c-RayuRG_c.js → ACHDetailsPage-Dzk7YdoJ-Cuct0t6u.js} +2 -2
  2. package/dist/assets/{AIPerformancePage-BdDTidCL-C4KAZN5D.js → AIPerformancePage-DBCH9dJi-CYibQjrX.js} +19 -19
  3. package/dist/assets/{AccountInfoPage-w0STaK9a-DtmPJmpY.js → AccountInfoPage-Mzw-22d_-Df5O2T5Z.js} +2 -2
  4. package/dist/assets/{AccountInfoPageContent-CsuUhHXU-BIJUOaA1.js → AccountInfoPageContent-Bjp81drF-Cqcv4hk8.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-iYb31wv7-BVoKu5K7.js → AccountLockedInfoModal-Zg2PAu1o-svgY2-MJ.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DmkLTIkW-Ctf-W4YD.js → AccountReconDetailsDrawerPage-BTkrwp4Q-CWHV1qM1.js} +9 -9
  7. package/dist/assets/{AccountRow-BObEIy6l-JC0yFhHa.js → AccountRow-CIsbwvGp-J3oMxL3b.js} +10 -10
  8. package/dist/assets/{AccountsPromoCardStack-B8gJFsYh-DI-Y_-Io.js → AccountsPromoCardStack-DrElZh-K-CUoBlW42.js} +13 -13
  9. package/dist/assets/{AddAddressForCardDrawer-vOgzMYWA-Cx4gewRv.js → AddAddressForCardDrawer-D5Kqxx0c-CDAVfdUf.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BhphXgem-BhW_6xuA.js → AddToWalletPage-B68eBsAU-Dnsjp7Oq.js} +5 -5
  11. package/dist/assets/{AgingReportsPage-DEgupWct-CpVx3Q04.js → AgingReportsPage-BlQHxYjL-Cr6yxtF3.js} +4 -4
  12. package/dist/assets/{AllUserItems-S2DAZpO6-kxAusdwm.js → AllUserItems-DsECKAGD-PW2UBBng.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CvDD8-s7-DGquoD-J.js → ApAgingDetailPage-Bg0ZrGXm-CfXEq_5-.js} +2 -2
  14. package/dist/assets/{AppBasePage-C4z5I-xG-CtjY6TFp.js → AppBasePage-tPaBc2ei-WGoBSx1D.js} +7 -7
  15. package/dist/assets/{AppDrawerContent-Dka5HlPs-Bkb__PnR.js → AppDrawerContent-Cx4zDKi_-DO8upp4U.js} +2 -2
  16. package/dist/assets/ApprovalRulesSettingsPage-BcRZvSQH-BuukHz1z.js +47 -0
  17. package/dist/assets/{ArAgingChart-CJ7XKU9h-LfROBqc3.js → ArAgingChart-RdGwOP5k-DaN2WJzI.js} +1 -1
  18. package/dist/assets/ArAgingDetailPage-Bh7NAVZf-DauNApby.js +46 -0
  19. package/dist/assets/{AttachmentView-Dg6PizI7-hamHr9X2.js → AttachmentView-ClnTjRCg-CXQ9ySez.js} +6 -6
  20. package/dist/assets/{BankAccountSection-Chay7X-G-Z28HgbT-.js → BankAccountSection-D3sQOQ-c-t8HGw1J0.js} +4 -4
  21. package/dist/assets/{BankAccountWarningSection-CSChi1lw-BsQ6oo-h.js → BankAccountWarningSection-CxLBPI_P-CQJWoDnI.js} +9 -9
  22. package/dist/assets/{BankConnectionsSettingsPage-DJV7q1Kp-V95L2p6f.js → BankConnectionsSettingsPage-Bsix2nzV-BvUIdsy8.js} +6 -6
  23. package/dist/assets/{BillDetailPage-DM06uZnD-F8ZzZkyq.js → BillDetailPage-B52FZrvM-BFE_NGrS.js} +10 -10
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-MsPIxgUt-Sv6jZgUx.js → BillPayApprovalRuleDetailPage-CswUbxdi-Cprf5Nyo.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-BhDdco2x-CnuVsiEs.js → BillPayApprovalRulesPage-B-8sIYjs-D2BSNMf9.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-Dy-opG76-CjecywkF.js → BillPayPromoPage-B6jW_8rf-YW9uzBg5.js} +5 -5
  27. package/dist/assets/{BillPaySetUpPage-DUvwWlaD-6bcs0JvT.js → BillPaySetUpPage-Rqxy02BM-CEkcaNcr.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-wj_sIJgc-alf7Yr1G.js → BillingSettingsPage-CPs5zrIc-DODFNfJu.js} +4 -4
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DbC84oxR-D86-edxD.js → BillsBulkReviewDrawerPage-DLQsxJi8-DtW4kiE9.js} +1 -1
  30. package/dist/assets/{BoxItem-CdqDzfZN-C4lBJFfu.js → BoxItem-CP9cPZQd-BW2Fv6YZ.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-BMtHNNcG-C4macZAB.js → BusinessVerificationPage-Cayj-kYe-DIQRuHb0.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-lh7fQJis-DxcsJYtX.js → CardNumberSubText-FdCtSIHd-Cer2LzOo.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-KRbsYA09-B4B21rSt.js → CashbackDetailPage-CZICE37r-CchxXOB0.js} +11 -11
  34. package/dist/assets/{ChargeCardDetailPage--WP6KTfb-DBuFHobS.js → ChargeCardDetailPage-Be2X4Rx8-DkQXGv5E.js} +27 -27
  35. package/dist/assets/{ChargeCardListPage-knAPmob6-DSbwddj8.js → ChargeCardListPage-DzfBzM8o-BpS6GwxX.js} +13 -13
  36. package/dist/assets/{ChargeCardListTable-DsfnKX3P-Fh1-EuqB.js → ChargeCardListTable-Bc-4mcCz-DGGclb69.js} +44 -44
  37. package/dist/assets/{ChargeCardPromoPage-C9610LtW-4EBblZoV.js → ChargeCardPromoPage-D_C7hXGy-jKodLkTT.js} +7 -7
  38. package/dist/assets/{ChargeCardSetupPage-Cy4JhjJW-BY6uHVaB.js → ChargeCardSetupPage-BwNi9-pq-C4dK5zJO.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-C7uS1jEO-IexGEsRS.js → ChargeCardStatementsPage-Bf04MOoK-k-sWDpeT.js} +8 -8
  40. package/dist/assets/{CheckDepositDrawerPage-TfiJwtqN-BjxF98AB.js → CheckDepositDrawerPage-B-A9fkGZ-DZFZ2JbI.js} +7 -7
  41. package/dist/assets/{CollapsableReportTable-NYu8Bq-g-CWsTIw0C.js → CollapsableReportTable-DdMyzUD0-BAoVL7wM.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-CiVliExW-CcW3grWl.js → CompanyOfficerDetailsSection-kRtuUd2c-Cm23V4kL.js} +18 -18
  43. package/dist/assets/{CompanyPassportCard-8zvCdmxt-BRhXivWU.js → CompanyPassportCard-KhSJJMcy-Cll554T1.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-AS4N7oT2-DX218yxv.js → CompanyPassportPage--ckOuqML-CPrNkQDu.js} +10 -10
  45. package/dist/assets/{CompleteProfile-Dj080UdJ-CiN9P0TB.js → CompleteProfile-D8egRg8d-QRh3PECw.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-DcCUSSaX-FzUSe03V.js → ConfettiBurst-CvRhNEAY-OaJ4gLIH.js} +1 -1
  47. package/dist/assets/CreateOrEditVendorPage-DrZh60Xs-DORgL7Gm.js +281 -0
  48. package/dist/assets/{CreditCardPaymentDrawerPage-BKvqMwnt-ViVbJgx9.js → CreditCardPaymentDrawerPage-B7ssB1GM-DOObGC22.js} +8 -8
  49. package/dist/assets/{CurrencySelectField-ksMvik33-X-oQzLxm.js → CurrencySelectField-BXp2mtZ7-BZ1r7qNY.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-DfT_gkE4-Cu8egbhC.js → CustomerOnboardingActivationPage-BX7STQsk-ClpFwMrN.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-BkPTeV9_-YlZ2rpks.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DfOtXgss-D9v3243e.js → CustomerOnboardingDetailPageSkeleton-C5tSpmSB-5KFMWV1l.js} +5 -5
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-61UorFvn-CADfl9k6.js → CustomerOnboardingNoStepsPage-CQUQlLbj-llUCphSN.js} +4 -4
  54. package/dist/assets/CustomerOnboardingPage-D0p8khnC-C1IdwvBx.js +107 -0
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-CTowHB2X-AwsQP1ww.js → CustomerOnboardingProductSuitePage-BRk3TA9f-n37UhYFK.js} +1 -1
  56. package/dist/assets/{Dashboard-2RpETnqH-AvqFex-D.js → Dashboard-CBOma7mv-B9j8ewTM.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-DRRWpGiJ-BZ9L9iDT.js → DashboardReportPage-DRYx3AOy-D6rkizKp.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-0cCKM3E9-BNIN3OuI.js → DashboardSidebarBackgroundAnimation-DYsp7Imm-CsY2ImuX.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-DjbheijR-CnFza0I7.js → DepositAccTransactionItem-BQU7vZKr-BOGssvEh.js} +1 -1
  60. package/dist/assets/DepositAccTransactionListPage-DQDt_2kb-D0tTF08R.js +66 -0
  61. package/dist/assets/{DomesticWireDetailsPage-DuKrVIAL-CvBecXsA.js → DomesticWireDetailsPage-B0KbC9m8-DSgkPJjx.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-f6SOW8iK-wYT98R7A.js → DownloadOverlay-D2vm9EYI-1UU-2gMF.js} +18 -18
  63. package/dist/assets/{DrawerPage-BkIQ6mLJ-B_5frYMF.js → DrawerPage-DHIaNEwf-DBdDE0YZ.js} +7 -7
  64. package/dist/assets/{EditPeoplePage-lZcM4Zfw-DUKuVkhQ.js → EditPeoplePage-B4OaKX89-CxOdlVup.js} +2 -2
  65. package/dist/assets/{EditReimbursementDetailPage-WO3U-vVY-GokOyVTd.js → EditReimbursementDetailPage-C_JOnUnR-BaFHONcZ.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-AP27Niqu-kfqH8lU7.js → EntityDetailPage-DGq_Sr4I-DbAOqf4w.js} +2 -2
  67. package/dist/assets/{EntitySummarySection-B6khdAJg-DnNjy2K7.js → EntitySummarySection-CAKPRhm9-DT4p2FkX.js} +10 -10
  68. package/dist/assets/{ExpenseAutomationOverviewPage-CcTGou9x-8xIF0tTx.js → ExpenseAutomationOverviewPage-c4H81maP-DA77wvgo.js} +9 -9
  69. package/dist/assets/{ExpenseAutomationPage-DEleaYKs-DYnoea9F.js → ExpenseAutomationPage-DoI_XKeY-6CiggPiF.js} +160 -160
  70. package/dist/assets/{ExpressPayPage-CLYzefaM-Dk6YSFR2.js → ExpressPayPage-CjhXfVeX-BOKCYwCy.js} +12 -12
  71. package/dist/assets/{FeaturePreviewPage-T78A34---CWpen7rV.js → FeaturePreviewPage-CwrW_5lN-DmGMYSsi.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-B_mTbqHf-vEAOrw2N.js → FollowStepsSection-DwVibYwI-v9hEOCV9.js} +6 -6
  73. package/dist/assets/{GlobalReviewListPage-XfxDC9vP-BoYHPWF9.js → GlobalReviewListPage-JUSXRKq4-DVN5r0h7.js} +45 -45
  74. package/dist/assets/{InformationCardStack-Buibt8cT-BAqP85Lc.js → InformationCardStack-CK1Ztw1n-C4th25N4.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-Cj5iIm_T-C9OIEU2I.js → InsightsCardStack-BKAezFjz-Dc6HzMco.js} +2 -2
  76. package/dist/assets/{InsightsSection-DuPqQb5Z-B1_CJ6S1.js → InsightsSection-Bauri5yR-CKFEflqf.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-VZDSLMHK-7HkNgQus.js → IntegrationsSettingsPage-CnRe_xH3-UkqXGmer.js} +9 -9
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-BUa1svL--D_p9pN5U.js → InternationalWireSwiftDetailsPage-BJkaLuNw-77-AaJID.js} +10 -10
  79. package/dist/assets/{InternationalWireVerificationPage-C1qKNhqJ-UJH47599.js → InternationalWireVerificationPage-pPH2bNM7-BKQZ3C2I.js} +1 -1
  80. package/dist/assets/{InviteFormPage-GPXu2hLn-nkRrWKH8.js → InviteFormPage-CsL2egNG-DnYkx7hA.js} +1 -1
  81. package/dist/assets/{InvitePageListView-FEFeEFZJ-DOB91LiD.js → InvitePageListView-rt3KC_c5-JZPrjnvG.js} +33 -33
  82. package/dist/assets/{InvitePeoplePage-C6E594rf-BfTOrmrG.js → InvitePeoplePage-Cdr0dhtJ-QaKpYzAx.js} +4 -4
  83. package/dist/assets/{InvoiceUploadSection-uvB-_dyl-ZtXwm7KR.js → InvoiceUploadSection-NVvtQvoL-B8iP_R_q.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-DSPlu840-DkzSOMVm.js → IssueChargeCardPage-D5KenKnm-I0qHogFn.js} +13 -13
  85. package/dist/assets/{LabeledAddressValue-CzDn9ZY4-BvvJC2-h.js → LabeledAddressValue-Bwkw-Ez_-QZs1bcqC.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-C_8kPzjy-B8qV6Urv.js → LabeledAddressValueField-BgkRIdwJ-D68tBsFt.js} +2 -2
  87. package/dist/assets/{LabeledControlledCheckBoxField-LwfkGeF--C-sgFNDj.js → LabeledControlledCheckBoxField-RzyuT5ZX-BsFbzCeg.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-sEf-9BOE-D5r4inyT.js → LabeledCreatableSingleSelectField-BP_p62Nk-BGV5p2pd.js} +2 -2
  89. package/dist/assets/{LabeledDocumentField-rGzXpShn-ljpFtvvt.js → LabeledDocumentField-DGncRe-Q-BM_MF9Yy.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-CIQk7Jhu-DnZPHcAA.js → LabeledDropDownFormattedTextField-DWUVcIR8-DmvGwPXC.js} +7 -7
  91. package/dist/assets/{LabeledText-Dc-697nR-64mK5bXs.js → LabeledText-BzD_-lgI-Br_7nwt2.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B0D7IWfA-BEObQALW.js → LabeledUserSingleSelectWithSubtitlesField-D3kjxF9V-C7cFlAui.js} +10 -10
  93. package/dist/assets/{LabeledZeniRolesDropDownField-BO8f1yqV-DQ1p6Tiz.js → LabeledZeniRolesDropDownField-BlmybTGB-C8vefnXI.js} +25 -25
  94. package/dist/assets/{LinkJETransactionPage-DDSo8zJn-DQmP81m2.js → LinkJETransactionPage-CUnfHHeT-BQ0Gfxk0.js} +9 -9
  95. package/dist/assets/{LockCardPage-CvZcUUc8-CdhzDjL-.js → LockCardPage-2jOFCVkW-Cd-7Cld7.js} +19 -19
  96. package/dist/assets/{LowBalancePopup-DJQCz0Ed-CIetm9UK.js → LowBalancePopup-Du0kX_mJ-B-0Hf7BW.js} +2 -2
  97. package/dist/assets/{MagicLinkACHDetailsPage-CEtaoWk8-wTULz4sv.js → MagicLinkACHDetailsPage-CkbNMu7Z-B4drRgdG.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-qdgMQR3_-uY1axbfX.js → MagicLinkDomesticWireDetailsPage-D0XBf5_X-D4YEFAaf.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DNwtPZ-u-B36fru_I.js → MagicLinkInternationalWireDetailsPage-Bl93T-SF-DbfMD1IO.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-60TBVrSw-C3Bb9puu.js → MagicLinkSuccessPage-C26glp7T-BbSy9weN.js} +2 -2
  101. package/dist/assets/{MagicLinkTitleSection-D2fXbnDV-CRSogR9y.js → MagicLinkTitleSection-B4nxLzap-CM0lHGYk.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-C6cVooC3-XQiKKaRJ.js → MailingDetailsSection-Cou_W8JF-D0QplON-.js} +1 -1
  103. package/dist/assets/Menu-CdF7UWPF-DT1TTbqS.js +17 -0
  104. package/dist/assets/{MyBankConnectionsSettingsPage-D2EPH9WZ-Dv-ZkwPt.js → MyBankConnectionsSettingsPage-BAjjxA98-P3jZBDkg.js} +5 -5
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-Bidsd2bk-BHUPwj-r.js → MyPendingActivationChargeCardListPage-DsRGcA8F-BiAy3gfH.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-BH2ZVQTk-DkHMfeMP.js → MyProfileSettingsPage-y-iZgUqL-Cmq9Fbc9.js} +6 -6
  107. package/dist/assets/{NavBarWithPicker-Cg2TZjBi-BbjcZh07.js → NavBarWithPicker-ph4heJns-CH6-ZGCk.js} +4 -4
  108. package/dist/assets/{NavigationArrow-CYserS2B-BkLVNIMe.js → NavigationArrow-BojAUI53-DuIW3OB3.js} +1 -1
  109. package/dist/assets/{NavigationDots-CT_oO_7z-ClcpkikJ.js → NavigationDots-Bf66leAL-DWvE0Tr9.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-D3MQU5Sh-JwYtYtso.js → NewGlobalMerchantPage-D43XJhIa-CGBQEE1e.js} +5 -5
  111. package/dist/assets/{NoDataChart-BItQZAQ9-S55_3TEG.js → NoDataChart-6R5pxJVo-CWkI_hu9.js} +1 -1
  112. package/dist/assets/{NoDataTable-R8OCdB2c-D6dlg8-F.js → NoDataTable-CNx0KCKn-Yxxqzyz6.js} +1 -1
  113. package/dist/assets/{NotFoundPage-DLHYdRdN-B8g0aKra.js → NotFoundPage-CE9BW_aV-BJq9qwHQ.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-CIwxb6c9-BMHqzXB5.js → NotificationSettingsPage-etN6HEwO-CPu8hoID.js} +12 -12
  115. package/dist/assets/{NotificationsListConfig-DSgUS0hE-Blbvq0lf.js → NotificationsListConfig-15ae4nik-CPKCivw4.js} +1 -1
  116. package/dist/assets/{NotificationsPage-W5ZhprRe-lZrgymvK.js → NotificationsPage-BwbxqKxd-CJ_w7jhJ.js} +23 -23
  117. package/dist/assets/{OpExByVendorPage-DIi58wXa-C4-j8w-9.js → OpExByVendorPage-FR3oloXp-BIjz5fFP.js} +24 -24
  118. package/dist/assets/{OverlayContainerPage-BsY9_22w-Dt24t_bm.js → OverlayContainerPage-CrZuT2Jj-BFQOGYGF.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-BvMxFrqo-ze7p6tuk.js → PandLWithForecastPage-Bx3ZyA3l-DeFHP0VX.js} +7 -7
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-kUAm-v-A-Df5ftzDu.js → PaymentAccountSetupBillingAddressSection-R1O20DhA-C65ZHllw.js} +6 -6
  121. package/dist/assets/{PeoplePage-CtnWc0LE-DMLbifxJ.js → PeoplePage-B3HRaJWz-DZIUGp3j.js} +15 -15
  122. package/dist/assets/{ProductsCarousel-n0ZNrr7--Cmsv1zu3.js → ProductsCarousel-Dn4vuZwM-XZC4Gi6v.js} +4 -4
  123. package/dist/assets/{PromoBaseCards-CeS0HoCZ-3hfiayC0.js → PromoBaseCards-BKo4wO-U-UIjavA07.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-BxSTc99Z-CD6GLd65.js → QBOConnectionDialog-CPq0aUew-DHwaU-lE.js} +5 -5
  125. package/dist/assets/{QBOSetupSection-FrO9rgct-C_PUqy37.js → QBOSetupSection-BjImTh7O-Cf73veGI.js} +11 -11
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BjtdatXs-CVZb_80f.js → ReimbursementApprovalRuleDetailPage-DD1HwLO0-DBTNMi4-.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-B0_FgpJf-Ct41_HUm.js → ReimbursementApprovalRulesPage-DHQHS0eD-l5f43j6l.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-BWhPxHY--BzwLeZBB.js → ReimbursementDetailPage-DiMXs0_o-C-Gngkni.js} +7 -7
  129. package/dist/assets/{ReimbursementPromoPage-CFG0yxOE-C35ZkWSa.js → ReimbursementPromoPage-BinqJ3lR-Dkzvoe2N.js} +5 -5
  130. package/dist/assets/{ReimbursementSetUpPage-BmUdLEa9-DPiaOwzY.js → ReimbursementSetUpPage-BD6B-0CO-Dhg43o5f.js} +17 -17
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CkJqhXEf-uKjpTOO-.js → ReimbursementsBulkReviewDrawerPage-DK-nCoay-BC-GO3CD.js} +1 -1
  132. package/dist/assets/{ReloadCard-CNKwqjPJ-YnH5lD2A.js → ReloadCard-Bt8qxAUx-C0FiLSzB.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-B0DXgLgJ-D7Qg6jRX.js → ReportTableViewSelector-Dv7BwM1q-DZ-FOl5q.js} +6 -6
  134. package/dist/assets/{ReportsPage-C5iOQU55-CNSsMo53.js → ReportsPage-BOY8oCAr-BwR5MVzD.js} +5 -5
  135. package/dist/assets/{RevenueChart-C2CMFAQ--9i0f6zk_.js → RevenueChart-D_yexiAR-D3rVopXP.js} +16 -16
  136. package/dist/assets/{ReviewDetailsPage-5vOZ0rd7-jxMwmXxW.js → ReviewDetailsPage-Czrlb8BL-DTI9py46.js} +14 -14
  137. package/dist/assets/{ReviewOverlay-BAG_6iyV-DVCub6Uq.js → ReviewOverlay-BHUy3fWf-DhycJa32.js} +10 -10
  138. package/dist/assets/{RoleWithToolTip-GUYLjJwW-r9JBfRcl.js → RoleWithToolTip-BxI2nAro-CHrHR5C8.js} +4 -4
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-sPjMfOtt-OtvS7n4m.js → ScheduleDetailsFixedAssetsPage-DsNhFGrc-C7120rgv.js} +8 -8
  140. package/dist/assets/{ScheduleDetailsPage-DI4C0o6b-BvXrDAyO.js → ScheduleDetailsPage-Dy2poGsp-B72mEOku.js} +4 -4
  141. package/dist/assets/{ScheduleSequenceTable-DhXwtG-x-BxYowFsO.js → ScheduleSequenceTable-Bv1feMZc-DEmwzIZ-.js} +47 -47
  142. package/dist/assets/{ScreenRoutes-DVcMzFrA.js → ScreenRoutes-aw0OxNGj.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-DOavnCkG-CzCWMcok.js → SetUpAccountSection-SSkLhU2W-Bdvkba2v.js} +14 -14
  144. package/dist/assets/{SignIn-DqrG5nEJ-DIR1_BNj.js → SignIn-Chuf9_2E-Dg9U6pWl.js} +10 -10
  145. package/dist/assets/{SignInScreen-BvkcJf23.js → SignInScreen-heeiIDQc.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-DHY_hZQm-BPwTUzGf.js → SpendManagementListViewPage-BpCZzQ7I-CeMMhyUX.js} +8 -8
  147. package/dist/assets/{SpendManagementPerTabPage-CoKTIQ2b-B3UZW97j.js → SpendManagementPerTabPage-DbXTM50B-DF3kTGNr.js} +32 -32
  148. package/dist/assets/{SpendManagementSection-UkTY6qX0-BIM5797j.js → SpendManagementSection-BMU1BTEo-BBFzWPwD.js} +12 -12
  149. package/dist/assets/{StatementItem-Bx6mxa3U-B9qGz6O-.js → StatementItem-qLZEMVrM-C5sUBNaG.js} +5 -5
  150. package/dist/assets/{StatementsPage-ULjFE30P-CBDZIU10.js → StatementsPage-B3qY1D4K-C1V6A2Qk.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-DlBY_FC1-BZi0rJQ6.js → StatusSwitcher-xQ_AW7ze-DWj9eTCE.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-DjEElTWE-BWM1ddey.js → SubTabSwitcher-w8vLc-35-BeFKfmS8.js} +1 -1
  153. package/dist/assets/{SummaryCard-BNESDUnN-B_OD9ZQR.js → SummaryCard-CTq_yqTg-Bw75z4He.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-BFF3ATPV-CJl96IgY.js → TaskManagementPage-keXFNmIv-BEMVU9l6.js} +33 -33
  155. package/dist/assets/{TimeRangeSwitcher-xILz-EO6-CF6h2u8x.js → TimeRangeSwitcher-C4Tph63B-D9xSXRlF.js} +2 -2
  156. package/dist/assets/{TimeframeSwitcher-CZhQm7rH-LhMnQPla.js → TimeframeSwitcher-LLgotbh8-X4qFRStD.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-CduB3ZjN-Bc8snpDR.js → TimeframeSwitcherWithToggle-Cw3a9d0I-BlbsDDpn.js} +1 -1
  158. package/dist/assets/{TopExCard-C_HWsAL1-BNvPE6hk.js → TopExCard-Dj0wtF6g-CdD53hxs.js} +3 -3
  159. package/dist/assets/{TopExDetailPage-BEKo6juU-BpuXflks.js → TopExDetailPage-JutaMmtR-koGwO2ev.js} +5 -5
  160. package/dist/assets/{TransactionDetailPage-Bzgtmi3U-CUNsBAnj.js → TransactionDetailPage-BdFHqSCv-Bc3ggi0n.js} +30 -30
  161. package/dist/assets/{TransactionList-Dw78Q0Sx-Dd3Ecl2O.js → TransactionList-C85wyFeI-C41EirGp.js} +4 -4
  162. package/dist/assets/{TransactionListBig-BofakL17-CpCaYWGi.js → TransactionListBig-DPev2-Mm-BpW_w096.js} +6 -6
  163. package/dist/assets/{TransactionListPage-tpOg0ax5-DKkGWPvy.js → TransactionListPage-D127NU4T-BPyAfJzu.js} +4 -4
  164. package/dist/assets/{TransactionVendorDetailPage-BqIcXz6b-DFVXpfQo.js → TransactionVendorDetailPage-BJ1YnPif-SJ1gb7FN.js} +5 -5
  165. package/dist/assets/{TransferDrawerPage-DnnZBOyK-DHPnGpDx.js → TransferDrawerPage-DcrfmXH1-DiL_C6V9.js} +21 -21
  166. package/dist/assets/{TreasuryOverviewPage-C9ROzNHl-dAyZi1PP.js → TreasuryOverviewPage-D-Zw4Npq-K2RbtXZZ.js} +22 -22
  167. package/dist/assets/{TreasuryPromoPage--j_2YjQn-DrWu-589.js → TreasuryPromoPage-BhBPhhbb-DM-0mrYZ.js} +131 -131
  168. package/dist/assets/{TreasuryStatementsPage-BLrceDQm-B1HbugZ0.js → TreasuryStatementsPage-Dxjg_QN7-C_fsR-Na.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-BoqkgdLm-B7t38h3i.js → TreasuryTaxLetterPage-Dm552RDZ-BLLWDMsm.js} +7 -7
  170. package/dist/assets/{TrendChart-KnFi8NXQ-BLbRutmX.js → TrendChart-_c8z5Kxm-DarAZz3o.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-C_T0I9xe-B2RFC6B8.js → TrendWithTransactions-B2rde1MW-D1twJg_e.js} +4 -4
  172. package/dist/assets/{UncategorizedAccountsMappingPage-DOuzy2aS-Cjy9zZxx.js → UncategorizedAccountsMappingPage-77nkQFar-Bn3Ibb9A.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-DxhlNHvt-BFh73dHR.js → UnitIntegrationPage-3_YMV_f4-yfDaiCvi.js} +4 -4
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-BAvSyhDW-D9eq74iT.js → UploadAdditionalDocumentOverlay-D72fkcgM-BkIuCEEz.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-BFjVFON8-D578XUKc.js → Vendor2FAPopup-DLbGF5_q-DmCvA6XI.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-8BG5DD-0-DML5nDiV.js → VendorACHDetailsPage-CaNQylEA-CMyzxyGW.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-C16CrNJo-lfwKJzFE.js → VendorDetailPage-DqdH4UMj-tM-8a-UX.js} +18 -18
  178. package/dist/assets/{VendorDomesticWireDetailsPage-DXhugXZa-D2deiUxT.js → VendorDomesticWireDetailsPage-9pyV_r_g-CREdXXXG.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-2QPpdbuN-DmV9iFrX.js → VendorFiling1099EditablePage-nb9_V73Z-CwrDCXoq.js} +32 -32
  180. package/dist/assets/{VendorFirstReviewPage-DLshEh_s-29QEqBR3.js → VendorFirstReviewPage-C2RjaA8x-C3EURG-_.js} +58 -58
  181. package/dist/assets/{VendorInternationalWireDetailsPage-_WoNgw66-RXvmQY2U.js → VendorInternationalWireDetailsPage-VOAgofls-DxNfQmbI.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dyt1ZPOh-Dvv7mFPN.js → VendorInternationalWireSwiftDetailsPage-CcRuLO-_-CRRJCsCk.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-Dxq0YSgP-CQ3Vw-hX.js → VendorsAccountsSection-RzVUJ8IV-CIdzas-R.js} +14 -14
  184. package/dist/assets/{VerifyDevice-DEwEqoHA-o-B1EyGV.js → VerifyDevice-DUxQHfLf-DyoufOtx.js} +1 -1
  185. package/dist/assets/{VideoPlayer-_1Msrww9-DzCjuwYG.js → VideoPlayer-BxuhQQfM-CSaCo4fi.js} +1 -1
  186. package/dist/assets/{VideoPopup-BzQ_Dl9b-CPjeGrGA.js → VideoPopup-DdtmLcPB-9kSPQrRF.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-CMBST3p1-By1WKuQW.js → WarningsDrawerPage-DC5ophK0-B9MWpL_5.js} +5 -5
  188. package/dist/assets/{ZeniAccountDetailPage-DVLYYC-q-C2IM3BG5.js → ZeniAccountDetailPage-C1KKeyYC-AmZ_-UbH.js} +14 -14
  189. package/dist/assets/{ZeniAccountListViewPage-BHkoMOx5--XEIxzf-.js → ZeniAccountListViewPage-Bw5_2Q-c-Zl0NVbWL.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-CCFzNOcx-BTbwqUAG.js → ZeniAccountNavBarPieces-DlfwFtOB-BhG7WDho.js} +3 -3
  191. package/dist/assets/{ZeniAccountPromoPage-C3Rl-hWL-Dxr3qnyn.js → ZeniAccountPromoPage-B8cXf7Ni-BGYao9Jv.js} +13 -13
  192. package/dist/assets/{ZeniAccountSetupPage-Bf1OOF0Q-CVWU_nTY.js → ZeniAccountSetupPage-Cae0pB-b-Blr8FOsP.js} +3 -3
  193. package/dist/assets/{ZeniCopyright-CdqD8vO4-GOUGz5oO.js → ZeniCopyright-gTS4uZlF-BTYFdkhV.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-BTudpQjV-C-ERY6Ys.js → ZeniTransferAmountSlider-17kY7kNO-DEs9IrPm.js} +1 -1
  195. package/dist/assets/{analyticsHelper-_u1yj9ge-CQN7AQjp.js → analyticsHelper-DXVBA0aW-q_4bVB8v.js} +1 -1
  196. package/dist/assets/analyticsHelper-kRUwHHg6.js +1 -0
  197. package/dist/assets/{chartTypes-vQ8GTDEq-Bzji-J7a.js → chartTypes-BXBHlosV-DY5SgOjH.js} +1 -1
  198. package/dist/assets/{commonDimensions-znFHURNY-BYw9nu0T.js → commonDimensions-Bm2CSHrw-S9XM9nhL.js} +1 -1
  199. package/dist/assets/{detailCommon-DmLhlrjU-QJ3x5gZG.js → detailCommon-VW4xegQy-1DhxNuRe.js} +3 -3
  200. package/dist/assets/{downloadPdf-CCUPfpyu-CLDRZEaM.js → downloadPdf-DUAAPKqC-BN9D0Y0M.js} +1 -1
  201. package/dist/assets/{index-DdsM_njZ.js → index-BS0RW8dr.js} +3698 -3698
  202. package/dist/assets/{mapLoadingInProgressToTreeNode-Cw74bTou-DytzWuKd.js → mapLoadingInProgressToTreeNode-D5WZ1WGx-B7azUcXb.js} +1 -1
  203. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CWFxnMpB-CaiEsiC-.js → mapSectionWithAcOnlyToTreeNode-BxzLwMCb-DSGmyD1M.js} +1 -1
  204. package/dist/assets/{mapSpacerToTreeNode-JUrBuZAz-CZWi6rgT.js → mapSpacerToTreeNode-CScyNZ9s-wlC4VP1v.js} +1 -1
  205. package/dist/assets/{mapTimeframeBalancesToTreeNode-B2iYfeF3-DPdNoTaa.js → mapTimeframeBalancesToTreeNode-Caj8eqsL-Kzqcpw75.js} +1 -1
  206. package/dist/assets/{mapTimeframeBalancesToTreeNode-BbQHYZk7-BsTucrUk.js → mapTimeframeBalancesToTreeNode-CdVqeC27-Dxhi6BEZ.js} +1 -1
  207. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BeqGSN9x-CRBIGAA9.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CUFXYz6j-YXXdz_Ql.js} +1 -1
  208. package/dist/assets/{toCOABalancesWithID-DeZfEmbT-BYnyj8Vs.js → toCOABalancesWithID-CqzWoD-C-D32cGljj.js} +1 -1
  209. package/dist/assets/{toChartData-KibzV7pa-BIBW1wkQ.js → toChartData-X878W8tN-DZEeyq4i.js} +1 -1
  210. package/dist/assets/{uploadAttachment-U9nX0Ka9-ByggkyFe.js → uploadAttachment-DNKgJox4-CH4FqFzC.js} +13 -13
  211. package/dist/assets/{uploadReceipts-CDPM7zcb-Bl8TSXaa.js → uploadReceipts-Bkf_PaOH-DrwBt5Yx.js} +1 -1
  212. package/dist/index.html +1 -1
  213. package/package.json +3 -3
  214. package/dist/assets/ApprovalRulesSettingsPage-BOJE5Fb_-CtBvorfk.js +0 -47
  215. package/dist/assets/ArAgingDetailPage-ZjaiAH-C-P2cbl-8k.js +0 -46
  216. package/dist/assets/CreateOrEditVendorPage-flCFtC2N-AdYl79w3.js +0 -281
  217. package/dist/assets/CustomerOnboardingContainerPage-DZ9vkiEO--NuA2aDE.js +0 -1
  218. package/dist/assets/CustomerOnboardingPage-C12XXjv0-BcXZ0f7B.js +0 -107
  219. package/dist/assets/DepositAccTransactionListPage-keSFBKDU-DxyDpFrs.js +0 -66
  220. package/dist/assets/Menu-D_6Dje0H-BZ0tGHak.js +0 -17
  221. package/dist/assets/analyticsHelper-BHPP6wwz.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,ao as He,fX as Ue,o as r,b as We,bQ as Ve,aL as re,cU as Ye,a$ as q,d6 as qe,A as Xe,aO as Ge,an as Ke,cE as gr,n as pe,a7 as xr,av as wr,gK as $r,aK as de,g6 as fr,u as b,_ as Ze,bS as xe,E as Je,ak as v,b5 as we,ag as G,du as Qe,aZ as er,cy as rr,p as X,al as tr,iF as oe,iV as yr,iW as br,iQ as vr,dv as Le,fm as jr,eG as Sr}from"./index-DdsM_njZ.js";import{a as ae}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{eI as Cr}from"./zeni-epic-state-LPACxnXP.js";import{T as ir}from"./RoleWithToolTip-GUYLjJwW-r9JBfRcl.js";import{j as or}from"./CardNumberSubText-lh7fQJis-DxcsJYtX.js";const Q="cardName",fe=U.getLocalizedStrings().spendManagement.chargeCard.renamePopup;function ji({currentCardName:e,renameFetchState:f,onCancelClick:p,onSubmitClick:c}){const l=he(),y="RenameCardForm",n=me({mode:"all",defaultValues:{[Q]:e},values:{[Q]:e}});ae.useEffect(()=>{n.setFocus(Q)},[]);const h=()=>{p()},R=n.handleSubmit(()=>{const w=n.getValues(Q);w!=null&&c(w)}),N=ue(n.formState.errors,Q),o=U.getLocalizedStrings().common,T=le.largeLabelWidth.value(l);return t.jsx(zr,{windowSize:l,role:"presentation",children:t.jsx(Ke,{onClickAway:()=>p(),children:t.jsxs(kr,{windowSize:l,children:[t.jsx(ge,{...n,children:t.jsxs(Ir,{id:y,onSubmit:w=>{w.preventDefault(),R()},children:[t.jsx(Lr,{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:w=>w!=null}}})})]})}),t.jsx(Dr,{children:t.jsxs(Pr,{children:[t.jsx(pe,{label:o.cancel,onClick:h,style:{width:84}}),t.jsx(Tr,{}),t.jsx(pe,{variant:"primary",label:o.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:f==="In-Progress",type:"submit",form:y})]})})]})})})}const le={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},zr=i.div`
1
+ import{Q as he,d as _e,a8 as me,y as d,cW as ue,V as t,f6 as He,F as U,ab as ge,ao as Be,fY as Ue,o as r,b as We,bQ as Ve,aL as re,cU as Ye,a$ as q,d7 as qe,A as Xe,aO as Ge,an as Ke,cE as gr,n as pe,a7 as xr,av as wr,gL as $r,aK as de,g7 as fr,u as b,_ as Je,bS as xe,E as Ze,ak as v,b5 as we,ag as G,dv as Qe,aZ as er,cy as rr,p as X,al as tr,iG as oe,iW as yr,iX as br,iR as vr,dw as Le,fn as jr,eH as Sr}from"./index-BS0RW8dr.js";import{a as ae}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{eI as Cr}from"./zeni-epic-state-LPACxnXP.js";import{T as ir}from"./RoleWithToolTip-BxI2nAro-CHrHR5C8.js";import{j as or}from"./CardNumberSubText-FdCtSIHd-Cer2LzOo.js";const Q="cardName",fe=U.getLocalizedStrings().spendManagement.chargeCard.renamePopup;function ji({currentCardName:e,renameFetchState:f,onCancelClick:p,onSubmitClick:c}){const l=he(),y="RenameCardForm",n=me({mode:"all",defaultValues:{[Q]:e},values:{[Q]:e}});ae.useEffect(()=>{n.setFocus(Q)},[]);const h=()=>{p()},R=n.handleSubmit(()=>{const w=n.getValues(Q);w!=null&&c(w)}),N=ue(n.formState.errors,Q),o=U.getLocalizedStrings().common,T=le.largeLabelWidth.value(l);return t.jsx(zr,{windowSize:l,role:"presentation",children:t.jsx(Ke,{onClickAway:()=>p(),children:t.jsxs(kr,{windowSize:l,children:[t.jsx(ge,{...n,children:t.jsxs(Ir,{id:y,onSubmit:w=>{w.preventDefault(),R()},children:[t.jsx(Lr,{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:w=>w!=null}}})})]})}),t.jsx(Dr,{children:t.jsxs(Pr,{children:[t.jsx(pe,{label:o.cancel,onClick:h,style:{width:84}}),t.jsx(Tr,{}),t.jsx(pe,{variant:"primary",label:o.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:f==="In-Progress",type:"submit",form:y})]})})]})})})}const le={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},zr=i.div`
2
2
  position: fixed;
3
3
  top: ${r.sp0};
4
4
  left: ${r.sp0};
@@ -49,7 +49,7 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
49
49
  }
50
50
  `,Ir=i.form`
51
51
  display: contents;
52
- `,ee="spendLimit",J=U.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:ye}=U.getLocalizedStrings();function Si({controllerEmails:e,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:l,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:B,currentSpentAmount:H,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,maxLimitAmount:O,isDisabled:K,updateLimitFetchState:Z,recommendations:I,cardIssuedByRoles:Y,cardHolderRoles:m,loggedInUserRole:A,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,onCancelClick:s,onSubmitClick:u}){const g=xr().analytics,$=he(),se="SpendLimitForm",ar=wr();Cr(ar.loggedInUserRoleMap);const te=me({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[ee]:void 0}}),{control:sr,formState:{errors:nr}}=te,[dr,lr]=ae.useState(void 0),ne=$r({control:sr,name:ee}),Ce=y?.type.code.includes("physical")===!0?y.cardActivationAttemptHistory[0]?.timestamp:y?.createTime,ze=(y?.recommendations??[]).map(x=>x.creditLimit.amount),cr=()=>{y!=null&&Pe({analytics:g,controllerEmails:e,isChargeCardFeatureEnabled:f,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:m,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:A,clickItem:"Cancel",newSpendLimitAmount:ne,productInformation:j,creditAccountInformation:W,debitAccountInformation:V}),s()},pr=te.handleSubmit(()=>{const x=te.getValues(ee);x!=null&&(Pe({analytics:g,controllerEmails:e,isChargeCardFeatureEnabled:f,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:B,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:m,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:A,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,clickItem:"Update",newSpendLimitAmount:x}),u(x))}),hr=x=>{te.setValue(ee,x,{shouldValidate:!0})},ke=ue(nr,ee),$e=U.getLocalizedStrings().common,mr=ce.largeLabelWidth.value($);ae.useEffect(()=>{lr(Ar(H,O,ne))},[ne,H,O]);const ur=(x,ie)=>t.jsxs(Wr,{isSelected:ne===x.amount,onClick:()=>hr(x.amount),"data-testid":de("quick-amount-button",ie.toString()),children:[ie===1&&t.jsx(Vr,{}),re("0,0.[00]",x)]},ie);return t.jsx(Fr,{windowSize:$,role:"presentation","data-testid":de("update-spend-limit-popup"),children:t.jsx(Ke,{onClickAway:()=>s(),children:t.jsxs(Er,{windowSize:$,children:[t.jsx(ge,{...te,children:t.jsxs(Yr,{id:se,onSubmit:x=>{x.preventDefault(),pr()},children:[t.jsx(Rr,{windowSize:$,children:J.heading}),t.jsxs(Or,{windowSize:$,children:[J.currentLimit,$e.strings.space," ",re("0,0.[00]",B),J.slashMonth]}),t.jsxs(Hr,{hasError:ke,children:[t.jsx(fr,{label:{label:J.newLimit,width:mr},showAdditionalInfoLabel:ke,additionalInfoLabel:dr,formattedTextField:{type:"number",name:ee,defaultValue:void 0,placeholder:J.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:x=>!!x&&x>0&&x>H.amount&&(O!=null?x<=O.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),I?.length?t.jsx(Ur,{windowSize:$,children:I?.map((x,ie)=>ur(x.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:Z==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:K})]})})]})})})}const Ar=(e,f,p)=>{if(p!=null){if(p<=e.amount)return J.amountBelowError.replace("_amount_",re("0,0.[00]",e));if(f!=null&&p>f.amount)return J.amountExceedError.replace("_amount_",re("0,0.[00]",f))}},Pe=({analytics:e,controllerEmails:f,isChargeCardFeatureEnabled:p,productInformation:c,creditAccountInformation:l,debitAccountInformation:y,cardDetail:n,transactionStatistics:h,depositAccountLimitFetchState:R,creditAccount:N,creditAccountRepayment:o,signedInUser:T,isDebitCard:w,classListFetchState:B,currentLimitAmount:H,recommendedLimitAmounts:j,cardActivationDate:W,cardIssuedByRoles:V,cardHolderRoles:O,cardIssuedByDepartmentName:K,cardHolderDepartmentName:Z,loggedInUserRole:I,clickItem:Y,newSpendLimitAmount:m})=>{n!=null&&B==="Completed"&&h!=null&&h.fetchState==="Completed"&&(!p||N.fetchState==="Completed"&&o.fetchState==="Completed")&&(!w||R==="Completed")&&e.trackCardsUpdateSpendLimitClick(f,c,{cardId:n.id,cardName:n.cardName,cardType:br(n.type.code),cardCategory:n.type.code.includes("physical")?"physical":"virtual",cardLimit:oe(n.limit.amount),cardLastFourDigits:n.accountLast4,cardStatus:n.status.code,cardAssignedDate:n.createTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:n.providerCardCreateTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:W?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:n.creditLimitFrequency.name,cardSpentAmount:oe(n.balance.amount),cardAvailableLimit:oe(n.available.amount),cardUtilizationPercent:yr(n.limit.amount,n.available.amount),cardUtilizationAmount:oe(vr(n)),totalNumberOfDeclinedTransactions:h.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:h.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:h.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:h.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:h.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:h.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:h.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:h.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:h.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:h.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:Le(n.cardCreatedByUser,!1),cardIssuedByEmail:n.cardCreatedByUser?.email,cardIssuedByUserId:n.cardCreatedByUser?.userId,cardIssuedByRole:V,cardIssuedByDepartment:K},{cardholderName:Le(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:O,cardholderUserId:n.cardHolderUser?.userId,cardholderDepartment:Z},{cardLimitUpdatedByName:jr(T),cardLimitUpdatedByEmail:T.userEmail,cardLimitUpdatedByRole:I,cardLimitUpdatedByUserId:T.userId},Y,oe(H.amount),j,m!=null?j.includes(m):!1,m,l,y)},ce={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},Fr=i.div`
52
+ `,ee="spendLimit",Z=U.getLocalizedStrings().spendManagement.chargeCard.updateSpendLimitPopup,{dateFormat:ye}=U.getLocalizedStrings();function Si({controllerEmails:e,isChargeCardFeatureEnabled:f,isDebitCardFeatureEnabled:p,isDebitCardSetupEnabled:c,isChargeCardSetupEnabled:l,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:H,currentSpentAmount:B,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,maxLimitAmount:O,isDisabled:K,updateLimitFetchState:J,recommendations:I,cardIssuedByRoles:Y,cardHolderRoles:m,loggedInUserRole:A,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,onCancelClick:s,onSubmitClick:u}){const g=xr().analytics,$=he(),se="SpendLimitForm",ar=wr();Cr(ar.loggedInUserRoleMap);const te=me({mode:"onBlur",reValidateMode:"onBlur",defaultValues:{[ee]:void 0}}),{control:sr,formState:{errors:nr}}=te,[dr,lr]=ae.useState(void 0),ne=$r({control:sr,name:ee}),Ce=y?.type.code.includes("physical")===!0?y.cardActivationAttemptHistory[0]?.timestamp:y?.createTime,ze=(y?.recommendations??[]).map(x=>x.creditLimit.amount),cr=()=>{y!=null&&Pe({analytics:g,controllerEmails:e,isChargeCardFeatureEnabled:f,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:H,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:m,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:A,clickItem:"Cancel",newSpendLimitAmount:ne,productInformation:j,creditAccountInformation:W,debitAccountInformation:V}),s()},pr=te.handleSubmit(()=>{const x=te.getValues(ee);x!=null&&(Pe({analytics:g,controllerEmails:e,isChargeCardFeatureEnabled:f,cardDetail:y,transactionStatistics:n,depositAccountLimitFetchState:h,creditAccount:R,creditAccountRepayment:N,signedInUser:o,isDebitCard:T,classListFetchState:w,currentLimitAmount:H,recommendedLimitAmounts:ze,cardActivationDate:Ce,cardIssuedByRoles:Y,cardHolderRoles:m,cardIssuedByDepartmentName:D,cardHolderDepartmentName:a,loggedInUserRole:A,productInformation:j,creditAccountInformation:W,debitAccountInformation:V,clickItem:"Update",newSpendLimitAmount:x}),u(x))}),hr=x=>{te.setValue(ee,x,{shouldValidate:!0})},ke=ue(nr,ee),$e=U.getLocalizedStrings().common,mr=ce.largeLabelWidth.value($);ae.useEffect(()=>{lr(Ar(B,O,ne))},[ne,B,O]);const ur=(x,ie)=>t.jsxs(Wr,{isSelected:ne===x.amount,onClick:()=>hr(x.amount),"data-testid":de("quick-amount-button",ie.toString()),children:[ie===1&&t.jsx(Vr,{}),re("0,0.[00]",x)]},ie);return t.jsx(Er,{windowSize:$,role:"presentation","data-testid":de("update-spend-limit-popup"),children:t.jsx(Ke,{onClickAway:()=>s(),children:t.jsxs(Fr,{windowSize:$,children:[t.jsx(ge,{...te,children:t.jsxs(Yr,{id:se,onSubmit:x=>{x.preventDefault(),pr()},children:[t.jsx(Rr,{windowSize:$,children:Z.heading}),t.jsxs(Or,{windowSize:$,children:[Z.currentLimit,$e.strings.space," ",re("0,0.[00]",H),Z.slashMonth]}),t.jsxs(Br,{hasError:ke,children:[t.jsx(fr,{label:{label:Z.newLimit,width:mr},showAdditionalInfoLabel:ke,additionalInfoLabel:dr,formattedTextField:{type:"number",name:ee,defaultValue:void 0,placeholder:Z.placeholder,returnValueType:"floatValue",prefix:"$",allowNegative:!0,isNumericString:!1,registerOptions:{required:!0,validate:x=>!!x&&x>0&&x>B.amount&&(O!=null?x<=O.amount:!0)},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0},style:{width:"auto"},showOutlineOnFocus:!1}),I?.length?t.jsx(Ur,{windowSize:$,children:I?.map((x,ie)=>ur(x.creditLimit,ie))}):null]})]})}),t.jsx(Hr,{children:t.jsxs(Mr,{children:[t.jsx(pe,{label:$e.cancel,onClick:cr,style:{width:84},"data-testid":de("update-spend-limit-cancel-button")}),t.jsx(_r,{}),t.jsx(pe,{variant:"primary",label:$e.texts.update,style:{width:84,whiteSpace:"nowrap"},loading:J==="In-Progress",type:"submit",form:se,"data-testid":de("update-spend-limit-submit-button"),disabled:K})]})})]})})})}const Ar=(e,f,p)=>{if(p!=null){if(p<=e.amount)return Z.amountBelowError.replace("_amount_",re("0,0.[00]",e));if(f!=null&&p>f.amount)return Z.amountExceedError.replace("_amount_",re("0,0.[00]",f))}},Pe=({analytics:e,controllerEmails:f,isChargeCardFeatureEnabled:p,productInformation:c,creditAccountInformation:l,debitAccountInformation:y,cardDetail:n,transactionStatistics:h,depositAccountLimitFetchState:R,creditAccount:N,creditAccountRepayment:o,signedInUser:T,isDebitCard:w,classListFetchState:H,currentLimitAmount:B,recommendedLimitAmounts:j,cardActivationDate:W,cardIssuedByRoles:V,cardHolderRoles:O,cardIssuedByDepartmentName:K,cardHolderDepartmentName:J,loggedInUserRole:I,clickItem:Y,newSpendLimitAmount:m})=>{n!=null&&H==="Completed"&&h!=null&&h.fetchState==="Completed"&&(!p||N.fetchState==="Completed"&&o.fetchState==="Completed")&&(!w||R==="Completed")&&e.trackCardsUpdateSpendLimitClick(f,c,{cardId:n.id,cardName:n.cardName,cardType:br(n.type.code),cardCategory:n.type.code.includes("physical")?"physical":"virtual",cardLimit:oe(n.limit.amount),cardLastFourDigits:n.accountLast4,cardStatus:n.status.code,cardAssignedDate:n.createTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:n.providerCardCreateTime?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardActivatedDate:W?.format(ye.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:n.creditLimitFrequency.name,cardSpentAmount:oe(n.balance.amount),cardAvailableLimit:oe(n.available.amount),cardUtilizationPercent:yr(n.limit.amount,n.available.amount),cardUtilizationAmount:oe(vr(n)),totalNumberOfDeclinedTransactions:h.statistics.totalNumberOfDeclinedTransactions,numberOfDeclinedTransactionsCurrentMonth:h.statistics.numberOfDeclinedTransactionsCurrentMonth,totalNumberOfPaidTransactions:h.statistics.totalNumberOfPaidTransactions,numberOfPaidTransactionsCurrentMonth:h.statistics.numberOfPaidTransactionsCurrentMonth,totalNumberOfCanceledTransactions:h.statistics.totalNumberOfCanceledTransactions,numberOfCanceledTransactionsCurrentMonth:h.statistics.numberOfCanceledTransactionsCurrentMonth,totalNumberOfAuthorizedTransactions:h.statistics.totalNumberOfAuthorizedTransactions,numberOfAuthorizedTransactionsCurrentMonth:h.statistics.numberOfAuthorizedTransactionsCurrentMonth,totalNumberOfTransactionsWithReceipts:h.statistics.totalNumberOfTransactionsWithReceipts,numberOfTransactionsWithReceiptsCurrentMonth:h.statistics.numberOfTransactionsWithReceiptsCurrentMonth},{cardIssuedByName:Le(n.cardCreatedByUser,!1),cardIssuedByEmail:n.cardCreatedByUser?.email,cardIssuedByUserId:n.cardCreatedByUser?.userId,cardIssuedByRole:V,cardIssuedByDepartment:K},{cardholderName:Le(n.cardHolderUser,!1),cardholderEmail:n.cardHolderUser?.email,cardholderRole:O,cardholderUserId:n.cardHolderUser?.userId,cardholderDepartment:J},{cardLimitUpdatedByName:jr(T),cardLimitUpdatedByEmail:T.userEmail,cardLimitUpdatedByRole:I,cardLimitUpdatedByUserId:T.userId},Y,oe(B.amount),j,m!=null?j.includes(m):!1,m,l,y)},ce={width:new d(343,500,500),largeLabelWidth:new d(108,108,108),popupLeftRightPadding:new d(b[5],b[6]),popupTopBottomPadding:new d(b[5],b[5])},Er=i.div`
53
53
  position: fixed;
54
54
  top: ${r.sp0};
55
55
  left: ${r.sp0};
@@ -60,7 +60,7 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
60
60
  flex-direction: column;
61
61
  align-items: center;
62
62
  background: ${X.overlayDark};
63
- `,Er=i.div`
63
+ `,Fr=i.div`
64
64
  display: flex;
65
65
  flex-direction: column;
66
66
  justify-content: space-between;
@@ -86,10 +86,10 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
86
86
  padding-top: ${r.sp4};
87
87
  `,_r=i.div`
88
88
  width: ${r.sp3};
89
- `,Br=i.div`
89
+ `,Hr=i.div`
90
90
  display: flex;
91
91
  flex-direction: column;
92
- `,Hr=i.div`
92
+ `,Br=i.div`
93
93
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
94
94
  box-shadow: ${e=>`${r.sp0} 1px 2px ${r.sp0} ${e.theme.colors.issueChargeCardBackgroundShadow}`};
95
95
  border-radius: ${r.sp2};
@@ -127,7 +127,7 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
127
127
  height: ${r.sp3};
128
128
  `,Yr=i.form`
129
129
  display: contents;
130
- `,L={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{common:S,closeCard:M}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",F=(e,f)=>`${e}.${f}`,De=e=>`${e}_form`,{common:be,dateFormat:qr,cockpit:Xr}=U.getLocalizedStrings(),Ci=({showCloseCardDrawer:e,onCloseCloseCardDrawer:f,isChargeCardAdmin:p,chargeCardsByCardId:c,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,closeCardFetchState:n,onRemoveCardClick:h,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[w,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(u=>[u,!1])),[a]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[z]:{reason:void 0,reasonType:void 0}},values:{[z]:{reason:void 0,reasonType:void 0}}}),W=L.largeLabelWidth.value(o),{isValid:V,errors:O}=j.formState,K=a=>`${c[a].cardHolderUser?.firstName??""} ${c[a].cardHolderUser?.lastName??""}`,Z=ue(O,F(z,"reasonType")),I=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const a=j.getValues(),s={reason:a[z].reason,reasonType:a[z].reasonType};R(s)}}),m=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:f,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(Gr,{windowSize:o,children:[t.jsxs(Kr,{windowSize:o,children:[t.jsx(Zr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:m?M.closeCards:M.closeCard}):t.jsx(dt,{children:m?M.closeCards:M.closeCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:De(Te),onSubmit:Y,children:[t.jsxs(lt,{children:[t.jsx(ct,{windowSize:o,children:m?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)}),m&&t.jsx(Lt,{children:`${A} ${A===1?S.card:S.cards} ${S.selected}`}),Object.keys(l).map((a,s)=>{const u=l[a].length>0;return t.jsxs(pt,{onClick:()=>u?H(a):void 0,isMoreThanOneCard:m,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:[c[a].cardHolderUser?.photo!==void 0?t.jsx(et,{src:c[a].cardHolderUser?.photo.href,alt:Xr.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:c[a].cardHolderUser?.firstName??"",lastName:c[a].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(ht,{children:K(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:c[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&u&&(w[a]?t.jsx(Ie,{}):t.jsx(Ae,{}))]}),t.jsxs(wt,{windowSize:o,children:[c[a].cardName,t.jsx(or,{cardDetail:c[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"&&u&&(w[a]?t.jsx(Ie,{}):t.jsx(Ae,{}))]})]}),m&&t.jsx(it,{children:t.jsx(Ve,{variant:"standard",title:be.remove,children:t.jsx(tt,{onClick:()=>h(a)})})}),w[a]&&u&&t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsxs(ft,{children:[t.jsxs(kt,{children:[t.jsx(je,{width:o==="small"?112:240,children:S.merchant}),t.jsx(je,{width:o==="small"?112:104,children:S.nextPaymentDate}),t.jsx(Pt,{width:o==="small"?100:312,children:S.amount})]}),l[a].map((g,$)=>t.jsxs("div",{children:[$>0&&t.jsx(Ne,{}),t.jsxs(yt,{children:[t.jsxs(bt,{windowSize:o,children:[t.jsx(ot,{src:g.merchant.logo?.url?.href}),t.jsx(rt,{windowSize:o,children:g.merchant.brandName??g.merchant.name})]}),t.jsx(vt,{windowSize:o,children:g.nextPaymentDate.format(qr.visual.MMMDCommaYYYYformat)}),t.jsx(jt,{windowSize:o,children:re("0,0.00",g.amount)})]},g.merchant.name)]},g.merchant.name))]})]})]},a)})]}),t.jsx(Dt,{windowSize:o,children:S.letUsKnowWhy}),t.jsxs(Tt,{isReasonTextFieldVisible:I==="other",children:[t.jsxs(at,{size:o,children:[t.jsx(Ye,{label:S.reasonLabel,htmlFor:F(z,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(st,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:S.reason.lost},style:{width:"auto"},radioField:{name:F(z,"reasonType"),id:`${F(z,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.fraud},style:{width:"auto"},radioField:{name:F(z,"reasonType"),id:`${F(z,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.not_needed},style:{width:"auto"},radioField:{name:F(z,"reasonType"),id:`${F(z,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},radioSize:"small"}}),t.jsx(q,{label:{label:S.reason.other},style:{width:"auto"},radioField:{name:F(z,"reasonType"),id:`${F(z,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},registerOptions:{required:!p,validate:a=>p?!0:!!a},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(z,"reason"),placeholder:M.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!p,validate:a=>p?!0:!!a}}):I==null&&!p&&Z?t.jsx(Jr,{children:M.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:De(Te),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:be.confirm,isLoading:n==="In-Progress",variant:"danger"},cancelBtn:{label:be.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Gr=i.div`
130
+ `,L={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{common:S,closeCard:M}=U.getLocalizedStrings().spendManagement.chargeCard,z="reasonSection",Te="closeCardPage",E=(e,f)=>`${e}.${f}`,De=e=>`${e}_form`,{common:be,dateFormat:qr,cockpit:Xr}=U.getLocalizedStrings(),Ci=({showCloseCardDrawer:e,onCloseCloseCardDrawer:f,isChargeCardAdmin:p,chargeCardsByCardId:c,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,closeCardFetchState:n,onRemoveCardClick:h,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[w,H]=ae.useState(Object.fromEntries(Object.keys(l).map((a,s)=>[a,s===0]))),B=a=>{H(s=>s[a]?{...s,[a]:!1}:{...Object.fromEntries(Object.keys(s).map(u=>[u,!1])),[a]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[z]:{reason:void 0,reasonType:void 0}},values:{[z]:{reason:void 0,reasonType:void 0}}}),W=L.largeLabelWidth.value(o),{isValid:V,errors:O}=j.formState,K=a=>`${c[a].cardHolderUser?.firstName??""} ${c[a].cardHolderUser?.lastName??""}`,J=ue(O,E(z,"reasonType")),I=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const a=j.getValues(),s={reason:a[z].reason,reasonType:a[z].reasonType};R(s)}}),m=Object.keys(l).length>1,A=Object.keys(l).length,D=Object.values(l).reduce((a,s)=>a+s.length,0);return t.jsx(He,{anchor:"right",open:e,onClose:f,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(Gr,{windowSize:o,children:[t.jsxs(Kr,{windowSize:o,children:[t.jsx(Jr,{windowSize:o,children:t.jsx(Qr,{onClick:()=>{N()}})}),o==="small"?t.jsx(nt,{windowSize:o,children:m?M.closeCards:M.closeCard}):t.jsx(dt,{children:m?M.closeCards:M.closeCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:De(Te),onSubmit:Y,children:[t.jsxs(lt,{children:[t.jsx(ct,{windowSize:o,children:m?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)}),m&&t.jsx(Lt,{children:`${A} ${A===1?S.card:S.cards} ${S.selected}`}),Object.keys(l).map((a,s)=>{const u=l[a].length>0;return t.jsxs(pt,{onClick:()=>u?B(a):void 0,isMoreThanOneCard:m,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:[c[a].cardHolderUser?.photo!==void 0?t.jsx(et,{src:c[a].cardHolderUser?.photo.href,alt:Xr.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=Be},loading:"lazy"}):t.jsx(Ue,{firstName:c[a].cardHolderUser?.firstName??"",lastName:c[a].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(ht,{children:K(a)}),t.jsx(xt,{children:t.jsx(ir,{roles:c[a].cardHolderRoles.userRoles})})]})]}),o==="small"&&u&&(w[a]?t.jsx(Ie,{}):t.jsx(Ae,{}))]}),t.jsxs(wt,{windowSize:o,children:[c[a].cardName,t.jsx(or,{cardDetail:c[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"&&u&&(w[a]?t.jsx(Ie,{}):t.jsx(Ae,{}))]})]}),m&&t.jsx(it,{children:t.jsx(Ve,{variant:"standard",title:be.remove,children:t.jsx(tt,{onClick:()=>h(a)})})}),w[a]&&u&&t.jsxs(t.Fragment,{children:[t.jsx(Ne,{}),t.jsxs(ft,{children:[t.jsxs(kt,{children:[t.jsx(je,{width:o==="small"?112:240,children:S.merchant}),t.jsx(je,{width:o==="small"?112:104,children:S.nextPaymentDate}),t.jsx(Pt,{width:o==="small"?100:312,children:S.amount})]}),l[a].map((g,$)=>t.jsxs("div",{children:[$>0&&t.jsx(Ne,{}),t.jsxs(yt,{children:[t.jsxs(bt,{windowSize:o,children:[t.jsx(ot,{src:g.merchant.logo?.url?.href}),t.jsx(rt,{windowSize:o,children:g.merchant.brandName??g.merchant.name})]}),t.jsx(vt,{windowSize:o,children:g.nextPaymentDate.format(qr.visual.MMMDCommaYYYYformat)}),t.jsx(jt,{windowSize:o,children:re("0,0.00",g.amount)})]},g.merchant.name)]},g.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:!p,validate:a=>p?!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:!p,validate:a=>p?!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:!p,validate:a=>p?!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:!p,validate:a=>p?!0:!!a},radioSize:"small"}})]})]}),I==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${L.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:E(z,"reason"),placeholder:M.reasonPlaceholder,className:"reason-text-field",registerOptions:{required:!p,validate:a=>p?!0:!!a}}):I==null&&!p&&J?t.jsx(Zr,{children:M.youNeedToProvideReasonToCloseCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:De(Te),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:be.confirm,isLoading:n==="In-Progress",variant:"danger"},cancelBtn:{label:be.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},Gr=i.div`
131
131
  display: flex;
132
132
  flex-direction: column;
133
133
  background-color: ${e=>e.theme.colors.grey4};
@@ -139,7 +139,7 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
139
139
  padding-left: ${e=>`${L.containerPaddingLeft.valuePx(e.windowSize)}`};
140
140
  padding-right: ${e=>`${L.containerPaddingRight.valuePx(e.windowSize)}`};
141
141
  margin-bottom: auto;
142
- `,Zr=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,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
149
149
  padding: ${e=>`${L.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${r.sp0}`};
150
150
  z-index: 2;
151
151
  background-color: ${e=>e.theme.colors.grey4};
152
- `,Jr=i(G)`
152
+ `,Zr=i(G)`
153
153
  color: ${e=>e.theme.colors.important};
154
154
  text-align: end;
155
- `,Qr=i(Ze)`
155
+ `,Qr=i(Je)`
156
156
  cursor: pointer;
157
157
  color: ${e=>e.theme.colors.hero};
158
158
  width: ${r.sp4};
@@ -231,7 +231,7 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
231
231
  margin-top: ${r.sp3};
232
232
  margin-bottom: ${r.sp0};
233
233
  margin-right: ${r.sp3};
234
- `,dt=i(Je)`
234
+ `,dt=i(Ze)`
235
235
  color: ${e=>e.theme.colors.primary};
236
236
  margin-top: ${r.sp3};
237
237
  margin-bottom: ${r.sp2};
@@ -374,19 +374,19 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
374
374
  margin-bottom: ${r.sp3};
375
375
  margin-top: ${r.sp7};
376
376
  color: ${e=>e.theme.colors.primary};
377
- `,P={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{lockCard:_,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Fe="lockCardPage",E=(e,f)=>`${e}.${f}`,Ee=e=>`${e}_form`,{common:ve,dateFormat:Nt,cockpit:It}=U.getLocalizedStrings(),zi=({showLockCardDrawer:e,onCloseLockCardDrawer:f,isChargeCardAdmin:p,chargeCardsByCardId:c,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,lockCardFetchState:n,onRemoveCardClick:h,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[w,B]=ae.useState(Object.fromEntries(Object.keys(l).map((s,u)=>[s,u===0]))),H=s=>{B(u=>u[s]?{...u,[s]:!1}:{...Object.fromEntries(Object.keys(u).map(g=>[g,!1])),[s]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[k]:{reason:void 0,reasonType:void 0}},values:{[k]:{reason:void 0,reasonType:void 0}}}),W=P.largeLabelWidth.value(o),{isValid:V,errors:O}=j.formState,K=s=>`${c[s].cardHolderUser?.firstName??""} ${c[s].cardHolderUser?.lastName??""}`,Z=ue(O,E(k,"reasonType")),I=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const s=j.getValues(),u={reason:s[k].reason,reasonType:s[k].reasonType};R(u)}}),m=Object.keys(l).length>1,A=Object.keys(l).length,D=Object.values(l).reduce((s,u)=>s+u.length,0),a=l[Object.keys(l)[0]].length>0;return t.jsx(Be,{anchor:"right",open:e,onClose:f,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(At,{windowSize:o,children:[t.jsxs(Ft,{windowSize:o,children:[t.jsx(Ot,{windowSize:o,children:t.jsx(_t,{onClick:()=>{N()}})}),o==="small"?t.jsx(qt,{windowSize:o,children:m?_.lockCards:_.lockCard}):t.jsx(Xt,{children:m?_.lockCards:_.lockCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:Ee(Fe),onSubmit:Y,children:[t.jsxs(Gt,{children:[t.jsx(Kt,{windowSize:o,children:m?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}),m&&t.jsx(mi,{children:`${A} ${A===1?C.card:C.cards} ${C.selected}`}),Object.keys(l).map((s,u)=>{const g=l[s].length>0;return t.jsxs(Zt,{onClick:()=>g?H(s):void 0,isMoreThanOneCard:m,isLastCard:u===Object.keys(l).length-1,children:[t.jsxs(Qt,{windowSize:o,children:[t.jsxs(Rt,{windowSize:o,children:[t.jsxs(ei,{windowSize:o,children:[c[s].cardHolderUser?.photo!==void 0?t.jsx(Bt,{src:c[s].cardHolderUser?.photo.href,alt:It.userProfileAltText,onError:({currentTarget:$})=>{$.onerror=null,$.src=He},loading:"lazy"}):t.jsx(Ue,{firstName:c[s].cardHolderUser?.firstName??"",lastName:c[s].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(Jt,{children:K(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:c[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&(w[s]?t.jsx(Oe,{}):t.jsx(Me,{}))]}),t.jsxs(ti,{windowSize:o,children:[c[s].cardName,t.jsx(or,{cardDetail:c[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"&&g&&(w[s]?t.jsx(Oe,{}):t.jsx(Me,{}))]})]}),m&&t.jsx(Et,{children:t.jsx(Ve,{variant:"standard",title:ve.remove,children:t.jsx(Ut,{onClick:()=>h(s)})})}),w[s]&&g&&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(($,se)=>t.jsxs("div",{children:[se>0&&t.jsx(Re,{}),t.jsxs(ai,{children:[t.jsxs(si,{windowSize:o,children:[t.jsx(Wt,{src:$.merchant.logo?.url?.href}),t.jsx(Ht,{windowSize:o,children:$.merchant.brandName??$.merchant.name})]}),t.jsx(ni,{windowSize:o,children:$.nextPaymentDate.format(Nt.visual.MMMDCommaYYYYformat)}),t.jsx(di,{windowSize:o,children:re("0,0.00",$.amount)})]},$.merchant.name)]},$.merchant.name))]})]})]},s)})]}),t.jsx(xi,{windowSize:o,children:C.letUsKnowWhy}),t.jsxs(gi,{isReasonTextFieldVisible:I==="other",children:[t.jsxs(Vt,{size:o,children:[t.jsx(Ye,{label:C.reasonLabel,htmlFor:E(k,"reasonType"),style:{padding:`${r.sp2} ${r.sp0}`,width:"fit-content"}}),t.jsxs(Yt,{labelWidth:W,size:o,children:[t.jsx(q,{label:{label:C.reason.lost},style:{width:"auto"},radioField:{name:E(k,"reasonType"),id:`${E(k,"reasonType")}.Lost or stolen`,value:"Lost or stolen",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.fraud},style:{width:"auto"},radioField:{name:E(k,"reasonType"),id:`${E(k,"reasonType")}.Fraud detected`,value:"Fraud detected",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.not_needed},style:{width:"auto"},radioField:{name:E(k,"reasonType"),id:`${E(k,"reasonType")}.Not needed`,value:"Not needed",style:{height:r.sp3,width:r.sp3},radioSize:"small"}}),t.jsx(q,{label:{label:C.reason.other},style:{width:"auto"},radioField:{name:E(k,"reasonType"),id:`${E(k,"reasonType")}.other`,value:"other",style:{height:r.sp3,width:r.sp3},radioSize:"small"}})]})]}),I==="other"?t.jsx(qe,{style:{height:r.sp6,width:"100%",backgroundColor:T.colors.background,marginTop:`${P.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:E(k,"reason"),placeholder:_.reasonPlaceholder,className:"reason-text-field"}):I==null&&!p&&Z?t.jsx(Mt,{children:_.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Ee(Fe),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:ve.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:ve.cancel,style:{width:"90px"},onClick:()=>{N?.()}}})]})})},At=i.div`
377
+ `,P={navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(16,40,56),containerPaddingRight:new d(16,40,56),largeLabelWidth:new d(120,120,200),webkitLineClamp:new d(2,1,1,1,1),overlayWidth:new d(100,100,58),cardHolderDetailsPaddingX:new d(b[3],b[4]),cardNameSectionMarginLeft:new d(b[7],0),cardHolderDetailsGap:new d(b[1],0),recurringExpenseMerchantWidth:new d(112,240),recurringExpenseNextPaymentDateWidth:new d(112,104),recurringExpenseAmountWidth:new d(100,312),reasonTextFieldMarginTop:new d(b[3],0)},{lockCard:_,common:C}=U.getLocalizedStrings().spendManagement.chargeCard,k="reasonSection",Ee="lockCardPage",F=(e,f)=>`${e}.${f}`,Fe=e=>`${e}_form`,{common:ve,dateFormat:Nt,cockpit:It}=U.getLocalizedStrings(),zi=({showLockCardDrawer:e,onCloseLockCardDrawer:f,isChargeCardAdmin:p,chargeCardsByCardId:c,cardRecurringExpensesByCardId:l,cardRecurringExpenseFetchState:y,lockCardFetchState:n,onRemoveCardClick:h,onConfirmClick:R,onDismissClick:N})=>{const o=he(),T=_e(),[w,H]=ae.useState(Object.fromEntries(Object.keys(l).map((s,u)=>[s,u===0]))),B=s=>{H(u=>u[s]?{...u,[s]:!1}:{...Object.fromEntries(Object.keys(u).map(g=>[g,!1])),[s]:!0})},j=me({mode:"all",reValidateMode:"onBlur",defaultValues:{[k]:{reason:void 0,reasonType:void 0}},values:{[k]:{reason:void 0,reasonType:void 0}}}),W=P.largeLabelWidth.value(o),{isValid:V,errors:O}=j.formState,K=s=>`${c[s].cardHolderUser?.firstName??""} ${c[s].cardHolderUser?.lastName??""}`,J=ue(O,F(k,"reasonType")),I=j.watch("reasonSection.reasonType"),Y=j.handleSubmit(()=>{if(V){const s=j.getValues(),u={reason:s[k].reason,reasonType:s[k].reasonType};R(u)}}),m=Object.keys(l).length>1,A=Object.keys(l).length,D=Object.values(l).reduce((s,u)=>s+u.length,0),a=l[Object.keys(l)[0]].length>0;return t.jsx(He,{anchor:"right",open:e,onClose:f,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(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:m?_.lockCards:_.lockCard}):t.jsx(Xt,{children:m?_.lockCards:_.lockCard}),y==="Completed"?t.jsx(ge,{...j,children:t.jsxs("form",{id:Fe(Ee),onSubmit:Y,children:[t.jsxs(Gt,{children:[t.jsx(Kt,{windowSize:o,children:m?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}),m&&t.jsx(mi,{children:`${A} ${A===1?C.card:C.cards} ${C.selected}`}),Object.keys(l).map((s,u)=>{const g=l[s].length>0;return t.jsxs(Jt,{onClick:()=>g?B(s):void 0,isMoreThanOneCard:m,isLastCard:u===Object.keys(l).length-1,children:[t.jsxs(Qt,{windowSize:o,children:[t.jsxs(Rt,{windowSize:o,children:[t.jsxs(ei,{windowSize:o,children:[c[s].cardHolderUser?.photo!==void 0?t.jsx(Ht,{src:c[s].cardHolderUser?.photo.href,alt:It.userProfileAltText,onError:({currentTarget:$})=>{$.onerror=null,$.src=Be},loading:"lazy"}):t.jsx(Ue,{firstName:c[s].cardHolderUser?.firstName??"",lastName:c[s].cardHolderUser?.lastName??"",size:r.sp6}),t.jsxs("div",{children:[t.jsx(Zt,{children:K(s)}),t.jsx(ri,{children:t.jsx(ir,{roles:c[s].cardHolderRoles.userRoles})})]})]}),o==="small"&&g&&(w[s]?t.jsx(Oe,{}):t.jsx(Me,{}))]}),t.jsxs(ti,{windowSize:o,children:[c[s].cardName,t.jsx(or,{cardDetail:c[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"&&g&&(w[s]?t.jsx(Oe,{}):t.jsx(Me,{}))]})]}),m&&t.jsx(Ft,{children:t.jsx(Ve,{variant:"standard",title:ve.remove,children:t.jsx(Ut,{onClick:()=>h(s)})})}),w[s]&&g&&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(($,se)=>t.jsxs("div",{children:[se>0&&t.jsx(Re,{}),t.jsxs(ai,{children:[t.jsxs(si,{windowSize:o,children:[t.jsx(Wt,{src:$.merchant.logo?.url?.href}),t.jsx(Bt,{windowSize:o,children:$.merchant.brandName??$.merchant.name})]}),t.jsx(ni,{windowSize:o,children:$.nextPaymentDate.format(Nt.visual.MMMDCommaYYYYformat)}),t.jsx(di,{windowSize:o,children:re("0,0.00",$.amount)})]},$.merchant.name)]},$.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:`${P.reasonTextFieldMarginTop.valuePx(o)}`},type:"text",name:F(k,"reason"),placeholder:_.reasonPlaceholder,className:"reason-text-field"}):I==null&&!p&&J?t.jsx(Mt,{children:_.youNeedToProvideReasonToLockCard}):null]})]})}):t.jsx(Xe,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 210px)"}})]}),y==="Completed"&&t.jsx(Ge,{style:{zIndex:4,paddingTop:r.sp3,paddingBottom:r.sp3},formId:Fe(Ee),helperStyle:{paddingTop:r.sp0,paddingBottom:r.sp0},primaryBtn:{label:ve.confirm,isLoading:n==="In-Progress"},cancelBtn:{label:ve.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};
381
381
  overflow-x: hidden;
382
382
  height: 100vh;
383
383
  width: 100%;
384
- `,Ft=i.div`
384
+ `,Et=i.div`
385
385
  height: auto;
386
386
  padding-left: ${e=>`${P.containerPaddingLeft.valuePx(e.windowSize)}`};
387
387
  padding-right: ${e=>`${P.containerPaddingRight.valuePx(e.windowSize)}`};
388
388
  margin-bottom: auto;
389
- `,Et=i.div`
389
+ `,Ft=i.div`
390
390
  position: absolute;
391
391
  right: -${r.sp2};
392
392
  top: -${r.sp2};
@@ -406,7 +406,7 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
406
406
  `,Mt=i(G)`
407
407
  color: ${e=>e.theme.colors.important};
408
408
  text-align: end;
409
- `,_t=i(Ze)`
409
+ `,_t=i(Je)`
410
410
  cursor: pointer;
411
411
  color: ${e=>e.theme.colors.hero};
412
412
  width: ${r.sp4};
@@ -415,13 +415,13 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
415
415
  &:hover {
416
416
  color: ${e=>e.theme.colors.primary};
417
417
  }
418
- `,Bt=i.img`
418
+ `,Ht=i.img`
419
419
  height: ${r.sp6};
420
420
  width: ${r.sp6};
421
421
  border-radius: 50%;
422
422
  justify-content: center;
423
423
  color: ${e=>e.theme.colors.hero};
424
- `,Ht=i(v)`
424
+ `,Bt=i(v)`
425
425
  margin-right: ${r.sp3};
426
426
  color: inherit;
427
427
  -webkit-line-clamp: ${e=>P.webkitLineClamp.value(e.windowSize)};
@@ -480,14 +480,14 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
480
480
  margin-top: ${r.sp3};
481
481
  margin-bottom: ${r.sp0};
482
482
  margin-right: ${r.sp3};
483
- `,Xt=i(Je)`
483
+ `,Xt=i(Ze)`
484
484
  color: ${e=>e.theme.colors.primary};
485
485
  margin-top: ${r.sp3};
486
486
  margin-bottom: ${r.sp2};
487
487
  `,Gt=i.div``,Kt=i(v)`
488
488
  color: ${e=>e.theme.colors.hero};
489
489
  margin-bottom: ${r.sp3};
490
- `,Zt=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};
@@ -504,7 +504,7 @@ import{Q as he,e as _e,a8 as me,y as d,cW as ue,V as t,f5 as Be,F as U,ab as ge,
504
504
  color: ${e=>e.theme.colors.primary};
505
505
  }
506
506
  }
507
- `,Jt=i(v)`
507
+ `,Zt=i(v)`
508
508
  color: inherit;
509
509
  `,Qt=i.div`
510
510
  display: flex;
@@ -1,4 +1,4 @@
1
- import{F as C,Q as A,a8 as R,V as a,ab as W,cm as F,cH as U,y as c,cK as z,o as e,co as V,u as m,b8 as Y,aR as E,bS as N}from"./index-DdsM_njZ.js";import{n as d}from"./mui-bYXq4XMS.js";import{fw as H,bO as $,bj as S}from"./zeni-epic-state-LPACxnXP.js";const s={labelWidth:new c(152,176,176),paddingBottom:new c(m[3],m[2]),width:new c(300,420,420),paddingRight:new c(m[4],m[3])},J=d.div`
1
+ import{F as C,Q as A,a8 as R,V as a,ab as W,cm as F,cH as U,y as c,cK as z,o as e,co as V,u as m,b8 as Y,aR as E,bS as N}from"./index-BS0RW8dr.js";import{n as d}from"./mui-bYXq4XMS.js";import{fw as H,bO as $,bj as S}from"./zeni-epic-state-LPACxnXP.js";const s={labelWidth:new c(152,176,176),paddingBottom:new c(m[3],m[2]),width:new c(300,420,420),paddingRight:new c(m[4],m[3])},J=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${t=>t.theme.colors.grey5};
@@ -12,7 +12,7 @@ import{F as C,Q as A,a8 as R,V as a,ab as W,cm as F,cH as U,y as c,cK as z,o as
12
12
  background-color: ${t=>t.theme.colors.grey3};
13
13
  min-height: 1px;
14
14
  max-height: 1px;
15
- `;function ee({saveDetailsFetchState:t,paymentData:l,onProceedForMarkAsPaid:u,onCancel:h}){const{spendManagement:{billPay:{billDetails:{paymentOutsideZeni:y,paymentDate:g,cancel:n}}},dateFormat:{visual:f,analytics:b}}=C.getLocalizedStrings(),{popUpTitle:x,paymentModeLabel:B,markAsPaid:M,defaultDateInfo:j,paymentModeOptions:w,selectDate:O,selectMethod:P}=y,i=A(),k="payment-outside-zeni-form",r="paymentMode",p="paymentDate",D=R({mode:"all",values:{[r]:{selectedOption:l?.paymentMode,allOptions:w.map(o=>o.value)},[p]:l?.paymentDate?.toDate()}}),I=D.handleSubmit(o=>{u({paymentDate:o[p]!=null?$(o[p].toString()):$(S().startOf("month").format(b.YYYYDashMMDashDDFormat).toString()),paymentMode:o[r]?.selectedOption!=null?H(o[r]?.selectedOption):"other"})}),L=o=>w.find(T=>T.value===o)?.label??"";return a.jsx(W,{...D,children:a.jsx("form",{id:k,onSubmit:I,children:a.jsx(F,{formId:k,titleComponent:a.jsx(V,{children:x}),primaryButtonText:M,primaryButtonWidth:128,secondaryButtonWidth:128,secondaryButtonText:n,isLoading:t==="In-Progress",isDisabled:t==="In-Progress",isEditPopup:!0,shouldClickAway:t!=="In-Progress",action:{onOkClick:()=>null,onCancelClick:h},children:a.jsxs(J,{windowSize:i,children:[a.jsx(U,{label:{label:B,width:s.labelWidth.value(i)},style:{width:s.width.valuePx(i)},singleSelectField:{singleSelect:{getLabelForId:L,showTickMark:!1,alwaysShowEyeTooltip:!1,name:r,placeholder:P,showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:l?.paymentMode,allOptions:w?.map(o=>o.value)??[]}},isFunctional:!0}),a.jsx(Z,{}),a.jsx(z,{label:{label:g,width:s.labelWidth.value(i)},style:{paddingBottom:s.paddingBottom.valuePx(i),width:s.width.valuePx(i),borderRadius:e.sp0},additionalPaymentInfoLabel:j,additionalPaymentInfoLabelStyle:{borderBottomRightRadius:e.sp2,borderBottomLeftRadius:e.sp2,paddingTop:e.sp1,paddingBottom:e.sp1,paddingLeft:e.sp3,paddingRight:s.paddingRight.valuePx(i),textAlign:"left"},dateField:{name:p,placeholder:O,defaultValue:l?.paymentDate,dateFormat:f.defaultInput,maxDate:S(),minDate:$("01 Jan 1900"),autoComplete:"off"}})]})})})})}const te=({withdrawFrom:t,paymentDate:l,onOkClick:u,onCancelClick:h,onClickAway:y})=>{const{dateFormat:g,spendManagement:{billPay:n},common:{strings:f}}=C.getLocalizedStrings();if(t!=null&&l!=null){const b=`${t?.label} ${t?.maskedAccountNumber}`,x=a.jsx(q,{children:a.jsxs(G,{children:[a.jsx(v,{children:b}),n.insufficientFunds.popUp.hasLowBalance,f.space,n.insufficientFunds.popUp.addMoney,a.jsx(v,{children:l?.format(g.visual.MMMDFormat)}),n.insufficientFunds.popUp.avoidFailure]})});return a.jsx(F,{titleComponent:a.jsx(K,{children:n.insufficientFunds.popUp.title}),primaryButtonText:n.billDetails.buttons.approveAnyways,secondaryButtonText:n.billDetails.editBill,containerStyle:{maxWidth:474},descriptionComponent:x,action:{onOkClick:u,onCancelClick:h,onClickAway:y},secondaryButtonWidth:166,primaryButtonWidth:"auto",showLine:!1,buttonSeparatorStyle:{width:e.sp3},buttonContainerStyle:{paddingBottom:e.sp6}})}},q=d.div`
15
+ `;function ee({saveDetailsFetchState:t,paymentData:l,onProceedForMarkAsPaid:u,onCancel:h}){const{spendManagement:{billPay:{billDetails:{paymentOutsideZeni:y,paymentDate:g,cancel:n}}},dateFormat:{visual:f,analytics:b}}=C.getLocalizedStrings(),{popUpTitle:x,paymentModeLabel:B,markAsPaid:M,defaultDateInfo:j,paymentModeOptions:w,selectDate:O,selectMethod:P}=y,i=A(),k="payment-outside-zeni-form",r="paymentMode",p="paymentDate",D=R({mode:"all",values:{[r]:{selectedOption:l?.paymentMode,allOptions:w.map(o=>o.value)},[p]:l?.paymentDate?.toDate()}}),L=D.handleSubmit(o=>{u({paymentDate:o[p]!=null?$(o[p].toString()):$(S().startOf("month").format(b.YYYYDashMMDashDDFormat).toString()),paymentMode:o[r]?.selectedOption!=null?H(o[r]?.selectedOption):"other"})}),I=o=>w.find(T=>T.value===o)?.label??"";return a.jsx(W,{...D,children:a.jsx("form",{id:k,onSubmit:L,children:a.jsx(F,{formId:k,titleComponent:a.jsx(V,{children:x}),primaryButtonText:M,primaryButtonWidth:128,secondaryButtonWidth:128,secondaryButtonText:n,isLoading:t==="In-Progress",isDisabled:t==="In-Progress",isEditPopup:!0,shouldClickAway:t!=="In-Progress",action:{onOkClick:()=>null,onCancelClick:h},children:a.jsxs(J,{windowSize:i,children:[a.jsx(U,{label:{label:B,width:s.labelWidth.value(i)},style:{width:s.width.valuePx(i)},singleSelectField:{singleSelect:{getLabelForId:I,showTickMark:!1,alwaysShowEyeTooltip:!1,name:r,placeholder:P,showValueEyeIcon:!1,showEyeIconOnSelect:!1},defaultValue:{selectedOption:l?.paymentMode,allOptions:w?.map(o=>o.value)??[]}},isFunctional:!0}),a.jsx(Z,{}),a.jsx(z,{label:{label:g,width:s.labelWidth.value(i)},style:{paddingBottom:s.paddingBottom.valuePx(i),width:s.width.valuePx(i),borderRadius:e.sp0},additionalPaymentInfoLabel:j,additionalPaymentInfoLabelStyle:{borderBottomRightRadius:e.sp2,borderBottomLeftRadius:e.sp2,paddingTop:e.sp1,paddingBottom:e.sp1,paddingLeft:e.sp3,paddingRight:s.paddingRight.valuePx(i),textAlign:"left"},dateField:{name:p,placeholder:O,defaultValue:l?.paymentDate,dateFormat:f.defaultInput,maxDate:S(),minDate:$("01 Jan 1900"),autoComplete:"off"}})]})})})})}const te=({withdrawFrom:t,paymentDate:l,onOkClick:u,onCancelClick:h,onClickAway:y})=>{const{dateFormat:g,spendManagement:{billPay:n},common:{strings:f}}=C.getLocalizedStrings();if(t!=null&&l!=null){const b=`${t?.label} ${t?.maskedAccountNumber}`,x=a.jsx(q,{children:a.jsxs(G,{children:[a.jsx(v,{children:b}),n.insufficientFunds.popUp.hasLowBalance,f.space,n.insufficientFunds.popUp.addMoney,a.jsx(v,{children:l?.format(g.visual.MMMDFormat)}),n.insufficientFunds.popUp.avoidFailure]})});return a.jsx(F,{titleComponent:a.jsx(K,{children:n.insufficientFunds.popUp.title}),primaryButtonText:n.billDetails.buttons.approveAnyways,secondaryButtonText:n.billDetails.editBill,containerStyle:{maxWidth:474},descriptionComponent:x,action:{onOkClick:u,onCancelClick:h,onClickAway:y},secondaryButtonWidth:166,primaryButtonWidth:"auto",showLine:!1,buttonSeparatorStyle:{width:e.sp3},buttonContainerStyle:{paddingBottom:e.sp6}})}},q=d.div`
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  align-items: center;
@@ -1 +1 @@
1
- import{V as l}from"./index-DdsM_njZ.js";import{f as y}from"./ACHDetailsPage-BXgsd50c-RayuRG_c.js";import"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./BankAccountWarningSection-CSChi1lw-BsQ6oo-h.js";import"./MagicLinkTitleSection-D2fXbnDV-CRSogR9y.js";import"./BankAccountSection-Chay7X-G-Z28HgbT-.js";const v=({magicLinkViewState:t,magicLinkBankAccountDetails:a,onSaveHandler:e,onACHDetailsUpdated:o,onFetchBankName:n,isDisabled:i,companyName:r})=>{const{fetchState:m,error:c,bankNameByRouting:p,bankAccountToCreate:u,fetchBankNameByRoutingStatus:s}=a,{currencySymbol:k,amount:f}=t;return l.jsx(y,{bankAccountToCreate:u,bankAccountCreationState:{fetchState:m,error:c},bankNameByRouting:p,fetchBankNameByRoutingStatus:s,onSaveHandler:e,onACHDetailsUpdated:o,onFetchBankName:n,isDisabled:i,companyName:r,isMagicLink:!0,currencySymbol:k,amount:f})};export{v as default};
1
+ import{V as l}from"./index-BS0RW8dr.js";import{f as y}from"./ACHDetailsPage-Dzk7YdoJ-Cuct0t6u.js";import"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./BankAccountWarningSection-CxLBPI_P-CQJWoDnI.js";import"./MagicLinkTitleSection-B4nxLzap-CM0lHGYk.js";import"./BankAccountSection-D3sQOQ-c-t8HGw1J0.js";const v=({magicLinkViewState:t,magicLinkBankAccountDetails:a,onSaveHandler:e,onACHDetailsUpdated:o,onFetchBankName:n,isDisabled:i,companyName:r})=>{const{fetchState:m,error:c,bankNameByRouting:p,bankAccountToCreate:u,fetchBankNameByRoutingStatus:s}=a,{currencySymbol:k,amount:f}=t;return l.jsx(y,{bankAccountToCreate:u,bankAccountCreationState:{fetchState:m,error:c},bankNameByRouting:p,fetchBankNameByRoutingStatus:s,onSaveHandler:e,onACHDetailsUpdated:o,onFetchBankName:n,isDisabled:i,companyName:r,isMagicLink:!0,currencySymbol:k,amount:f})};export{v as default};
@@ -1 +1 @@
1
- import{V as S}from"./index-DdsM_njZ.js";import{w as b}from"./DomesticWireDetailsPage-DuKrVIAL-CvBecXsA.js";import"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./BankAccountSection-Chay7X-G-Z28HgbT-.js";import"./MagicLinkTitleSection-D2fXbnDV-CRSogR9y.js";import"./BankAccountWarningSection-CSChi1lw-BsQ6oo-h.js";import"./MailingDetailsSection-C6cVooC3-XQiKKaRJ.js";import"./LabeledAddressValueField-C_8kPzjy-B8qV6Urv.js";const U=({magicLinkViewState:t,magicLinkBankAccountDetails:e,mailingAddressDetails:a,isDisabled:o,companyName:r,onSaveHandler:i,onWireDetailsUpdated:n,onFetchBankName:m,onAddressClick:s})=>{const{fetchState:c,error:d,bankNameByRouting:p,bankAccountToCreate:u,fetchBankNameByRoutingStatus:k}=e,{currencySymbol:l,amount:y}=t;return S.jsx(b,{bankAccountToCreate:u,bankAccountCreationState:{fetchState:c,error:d},bankNameByRouting:p,addressToEdit:a,addressType:"vendor_address",fetchBankNameByRoutingStatus:k,isDisabled:o,onSaveHandler:i,onWireDetailsUpdated:n,onAddressClick:s,onFetchBankName:m,companyName:r,isMagicLink:!0,currencySymbol:l,amount:y})};export{U as default};
1
+ import{V as S}from"./index-BS0RW8dr.js";import{w as b}from"./DomesticWireDetailsPage-B0KbC9m8-DSgkPJjx.js";import"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./BankAccountSection-D3sQOQ-c-t8HGw1J0.js";import"./MagicLinkTitleSection-B4nxLzap-CM0lHGYk.js";import"./BankAccountWarningSection-CxLBPI_P-CQJWoDnI.js";import"./MailingDetailsSection-Cou_W8JF-D0QplON-.js";import"./LabeledAddressValueField-BgkRIdwJ-D68tBsFt.js";const U=({magicLinkViewState:t,magicLinkBankAccountDetails:e,mailingAddressDetails:a,isDisabled:o,companyName:r,onSaveHandler:i,onWireDetailsUpdated:n,onFetchBankName:m,onAddressClick:s})=>{const{fetchState:c,error:d,bankNameByRouting:p,bankAccountToCreate:u,fetchBankNameByRoutingStatus:k}=e,{currencySymbol:l,amount:y}=t;return S.jsx(b,{bankAccountToCreate:u,bankAccountCreationState:{fetchState:c,error:d},bankNameByRouting:p,addressToEdit:a,addressType:"vendor_address",fetchBankNameByRoutingStatus:k,isDisabled:o,onSaveHandler:i,onWireDetailsUpdated:n,onAddressClick:s,onFetchBankName:m,companyName:r,isMagicLink:!0,currencySymbol:l,amount:y})};export{U as default};
@@ -1 +1 @@
1
- import{V as B}from"./index-DdsM_njZ.js";import{f as S}from"./InternationalWireSwiftDetailsPage-BUa1svL--D_p9pN5U.js";import"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./BankAccountWarningSection-CSChi1lw-BsQ6oo-h.js";import"./MailingDetailsSection-C6cVooC3-XQiKKaRJ.js";import"./LabeledAddressValueField-C_8kPzjy-B8qV6Urv.js";import"./MagicLinkTitleSection-D2fXbnDV-CRSogR9y.js";const H=({magicLinkViewState:t,magicLinkBankAccountDetails:a,mailingAddressDetails:e,isDisabled:n,companyName:i,onSaveHandler:o,onBankDetailsUpdated:r,onFetchBankNameBySwift:m,onAddressClick:s})=>{const{internationalBankAccountCreateStatus:c,internationalBankAccountToCreate:d,fetchBankNameBySwiftStatus:p,bankNameBySwift:k}=a,{currencySymbol:l,amount:u}=t;return B.jsx(S,{bankAccountToCreate:d,bankAccountCreationState:c,bankNameBySwift:k,addressToEdit:e,addressType:"vendor_address",fetchBankNameBySwiftStatus:p,isDisabled:n,onSaveHandler:o,onBankDetailsUpdated:r,onAddressClick:s,onFetchBankNameBySwift:m,companyName:i,isMagicLink:!0,currencySymbol:l,amount:u})};export{H as default};
1
+ import{V as B}from"./index-BS0RW8dr.js";import{f as S}from"./InternationalWireSwiftDetailsPage-BJkaLuNw-77-AaJID.js";import"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./BankAccountWarningSection-CxLBPI_P-CQJWoDnI.js";import"./MailingDetailsSection-Cou_W8JF-D0QplON-.js";import"./LabeledAddressValueField-BgkRIdwJ-D68tBsFt.js";import"./MagicLinkTitleSection-B4nxLzap-CM0lHGYk.js";const H=({magicLinkViewState:t,magicLinkBankAccountDetails:a,mailingAddressDetails:e,isDisabled:n,companyName:i,onSaveHandler:o,onBankDetailsUpdated:r,onFetchBankNameBySwift:m,onAddressClick:s})=>{const{internationalBankAccountCreateStatus:c,internationalBankAccountToCreate:d,fetchBankNameBySwiftStatus:p,bankNameBySwift:k}=a,{currencySymbol:l,amount:u}=t;return B.jsx(S,{bankAccountToCreate:d,bankAccountCreationState:c,bankNameBySwift:k,addressToEdit:e,addressType:"vendor_address",fetchBankNameBySwiftStatus:p,isDisabled:n,onSaveHandler:o,onBankDetailsUpdated:r,onAddressClick:s,onFetchBankNameBySwift:m,companyName:i,isMagicLink:!0,currencySymbol:l,amount:u})};export{H as default};
@@ -1,4 +1,4 @@
1
- import{aW as s,F as n,V as t,b3 as l,o as i,ae as c,E as a,d as p}from"./index-DdsM_njZ.js";import{n as o}from"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const w=()=>{const[e]=s("Confetti"),r=n.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen;return e!=null?t.jsxs(m,{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(x,{})}),t.jsxs(d,{children:[t.jsx(g,{children:r.successTitle}),t.jsx(h,{children:r.successNote})]})]}):null},m=o.div`
1
+ import{aW as s,F as n,V as t,b3 as l,o as i,ae as c,E as a,c as p}from"./index-BS0RW8dr.js";import{n as o}from"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./zeni-epic-state-LPACxnXP.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const z=()=>{const[e]=s("Confetti"),r=n.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen;return e!=null?t.jsxs(m,{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(x,{})}),t.jsxs(d,{children:[t.jsx(g,{children:r.successTitle}),t.jsx(h,{children:r.successNote})]})]}):null},m=o.div`
2
2
  z-index: 999;
3
3
  height: 100vh;
4
4
  width: 100%;
@@ -28,4 +28,4 @@ import{aW as s,F as n,V as t,b3 as l,o as i,ae as c,E as a,d as p}from"./index-D
28
28
  `,x=o(c)`
29
29
  color: ${e=>e.theme.colors.primary};
30
30
  height: ${i.sp4};
31
- `;export{w as default};
31
+ `;export{z as default};
@@ -1,4 +1,4 @@
1
- import{F as C,aV as p,V as a,E as m,o as t,ak as g,p as d,cf as h}from"./index-DdsM_njZ.js";import{n}from"./mui-bYXq4XMS.js";import{a as i}from"./core-3dlyNYRL.js";const x=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"})),E=({companyName:e,currencySymbol:l,amount:s})=>{const r=C.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen,c=s>0?` ${p("0,0.[00]",s,l)}`:"",o=r.title.replace(/<tenant_name>/,e)+c;return a.jsxs(a.Fragment,{children:[a.jsx(y,{children:o}),a.jsxs(V,{children:[r.description.replace(/<tenant_name>/,e),a.jsxs(f,{children:[a.jsx(w,{}),r.encrypted]})]})]})},f=n(h)`
1
+ import{F as C,aV as p,V as a,E as m,o as t,ak as g,p as d,cf as h}from"./index-BS0RW8dr.js";import{n}from"./mui-bYXq4XMS.js";import{a as i}from"./core-3dlyNYRL.js";const x=e=>i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.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"})),E=({companyName:e,currencySymbol:l,amount:s})=>{const r=C.getLocalizedStrings().spendManagement.billPay.billDetails.magicLink.magicLinkScreen,c=s>0?` ${p("0,0.[00]",s,l)}`:"",o=r.title.replace(/<tenant_name>/,e)+c;return a.jsxs(a.Fragment,{children:[a.jsx(y,{children:o}),a.jsxs(V,{children:[r.description.replace(/<tenant_name>/,e),a.jsxs(f,{children:[a.jsx(w,{}),r.encrypted]})]})]})},f=n(h)`
2
2
  display: flex;
3
3
  gap: ${t.sp1};
4
4
  color: ${d.successDark};
@@ -1,4 +1,4 @@
1
- import{Q as h,F as b,y as r,V as s,o as a,cG as u,b7 as x,u as i}from"./index-DdsM_njZ.js";import{n}from"./mui-bYXq4XMS.js";import{W as f}from"./LabeledAddressValueField-C_8kPzjy-B8qV6Urv.js";const o={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])},P=({sectionId:e,addressToEdit:l,addressType:m,isDisabled:p,onAddressClick:g})=>{const t=h(),d=b.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,$=o.largeLabelWidth.value(t);return s.jsxs(s.Fragment,{children:[s.jsx(L,{size:t,children:d.addressDetailTitle}),s.jsx(v,{size:t,children:s.jsx(f,{isDisabled:p,label:{label:d.address,width:$},addressValueField:{name:w(e,"mailingAddress"),placeholder:u(d.address),defaultValue:l,registerOptions:{validate:c=>c!=null},onClick:()=>{g(m)}},additionalInfoLabel:d.additionalAddressLabel,showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`},hasHoverBorder:!1})})]})},w=(e,l)=>`${e}.${l}`,v=n.div`
1
+ import{Q as h,F as b,y as r,V as s,o as a,cG as u,b7 as x,u as i}from"./index-BS0RW8dr.js";import{n}from"./mui-bYXq4XMS.js";import{W as f}from"./LabeledAddressValueField-BgkRIdwJ-D68tBsFt.js";const o={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])},P=({sectionId:e,addressToEdit:l,addressType:m,isDisabled:p,onAddressClick:g})=>{const t=h(),d=b.getLocalizedStrings().spendManagement.billPay.vendorCreation.wireDetails,$=o.largeLabelWidth.value(t);return s.jsxs(s.Fragment,{children:[s.jsx(L,{size:t,children:d.addressDetailTitle}),s.jsx(v,{size:t,children:s.jsx(f,{isDisabled:p,label:{label:d.address,width:$},addressValueField:{name:w(e,"mailingAddress"),placeholder:u(d.address),defaultValue:l,registerOptions:{validate:c=>c!=null},onClick:()=>{g(m)}},additionalInfoLabel:d.additionalAddressLabel,showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`},hasHoverBorder:!1})})]})},w=(e,l)=>`${e}.${l}`,v=n.div`
2
2
  width: auto;
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -0,0 +1,17 @@
1
+ import{V as o,an as h,eN as u,o as s,d,eO as m}from"./index-BS0RW8dr.js";import{a as x}from"./core-3dlyNYRL.js";import{n as c,b as f}from"./mui-bYXq4XMS.js";const y=({open:e,onClose:r,anchorEl:i,children:n,styles:l})=>{const t=d();return o.jsx(m,{transitionDuration:0,anchorEl:i,open:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},slotProps:{paper:{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",background:t.colors.grey5,boxShadow:`${s.sp0} 2px ${s.sp2} ${t.colors.dropShadowHover}`,boxSizing:"border-box",transform:l?.transform??"translate(30px,10px)",borderRadius:s.sp1}}},onClose:r,disableAutoFocus:!0,disableEnforceFocus:!0,children:n})},b=c.div`
2
+ position: relative;
3
+ `,w=({menuItems:e,isMenuOpen:r,isMenuVisible:i=!0,setIsMenuOpen:n,styles:l,menuIconStyles:t})=>{const p=x.useRef(null);return o.jsx(h,{onClickAway:()=>{n(!1)},children:o.jsxs(b,{ref:p,children:[o.jsx(g,{className:"placeholder",style:t,onClick:a=>{a.stopPropagation(),n(!r)},children:o.jsx(v,{isMenuVisible:i,children:o.jsx(u,{})})}),r?o.jsx(y,{open:r,onClose:a=>{a.stopPropagation(),n(!1)},anchorEl:p.current,styles:l,children:e}):null]})})},g=c.div`
4
+ height: ${s.sp4};
5
+ position: relative;
6
+ color: ${e=>e.theme.colors.hero};
7
+ &:hover {
8
+ cursor: pointer;
9
+ color: ${e=>e.theme.colors.primary};
10
+ }
11
+ `,v=c.div`
12
+ width: ${s.sp3};
13
+ height: ${s.sp3};
14
+ ${({isMenuVisible:e})=>e===!1?f`
15
+ display: none;
16
+ `:null};
17
+ `;export{w as P};
@@ -1,4 +1,4 @@
1
- import{e as z,Q as M,fu as L,F as v,aS as x,V as i,bz as D,a9 as $,fo as H,o as t,bu as P,y as d,al as I,ak as _,b as R,B as W,fA as j,fB as C,u,fK as V,p as A,ag as N}from"./index-DdsM_njZ.js";import{a as y}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import{bO as O}from"./zeni-epic-state-LPACxnXP.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const r={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])},E={title:new W("standardMedium","largeMedium")},F=n.img`
1
+ import{d as z,Q as M,fv as B,F as v,aS as x,V as i,bz as D,a9 as $,fp as H,o as t,bu as P,y as d,al as I,ak as _,b as R,B as W,fB as j,fC as C,u,fL as V,p as A,ag as N}from"./index-BS0RW8dr.js";import{a as y}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";import{bO as O}from"./zeni-epic-state-LPACxnXP.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";const r={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])},E={title:new W("standardMedium","largeMedium")},F=n.img`
2
2
  width: ${e=>r.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
3
3
  height: ${e=>r.iconContainerMaxWidthHeight.valuePx(e.windowSize)};
4
4
  border-radius: ${t.sp11};
@@ -20,10 +20,10 @@ import{e as z,Q as M,fu as L,F as v,aS as x,V as i,bz as D,a9 as $,fo as H,o as
20
20
  `,G=n.div`
21
21
  display: flex;
22
22
  opacity: 1;
23
- `,K=n.div`
23
+ `,Y=n.div`
24
24
  display: flex;
25
25
  flex-direction: column;
26
- `,Y=n.div``,q=n.div`
26
+ `,q=n.div``,K=n.div`
27
27
  ${e=>`${E.title.style(e.windowSize)}`};
28
28
  color: ${e=>e.isError===!0?A.important:e.theme.colors.primary};
29
29
  `,X=n.div`
@@ -65,7 +65,7 @@ import{e as z,Q as M,fu as L,F as v,aS as x,V as i,bz as D,a9 as $,fo as H,o as
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:o,accountStatus:s})=>{const a=M(),m=z(),h=e.bankName,l=m.mode==="light"?new x(m.colors.brandColorJadeLight):new x(m.colors.brandColorJadeDark),b={element:i.jsx(P,{width:r.iconWidthHeight.valuePx(a),height:r.iconWidthHeight.valuePx(a)}),color:l},c=o?.providerVerificationStatus?.code,w=`${o?.accountSubType?.name!=null?o.accountSubType.name.substring(0,1).toUpperCase().concat(o.accountSubType.name.substring(1)):""} ${o?.maskedAccountNumber??e.maskedAccountNumber}`.trim(),g=o?.institutionDetails?.zeniInstitutionId.toLowerCase()==="chase";return i.jsx(ne,{windowSize:a,children:i.jsxs(Q,{windowSize:a,children:[i.jsxs(U,{children:[i.jsx(G,{children:oe(b,a,m.mode==="dark",o)}),i.jsxs(K,{children:[i.jsxs(Y,{children:[i.jsx(q,{windowSize:a,children:h}),i.jsx(Z,{children:w?i.jsxs(i.Fragment,{children:[i.jsx(ee,{children:w}),a!=="small"&&(c!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||g)?i.jsx(ie,{}):null]}):null})]}),s!=null&&a==="small"?i.jsx(j,{style:{width:"max-content",padding:0,marginTop:t.sp2},tagTitle:s.name,textColor:C(s.code)}):null]})]}),i.jsx(J,{children:s!=null&&a!=="small"?i.jsx(j,{style:{width:"max-content",padding:0,marginTop:t.sp2},tagTitle:s.name,textColor:C(s.code)}):null})]})})},oe=(e,o,s,a)=>a?.institutionDetails.logo?.base64!=null?i.jsx(F,{windowSize:o,src:`${V}${a.institutionDetails.logo.base64.toString()}`,alt:a.institutionDetails.institutionName,loading:"lazy"}):i.jsx(X,{iconColor:e.color,windowSize:o,isDarkMode:s,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=n.div`
68
+ `,te=({bankAccount:e,paymentAccount:o,accountStatus:s})=>{const a=M(),m=z(),h=e.bankName,l=m.mode==="light"?new x(m.colors.brandColorJadeLight):new x(m.colors.brandColorJadeDark),b={element:i.jsx(P,{width:r.iconWidthHeight.valuePx(a),height:r.iconWidthHeight.valuePx(a)}),color:l},c=o?.providerVerificationStatus?.code,w=`${o?.accountSubType?.name!=null?o.accountSubType.name.substring(0,1).toUpperCase().concat(o.accountSubType.name.substring(1)):""} ${o?.maskedAccountNumber??e.maskedAccountNumber}`.trim(),g=o?.institutionDetails?.zeniInstitutionId.toLowerCase()==="chase";return i.jsx(ne,{windowSize:a,children:i.jsxs(Q,{windowSize:a,children:[i.jsxs(U,{children:[i.jsx(G,{children:oe(b,a,m.mode==="dark",o)}),i.jsxs(Y,{children:[i.jsxs(q,{children:[i.jsx(K,{windowSize:a,children:h}),i.jsx(Z,{children:w?i.jsxs(i.Fragment,{children:[i.jsx(ee,{children:w}),a!=="small"&&(c!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||g)?i.jsx(ie,{}):null]}):null})]}),s!=null&&a==="small"?i.jsx(j,{style:{width:"max-content",padding:0,marginTop:t.sp2},tagTitle:s.name,textColor:C(s.code)}):null]})]}),i.jsx(J,{children:s!=null&&a!=="small"?i.jsx(j,{style:{width:"max-content",padding:0,marginTop:t.sp2},tagTitle:s.name,textColor:C(s.code)}):null})]})})},oe=(e,o,s,a)=>a?.institutionDetails.logo?.base64!=null?i.jsx(F,{windowSize:o,src:`${V}${a.institutionDetails.logo.base64.toString()}`,alt:a.institutionDetails.institutionName,loading:"lazy"}):i.jsx(X,{iconColor:e.color,windowSize:o,isDarkMode:s,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=n.div`
69
69
  display: flex;
70
70
  row-gap: ${t.sp3};
71
71
  flex-direction: column;
@@ -107,4 +107,4 @@ import{e as z,Q as M,fu as L,F as v,aS as x,V as i,bz as D,a9 as $,fo as H,o as
107
107
  display: flex;
108
108
  align-items: center;
109
109
  color: ${e=>e.theme.colors.hero};
110
- `,$e=({plaidConnectionDetails:e,myBankConnectionsView:o,onEstablishConnectionClick:s,onFetchLinkTokenClick:a,onClickMenuIcon:m})=>{const h=z(),l=M(),b=y.useCallback(p=>{s(p)},[s]),c=y.useMemo(()=>e.link_account_no_microdeposit,[e]),{open:w}=L({token:c.linkToken??null,onSuccess:b}),g=v.getLocalizedStrings().common.settings,T=h.mode==="light"?new x(h.colors.brandColorJadeLight):new x(h.colors.brandColorJadeDark),k=v.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;return y.useEffect(()=>{(O(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(D,{source:"MyBankConnectionsSettingsPage",title:g.title.myBankConnections,backgroundColor:h.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:m}),i.jsxs(se,{windowSize:l,children:[i.jsx(ue,{windowSize:l,children:i.jsx(me,{windowSize:l,children:g.infoText.myBankConnections})}),o.bankAccounts.length>0?i.jsx(de,{windowSize:l,children:i.jsx(ce,{windowSize:l,children:g.subtitle.myBankConnections})}):null,i.jsx($,{controller:o.bankAccounts.length>0,children:i.jsx(le,{children:o.bankAccounts.map(p=>{const S=o.paymentAccounts.find(B=>B.bankAccountId==p.bankAccountId);return i.jsx(te,{bankAccount:p,accountStatus:S?.verificationStatus,paymentAccount:S},p.bankAccountId)})})}),i.jsx($,{controller:o.bankAccounts.length===0,children:i.jsx(H,{onClick:()=>{w()},title:k.connectYourBank,subTitle:k.loginToBank,header:g.label.reimbursements,icon:{element:i.jsx(P,{width:f.iconWidthHeight.valuePx(l),height:f.iconWidthHeight.valuePx(l)}),color:T},style:{width:"unset",rowGap:l==="small"?t.sp2:void 0}})})]})]})};export{$e as default};
110
+ `,$e=({plaidConnectionDetails:e,myBankConnectionsView:o,onEstablishConnectionClick:s,onFetchLinkTokenClick:a,onClickMenuIcon:m})=>{const h=z(),l=M(),b=y.useCallback(p=>{s(p)},[s]),c=y.useMemo(()=>e.link_account_no_microdeposit,[e]),{open:w}=B({token:c.linkToken??null,onSuccess:b}),g=v.getLocalizedStrings().common.settings,T=h.mode==="light"?new x(h.colors.brandColorJadeLight):new x(h.colors.brandColorJadeDark),k=v.getLocalizedStrings().spendManagement.reimbursement.reimbursementDetail;return y.useEffect(()=>{(O(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(D,{source:"MyBankConnectionsSettingsPage",title:g.title.myBankConnections,backgroundColor:h.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:m}),i.jsxs(se,{windowSize:l,children:[i.jsx(ue,{windowSize:l,children:i.jsx(me,{windowSize:l,children:g.infoText.myBankConnections})}),o.bankAccounts.length>0?i.jsx(de,{windowSize:l,children:i.jsx(ce,{windowSize:l,children:g.subtitle.myBankConnections})}):null,i.jsx($,{controller:o.bankAccounts.length>0,children:i.jsx(le,{children:o.bankAccounts.map(p=>{const S=o.paymentAccounts.find(L=>L.bankAccountId==p.bankAccountId);return i.jsx(te,{bankAccount:p,accountStatus:S?.verificationStatus,paymentAccount:S},p.bankAccountId)})})}),i.jsx($,{controller:o.bankAccounts.length===0,children:i.jsx(H,{onClick:()=>{w()},title:k.connectYourBank,subTitle:k.loginToBank,header:g.label.reimbursements,icon:{element:i.jsx(P,{width:f.iconWidthHeight.valuePx(l),height:f.iconWidthHeight.valuePx(l)}),color:T},style:{width:"unset",rowGap:l==="small"?t.sp2:void 0}})})]})]})};export{$e as default};
@@ -1,4 +1,4 @@
1
- import{e as B,av as w,F as x,iF as a,V as o,bz as D,g0 as M,o as O}from"./index-DdsM_njZ.js";import{n as P}from"./mui-bYXq4XMS.js";import{eI as V}from"./zeni-epic-state-LPACxnXP.js";import{l as $,r as j}from"./ChargeCardListTable-DsfnKX3P-Fh1-EuqB.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./Menu-D_6Dje0H-BZ0tGHak.js";import"./RoleWithToolTip-GUYLjJwW-r9JBfRcl.js";import"./CardNumberSubText-lh7fQJis-DxcsJYtX.js";const{spendManagement:{chargeCard:C}}=x.getLocalizedStrings(),rt=({myPendingActivationChargeCardListView:e,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,chargeCardCashbackDetailState:r,creditAccount:c,creditAccountRepayment:u,depositAccountListWithDebitCardIssued:i,controllerEmails:b,signedInUser:S,onChargeCardRowClick:p,onBackClick:k,onReloadCards:g,onColumnSortConfigChanged:A})=>{const f=B(),F=w(),h=V(F.loggedInUserRoleMap),v=e.cards.some(t=>t.type.code.includes("credit")),m=e.cards.some(t=>t.type.code.includes("debit")),y=v&&m?C.cardList.title.cards:m?C.cardList.title.debit:C.cardList.title.credit,L=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,I=d&&l&&h===!0?{creditAccountId:c.id,creditAccountLimit:a(c.limit.amount),creditAccountAvailableAmount:a(c.available.amount),creditAccountSpentAmount:a(c.balance.amount+c.hold.amount),creditAccountStatus:c.status,outstandingBalance:a(u.remainingAmountDue.amount)}:void 0,E=n&&s?{debitAccountId:i.depositAccounts.map(t=>t.id),debitAccountName:i.depositAccounts.map(t=>t.accountName),debitAccountBalance:i.depositAccounts.map(t=>a(t.accountBalance.available.amount)),debitCardsSpend:0,debitAccountStatus:i.depositAccounts.map(t=>t.accountStatus)}:void 0,R={isCreditCardOffered:d,isDebitCardOffered:n,isDebitCardEnabled:s,isCreditCardEnabled:l},N={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 o.jsxs(z,{children:[o.jsx(D,{title:y,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:k,source:"MyPendingActivationChargeCardListPage"}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?o.jsx(M,{fetchState:e.fetchState,styles:{margin:"auto"}}):o.jsx($,{onBulkCloseClick:()=>{},onBulkLockClick:()=>{},bulkSubmissionLimit:j,isCardControlsEnabled:!1,cardsSelectedForBulkAction:[],isBulkActionAllowed:!1,firstSelectedCardStatus:void 0,setActionTypeForRowAction:()=>{},setCardIdForRowAction:()=>{},controllerEmails:b,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,creditAccount:c,creditAccountRepayment:u,productInformation:R,cashbackInformation:L,creditAccountInformation:I,debitAccountInformation:E,depositAccountListWithDebitCardIssued:i,cardList:e.cards,showViewForCardUser:!0,signedInUser:S,fetchState:e.fetchState,unlockChargeCardsFetchState:"Not-Started",revokeChargeCardsInviteFetchState:"Not-Started",rowActionView:N,onProceedForBulkActionClick:t=>{},removeAllCardsFromBulkActionList:()=>{},setShowBulkChangeSpendLimitPopup:t=>{},updateBulkActionList:t=>{},onReloadCards:g,onChargeCardRowClick:(t,U)=>{p(t)},uiState:e.uiState,onColumnSortConfigChanged:A,onChargeCardResendInviteClick:()=>{}})]})},z=P.div`
1
+ import{d as B,av as w,F as x,iG as a,V as o,bz as D,g1 as M,o as O}from"./index-BS0RW8dr.js";import{n as P}from"./mui-bYXq4XMS.js";import{eI as V}from"./zeni-epic-state-LPACxnXP.js";import{l as $,r as j}from"./ChargeCardListTable-Bc-4mcCz-DGGclb69.js";import"./core-3dlyNYRL.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./Menu-CdF7UWPF-DT1TTbqS.js";import"./RoleWithToolTip-BxI2nAro-CHrHR5C8.js";import"./CardNumberSubText-FdCtSIHd-Cer2LzOo.js";const{spendManagement:{chargeCard:C}}=x.getLocalizedStrings(),rt=({myPendingActivationChargeCardListView:e,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,chargeCardCashbackDetailState:r,creditAccount:c,creditAccountRepayment:u,depositAccountListWithDebitCardIssued:i,controllerEmails:b,signedInUser:S,onChargeCardRowClick:p,onBackClick:k,onReloadCards:g,onColumnSortConfigChanged:A})=>{const f=B(),F=w(),h=V(F.loggedInUserRoleMap),v=e.cards.some(t=>t.type.code.includes("credit")),m=e.cards.some(t=>t.type.code.includes("debit")),y=v&&m?C.cardList.title.cards:m?C.cardList.title.debit:C.cardList.title.credit,L=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,I=d&&l&&h===!0?{creditAccountId:c.id,creditAccountLimit:a(c.limit.amount),creditAccountAvailableAmount:a(c.available.amount),creditAccountSpentAmount:a(c.balance.amount+c.hold.amount),creditAccountStatus:c.status,outstandingBalance:a(u.remainingAmountDue.amount)}:void 0,E=n&&s?{debitAccountId:i.depositAccounts.map(t=>t.id),debitAccountName:i.depositAccounts.map(t=>t.accountName),debitAccountBalance:i.depositAccounts.map(t=>a(t.accountBalance.available.amount)),debitCardsSpend:0,debitAccountStatus:i.depositAccounts.map(t=>t.accountStatus)}:void 0,R={isCreditCardOffered:d,isDebitCardOffered:n,isDebitCardEnabled:s,isCreditCardEnabled:l},N={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 o.jsxs(z,{children:[o.jsx(D,{title:y,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:k,source:"MyPendingActivationChargeCardListPage"}),e.fetchState==="Not-Started"||e.fetchState==="In-Progress"?o.jsx(M,{fetchState:e.fetchState,styles:{margin:"auto"}}):o.jsx($,{onBulkCloseClick:()=>{},onBulkLockClick:()=>{},bulkSubmissionLimit:j,isCardControlsEnabled:!1,cardsSelectedForBulkAction:[],isBulkActionAllowed:!1,firstSelectedCardStatus:void 0,setActionTypeForRowAction:()=>{},setCardIdForRowAction:()=>{},controllerEmails:b,isChargeCardFeatureEnabled:d,isDebitCardFeatureEnabled:n,isDebitCardSetupEnabled:s,isChargeCardSetupEnabled:l,creditAccount:c,creditAccountRepayment:u,productInformation:R,cashbackInformation:L,creditAccountInformation:I,debitAccountInformation:E,depositAccountListWithDebitCardIssued:i,cardList:e.cards,showViewForCardUser:!0,signedInUser:S,fetchState:e.fetchState,unlockChargeCardsFetchState:"Not-Started",revokeChargeCardsInviteFetchState:"Not-Started",rowActionView:N,onProceedForBulkActionClick:t=>{},removeAllCardsFromBulkActionList:()=>{},setShowBulkChangeSpendLimitPopup:t=>{},updateBulkActionList:t=>{},onReloadCards:g,onChargeCardRowClick:(t,G)=>{p(t)},uiState:e.uiState,onColumnSortConfigChanged:A,onChargeCardResendInviteClick:()=>{}})]})},z=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,fN as te,e as ge,av as be,fO as ye,a8 as xe,aA as we,cC as Pe,cB as $e,F as re,V as l,fP as ve,bz as De,ab as Se,aO as Oe,o as s,fQ as ne,fR as de,fS as ce,cx as ue,y as L,al as me,b as Re,B as je,aH as ee,cN as Ce,cE as Le,fT as G,cK as Te,cI as Ie,fU as Ve,aZ as Be,u as Z}from"./index-DdsM_njZ.js";import{a as $}from"./core-3dlyNYRL.js";import{n as m}from"./mui-bYXq4XMS.js";import{bi as le,bh as pe,bO as Fe,bj as Ne}from"./zeni-epic-state-LPACxnXP.js";import{W as ze}from"./LabeledAddressValueField-C_8kPzjy-B8qV6Urv.js";import{Y as Ae}from"./LabeledUserSingleSelectWithSubtitlesField-B0D7IWfA-BEObQALW.js";import{C as ke,j as Me}from"./LabeledZeniRolesDropDownField-BO8f1yqV-DQ1p6Tiz.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./RoleWithToolTip-GUYLjJwW-r9JBfRcl.js";const b=(e,t)=>`${e}.${t}`,N={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(Z[2],Z[3]),toolTipWidth:new L(215,237),notePadding:new L(Z[3],Z[4]),noteGap:new L(Z[0],6)},{peoplePage:a,common:{settings:se,labels:E,placeholder:F,errorMessage:We},dateFormat:Ze}=re.getLocalizedStrings(),Ue=({myProfileView:e,isZeniFinopsRolesUser:t,sectionId:i,isDisabled:u,isReimbursementDisabled:y,isZeniAccountsDisabled:p,isChargeCardDisabled:o,isBankingOnlyTenant:f,isCardsOnlyTenant:v,isLiteRoleDisabled:T,isTreasuryDisabled:h,onAddressClick:x})=>{const n=ie(),{person:r,managersList:z,classList:A,manager:q,department:g,controllersList:k,myProfileLocalData:M,addressData:H}=e,Q=e.person.user?.birthday!=null?"readonly":void 0,D=N.largeLabelWidth.value(n),I=N.largeLabelWidth.value(n),K=$.useMemo(()=>te(y,p,o,f,v,T,h),[y,p,o,f,v,T,h]),{firstController:w,restControllerEmailsStr:S}=$.useMemo(()=>{const c=ee(k),O=c.splice(0,1),R=c.reduce((V,B)=>V.concat(`${B.email},`),"");return{firstController:O,restControllerEmailsStr:R}},[k]),Y=$.useMemo(()=>ee(ue.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(Ge,{windowSize:n,children:[l.jsx(Ce,{isDisabled:u,label:{label:E.name,width:I},nameField:{name:b(i,"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(Le,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:D},text:{type:"text",name:b(i,"email"),placeholder:G(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${N.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(C,{}),l.jsx(Te,{label:{label:E.dateOfBirth,width:I},style:{width:"auto"},isDisabled:Q,dateField:{name:b(i,"dateOfBirth"),placeholder:F.datePlaceholder,defaultValue:M.dateOfBirth,dateFormat:Ze.visual.defaultInput,autoComplete:"off",maxDate:Ne().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(ze,{label:{label:E.mailingAddress,width:I},addressValueField:{name:b(i,"mailingAddress"),placeholder:F.addressPlaceholder,defaultValue:H?.addressToCreate,onClick:()=>{x("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(i,"phone"),placeholder:F.phonePlaceholder,defaultValue:M.phone,autoComplete:"off"},showVerified:M.isPhoneVerified,style:{width:"auto"}}),l.jsx(C,{}),t?l.jsx(ke,{label:{label:a.invitePage.role,width:D},zeniRolesDropDownField:{name:b(i,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:Y},registerOptions:{required:!0},placeholderLabel:G(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:D},rolesDropDownField:{name:b(i,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(r.userRole?.userRoles??[]),allRootRole:de(f,v)},productsByUserRole:ne(r.userRole?.userRoles??[],K)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(Ae,{label:{label:a.invitePage.manager,width:D},showTooltip:!0,toolTipWidth:N.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(_e,{}),userSingleSelectWithSubTitlesField:{name:b(i,"manager"),value:{allUsers:d?[]:z,selectedUser:d?void 0:q?.userId},valueToSubtitle:c=>{const O=z.findIndex(R=>R.userId===c);if(O!==-1){const R=z[O],V=A.find(J=>J.classId===R.userRole.accountingClassIDs[0]),B=[];return V!=null&&B.push(V.className),B}else return[]},placeholderLabel:d?a.notApplicable:G(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:D},singleSelectWithoutClearableField:{name:b(i,"department"),defaultValue:{allOptions:d?[]:U,selectedOption:d?void 0:U.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:G(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),t?null:l.jsxs(Ee,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(qe,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(He,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Be,{className:"arrowIcon"})]}):null]})]})]})},_e=()=>a.invitePage.managerTooltipText,Ge=m.div`
1
+ import{Q as ie,fO as te,d as ge,av as be,fP as ye,a8 as xe,aA as we,cC as Pe,cB as $e,F as re,V as l,fQ as ve,bz as De,ab as Se,aO as Oe,o as s,fR as ne,fS as de,fT as ce,cx as ue,y as L,al as me,b as Re,B as je,aH as ee,cN as Ce,cE as Le,fU as G,cK as Te,cI as Ve,fV as Ie,aZ as Be,u as Z}from"./index-BS0RW8dr.js";import{a as $}from"./core-3dlyNYRL.js";import{n as m}from"./mui-bYXq4XMS.js";import{bi as le,bh as pe,bO as Fe,bj as ze}from"./zeni-epic-state-LPACxnXP.js";import{W as Ae}from"./LabeledAddressValueField-BgkRIdwJ-D68tBsFt.js";import{Y as Ne}from"./LabeledUserSingleSelectWithSubtitlesField-D3kjxF9V-C7cFlAui.js";import{C as ke,j as Me}from"./LabeledZeniRolesDropDownField-BlmybTGB-C8vefnXI.js";import"./sentry-o6h_D-9x.js";import"./lottie-DEE24l2z.js";import"./liveblocks-DIep7fJd.js";import"./utils-uDUqNRFY.js";import"./analytics-zoE7Zcxt.js";import"./recharts-BHhx6CLo.js";import"./lexical-DPEnH3HH.js";import"./RoleWithToolTip-BxI2nAro-CHrHR5C8.js";const b=(e,t)=>`${e}.${t}`,z={largeLabelWidth:new L(120,120,160),textFieldPaddingHorizontal:new L(Z[2],Z[3]),toolTipWidth:new L(215,237),notePadding:new L(Z[3],Z[4]),noteGap:new L(Z[0],6)},{peoplePage:a,common:{settings:se,labels:E,placeholder:F,errorMessage:We},dateFormat:Ze}=re.getLocalizedStrings(),Ue=({myProfileView:e,isZeniFinopsRolesUser:t,sectionId:i,isDisabled:u,isReimbursementDisabled:y,isZeniAccountsDisabled:p,isChargeCardDisabled:o,isBankingOnlyTenant:f,isCardsOnlyTenant:v,isLiteRoleDisabled:T,isTreasuryDisabled:h,onAddressClick:x})=>{const n=ie(),{person:r,managersList:A,classList:N,manager:Q,department:g,controllersList:k,myProfileLocalData:M,addressData:H}=e,q=e.person.user?.birthday!=null?"readonly":void 0,D=z.largeLabelWidth.value(n),V=z.largeLabelWidth.value(n),K=$.useMemo(()=>te(y,p,o,f,v,T,h),[y,p,o,f,v,T,h]),{firstController:w,restControllerEmailsStr:S}=$.useMemo(()=>{const c=ee(k),O=c.splice(0,1),R=c.reduce((I,B)=>I.concat(`${B.email},`),"");return{firstController:O,restControllerEmailsStr:R}},[k]),Y=$.useMemo(()=>ee(ue.roles),[]),d=pe(r.userRole!=null?r.userRole.userRoles:[]),U=$.useMemo(()=>N.map(c=>({label:c.fullyQualifiedAccountingClassName,value:c.classId,hoverText:c.accountingClassNumber})),[N]);return l.jsxs(Ge,{windowSize:n,children:[l.jsx(Ce,{isDisabled:u,label:{label:E.name,width:V},nameField:{name:b(i,"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(Le,{isDisabled:u,showAdditionalInfoLabel:!1,label:{label:a.invitePage.email,width:D},text:{type:"text",name:b(i,"email"),placeholder:G(a.addPlaceholderPrefix,a.invitePage.email),style:{padding:`${s.sp0} ${z.textFieldPaddingHorizontal.valuePx(n)}`}}}),l.jsx(C,{}),l.jsx(Te,{label:{label:E.dateOfBirth,width:V},style:{width:"auto"},isDisabled:q,dateField:{name:b(i,"dateOfBirth"),placeholder:F.datePlaceholder,defaultValue:M.dateOfBirth,dateFormat:Ze.visual.defaultInput,autoComplete:"off",maxDate:ze().subtract(18,"year")}}),l.jsx(C,{}),l.jsx(Ae,{label:{label:E.mailingAddress,width:V},addressValueField:{name:b(i,"mailingAddress"),placeholder:F.addressPlaceholder,defaultValue:H?.addressToCreate,onClick:()=>{x("user_address")}},showAdditionalInfoLabel:!0,style:{width:"auto",padding:`${s.sp2} ${s.sp2} ${s.sp2} ${s.sp0}`}}),l.jsx(C,{}),l.jsx(Ve,{label:{label:E.phone,width:V},text:{name:b(i,"phone"),placeholder:F.phonePlaceholder,defaultValue:M.phone,autoComplete:"off"},showVerified:M.isPhoneVerified,style:{width:"auto"}}),l.jsx(C,{}),t?l.jsx(ke,{label:{label:a.invitePage.role,width:D},zeniRolesDropDownField:{name:b(i,"role"),defaultValue:{selectedOptions:r.userRole!=null?r.userRole.userRoles:[],allOptions:Y},registerOptions:{required:!0},placeholderLabel:G(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:D},rolesDropDownField:{name:b(i,"nonZeniRole"),defaultValue:{userRole:{selectedRole:ce(r.userRole?.userRoles??[]),allRootRole:de(f,v)},productsByUserRole:ne(r.userRole?.userRoles??[],K)},registerOptions:{required:!0}},isDisabled:u}),l.jsx(C,{}),l.jsx(Ne,{label:{label:a.invitePage.manager,width:D},showTooltip:!0,toolTipWidth:z.toolTipWidth.valuePx(n),tooltipTitle:l.jsx(_e,{}),userSingleSelectWithSubTitlesField:{name:b(i,"manager"),value:{allUsers:d?[]:A,selectedUser:d?void 0:Q?.userId},valueToSubtitle:c=>{const O=A.findIndex(R=>R.userId===c);if(O!==-1){const R=A[O],I=N.find(J=>J.classId===R.userRole.accountingClassIDs[0]),B=[];return I!=null&&B.push(I.className),B}else return[]},placeholderLabel:d?a.notApplicable:G(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(Ie,{label:{label:a.invitePage.department,width:D},singleSelectWithoutClearableField:{name:b(i,"department"),defaultValue:{allOptions:d?[]:U,selectedOption:d?void 0:U.find(c=>c.value===g?.classId)},placeholder:d?a.notApplicable:G(a.selectPlaceholderPrefix,a.invitePage.department),registerOptions:{required:!d},isDisabled:u,showOptionOnHover:!0},isDisabled:u,opacity:d?.32:1}),t?null:l.jsxs(Ee,{windowSize:n,children:[a.invitePage.controllerText,w[0]?l.jsxs(Qe,{href:`mailto:${w[0].email}?cc=${S}&subject=${encodeURIComponent(a.invitePage.emailSubject)}`,children:[l.jsx(He,{children:`${w[0].firstName} ${w[0].lastName}`}),l.jsx(Be,{className:"arrowIcon"})]}):null]})]})]})},_e=()=>a.invitePage.managerTooltipText,Ge=m.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -16,7 +16,7 @@ import{Q as ie,fN as te,e as ge,av as be,fO as ye,a8 as xe,aA as we,cC as Pe,cB
16
16
  min-height: 1px;
17
17
  max-height: 1px;
18
18
  `,Ee=m(me)`
19
- padding: ${e=>`${s.sp1} ${N.notePadding.valuePx(e.windowSize)}`};
19
+ padding: ${e=>`${s.sp1} ${z.notePadding.valuePx(e.windowSize)}`};
20
20
  background: ${e=>e.theme.colors.grey4};
21
21
  border-radius: ${s.sp0} ${s.sp0} ${s.sp2} ${s.sp2};
22
22
  text-align: left;
@@ -24,8 +24,8 @@ import{Q as ie,fN as te,e as ge,av as be,fO as ye,a8 as xe,aA as we,cC as Pe,cB
24
24
  display: flex;
25
25
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
26
26
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
27
- gap: ${e=>N.noteGap.valuePx(e.windowSize)};
28
- `,qe=m.a`
27
+ gap: ${e=>z.noteGap.valuePx(e.windowSize)};
28
+ `,Qe=m.a`
29
29
  color: ${e=>e.theme.colors.hero};
30
30
  text-decoration: none;
31
31
  cursor: pointer;
@@ -43,7 +43,7 @@ import{Q as ie,fN as te,e as ge,av as be,fO as ye,a8 as xe,aA as we,cC as Pe,cB
43
43
  color: ${e=>e.theme.colors.primary};
44
44
  }
45
45
  }
46
- `,He=m.span``,he={sectionWidth:new L(343,580,726),subtitleSectionWidth:new L(343,580,1200)},Qe={title:new je("standardMedium","largeMedium")},P="userDetails",yl=({myProfileView:e,isReimbursementDisabled:t,isZeniAccountsDisabled:i,isChargeCardDisabled:u,isTreasuryDisabled:y,isBankingOnlyTenant:p,isCardsOnlyTenant:o,isLiteRoleDisabled:f,onClickMenuIcon:v,onAddressClick:T,updateMyProfileLocalData:h,onCancelClick:x,onGetOtp:n,onResendOtp:r,onSaveClick:z,onVerifyOtp:A,onVerifyOtpSuccess:q})=>{const g=ie(),k=$.useMemo(()=>te(t,i,u,p,o,f,y),[t,i,u,p,o,f,y]),[M,H]=$.useState(!1),[Q,D]=$.useState(!1),I=ge(),K=be(),w=ye(K),S=xe({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:oe(e,w,k,p,o),values:oe(e,w,k,p,o)}),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&&!we(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(X,_)=>{if(X!=null){const j={..._},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((_,{name:j})=>{j!=null&&_!=null&&$e(()=>B(j,_))});return()=>{X.unsubscribe()}});const J=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(Ke,{children:[l.jsx(ve,{showOtpPopup:M,phoneNumberPopupDescription:"show something",showPhoneNumberPopup:Q,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.myProfileLocalData.phone,onVerifyOtp:A,onVerifyOtpSuccess:q,setShowOtpPopup:H,onResendOtp:r,setShowPhoneNumberPopup:D,onGetOtp:n}),l.jsx(De,{source:"MyProfileSettingsPage",title:W.settings.title.myProfile,backgroundColor:I.colors.grey4,showBackButton:!1,showMenuIcon:g==="medium-compact"||g==="small",onClickMenuIcon:v}),l.jsxs(Ye,{windowSize:g,children:[l.jsx(Je,{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:J,children:[l.jsx(el,{windowSize:g,children:l.jsx(ll,{windowSize:g,children:W.settings.subtitle.myProfile})}),l.jsx(Ue,{myProfileView:e,isZeniFinopsRolesUser:w,isDisabled:"readonly",isReimbursementDisabled:t,sectionId:P,isZeniAccountsDisabled:i,isChargeCardDisabled:u,isTreasuryDisabled:y,isBankingOnlyTenant:p,isCardsOnlyTenant:o,isLiteRoleDisabled:f,onAddressClick:T})]})})]}),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:x,shouldResetOnCancel:!0,style:{minWidth:103}}}):null]})},ae=e=>`${e}_form`,Ke=m.div`
46
+ `,He=m.span``,he={sectionWidth:new L(343,580,726),subtitleSectionWidth:new L(343,580,1200)},qe={title:new je("standardMedium","largeMedium")},P="userDetails",yl=({myProfileView:e,isReimbursementDisabled:t,isZeniAccountsDisabled:i,isChargeCardDisabled:u,isTreasuryDisabled:y,isBankingOnlyTenant:p,isCardsOnlyTenant:o,isLiteRoleDisabled:f,onClickMenuIcon:v,onAddressClick:T,updateMyProfileLocalData:h,onCancelClick:x,onGetOtp:n,onResendOtp:r,onSaveClick:A,onVerifyOtp:N,onVerifyOtpSuccess:Q})=>{const g=ie(),k=$.useMemo(()=>te(t,i,u,p,o,f,y),[t,i,u,p,o,f,y]),[M,H]=$.useState(!1),[q,D]=$.useState(!1),V=ge(),K=be(),w=ye(K),S=xe({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:oe(e,w,k,p,o),values:oe(e,w,k,p,o)}),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&&!we(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),I=O&&(R||c),B=async(X,_)=>{if(X!=null){const j={..._},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((_,{name:j})=>{j!=null&&_!=null&&$e(()=>B(j,_))});return()=>{X.unsubscribe()}});const J=S.handleSubmit(()=>{O&&(e.myProfileLocalData.phone!=null&&(e.myProfileLocalData.isPhoneVerified==null||e.myProfileLocalData.isPhoneVerified===!1)?n(e.myProfileLocalData.phone):A())}),{common:W}=re.getLocalizedStrings();return l.jsxs(Ke,{children:[l.jsx(ve,{showOtpPopup:M,phoneNumberPopupDescription:"show something",showPhoneNumberPopup:q,twoFactorAuthenticationView:e.twoFAView,loggedInUserPhone:e.myProfileLocalData.phone,onVerifyOtp:N,onVerifyOtpSuccess:Q,setShowOtpPopup:H,onResendOtp:r,setShowPhoneNumberPopup:D,onGetOtp:n}),l.jsx(De,{source:"MyProfileSettingsPage",title:W.settings.title.myProfile,backgroundColor:V.colors.grey4,showBackButton:!1,showMenuIcon:g==="medium-compact"||g==="small",onClickMenuIcon:v}),l.jsxs(Ye,{windowSize:g,children:[l.jsx(Je,{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:J,children:[l.jsx(el,{windowSize:g,children:l.jsx(ll,{windowSize:g,children:W.settings.subtitle.myProfile})}),l.jsx(Ue,{myProfileView:e,isZeniFinopsRolesUser:w,isDisabled:"readonly",isReimbursementDisabled:t,sectionId:P,isZeniAccountsDisabled:i,isChargeCardDisabled:u,isTreasuryDisabled:y,isBankingOnlyTenant:p,isCardsOnlyTenant:o,isLiteRoleDisabled:f,onAddressClick:T})]})})]}),I?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:x,shouldResetOnCancel:!0,style:{minWidth:103}}}):null]})},ae=e=>`${e}_form`,Ke=m.div`
47
47
  display: flex;
48
48
  height: 100vh;
49
49
  width: 100%;
@@ -81,5 +81,5 @@ import{Q as ie,fN as te,e as ge,av as be,fO as ye,a8 as xe,aA as we,cC as Pe,cB
81
81
  align-items: center;
82
82
 
83
83
  color: ${e=>e.theme.colors.primary};
84
- ${e=>`${Qe.title.style(e.windowSize)}`};
84
+ ${e=>`${qe.title.style(e.windowSize)}`};
85
85
  `,oe=(e,t,i,u,y)=>{const{classList:p,person:o,managersList:f,manager:v,department:T,myProfileLocalData:h}=e,x=pe(o.userRole!=null?o.userRole.userRoles:[]),n=p.map(r=>({label:r.fullyQualifiedAccountingClassName,value:r.classId,hoverText:r.accountingClassNumber}));return{[P]:{name:{firstName:o.user?.firstName??"",lastName:o.user?.lastName??""},email:o.user?.email??"",role:t?{allOptions:ue.roles,selectedOptions:o.userRole?.userRoles??[]}:void 0,nonZeniRole:t?void 0:{userRole:{selectedRole:ce(o.userRole?.userRoles??[]),allRootRole:de(u,y)},productsByUserRole:ne(o.userRole?.userRoles??[],i)},manager:{allUsers:x?[]:f,selectedUser:sl(x,v)},department:{allOptions:x?[]:n,selectedOption:x?void 0:n.find(r=>r.value===T?.classId)},dateOfBirth:h.dateOfBirth?.toDate(),phone:h.phone,syncToken:h?.syncToken,isPhoneVerified:h?.isPhoneVerified,otpChallenge:h?.otpChallenge,mailingAddress:e.addressData?.addressToCreate}}},sl=(e,t)=>{if(!e)return t!=null?t.userId:"no_manager"};export{yl as default,ae as uniqueFormName};
@@ -1,4 +1,4 @@
1
- import{e as u,Q as g,V as o,aK as p,bQ as m,F as b,o as t,bC as x,eQ as k,b$ as y,bO as C,b as v}from"./index-DdsM_njZ.js";import{n as l}from"./mui-bYXq4XMS.js";const w=l.div`
1
+ import{d as u,Q as g,V as o,aK as p,bQ as m,F as b,o as t,bC as x,eR as k,b$ as y,bO as C,b as v}from"./index-BS0RW8dr.js";import{n as l}from"./mui-bYXq4XMS.js";const w=l.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  flex: 1 1 auto;
@@ -10,7 +10,7 @@ import{e as u,Q as g,V as o,aK as p,bQ as m,F as b,o as t,bC as x,eQ as k,b$ as
10
10
  align-items: center;
11
11
  min-height: ${e=>S.navBarHeight.valuePx(e.windowSize)};
12
12
  background-color: ${e=>e.bgColor};
13
- `,T=l.div``,V=l(y)`
13
+ `,T=l.div``,D=l(y)`
14
14
  cursor: pointer;
15
15
  width: ${t.sp4};
16
16
  height: ${t.sp4};
@@ -18,7 +18,7 @@ import{e as u,Q as g,V as o,aK as p,bQ as m,F as b,o as t,bC as x,eQ as k,b$ as
18
18
  &:hover {
19
19
  color: ${e=>e.theme.colors.primary};
20
20
  }
21
- `,B=l(k)`
21
+ `,V=l(k)`
22
22
  cursor: pointer;
23
23
  width: 20px;
24
24
  min-width: 20px;
@@ -27,4 +27,4 @@ import{e as u,Q as g,V as o,aK as p,bQ as m,F as b,o as t,bC as x,eQ as k,b$ as
27
27
  &:hover {
28
28
  color: ${e=>e.theme.colors.primary};
29
29
  }
30
- `;function z({picker:e,backgroundColor:n,showMenuIcon:a,rightSideComponent:i,onBackClick:c,onClickMenuIcon:s}){const d=u(),h=g(),r=n??d.colors.grey5;return o.jsxs(f,{bgColor:r,windowSize:h,children:[a?o.jsx(B,{onClick:s,"data-testid":p("nav-bar-menu-button")}):o.jsx(m,{style:{marginTop:t.sp1,height:t.sp4},title:j,enterDelay:600,placement:"bottom",children:o.jsx(V,{"data-testid":p("nav-bar-back-button"),onClick:c})}),o.jsx($,{...e,backgroundColor:r}),i!=null?o.jsx(T,{children:i}):null]})}export{z as R};
30
+ `;function z({picker:e,backgroundColor:n,showMenuIcon:a,rightSideComponent:i,onBackClick:c,onClickMenuIcon:s}){const d=u(),h=g(),r=n??d.colors.grey5;return o.jsxs(f,{bgColor:r,windowSize:h,children:[a?o.jsx(V,{onClick:s,"data-testid":p("nav-bar-menu-button")}):o.jsx(m,{style:{marginTop:t.sp1,height:t.sp4},title:j,enterDelay:600,placement:"bottom",children:o.jsx(D,{"data-testid":p("nav-bar-back-button"),onClick:c})}),o.jsx($,{...e,backgroundColor:r}),i!=null?o.jsx(T,{children:i}):null]})}export{z as R};
@@ -1,4 +1,4 @@
1
- import{V as e,o as r,aZ as g,b$ as c}from"./index-DdsM_njZ.js";import{b as l,n as t}from"./mui-bYXq4XMS.js";const $=l`
1
+ import{V as e,o as r,aZ as g,b$ as c}from"./index-BS0RW8dr.js";import{b as l,n as t}from"./mui-bYXq4XMS.js";const $=l`
2
2
  border-left-style: none;
3
3
  margin-left: -${r.sp3};
4
4
  border-top-right-radius: ${r.sp2};
@@ -1,4 +1,4 @@
1
- import{V as e,aK as v,o as t}from"./index-DdsM_njZ.js";import{n as a}from"./mui-bYXq4XMS.js";const C=a.div`
1
+ import{V as e,aK as v,o as t}from"./index-BS0RW8dr.js";import{n as a}from"./mui-bYXq4XMS.js";const C=a.div`
2
2
  text-align: center;
3
3
  cursor: pointer;
4
4
  `,y=a.div`