@zeniai/web-cockpit-ui 1.14.39-qa → 1.14.40-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 (225) hide show
  1. package/dist/assets/{ACHDetailsPage-C0HaWoSJ-CYzWyp3u.js → ACHDetailsPage-C0HaWoSJ-Dc5JPQ9N.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BcpJ60QE-BjzbJfvL.js → AIPerformancePage-BcpJ60QE-CtwR6J9S.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-8k9PvHMB-C4PmGgp4.js → AccountInfoPage-8k9PvHMB-DZyvxf4V.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-C7qnFSOO-C1-ReILF.js → AccountInfoPageContent-C7qnFSOO-kIwITRCp.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Nuuzfbv1-BZaq0B5e.js → AccountLockedInfoModal-Nuuzfbv1-D8-h_fCC.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-O9at1_JO-CQS_z9Vh.js → AccountReconDetailsDrawerPage-O9at1_JO-DI5XcSqF.js} +1 -1
  7. package/dist/assets/{AccountRow-D7TS2v2D-ErAHZJMf.js → AccountRow-D7TS2v2D-CXpu3RBt.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-Bd_rvzbl-C9op2BJy.js → AccountsPromoCardStack-Bd_rvzbl-BTn5w5o9.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-DZJDqdMv-DtLvmvPy.js → AddAddressForCardDrawer-DZJDqdMv-Cg4NeP1v.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CsHR0N---CrIKQNZj.js → AddToWalletPage-CsHR0N---CReMNlUz.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-D7pM0zmb-C72yZkhy.js → AgingReportsPage-D7pM0zmb-BuDoPaRl.js} +1 -1
  12. package/dist/assets/{AllUserItems-iYe6sokO-D_qaih0e.js → AllUserItems-iYe6sokO-aNUOL4ty.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Bqn7qtw--DNVOM-7A.js → ApAgingDetailPage-Bqn7qtw--DtOkXocQ.js} +1 -1
  14. package/dist/assets/{AppBasePage-CsoraCNO-jYkyr-7x.js → AppBasePage-CsoraCNO-ExgiFDSz.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-B0lIGzQX-BNGHtfeZ.js → AppDrawerContent-B0lIGzQX-CG7hQ-7J.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-BQV7Dw4L-Bq4O-r_P.js → ApprovalRulesSettingsPage-BQV7Dw4L-h9PzT8u0.js} +1 -1
  17. package/dist/assets/{ArAgingChart-RMxcWQSp-DLoBa_IS.js → ArAgingChart-RMxcWQSp-G3XJ7xii.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-NedRj0-7-B1TP0S3q.js → ArAgingDetailPage-NedRj0-7-BonBqaV_.js} +1 -1
  19. package/dist/assets/{AttachmentView-CQXaXBQ0-C-s0gIqV.js → AttachmentView-CQXaXBQ0-DG9KqabP.js} +1 -1
  20. package/dist/assets/{BankAccountSection-X5lu-xFg-rI1MYX2X.js → BankAccountSection-X5lu-xFg-TbmLt2Ax.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CVhY2Ven-ByJf4Phz.js → BankAccountWarningSection-CVhY2Ven-MI-JQ1yO.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-DHoPOUfJ-ZTq4rWRu.js → BankConnectionsSettingsPage-DHoPOUfJ-DW1tGoNi.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Bn7AiS3S-DYteOBJt.js → BillDetailPage-Bn7AiS3S-BZ28bPGv.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-BNUTi_3l-D02mrKgv.js → BillPayApprovalRuleDetailPage-BNUTi_3l-BrNn-Lg5.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-Cyl51uwx-tqESeQYC.js → BillPayApprovalRulesPage-Cyl51uwx-B0C7ukmg.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-C-C53jfT-B4loNRgq.js → BillPayPromoPage-C-C53jfT-DHzs6DsU.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-DK03W_KV-BHYJrYL7.js → BillPaySetUpPage-DK03W_KV-C7gypIrH.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-mh7zXUFz-1xHRjstt.js → BillingSettingsPage-mh7zXUFz-PtqIHFv4.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-eif54uHi-BodWKVVZ.js → BillsBulkReviewDrawerPage-eif54uHi-BY7mu3gx.js} +1 -1
  30. package/dist/assets/{BoxItem-Bwh-fULe-Qk6VZT8D.js → BoxItem-Bwh-fULe-Cnvh0VLf.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-TkVkNqIG-DLxSISIY.js → BusinessVerificationPage-TkVkNqIG-kO3sbCuM.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BhMD3p_M-VUVKIgGF.js → CardNumberSubText-BhMD3p_M-DwICSaFN.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BZ-HHrYd-Bosj0pHL.js → CashbackDetailPage-BZ-HHrYd-D7DeuuQ4.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-BmAB59Qs-D7MTOFfu.js → ChargeCardDetailPage-BmAB59Qs-BujIsaCJ.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-CosFJd02-BuKe46Aw.js → ChargeCardListPage-CosFJd02-D0F4rAbY.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-CpHJHWnY-EQN_KaPh.js → ChargeCardListTable-CpHJHWnY-C2UTTrvE.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-CUWQ2Doj-SzM2Yuy7.js → ChargeCardPromoPage-CUWQ2Doj-svt7Kq-x.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-Cf_UjTmV-Ckg6tn_j.js → ChargeCardSetupPage-Cf_UjTmV-CakqJLB9.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-CJjm5X-O-bAm_YCG-.js → ChargeCardStatementsPage-CJjm5X-O-DEvYaVae.js} +1 -1
  40. package/dist/assets/{ChargeCardUtils-DtlGBAOG-B-RH9A8U.js → ChargeCardUtils-DtlGBAOG-CnFwGz8i.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-D9_jipgQ-BFWGd0Ne.js → ChaseOverlay-D9_jipgQ-C9IApPhh.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-C0cBFFEH-DcgDJzgz.js → CheckDepositDrawerPage-C0cBFFEH-DO9mNbUo.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-Bubej7Ql-I56N7D7G.js → CollapsableReportTable-Bubej7Ql-B-Haow9V.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-CeH1OeAD-DhcdapYz.js → CompanyOfficerDetailsSection-CeH1OeAD-CDN4q74j.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-DL5W7ueC-Qu7YNKn-.js → CompanyPassportCard-DL5W7ueC-DxD3wi5U.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-DigtE7w9-DiQUZWl5.js → CompanyPassportPage-DigtE7w9-BbT2L8df.js} +1 -1
  47. package/dist/assets/{CompleteProfile-Bg7I3lpF-Do8KTohl.js → CompleteProfile-Bg7I3lpF-C68N9Ffu.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-AOgMJCCW-eG2AYLQ7.js → ConfettiBurst-AOgMJCCW-BNA_L2gY.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-Bv82RVf6-BYFoAR4W.js → CreateOrEditVendorPage-Bv82RVf6-BnL5MUAM.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-C3ZpHHOb-CjCkZpoC.js → CreditCardPaymentDrawerPage-C3ZpHHOb-C0Kp9JUP.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentPlgSection-DkQpCIiA-B4cVl3PE.js → CreditCardPaymentPlgSection-DkQpCIiA-CI4n-74w.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-DhbePxwd-DMOVP1pM.js → CurrencySelectField-DhbePxwd-Cd-AHSQD.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-BG8XSP7a-DzftMwFF.js → CustomerOnboardingActivationPage-BG8XSP7a-Bp02DWY-.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-DouBKVdi-DjCpZaQA.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CSnGdP4D-FxgemhTz.js → CustomerOnboardingDetailPageSkeleton-CSnGdP4D-DOKb-pCZ.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-DC5SvJ3Y-CnQWxdJ9.js → CustomerOnboardingNoStepsPage-DC5SvJ3Y-DaKVTiM9.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-7v85vPxH-DYMN-VR1.js → CustomerOnboardingPage-7v85vPxH-BbgR3kNR.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BhYHtuIm-4Rgdt32F.js → CustomerOnboardingProductSuitePage-BhYHtuIm-CQypRUha.js} +1 -1
  59. package/dist/assets/{Dashboard-CqXj-08s-Bevugtxg.js → Dashboard-CqXj-08s-BArrunRY.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-CakUfI8Y-CwpvXJla.js → DashboardReportPage-CakUfI8Y-L0ses7UF.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-__d52UhZ-eZoP5Du9.js → DashboardSidebarBackgroundAnimation-__d52UhZ-Ceg2kzeD.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-CVGiw_b2-BOCfCJHK.js → DepositAccTransactionItem-CVGiw_b2-CfGaUFaN.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-BLds9psS-BMPBzkJ9.js → DepositAccTransactionListPage-BLds9psS-CfaHcFYy.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-BfypyRjN-DhjsrA5n.js → DomesticWireDetailsPage-BfypyRjN-DhX6lTqU.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DG4lR1Pb-uBhLxdQY.js → DownloadOverlay-DG4lR1Pb-DM5-MnYq.js} +1 -1
  66. package/dist/assets/{DrawerPage-DppLxflk-B9nKelh3.js → DrawerPage-DppLxflk-oxHByEwB.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-ISgRqKSY-BD58NOE7.js → EditPeoplePage-ISgRqKSY-rfxXcGVm.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-C1nghhum-DqT8uArn.js → EditReimbursementDetailPage-C1nghhum-C958DjQB.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-DjgV66W8-BvPDt-F-.js → EntityDetailPage-DjgV66W8-DZ5igwA9.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-BBc3t5R9-i3Kf8JJT.js → EntitySummarySection-BBc3t5R9-DzHOpDVR.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-fzZP2aKu-DjKAs_4E.js → ExpenseAutomationOverviewPage-fzZP2aKu-CCu0MleJ.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-BSjV8d-I-DBhB8hdu.js → ExpenseAutomationPage-BSjV8d-I-75tcqP7q.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-DKBLyt2v-CmK_nwB1.js → ExpressPayPage-DKBLyt2v-BL6tHheh.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-V38xu6Zo-CyeZYU_I.js → FeaturePreviewPage-V38xu6Zo-CyaOyBKD.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-Bo5_aHsj-aDz0ZLDE.js → FollowStepsSection-Bo5_aHsj-D_2P3NsX.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-BXWgxJUG-DgYqWCWh.js → GlobalReviewListPage-BXWgxJUG-Dc8bw5mq.js} +1 -1
  77. package/dist/assets/{HelpButton-B3uWY2LR-Cc9qhHgW.js → HelpButton-B3uWY2LR-OlttS1C0.js} +1 -1
  78. package/dist/assets/{InformationCardStack-DUi7F4j9-Db-T20i1.js → InformationCardStack-DUi7F4j9-Bzofi24T.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-DpsGvwAF-C-J4FpSc.js → InsightsCardStack-DpsGvwAF-DavKovHg.js} +1 -1
  80. package/dist/assets/{InsightsSection-CFeEzjB3-Cp-KSZAQ.js → InsightsSection-CFeEzjB3-D_1DfMdF.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-Ck0miRzH-BGIdTioz.js → IntegrationsSettingsPage-Ck0miRzH-COeNLu0O.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-CHh9rwda-DsugTIsT.js → InternationalWireSwiftDetailsPage-CHh9rwda-CYMl7fKC.js} +1 -1
  83. package/dist/assets/{InternationalWireVerificationPage-DoQ9eiu4-VLWc1O1m.js → InternationalWireVerificationPage-DoQ9eiu4-CAFn32kX.js} +1 -1
  84. package/dist/assets/{InviteFormPage-zZoT105K-BqaChxor.js → InviteFormPage-zZoT105K-CDjZZmix.js} +1 -1
  85. package/dist/assets/{InvitePageListView-Bqi0nN3K-BI_MQCpr.js → InvitePageListView-Bqi0nN3K-Cugufhfk.js} +1 -1
  86. package/dist/assets/{InvitePeoplePage-D6Pp40Kl-D0Hbr6Z8.js → InvitePeoplePage-D6Pp40Kl-BkOtYcxF.js} +1 -1
  87. package/dist/assets/{InvoiceUploadSection-BTwzAYmG-DMpzVNbQ.js → InvoiceUploadSection-BTwzAYmG-DqCxJXD_.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-DFnsBjmh-B0dgb7mt.js → IssueChargeCardPage-DFnsBjmh-BMzEcFnV.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-CYEpguO_-DtcwtMyI.js → LabeledAddressValue-CYEpguO_-DG_G1pyJ.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-CNyhuNMg-DZjijMbu.js → LabeledAddressValueField-CNyhuNMg-BDiOnCQn.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-CSh6A3bd-D_UjGj4t.js → LabeledControlledCheckBoxField-CSh6A3bd-D6-VupFL.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-CtuwY_9o-DVp0uP0K.js → LabeledCreatableSingleSelectField-CtuwY_9o-BYO4B8QP.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-Dyfj_Dx0-BuSnNhWX.js → LabeledDocumentField-Dyfj_Dx0-CxT8amBm.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-D8oMk4xt-B5tgITDK.js → LabeledDropDownFormattedTextField-D8oMk4xt-NfRrE6TJ.js} +1 -1
  95. package/dist/assets/{LabeledText-DhIVEuvE-Bwmv_pR3.js → LabeledText-DhIVEuvE-BGpps1jt.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BrN-E_iu-DAi0AltO.js → LabeledUserSingleSelectWithSubtitlesField-BrN-E_iu-H_-zsD1L.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BPSDhXTS-CgPkAHL6.js → LabeledZeniRolesDropDownField-BPSDhXTS-B9hIUe6J.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-CSD6-ita-BkzvOq6A.js → LinkJETransactionPage-CSD6-ita-BuYlOJqv.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-DG7UpS2F-DnlOSxZx.js → LowBalancePopup-DG7UpS2F-Bu5UEVfd.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-m5chQr23-CkF3cXgL.js → MagicLinkACHDetailsPage-m5chQr23-4RLEMs7o.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-Cob4wAR7-CBVrUh63.js → MagicLinkDomesticWireDetailsPage-Cob4wAR7-LbXvtvq_.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DX9NH12J-KCWpxG7I.js → MagicLinkInternationalWireDetailsPage-DX9NH12J-D2R3cXNL.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-DgcpyzOK-Boi8pRv9.js → MagicLinkSuccessPage-DgcpyzOK-CmCaLAu5.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-wjuKcqab-DTnb4_9g.js → MagicLinkTitleSection-wjuKcqab-D7vo35cb.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-DU4LYPzH-fYkr0XK5.js → MailingDetailsSection-DU4LYPzH-BXsLAtDc.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-YiB2ETli-eakVkALK.js → MeetingCalenderPopup-YiB2ETli-CqKaSUHn.js} +1 -1
  107. package/dist/assets/{Menu-Bi_Vto-l-BxB5wP7W.js → Menu-Bi_Vto-l-B6nlDzVX.js} +1 -1
  108. package/dist/assets/{MyBankConnectionsSettingsPage-LgbzbrTj-CzhZaXBG.js → MyBankConnectionsSettingsPage-LgbzbrTj-BFa0cAOH.js} +1 -1
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-CZs9UFV5-BIM_ASmj.js → MyPendingActivationChargeCardListPage-CZs9UFV5-DK2YM84p.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-DIADfZVY-CxuxK0VW.js → MyProfileSettingsPage-DIADfZVY-BDHoxXS8.js} +1 -1
  111. package/dist/assets/{NavBarWithPicker-DEqzM9Qm-DGHjt1gH.js → NavBarWithPicker-DEqzM9Qm-_DqMMA0k.js} +1 -1
  112. package/dist/assets/{NavigationArrow-DzZDXuKr-COErlBjm.js → NavigationArrow-DzZDXuKr-B7BwQbpV.js} +1 -1
  113. package/dist/assets/{NavigationDots-CFxiVMnb-BWrfrorl.js → NavigationDots-CFxiVMnb-Dxb6vagd.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-JsTrXT1T-OiUceCi5.js → NewGlobalMerchantPage-JsTrXT1T-DERt7sEx.js} +1 -1
  115. package/dist/assets/{NoDataChart-gi34_J2e-BLVBAxAp.js → NoDataChart-gi34_J2e-BOq-1JyJ.js} +1 -1
  116. package/dist/assets/{NoDataTable-DtmdB0eI-LYAULsIh.js → NoDataTable-DtmdB0eI-BxWxqQ9f.js} +1 -1
  117. package/dist/assets/{NotFoundPage-Bk5zRv9L-rXCSFzfz.js → NotFoundPage-Bk5zRv9L-CAPJCopB.js} +1 -1
  118. package/dist/assets/{NotificationSettingsPage-DFHLMWiI-BtnkBgng.js → NotificationSettingsPage-DFHLMWiI-CAa4vlQq.js} +1 -1
  119. package/dist/assets/{NotificationsListConfig-DxFLCS42-Dby1JohT.js → NotificationsListConfig-DxFLCS42-Dryoh4sl.js} +1 -1
  120. package/dist/assets/{NotificationsPage-E3pYaBJv-CqQ6S7bt.js → NotificationsPage-E3pYaBJv-CS1qVYiF.js} +1 -1
  121. package/dist/assets/{OpExByVendorPage-CgaLMeOS-DMnI-Vh8.js → OpExByVendorPage-CgaLMeOS-CLk81uBN.js} +1 -1
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-DFtuPhIe.js → OverlayContainerPage-Bmu909Fo-EXe69QYn.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-CZkL9zJq-BZvwMzyR.js → PandLWithForecastPage-CZkL9zJq-C6y3vZ9S.js} +1 -1
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D190AP1Y-CKpw7Mgr.js → PaymentAccountSetupBillingAddressSection-D190AP1Y-BjMBxnd9.js} +1 -1
  125. package/dist/assets/{PeoplePage-BwfDzqla-2SYT546o.js → PeoplePage-BwfDzqla-jRNvSDjZ.js} +1 -1
  126. package/dist/assets/{PortfolioAllocationFormPage-BLdGGltt-DYHY7lo_.js → PortfolioAllocationFormPage-BLdGGltt-jcopE-iX.js} +1 -1
  127. package/dist/assets/{PortfolioDetails-agrnhRRW-CwPi8dd_.js → PortfolioDetails-agrnhRRW-bdNc5pLU.js} +1 -1
  128. package/dist/assets/{ProductsCarousel-CqBzOsli-BtzGnxzh.js → ProductsCarousel-CqBzOsli-B8X-IKsl.js} +1 -1
  129. package/dist/assets/{PromoBaseCards-BUYkqKhW-Co9Uzvqm.js → PromoBaseCards-BUYkqKhW-B1j2ucCH.js} +1 -1
  130. package/dist/assets/{QBOConnectionDialog-JoNcGvU6-BWVEWVLJ.js → QBOConnectionDialog-JoNcGvU6-DWXeA3jb.js} +1 -1
  131. package/dist/assets/{QBOSetupSection-cB-8iCoM-Dg-KclaX.js → QBOSetupSection-cB-8iCoM-i7dLrr5Q.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CfOZ0t5v-BbwdXU7X.js → ReimbursementApprovalRuleDetailPage-CfOZ0t5v-CV7GAFF2.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRulesPage-DDtX0CfL-ClMivjMD.js → ReimbursementApprovalRulesPage-DDtX0CfL-C8p_ZO2g.js} +1 -1
  134. package/dist/assets/{ReimbursementDetailPage-D3rgg3kA-C8ckba0u.js → ReimbursementDetailPage-D3rgg3kA-D5du5Mqk.js} +1 -1
  135. package/dist/assets/{ReimbursementPromoPage-Cn3Z10XN-BtJyTdQr.js → ReimbursementPromoPage-Cn3Z10XN-CHstzTse.js} +1 -1
  136. package/dist/assets/{ReimbursementSetUpPage-B_gdhg1O-BkczvuQz.js → ReimbursementSetUpPage-B_gdhg1O-CmHe8InY.js} +1 -1
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BtBowdlA-CgQXoZsL.js → ReimbursementsBulkReviewDrawerPage-BtBowdlA-Bff-ZZ8J.js} +1 -1
  138. package/dist/assets/{ReloadCard-BY23wQlB-DT_SVyV5.js → ReloadCard-BY23wQlB-BJD-2H6c.js} +1 -1
  139. package/dist/assets/{ReportTableViewSelector-Dzg62ctm-CdY7KKPK.js → ReportTableViewSelector-Dzg62ctm-WFJR-fXp.js} +1 -1
  140. package/dist/assets/{ReportsPage-CzflkNSs-CJbgeDWW.js → ReportsPage-CzflkNSs-BQaWkMYG.js} +1 -1
  141. package/dist/assets/{RevenueChart-DNOek9MJ-CchLVSHc.js → RevenueChart-DNOek9MJ-CP-2pEDw.js} +1 -1
  142. package/dist/assets/{ReviewDetailsPage-ChMF35Zu-bjNjN0zy.js → ReviewDetailsPage-ChMF35Zu-BuP67dVO.js} +1 -1
  143. package/dist/assets/{ReviewOverlay-COIKeR15-D4umWw67.js → ReviewOverlay-COIKeR15-BcSsy_vI.js} +1 -1
  144. package/dist/assets/{RoleWithToolTip-DWcWpu1c-ChJZdZKj.js → RoleWithToolTip-DWcWpu1c-lubwiBJ4.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CxKTS1Ys-B2K2WH_i.js → ScheduleDetailsFixedAssetsPage-CxKTS1Ys-vgXmo78e.js} +1 -1
  146. package/dist/assets/{ScheduleDetailsPage-6MqWtRbl-obDQMBrG.js → ScheduleDetailsPage-6MqWtRbl-BKxcOCs-.js} +1 -1
  147. package/dist/assets/{ScheduleSequenceTable-cwZqH3zx-5Lt3G9Zz.js → ScheduleSequenceTable-cwZqH3zx-D2fQFHiq.js} +1 -1
  148. package/dist/assets/{ScreenRoutes-BMbKOVcJ.js → ScreenRoutes-KSywlUe_.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-BeXsisXh-BBiL43A9.js → SetUpAccountSection-BeXsisXh-C8iQqoE3.js} +1 -1
  150. package/dist/assets/{SetUpDefaultSection-Bw-ODNSn-BA2XuR6A.js → SetUpDefaultSection-Bw-ODNSn-XyoiRDtn.js} +1 -1
  151. package/dist/assets/{SignIn-BYWJCKCM-B6iBaFj3.js → SignIn-BYWJCKCM-iAXwoeyl.js} +1 -1
  152. package/dist/assets/{SignInScreen-WyUs45g6.js → SignInScreen-X2bNuyVp.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-Cncc2ohq-qQtSoDsI.js → SpendManagementListViewPage-Cncc2ohq-gJW6I76n.js} +3 -3
  154. package/dist/assets/{SpendManagementPerTabPage-BR5w_58--BgLvrvne.js → SpendManagementPerTabPage-BR5w_58--Bz1qFkXu.js} +1 -1
  155. package/dist/assets/{SpendManagementSection-BjNiE7SK-DjQIzhUg.js → SpendManagementSection-BjNiE7SK-D7jeMM-c.js} +1 -1
  156. package/dist/assets/{SpendMgmtSetupAccountSection-BQP4OHws-ClD17BaL.js → SpendMgmtSetupAccountSection-BQP4OHws-IXpe5hj1.js} +1 -1
  157. package/dist/assets/{StatementItem-uDpMbqmR-B6So7O5M.js → StatementItem-uDpMbqmR-DBTHHgkS.js} +1 -1
  158. package/dist/assets/{StatementsPage-BQ6zpjtq-C7OAS5Hf.js → StatementsPage-BQ6zpjtq-HFcofufo.js} +1 -1
  159. package/dist/assets/{StatusSwitcher-DnQFgeLN-C3AefLrS.js → StatusSwitcher-DnQFgeLN-DpDkgj5j.js} +1 -1
  160. package/dist/assets/{SubTabSwitcher-BSxF2cHS-DcEcmm_M.js → SubTabSwitcher-BSxF2cHS-DzqRE0-4.js} +1 -1
  161. package/dist/assets/{SummaryCard-DwlHiqjy-BAk7Ogck.js → SummaryCard-DwlHiqjy-DovYblcz.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-BPY7YdEt-CibqHxPC.js → TaskManagementPage-BPY7YdEt-Bhs7yAJe.js} +1 -1
  163. package/dist/assets/{TimeRangeSwitcher-D66ILzZ8-CyqOuENH.js → TimeRangeSwitcher-D66ILzZ8-BUSvdhZS.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcher-C2DIHjU8-CXhghobg.js → TimeframeSwitcher-C2DIHjU8-FFKAp4XL.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-V1DMLkhs-DZ-umO0t.js → TimeframeSwitcherWithToggle-V1DMLkhs-Cnh86APd.js} +1 -1
  166. package/dist/assets/{TopExCard-DSqZSZGZ-CiIezt1Z.js → TopExCard-DSqZSZGZ-Dw-FQUIS.js} +1 -1
  167. package/dist/assets/{TopExDetailPage-OstkHsg3-Cm63-tmL.js → TopExDetailPage-OstkHsg3-DvRigN0b.js} +1 -1
  168. package/dist/assets/{TransactionDetailPage-AbBJQKHm-vEk0hpGA.js → TransactionDetailPage-AbBJQKHm-dGel1c3Z.js} +1 -1
  169. package/dist/assets/{TransactionList-CkdTkJqL-ByxEuyvr.js → TransactionList-CkdTkJqL-Cgr2VpIS.js} +1 -1
  170. package/dist/assets/{TransactionListBig-BZ5gpbJ5-BkqKQBge.js → TransactionListBig-BZ5gpbJ5-Bm4_r9qH.js} +1 -1
  171. package/dist/assets/{TransactionListPage-CqU-E-7M-CbedGDiy.js → TransactionListPage-CqU-E-7M-BizBcsew.js} +1 -1
  172. package/dist/assets/{TransactionVendorDetailPage-BvcpFzUp-CHkerU7g.js → TransactionVendorDetailPage-BvcpFzUp-DW2mpv-1.js} +1 -1
  173. package/dist/assets/{TransferDrawerPage-D1NgpWIq-DCL4jAR5.js → TransferDrawerPage-D1NgpWIq-C2E7-vdj.js} +1 -1
  174. package/dist/assets/{TreasuryOverviewPage-CD2o1CFy-D5XJ_3fg.js → TreasuryOverviewPage-CD2o1CFy-8qk7AdY6.js} +1 -1
  175. package/dist/assets/{TreasuryPromoPage-CwmjKeA3-DCBTkk5-.js → TreasuryPromoPage-CwmjKeA3-BNj8wbyy.js} +1 -1
  176. package/dist/assets/{TreasurySetupPage-DP8WeoZ8-ifCXJGS7.js → TreasurySetupPage-DP8WeoZ8-Dr5EZ1f3.js} +1 -1
  177. package/dist/assets/{TreasuryStatementsPage-e6twnrIV-DkN7gxmF.js → TreasuryStatementsPage-e6twnrIV-DioRFi4U.js} +1 -1
  178. package/dist/assets/{TreasuryTaxLetterPage-C0b1z_Th-PjRP4WJp.js → TreasuryTaxLetterPage-C0b1z_Th-B11BzKum.js} +1 -1
  179. package/dist/assets/{TreasuryTransferOrReviewPage-CKyTuHqj-BJLpbqtc.js → TreasuryTransferOrReviewPage-CKyTuHqj-BTErZLx_.js} +1 -1
  180. package/dist/assets/{TrendChart-Dn0GiuT9-f0hc-Dw5.js → TrendChart-Dn0GiuT9-HQjjMVrP.js} +1 -1
  181. package/dist/assets/{TrendWithTransactions-DtPVZEAr-Czky0iLs.js → TrendWithTransactions-DtPVZEAr-DnuxxeAb.js} +1 -1
  182. package/dist/assets/{UncategorizedAccountsMappingPage-BsNKhjNn-a3uOzSf1.js → UncategorizedAccountsMappingPage-BsNKhjNn-DKa7txXi.js} +1 -1
  183. package/dist/assets/{UnitIntegrationPage-yq2PJvQf-BfdM5Y6y.js → UnitIntegrationPage-yq2PJvQf-lbVttX1U.js} +1 -1
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-CGX4As30-Dkj3hJRd.js → UploadAdditionalDocumentOverlay-CGX4As30-PMvLbAD2.js} +1 -1
  185. package/dist/assets/{Vendor2FAPopup-iHeZH2a--VIuLU-NO.js → Vendor2FAPopup-iHeZH2a--CWW41Kpu.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-w879CB2t-CUMGqwTT.js → VendorACHDetailsPage-w879CB2t-DBelQrTv.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-DZ4h1qWW-Da-w2sTb.js → VendorDetailPage-DZ4h1qWW-vxXfS1yQ.js} +1 -1
  188. package/dist/assets/{VendorDomesticWireDetailsPage-CHju4IUB-1f1M870i.js → VendorDomesticWireDetailsPage-CHju4IUB-BwOjp8sq.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-BlvW4OEf-D2F_6Fz0.js → VendorFiling1099EditablePage-BlvW4OEf-caJ6TGkm.js} +1 -1
  190. package/dist/assets/{VendorFirstReviewPage-4NSSfruW-B-QVwKy5.js → VendorFirstReviewPage-4NSSfruW-SkZiIEM_.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireDetailsPage-CYnMhzsB-DAMfh60F.js → VendorInternationalWireDetailsPage-CYnMhzsB-Dp-2dBCE.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CXhnSzG9-C8WebXjw.js → VendorInternationalWireSwiftDetailsPage-CXhnSzG9-CqZ25PxA.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-DytBkZ5j-B0G1TjWZ.js → VendorsAccountsSection-DytBkZ5j-BDTqXfPm.js} +1 -1
  194. package/dist/assets/{VerifyDevice-CQ0olx8K-FIfWbzjp.js → VerifyDevice-CQ0olx8K-BR-mcrJ3.js} +1 -1
  195. package/dist/assets/{VideoPlayer-BzfzJW7y-vDKgOMDg.js → VideoPlayer-BzfzJW7y-C5JZYu_g.js} +1 -1
  196. package/dist/assets/{VideoPopup-DJubpBc5-2NeT0vs0.js → VideoPopup-DJubpBc5-CxKuMSGz.js} +1 -1
  197. package/dist/assets/{WarningsDrawerPage-DtdniUCH-oWVnzqU8.js → WarningsDrawerPage-DtdniUCH-DJUs63Zw.js} +1 -1
  198. package/dist/assets/{ZeniAccountDetailPage-UcgfqnXC-_e9zx2Gf.js → ZeniAccountDetailPage-UcgfqnXC-Th3RZHDM.js} +1 -1
  199. package/dist/assets/{ZeniAccountListViewPage-STT7H2Nw-CFH9ZXGx.js → ZeniAccountListViewPage-STT7H2Nw-BroPoovh.js} +1 -1
  200. package/dist/assets/{ZeniAccountNavBarPieces-ZNlC5aGd-CTUjPmSp.js → ZeniAccountNavBarPieces-ZNlC5aGd-BNisBi0x.js} +1 -1
  201. package/dist/assets/{ZeniAccountPromoPage-DeVBZrVx-CXjhYHCu.js → ZeniAccountPromoPage-DeVBZrVx-DUJkUAQ8.js} +1 -1
  202. package/dist/assets/{ZeniAccountSetupPage-UlF7qoFd-sygI3WjP.js → ZeniAccountSetupPage-UlF7qoFd-Bt_j1YxN.js} +1 -1
  203. package/dist/assets/{ZeniCopyright-CjbWU9Dc-Myl9PFjZ.js → ZeniCopyright-CjbWU9Dc-BLwz2UDU.js} +1 -1
  204. package/dist/assets/{ZeniTransferAmountSlider-BL2-PVj4-JEu9Ajwi.js → ZeniTransferAmountSlider-BL2-PVj4-Bi0ukH0F.js} +1 -1
  205. package/dist/assets/{analyticsHelper-47l9Opyu-DPwKs84V.js → analyticsHelper-47l9Opyu-BI0dCEoa.js} +1 -1
  206. package/dist/assets/{analyticsHelper-Bra1iTyP.js → analyticsHelper-BpYh_F2q.js} +1 -1
  207. package/dist/assets/{chartTypes-DmEm-9Ox-D8wy99Dp.js → chartTypes-DmEm-9Ox-ULKq2fZN.js} +1 -1
  208. package/dist/assets/{commonDimensions-Dfc-15aJ-BHLyX2jV.js → commonDimensions-Dfc-15aJ-CxnVwTdu.js} +1 -1
  209. package/dist/assets/{detailCommon-CfRJr7PH-CZF20prg.js → detailCommon-CfRJr7PH-Zz1na4q2.js} +1 -1
  210. package/dist/assets/{downloadPdf-QB7_leFQ-CyDYMJUa.js → downloadPdf-QB7_leFQ-CoJ91cS7.js} +1 -1
  211. package/dist/assets/{index-BbDh7DHE.js → index-C7jkqxrR.js} +3 -3
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-BbnaFFzG-Ccu-Jpyc.js → mapLoadingInProgressToTreeNode-BbnaFFzG-BRQ7gDuX.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-B3ThW_Wk-CJLWwaxK.js → mapSectionWithAcOnlyToTreeNode-B3ThW_Wk-DV4jlGZ4.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-CMRinfvP-Cqd-wobS.js → mapSpacerToTreeNode-CMRinfvP-BAaxRYcb.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-C4e13DYv-9v4mIn_F.js → mapTimeframeBalancesToTreeNode-C4e13DYv-mbUoKHNs.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-y77ZAwQg-vLI8uyaw.js → mapTimeframeBalancesToTreeNode-y77ZAwQg-CYnesxgR.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DGrKwzUB-C1hKzBKy.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DGrKwzUB-CAVP7axd.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-DIO7qGqY-CpbC2N8j.js → toCOABalancesWithID-DIO7qGqY-BCZorL6x.js} +1 -1
  219. package/dist/assets/{toChartData-D89UpEia-7GzevV61.js → toChartData-D89UpEia-DmSMBtrE.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-CF-h70rk-5BW6rAOF.js → treasuryColorHelper-CF-h70rk-DcbjCnLZ.js} +1 -1
  221. package/dist/assets/{uploadAttachment-B-bBj_Bq-bBj9LjKC.js → uploadAttachment-B-bBj_Bq-DxXvr3YV.js} +1 -1
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-BmVmvXe9.js → uploadReceipts-dxsKhm9I-BIa10rGM.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +3 -3
  225. package/dist/assets/CustomerOnboardingContainerPage-DouBKVdi-Cd4_FJQb.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Y as ht,u as qe,j as t,B as oe,iG as Y,aX as mt,b as H,bV as gt,t as K,r as kt,l as Q,o as s,eN as Ze,bO as Ee,bS as xt,fF as wt,ao as ft,bg as Je,a6 as Ct,e as le,a as Tt,C as Xe,ca as $t,F as yt,aj as bt,b_ as vt,ia as jt,ib as St,iH as ze,a4 as Gt,K as De,bp as Ie,eJ as Qe,iI as Lt,cx as et,iJ as pe,iK as xe,iL as Nt,iM as we,iN as tt,iO as st,iP as ot,iQ as nt,iR as at,iS as rt,iT as _,q as ke,iU as re,w as ie,iV as Et,iW as It,a3 as Mt,k as Dt,iX as zt,d9 as Bt,iY as Rt,cn as it,cH as At,v as Ot,iZ as Wt,i_ as Ft,fG as Pt,eM as Vt,i$ as Ht,j0 as J,j1 as Be,c0 as Ut,j2 as _t,j3 as Kt,j4 as Re,j5 as Yt,g as Ae,g1 as qt,n as Zt}from"./index-BbDh7DHE.js";import{b as n,n as o,j as fe}from"./vendor-rkTZJa59.js";import{K as Jt,Y as Xt}from"./SpendManagementSection-BjNiE7SK-DjQIzhUg.js";import{A as Qt,t as es,a as ts,E as ss}from"./NotificationsListConfig-DxFLCS42-Dby1JohT.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-Cncc2ohq-qQtSoDsI.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./StatusSwitcher-DnQFgeLN-C3AefLrS.js";const ns=100,as=100,rs=3,is=.7,ls=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ns,scrollSpeed:h=as,minScrollAmount:m=rs,scrollCurveExponent:p=is})=>{n.useEffect(()=>{if(!u||typeof window>"u"||typeof document>"u")return;let a=!1,c=0,i=null;const d=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},j=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>j(x),M=x=>{const S=Math.max(x,0)/d,y=Math.pow(S,p)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,y=c;if(y<d&&y>0){const L=d-y,g=M(L);k(x,g,"up")}else if(y>S-d){const L=y-(S-d),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(c=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,u,m,e,p,h])},Se=oe.getLocalizedStrings(),lt=({count:e})=>t.jsx(ds,{isCircular:e<10,children:t.jsx(cs,{children:e>Se.common.numbers.maximumCount?`${Se.common.numbers.maximumCount}${Se.common.strings.plus}`:e})}),ds=o.div`
1
+ import{Y as ht,u as qe,j as t,B as oe,iG as Y,aX as mt,b as H,bV as gt,t as K,r as kt,l as Q,o as s,eN as Ze,bO as Ee,bS as xt,fF as wt,ao as ft,bg as Je,a6 as Ct,e as le,a as Tt,C as Xe,ca as $t,F as yt,aj as bt,b_ as vt,ia as jt,ib as St,iH as ze,a4 as Gt,K as De,bp as Ie,eJ as Qe,iI as Lt,cx as et,iJ as pe,iK as xe,iL as Nt,iM as we,iN as tt,iO as st,iP as ot,iQ as nt,iR as at,iS as rt,iT as _,q as ke,iU as re,w as ie,iV as Et,iW as It,a3 as Mt,k as Dt,iX as zt,d9 as Bt,iY as Rt,cn as it,cH as At,v as Ot,iZ as Wt,i_ as Ft,fG as Pt,eM as Vt,i$ as Ht,j0 as J,j1 as Be,c0 as Ut,j2 as _t,j3 as Kt,j4 as Re,j5 as Yt,g as Ae,g1 as qt,n as Zt}from"./index-C7jkqxrR.js";import{b as n,n as o,j as fe}from"./vendor-rkTZJa59.js";import{K as Jt,Y as Xt}from"./SpendManagementSection-BjNiE7SK-D7jeMM-c.js";import{A as Qt,t as es,a as ts,E as ss}from"./NotificationsListConfig-DxFLCS42-Dryoh4sl.js";import{getDashboardFilterCategoryValues as os}from"./SpendManagementListViewPage-Cncc2ohq-gJW6I76n.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./StatusSwitcher-DnQFgeLN-DpDkgj5j.js";const ns=100,as=100,rs=3,is=.7,ls=({scrollContainerRef:e,isEnabled:u=!0,edgeThreshold:r=ns,scrollSpeed:h=as,minScrollAmount:m=rs,scrollCurveExponent:p=is})=>{n.useEffect(()=>{if(!u||typeof window>"u"||typeof document>"u")return;let a=!1,c=0,i=null;const d=Math.max(r,1),C=()=>{i!==null&&(cancelAnimationFrame(i),i=null)},j=x=>{const S=e.current;return!S||!(x.target instanceof Node)?!1:S.contains(x.target)},I=x=>j(x),M=x=>{const S=Math.max(x,0)/d,y=Math.pow(S,p)*h;return Math.max(m,y)},k=(x,S,y)=>{const L=y==="up"?-S:S;x===window?window.scrollBy({top:L,behavior:"auto"}):x instanceof HTMLElement&&typeof x.scrollTop=="number"&&(x.scrollTop+=L)},f=()=>e.current??window,w=()=>{if(!a)return;const x=f(),S=window.innerHeight,y=c;if(y<d&&y>0){const L=d-y,g=M(L);k(x,g,"up")}else if(y>S-d){const L=y-(S-d),g=M(L);k(x,g,"down")}i=requestAnimationFrame(w)},D=x=>{I(x)?a=!0:(a=!1,C())},z=()=>{a=!1,C()},B=x=>{a&&(c=x.clientY)},$=x=>{B(x),a&&i===null&&(i=requestAnimationFrame(w))};return document.addEventListener("dragstart",D),document.addEventListener("dragend",z),document.addEventListener("dragover",$),()=>{document.removeEventListener("dragstart",D),document.removeEventListener("dragend",z),document.removeEventListener("dragover",$),C()}},[r,u,m,e,p,h])},Se=oe.getLocalizedStrings(),lt=({count:e})=>t.jsx(ds,{isCircular:e<10,children:t.jsx(cs,{children:e>Se.common.numbers.maximumCount?`${Se.common.numbers.maximumCount}${Se.common.strings.plus}`:e})}),ds=o.div`
2
2
  ${e=>e.isCircular?fe`
3
3
  height: 18px;
4
4
  width: 18px;
@@ -1,4 +1,4 @@
1
- import{j as t,aj as D,O as k,di as H,aN as L,o as a,w as q}from"./index-BbDh7DHE.js";import{n as g,b as i}from"./vendor-rkTZJa59.js";import{R as A}from"./mui-C42whWwM.js";import{V as U}from"./CollapsableReportTable-Bubej7Ql-I56N7D7G.js";const W=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),X=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,Z=g.div`
1
+ import{j as t,aj as D,O as k,di as H,aN as L,o as a,w as q}from"./index-C7jkqxrR.js";import{n as g,b as i}from"./vendor-rkTZJa59.js";import{R as A}from"./mui-C42whWwM.js";import{V as U}from"./CollapsableReportTable-Bubej7Ql-B-Haow9V.js";const W=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 40H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4h8v40z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),X=e=>i.createElement("svg",{width:12,height:40,viewBox:"0 0 12 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M0 0h8a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4H0V0z"}),i.createElement("path",{d:"M8 23.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM8 19a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-1-3.333a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-3 7.666a1 1 0 1 0 0 2 1 1 0 0 0 0-2zM3 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm1-5.333a1 1 0 1 0 0 2 1 1 0 0 0 0-2z",fill:"currentColor"})),p=40,h=90,Z=g.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: flex-start;
@@ -1,4 +1,4 @@
1
- import{j as t,o,w as p,B as u}from"./index-BbDh7DHE.js";import{n as i}from"./vendor-rkTZJa59.js";const f=i.div`
1
+ import{j as t,o,w as p,B as u}from"./index-C7jkqxrR.js";import{n as i}from"./vendor-rkTZJa59.js";const f=i.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{e as c,j as t,C as n,w,b5 as x}from"./index-BbDh7DHE.js";import{n as r}from"./vendor-rkTZJa59.js";import{y as l}from"./TimeframeSwitcher-C2DIHjU8-CXhghobg.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...o})=>t.jsx(x,{...o,className:e,classes:{...i}}),p=r(u)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),$=e=>t.jsx(p,{...e}),d={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},b=r.div`
1
+ import{e as c,j as t,C as n,w,b5 as x}from"./index-C7jkqxrR.js";import{n as r}from"./vendor-rkTZJa59.js";import{y as l}from"./TimeframeSwitcher-C2DIHjU8-FFKAp4XL.js";const a="ZeniSwitch",i={root:`${a}-root`,switchBase:`${a}-switchBase`,track:`${a}-track`,thumb:`${a}-thumb`},u=({className:e,...o})=>t.jsx(x,{...o,className:e,classes:{...i}}),p=r(u)(({theme:e})=>({[`& .${i.switchBase}`]:{color:e.colors.grey2,margin:0,padding:0,transform:"translateX(6px)"},[`& .${i.track}`]:{backgroundColor:e.colors.grey3,opacity:1},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.primary},[`& .${i.root}.${i.switchBase}.Mui-checked + .${i.track}`]:{backgroundColor:e.colors.grey1},[`&.${i.root}`]:{width:52,height:20,padding:"5px 10px"},[`& .${i.switchBase}.Mui-checked`]:{color:e.colors.grey5,transform:"translateX(28px)"},[`& .${i.switchBase}.Mui-checked .${i.thumb}`]:{backgroundColor:e.colors.primary},[`& .${i.switchBase}.Mui-checked .${i.thumb}:before`]:{backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13"><path fill="${encodeURIComponent(e.colors.grey5)}" d="M10.738 2L4.5075 8.4035L1.2615 5.0685L0 6.3655L4.5075 11L12 3.297L10.738 2Z" /></svg>')`},[`& .${i.switchBase}.Mui-checked + .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey1},[`& .${i.switchBase}.Mui-disabled + .${i.track}`]:{opacity:.7},[`& .${i.thumb}`]:{backgroundColor:e.colors.grey2,width:20,height:20,boxShadow:"none","&:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundRepeat:"no-repeat",backgroundPosition:"center"}},[`& .${i.track}`]:{opacity:1,backgroundColor:e.colors.grey3,borderRadius:10}})),$=e=>t.jsx(p,{...e}),d={timeframePaddingLeft:new n(0,0,125),timeframePaddingBottom:new n(8,8,0)},b=r.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{O as M,e as V,j as t,u as f,b7 as T,aw as C,av as S,bb as E,bk as k,q as x,ab as R,v as $,bl as q,bm as H,a0 as G,l as X,Z as Y,o as p,w as L,ao as Z,t as F,B as O,_ as N,$ as Q,a5 as A,ai as J,aj as U,a6 as W,bn as ee}from"./index-BbDh7DHE.js";import{f as w,b as te,n as g}from"./vendor-rkTZJa59.js";import{I as ae,T as re}from"./ReloadCard-BY23wQlB-DT_SVyV5.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const ie=g(A)`
1
+ import{O as M,e as V,j as t,u as f,b7 as T,aw as C,av as S,bb as E,bk as k,q as x,ab as R,v as $,bl as q,bm as H,a0 as G,l as X,Z as Y,o as p,w as L,ao as Z,t as F,B as O,_ as N,$ as Q,a5 as A,ai as J,aj as U,a6 as W,bn as ee}from"./index-C7jkqxrR.js";import{f as w,b as te,n as g}from"./vendor-rkTZJa59.js";import{I as ae,T as re}from"./ReloadCard-BY23wQlB-BJD-2H6c.js";import{o as oe,r as ne}from"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const ie=g(A)`
2
2
  justify-content: space-between;
3
3
  margin: 0;
4
4
  height: ${e=>e.height!=null?e.height+"px":"auto"};
@@ -1,4 +1,4 @@
1
- import{u as v,e as S,l as A,j as t,aX as B,B as u,a0 as k,aj as H,N as P,o as i,C as j,bj as z,aO as F,q as c,g as T,t as y,$ as V,af as D}from"./index-BbDh7DHE.js";import{n as l,f as M,b as o}from"./vendor-rkTZJa59.js";import{E as Z,I as _}from"./TopExCard-DSqZSZGZ-CiIezt1Z.js";import{y as L}from"./TimeframeSwitcher-C2DIHjU8-CXhghobg.js";import{d as O}from"./NoDataTable-DtmdB0eI-LYAULsIh.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./ReloadCard-BY23wQlB-DT_SVyV5.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const E="141px",I=i.sp4,N="123px",R=l(D)`
1
+ import{u as v,e as S,l as A,j as t,aX as B,B as u,a0 as k,aj as H,N as P,o as i,C as j,bj as z,aO as F,q as c,g as T,t as y,$ as V,af as D}from"./index-C7jkqxrR.js";import{n as l,f as M,b as o}from"./vendor-rkTZJa59.js";import{E as Z,I as _}from"./TopExCard-DSqZSZGZ-Dw-FQUIS.js";import{y as L}from"./TimeframeSwitcher-C2DIHjU8-FFKAp4XL.js";import{d as O}from"./NoDataTable-DtmdB0eI-BxWxqQ9f.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./ReloadCard-BY23wQlB-BJD-2H6c.js";import"./graphic-no-data-l-DU4J8fDt-BBc6l6Au.js";const E="141px",I=i.sp4,N="123px",R=l(D)`
2
2
  color: inherit;
3
3
  width: ${i.sp3};
4
4
  height: ${i.sp3};
@@ -1,4 +1,4 @@
1
- import{aE as Un,dP as Bn,u as Et,a as qn,e as ie,B as q,a2 as Jt,dQ as Fn,dR as Wn,ca as Hn,O as Gn,dS as tn,l as me,dT as Yn,j as i,$ as F,F as Jn,aX as Qn,dU as Zn,dV as Kn,m as ai,dW as ki,a4 as Xn,C as N,dX as ea,dY as nn,dZ as an,d_ as on,d$ as Te,e0 as Oe,e1 as _e,e2 as Ke,e3 as Xe,e4 as kt,e5 as zt,e6 as et,e7 as ht,e8 as At,e9 as Vt,ea as Qt,eb as K,ec as Xt,ed as ue,ee as pe,X as ta,ef as Tt,eg as zi,eh as ia,K as na,bV as aa,o as a,bJ as oa,ei as sa,q as O,N as xi,g as le,r as Ii,ap as oi,az as la,ej as ra,bQ as ca,bO as si,a0 as Le,cn as ot,ek as da,el as Wt,a7 as sn,cs as ua,em as pa,bM as ma,bN as ha,t as ye,af as ga,cH as fa,en as ln,eo as Zt,ep as Kt,eq as pi,de as ya,aj as ba,b_ as xa,cv as Di,x as rn,er as ei,es as ti,et as cn,ct as dn,bp as Ti,eu as mi,dj as hi,ev as va,aO as wa,ew as Ca,ex as Ai,ey as $a,H as Ia,cw as Da,ez as Ta,J as un,eA as pn,b6 as Oa,eB as Vi,eC as mn,eD as hn,eE as gn,b4 as st,b2 as La,aD as ja,ds as Sa,v as fn,eF as ka,b1 as za,a3 as Aa,n as Va,eG as Ra,a9 as vi}from"./index-BbDh7DHE.js";import{b as w,n as l,f as Ot}from"./vendor-rkTZJa59.js";import{x as Ri}from"./LabeledControlledCheckBoxField-CSh6A3bd-D_UjGj4t.js";import{R as Ea}from"./TrendWithTransactions-DtPVZEAr-Czky0iLs.js";import{u as Pa,c as _a,d as Na,m as Ma}from"./uploadAttachment-B-bBj_Bq-bBj9LjKC.js";import{o as Ua}from"./radio-default-CiSgisfh-Z5w0WcFM.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./TrendChart-Dn0GiuT9-f0hc-Dw5.js";import"./chartTypes-DmEm-9Ox-D8wy99Dp.js";import"./toCOABalancesWithID-DIO7qGqY-CpbC2N8j.js";import"./toChartData-D89UpEia-7GzevV61.js";import"./NoDataChart-gi34_J2e-BLVBAxAp.js";import"./InsightsSection-CFeEzjB3-Cp-KSZAQ.js";import"./NavigationDots-CFxiVMnb-BWrfrorl.js";import"./TransactionList-CkdTkJqL-ByxEuyvr.js";import"./BoxItem-Bwh-fULe-Qk6VZT8D.js";import"./commonDimensions-Dfc-15aJ-BHLyX2jV.js";const Ba={headerMarginTop:new N(O[7],O[8])},qa=l(ye)`
1
+ import{aE as Un,dP as Bn,u as Et,a as qn,e as ie,B as q,a2 as Jt,dQ as Fn,dR as Wn,ca as Hn,O as Gn,dS as tn,l as me,dT as Yn,j as i,$ as F,F as Jn,aX as Qn,dU as Zn,dV as Kn,m as ai,dW as ki,a4 as Xn,C as N,dX as ea,dY as nn,dZ as an,d_ as on,d$ as Te,e0 as Oe,e1 as _e,e2 as Ke,e3 as Xe,e4 as kt,e5 as zt,e6 as et,e7 as ht,e8 as At,e9 as Vt,ea as Qt,eb as K,ec as Xt,ed as ue,ee as pe,X as ta,ef as Tt,eg as zi,eh as ia,K as na,bV as aa,o as a,bJ as oa,ei as sa,q as O,N as xi,g as le,r as Ii,ap as oi,az as la,ej as ra,bQ as ca,bO as si,a0 as Le,cn as ot,ek as da,el as Wt,a7 as sn,cs as ua,em as pa,bM as ma,bN as ha,t as ye,af as ga,cH as fa,en as ln,eo as Zt,ep as Kt,eq as pi,de as ya,aj as ba,b_ as xa,cv as Di,x as rn,er as ei,es as ti,et as cn,ct as dn,bp as Ti,eu as mi,dj as hi,ev as va,aO as wa,ew as Ca,ex as Ai,ey as $a,H as Ia,cw as Da,ez as Ta,J as un,eA as pn,b6 as Oa,eB as Vi,eC as mn,eD as hn,eE as gn,b4 as st,b2 as La,aD as ja,ds as Sa,v as fn,eF as ka,b1 as za,a3 as Aa,n as Va,eG as Ra,a9 as vi}from"./index-C7jkqxrR.js";import{b as w,n as l,f as Ot}from"./vendor-rkTZJa59.js";import{x as Ri}from"./LabeledControlledCheckBoxField-CSh6A3bd-D6-VupFL.js";import{R as Ea}from"./TrendWithTransactions-DtPVZEAr-DnuxxeAb.js";import{u as Pa,c as _a,d as Na,m as Ma}from"./uploadAttachment-B-bBj_Bq-DxXvr3YV.js";import{o as Ua}from"./radio-default-CiSgisfh-Z5w0WcFM.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./TrendChart-Dn0GiuT9-HQjjMVrP.js";import"./chartTypes-DmEm-9Ox-ULKq2fZN.js";import"./toCOABalancesWithID-DIO7qGqY-BCZorL6x.js";import"./toChartData-D89UpEia-DmSMBtrE.js";import"./NoDataChart-gi34_J2e-BOq-1JyJ.js";import"./InsightsSection-CFeEzjB3-D_1DfMdF.js";import"./NavigationDots-CFxiVMnb-Dxb6vagd.js";import"./TransactionList-CkdTkJqL-Cgr2VpIS.js";import"./BoxItem-Bwh-fULe-Cnvh0VLf.js";import"./commonDimensions-Dfc-15aJ-CxnVwTdu.js";const Ba={headerMarginTop:new N(O[7],O[8])},qa=l(ye)`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  `,Fa=l(ye)`
4
4
  margin-right: ${a.sp1};
@@ -1,4 +1,4 @@
1
- import{bJ as rt,e as R,j as e,aj as st,$ as u,de as nt,B as y,df as lt,d9 as dt,dg as ct,o as a,g as Z,b_ as mt,C as V,l as m,m as ft,t as j,q as b,w as xt,dh as W,cz as _,a0 as G,n as ut}from"./index-BbDh7DHE.js";import{b as g,n,f as ht}from"./vendor-rkTZJa59.js";import{g as J}from"./BoxItem-Bwh-fULe-Qk6VZT8D.js";import{o as E}from"./commonDimensions-Dfc-15aJ-BHLyX2jV.js";const F=t=>t?24:125,pt={containerPaddingBottom:new V(b[9],b[8])},Q=n.div`
1
+ import{bJ as rt,e as R,j as e,aj as st,$ as u,de as nt,B as y,df as lt,d9 as dt,dg as ct,o as a,g as Z,b_ as mt,C as V,l as m,m as ft,t as j,q as b,w as xt,dh as W,cz as _,a0 as G,n as ut}from"./index-C7jkqxrR.js";import{b as g,n,f as ht}from"./vendor-rkTZJa59.js";import{g as J}from"./BoxItem-Bwh-fULe-Cnvh0VLf.js";import{o as E}from"./commonDimensions-Dfc-15aJ-CxnVwTdu.js";const F=t=>t?24:125,pt={containerPaddingBottom:new V(b[9],b[8])},Q=n.div`
2
2
  box-sizing: border-box;
3
3
  display: flex;
4
4
  flex: 1 1 auto;
@@ -1,4 +1,4 @@
1
- import{C as a,e as L,Y as W,P as ie,ab as ne,l as B,j as t,$ as x,aj as re,B as w,q as n,v as ae,g as D,o,J as j,y as Q,aM as se,aN as le,w as de,r as ce,a0 as me,aO as pe,p as he,m as ue,K as Y,N as G,aP as X,a6 as ee}from"./index-BbDh7DHE.js";import{b as U,n as i,f,j as ge}from"./vendor-rkTZJa59.js";import{G as xe,c as we}from"./AccountsPromoCardStack-Bd_rvzbl-C9op2BJy.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./SummaryCard-DwlHiqjy-BAk7Ogck.js";import"./ReloadCard-BY23wQlB-DT_SVyV5.js";import"./NavigationArrow-DzZDXuKr-COErlBjm.js";import"./NavigationDots-CFxiVMnb-BWrfrorl.js";const $e={textContainer:new j("extraSmallRegular","smallRegular")},ye=i.div`
1
+ import{C as a,e as L,Y as W,P as ie,ab as ne,l as B,j as t,$ as x,aj as re,B as w,q as n,v as ae,g as D,o,J as j,y as Q,aM as se,aN as le,w as de,r as ce,a0 as me,aO as pe,p as he,m as ue,K as Y,N as G,aP as X,a6 as ee}from"./index-C7jkqxrR.js";import{b as U,n as i,f,j as ge}from"./vendor-rkTZJa59.js";import{G as xe,c as we}from"./AccountsPromoCardStack-Bd_rvzbl-BTn5w5o9.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./SummaryCard-DwlHiqjy-DovYblcz.js";import"./ReloadCard-BY23wQlB-BJD-2H6c.js";import"./NavigationArrow-DzZDXuKr-B7BwQbpV.js";import"./NavigationDots-CFxiVMnb-Dxb6vagd.js";const $e={textContainer:new j("extraSmallRegular","smallRegular")},ye=i.div`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  cursor: default;
4
4
  `,be=i.div`
@@ -1,4 +1,4 @@
1
- import{u as A,aV as z,aW as M,j as o,$ as u,aX as Q,m as V,aY as W,o as n,t as X}from"./index-BbDh7DHE.js";import{b as r,n as l}from"./vendor-rkTZJa59.js";import{f as Z}from"./TransactionList-CkdTkJqL-ByxEuyvr.js";import{t as _}from"./page-detail-CWX5S47F-BBa5wfAm.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BoxItem-Bwh-fULe-Qk6VZT8D.js";import"./commonDimensions-Dfc-15aJ-BHLyX2jV.js";const q=l.div`
1
+ import{u as A,aV as z,aW as M,j as o,$ as u,aX as Q,m as V,aY as W,o as n,t as X}from"./index-C7jkqxrR.js";import{b as r,n as l}from"./vendor-rkTZJa59.js";import{f as Z}from"./TransactionList-CkdTkJqL-Cgr2VpIS.js";import{t as _}from"./page-detail-CWX5S47F-BBa5wfAm.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BoxItem-Bwh-fULe-Cnvh0VLf.js";import"./commonDimensions-Dfc-15aJ-CxnVwTdu.js";const q=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  height: 100vh;
@@ -1,4 +1,4 @@
1
- import{e as k,B as A,j as o,m as q,$ as D,a4 as W,o as a,C as g,a3 as J,J as Q,cB as U,a as Y,gB as B,gC as F,gD as M,ca as _,F as G,q as s,u as K,cd as X,gf as z,gI as Z,am as ee,gM as oe,gN as te}from"./index-BbDh7DHE.js";import{b as I,n as d}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const L=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=A.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:v,selectedOwnerId:t,selectedVendorName:m,allAccounts:p,allClasses:C,allOwners:b,sectionId:h,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const l=k(),y=K(),$=N.labelWidth.value(l),j=N.controlWidth.value(l),P=n=>p.filter(O=>O.accountId===n)[0]?.coaId??"",r=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",S=n=>{const O=p.find(R=>R.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(se,{"data-testid":D("vendor-details-section",h),children:[o.jsx(re,{children:i.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(X,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:L(h,"vendorName"),placeholder:i.placeholders.vendor,defaultValue:m,autoComplete:"off",options:{required:!0}},isSaveError:c,showAdditionalInfoLabel:!1,additionalInfoLabel:i.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(h,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>P(n),defaultValue:{selectedOption:e,allOptions:F(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:S,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(h,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>r(n),defaultValue:{selectedOption:v,allOptions:B(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),b!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:L(h,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:M(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=d.div`
1
+ import{e as k,B as A,j as o,m as q,$ as D,a4 as W,o as a,C as g,a3 as J,J as Q,cB as U,a as Y,gB as B,gC as F,gD as M,ca as _,F as G,q as s,u as K,cd as X,gf as z,gI as Z,am as ee,gM as oe,gN as te}from"./index-C7jkqxrR.js";import{b as I,n as d}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const L=(e,c)=>`${e}.${c}`,N={labelWidth:new g(120,145,160),controlWidth:new g(110,145,160)},ae=A.getLocalizedStrings().transactionDetail.vendorDetails,i=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:c,selectedClassId:v,selectedOwnerId:t,selectedVendorName:m,allAccounts:p,allClasses:C,allOwners:b,sectionId:h,isDisabled:u,accountsHierarchyList:f,classHierarchyList:x})=>{const l=k(),y=K(),$=N.labelWidth.value(l),j=N.controlWidth.value(l),P=n=>p.filter(O=>O.accountId===n)[0]?.coaId??"",r=n=>C.filter(O=>O.classId===n)[0]?.accountingClassNumber??"",S=n=>{const O=p.find(R=>R.accountId===n)?.accountName;return[oe,te].includes(O??"")};return o.jsxs(se,{"data-testid":D("vendor-details-section",h),children:[o.jsx(re,{children:i.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(X,{label:{label:i.vendorDetails.vendorName,width:$},text:{type:"text",name:L(h,"vendorName"),placeholder:i.placeholders.vendor,defaultValue:m,autoComplete:"off",options:{required:!0}},isSaveError:c,showAdditionalInfoLabel:!1,additionalInfoLabel:i.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(h,"vendorCategory"),placeholder:i.placeholders.category,valueToInfo:n=>P(n),defaultValue:{selectedOption:e,allOptions:F(f)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:S,zIndexOnFocus:!0,additionalLabelInfo:i.vendorDetails.vendorCategoryAdditionText}),o.jsx(z,{isLoading:!1,label:{label:i.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:L(h,"vendorClass"),placeholder:i.placeholders.class,valueToInfo:n=>r(n),defaultValue:{selectedOption:v,allOptions:B(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:i.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),b!=null?o.jsx(Z,{label:{label:i.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:L(h,"vendorOwner"),placeholder:i.placeholders.owner,defaultValue:{allOptions:M(b),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=d.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding-top: ${a.sp3};
@@ -1,4 +1,4 @@
1
- import{j as t,e as ue,$ as A,gV as lt,B as I,a0 as G,K as ve,h3 as ct,m as Ye,a4 as $e,o as a,C as c,a3 as Ne,T as dt,ao as ut,r as ft,c7 as De,w as be,t as fe,a2 as ce,f2 as pt,a as Xe,l as mt,ca as ht,ab as gt,a1 as wt,g as K,F as qe,fb as ke,fc as Ae,fK as xt,bp as ye,fF as $t,h4 as Dt,q as o,d1 as bt,bO as Ge,bw as yt,cG as Tt,b6 as Ct,n as Je,f7 as St,ds as vt,by as Ke,fe as kt,fg as At}from"./index-BbDh7DHE.js";import{b as u,n}from"./vendor-rkTZJa59.js";import{v as Pt}from"./ZeniTransferAmountSlider-BL2-PVj4-JEu9Ajwi.js";import{r as Lt}from"./AccountInfoPageContent-C7qnFSOO-C1-ReILF.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./downloadPdf-QB7_leFQ-CyDYMJUa.js";import"./commonDimensions-Dfc-15aJ-BHLyX2jV.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ue="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ze="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Qe=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:U,onBackClick:E,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:Z,onReviewClick:Q}){const i=ue(),R=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),H=r.transferMoneyPartiesFetchState,oe=ce(H),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),He=u.useCallback(s=>{O?.(s),E(),N(!1),z(!1)},[E,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:He,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(mt.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&Z?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&H==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};U(le)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&ht(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),Q())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=gt(wt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(Et,{children:[t.jsxs(Rt,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:K.heroLight}})})]})}):null,t.jsx(Yt,{children:G("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:Qe(Ze),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ee,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ee,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:R},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ue),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Gt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Jt,{windowSize:i,children:[t.jsx(Zt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Kt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${G("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Ut,{windowSize:i}),t.jsx(Qt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${G("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ue]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
1
+ import{j as t,e as ue,$ as A,gV as lt,B as I,a0 as G,K as ve,h3 as ct,m as Ye,a4 as $e,o as a,C as c,a3 as Ne,T as dt,ao as ut,r as ft,c7 as De,w as be,t as fe,a2 as ce,f2 as pt,a as Xe,l as mt,ca as ht,ab as gt,a1 as wt,g as K,F as qe,fb as ke,fc as Ae,fK as xt,bp as ye,fF as $t,h4 as Dt,q as o,d1 as bt,bO as Ge,bw as yt,cG as Tt,b6 as Ct,n as Je,f7 as St,ds as vt,by as Ke,fe as kt,fg as At}from"./index-C7jkqxrR.js";import{b as u,n}from"./vendor-rkTZJa59.js";import{v as Pt}from"./ZeniTransferAmountSlider-BL2-PVj4-Bi0ukH0F.js";import{r as Lt}from"./AccountInfoPageContent-C7qnFSOO-kIwITRCp.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./downloadPdf-QB7_leFQ-CoJ91cS7.js";import"./commonDimensions-Dfc-15aJ-CxnVwTdu.js";const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:b}}}=I.getLocalizedStrings(),Ue="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",Ze="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Qe=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:F,setTotalBalance:M,onSaveChangesToLocalStore:U,onBackClick:E,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:Z,onReviewClick:Q}){const i=ue(),R=p.largeLabelWidth.value(i),[W,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,V]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),H=r.transferMoneyPartiesFetchState,oe=ce(H),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),He=u.useCallback(s=>{O?.(s),E(),N(!1),z(!1)},[E,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:He,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&V(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(mt.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&Z?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&H==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,H,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const B={...h},le={amount:{amount:B[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===B[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===B[k].transferTo.selectedOption)};U(le)}};u.useEffect(()=>{const s=P.watch((h,{name:B})=>{if(B!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:B})=>{B!=null&&h!=null&&ht(()=>at(B,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),Q())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=gt(wt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[W?t.jsx(Ft,{children:t.jsxs(Et,{children:[t.jsxs(Rt,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Wt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Vt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(It,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:K.heroLight}})})]})}):null,t.jsx(Yt,{children:G("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:Qe(Ze),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ee,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:b.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ee,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:b.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:b.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(xt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:R},additionalInfoLabel:b.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ue),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:b.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Gt,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:b.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:F,setTotalBalance:M})]}):null,t.jsxs(Jt,{windowSize:i,children:[t.jsx(Zt,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Kt,{children:[t.jsx(ze,{children:`${b.transferDrawer.calculator.footerText.annualYieldEarned} ${G("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:b.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Ut,{windowSize:i}),t.jsx(Qt,{children:`${b.transferDrawer.calculator.footerText.forTotalBalance} ${G("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:b.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Fe,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.hide}),t.jsx(Ht,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Fe,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Be,{className:"calculatorFooterLeftText",children:b.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:b.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ue]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Bt(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Bt=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Ft=n.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{e as C,u as M,x as Ye,bJ as Ne,j as t,B as L,a0 as W,bp as ae,aX as Ke,v as ie,$ as E,m as Fe,o as i,w as k,g as w,b6 as Ve,C as u,cV as X,J as R,l as V,q as h,gY as le,at as de,aw as ce,av as he,au as pe,b9 as We,bg as Le,a6 as Me,Y as Ee,fr as Ue,gs as Ge,K as Je,t as A,af as _e,iB as Xe,jc as qe,aA as Qe,eK as Ze,d7 as et,f7 as tt,aj as it,b_ as ot,ia as rt,ib as at,ka as nt,bn as st,n as U,c3 as xe,id as lt,c6 as dt,ie as ct,ig as ht}from"./index-BbDh7DHE.js";import{b as $,n as o,f as pt,j as ge}from"./vendor-rkTZJa59.js";import{s as xt}from"./commonDimensions-Dfc-15aJ-BHLyX2jV.js";import{g as me}from"./BoxItem-Bwh-fULe-Qk6VZT8D.js";import{l as ne,d as gt}from"./treasuryColorHelper-CF-h70rk-5BW6rAOF.js";import{o as mt}from"./transaction-placeholder-CpOwZAMG-DYG2_sCF.js";import{o as ut}from"./shield-DOlUxcFf-bFVWRY1X.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,yt={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new u(120,250,400,400,500)},ft={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new u(100,120,200,250,300)},wt={key:"amount",value:se.amount,sortOrder:"ascending",width:new u(80,100,150,180,200)},oe=()=>[yt,ft,wt],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new u(h[0],h[4]),headerLastColumnRightPadding:new u(h[3],h[11]),headerLastColumnBottomPadding:new u(h[0],h[4]),headerLastColumnLeftPadding:new u(h[3],h[11]),headerHeight:new u(ct,ht),sortIconSize:new u(h[2],h[2]),headerPaddingTop:new u(h[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const c=M(),l=C(),[a,y]=$.useState(oe());$.useEffect(()=>{const p=[...a];for(const s of p)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";y(p)},[r.sortKey,r.sortOrder]);const d=(p,s)=>{let m=s;r.sortKey===p&&(m=s==="ascending"?"descending":"ascending"),n(p,m)},g=a.find(p=>p.key===r.sortKey)??a[0],x=p=>a.find(s=>s.key===p)?.value??"",j=a.map(p=>p.key),f=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(St,{windowSize:l,children:[t.jsxs(zt,{children:[t.jsx(Dt,{children:t.jsx(Pt,{})}),t.jsx(st,{title:f.sortBy,placeholder:f.sortBy,pickerValues:j,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:p=>{d(p,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:c.colors.primary,selectedOptionColor:c.colors.hero,optionBackgroundColor:c.colors.grey5,downChevronVisible:!1,backgroundColor:c.colors.grey4})]}),t.jsxs(Mt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":E("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(U,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(bt,{windowSize:l,children:t.jsx(vt,{children:a.map(p=>p.width.value(l)!==0&&t.jsxs(kt,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:p.key,wrapperWidth:p.width,windowSize:l,children:[t.jsxs(Lt,{onClick:()=>d(p.key,p.sortOrder),"data-testid":E("cards-list-sort-clicked",r.sortKey),children:[t.jsx(U,{children:p.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:p,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===p.key,children:t.jsx(xe,{})})})]}),t.jsx(Tt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===p.key&&p.key!=="date",children:t.jsx(Ct,{onClick:()=>d("date","ascending"),"data-testid":E("cards-list-sort-cancel",r.sortKey)})})]},p.key))})})}const jt=pt.memo($t),bt=o.div`
1
+ import{e as C,u as M,x as Ye,bJ as Ne,j as t,B as L,a0 as W,bp as ae,aX as Ke,v as ie,$ as E,m as Fe,o as i,w as k,g as w,b6 as Ve,C as u,cV as X,J as R,l as V,q as h,gY as le,at as de,aw as ce,av as he,au as pe,b9 as We,bg as Le,a6 as Me,Y as Ee,fr as Ue,gs as Ge,K as Je,t as A,af as _e,iB as Xe,jc as qe,aA as Qe,eK as Ze,d7 as et,f7 as tt,aj as it,b_ as ot,ia as rt,ib as at,ka as nt,bn as st,n as U,c3 as xe,id as lt,c6 as dt,ie as ct,ig as ht}from"./index-C7jkqxrR.js";import{b as $,n as o,f as pt,j as ge}from"./vendor-rkTZJa59.js";import{s as xt}from"./commonDimensions-Dfc-15aJ-CxnVwTdu.js";import{g as me}from"./BoxItem-Bwh-fULe-Cnvh0VLf.js";import{l as ne,d as gt}from"./treasuryColorHelper-CF-h70rk-DcbjCnLZ.js";import{o as mt}from"./transaction-placeholder-CpOwZAMG-DYG2_sCF.js";import{o as ut}from"./shield-DOlUxcFf-bFVWRY1X.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,yt={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new u(120,250,400,400,500)},ft={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new u(100,120,200,250,300)},wt={key:"amount",value:se.amount,sortOrder:"ascending",width:new u(80,100,150,180,200)},oe=()=>[yt,ft,wt],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new u(h[0],h[4]),headerLastColumnRightPadding:new u(h[3],h[11]),headerLastColumnBottomPadding:new u(h[0],h[4]),headerLastColumnLeftPadding:new u(h[3],h[11]),headerHeight:new u(ct,ht),sortIconSize:new u(h[2],h[2]),headerPaddingTop:new u(h[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const c=M(),l=C(),[a,y]=$.useState(oe());$.useEffect(()=>{const p=[...a];for(const s of p)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";y(p)},[r.sortKey,r.sortOrder]);const d=(p,s)=>{let m=s;r.sortKey===p&&(m=s==="ascending"?"descending":"ascending"),n(p,m)},g=a.find(p=>p.key===r.sortKey)??a[0],x=p=>a.find(s=>s.key===p)?.value??"",j=a.map(p=>p.key),f=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(St,{windowSize:l,children:[t.jsxs(zt,{children:[t.jsx(Dt,{children:t.jsx(Pt,{})}),t.jsx(st,{title:f.sortBy,placeholder:f.sortBy,pickerValues:j,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:p=>{d(p,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:c.colors.primary,selectedOptionColor:c.colors.hero,optionBackgroundColor:c.colors.grey5,downChevronVisible:!1,backgroundColor:c.colors.grey4})]}),t.jsxs(Mt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":E("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(U,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(xe,{})})})]})]}):t.jsx(bt,{windowSize:l,children:t.jsx(vt,{children:a.map(p=>p.width.value(l)!==0&&t.jsxs(kt,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:p.key,wrapperWidth:p.width,windowSize:l,children:[t.jsxs(Lt,{onClick:()=>d(p.key,p.sortOrder),"data-testid":E("cards-list-sort-clicked",r.sortKey),children:[t.jsx(U,{children:p.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:p,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===p.key,children:t.jsx(xe,{})})})]}),t.jsx(Tt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===p.key&&p.key!=="date",children:t.jsx(Ct,{onClick:()=>d("date","ascending"),"data-testid":E("cards-list-sort-cancel",r.sortKey)})})]},p.key))})})}const jt=pt.memo($t),bt=o.div`
2
2
  top: ${i.sp0};
3
3
  left: ${i.sp0};
4
4
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{u as ae,e as A,Y as Ce,x as we,a2 as $e,l as fe,B as F,j as r,aX as ye,o as i,iB as ke,bp as je,w as j,K as J,$ as K,J as $,r as O,g as a,C as z,t as R,d7 as be,br as Se,T as ze,n as ve,cP as Le,q as h,dM as Be,ay as Me,c7 as Pe,a3 as Ee,v as Q,cB as Te}from"./index-BbDh7DHE.js";import{b as s,n as t,f as Ie}from"./vendor-rkTZJa59.js";import{x as De}from"./MeetingCalenderPopup-YiB2ETli-eakVkALK.js";import{z as We}from"./VideoPlayer-BzfzJW7y-vDKgOMDg.js";import{l as _e}from"./treasuryColorHelper-CF-h70rk-5BW6rAOF.js";import{r as Re}from"./auto-transfer-rule-mbafm5D3-DsDlaCxy.js";import{o as He}from"./shield-DOlUxcFf-bFVWRY1X.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const Ge=({isOpen:e,onClose:C})=>{const c=A(),u=F.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Le,{anchor:"right",slotProps:{paper:{sx:{width:c==="small"||c==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:C,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Ne,{windowSize:c,children:[r.jsx(Ae,{children:r.jsx(qe,{onClick:C})}),r.jsxs(Fe,{children:[r.jsx(Oe,{windowSize:c,children:u.agreementDrawer.title}),r.jsx(Z,{children:u.agreementDrawer.intro}),r.jsx(G,{children:u.agreementDrawer.introBullets.map((p,w)=>r.jsx(re,{children:p},w))}),r.jsx(G,{children:u.agreementDrawer.documents.map((p,w)=>r.jsx(Ve,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Ue,{children:p.links.map((g,k)=>r.jsx(Xe,{children:g.link!==""?r.jsx(ee,{href:g.link,target:"_blank",rel:"noopener noreferrer",children:g.text}):g.text},k))}):r.jsx(ee,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(Z,{style:{marginTop:i.sp2},children:u.agreementDrawer.confirmTitle}),r.jsx(G,{children:u.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(re,{children:p},w))})]})]})})},Ne=t.div`
1
+ import{u as ae,e as A,Y as Ce,x as we,a2 as $e,l as fe,B as F,j as r,aX as ye,o as i,iB as ke,bp as je,w as j,K as J,$ as K,J as $,r as O,g as a,C as z,t as R,d7 as be,br as Se,T as ze,n as ve,cP as Le,q as h,dM as Be,ay as Me,c7 as Pe,a3 as Ee,v as Q,cB as Te}from"./index-C7jkqxrR.js";import{b as s,n as t,f as Ie}from"./vendor-rkTZJa59.js";import{x as De}from"./MeetingCalenderPopup-YiB2ETli-CqKaSUHn.js";import{z as We}from"./VideoPlayer-BzfzJW7y-C5JZYu_g.js";import{l as _e}from"./treasuryColorHelper-CF-h70rk-DcbjCnLZ.js";import{r as Re}from"./auto-transfer-rule-mbafm5D3-DsDlaCxy.js";import{o as He}from"./shield-DOlUxcFf-bFVWRY1X.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const Ge=({isOpen:e,onClose:C})=>{const c=A(),u=F.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Le,{anchor:"right",slotProps:{paper:{sx:{width:c==="small"||c==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:C,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Ne,{windowSize:c,children:[r.jsx(Ae,{children:r.jsx(qe,{onClick:C})}),r.jsxs(Fe,{children:[r.jsx(Oe,{windowSize:c,children:u.agreementDrawer.title}),r.jsx(Z,{children:u.agreementDrawer.intro}),r.jsx(G,{children:u.agreementDrawer.introBullets.map((p,w)=>r.jsx(re,{children:p},w))}),r.jsx(G,{children:u.agreementDrawer.documents.map((p,w)=>r.jsx(Ve,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Ue,{children:p.links.map((g,k)=>r.jsx(Xe,{children:g.link!==""?r.jsx(ee,{href:g.link,target:"_blank",rel:"noopener noreferrer",children:g.text}):g.text},k))}):r.jsx(ee,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(Z,{style:{marginTop:i.sp2},children:u.agreementDrawer.confirmTitle}),r.jsx(G,{children:u.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(re,{children:p},w))})]})]})})},Ne=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{x as Me,u as Ue,e as ae,a2 as se,a as re,ca as le,B as ce,a8 as te,j as t,cP as He,g as Re,C as u,aX as _e,m as Ne,F as de,dO as Je,aS as qe,q as n,K as Ge,bp as Ke,$ as Xe,cg as Ye,a4 as Ze,o as i,t as ue,c7 as Qe,a3 as et,J as tt,y as it}from"./index-BbDh7DHE.js";import{b as a,n as o}from"./vendor-rkTZJa59.js";import{D as ot}from"./HelpButton-B3uWY2LR-Cc9qhHgW.js";import{r as nt}from"./verification-CW6uEyev-BVrJsi0i.js";import{q as ie}from"./SetUpDefaultSection-Bw-ODNSn-BA2XuR6A.js";import{f as at}from"./SpendMgmtSetupAccountSection-BQP4OHws-ClD17BaL.js";import st from"./PortfolioAllocationFormPage-BLdGGltt-DYHY7lo_.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./MeetingCalenderPopup-YiB2ETli-eakVkALK.js";import"./ChargeCardUtils-DtlGBAOG-B-RH9A8U.js";import"./CreditCardPaymentPlgSection-DkQpCIiA-B4cVl3PE.js";import"./ChaseOverlay-D9_jipgQ-BFWGd0Ne.js";import"./PortfolioDetails-agrnhRRW-CwPi8dd_.js";import"./treasuryColorHelper-CF-h70rk-5BW6rAOF.js";const rt=(e,f)=>`${e}.${f}`,E={labelWidth:new u(145,155),navBarContainerPaddingYaxis:new u(10,n[3]),containerPaddingLeft:new u(n[3],n[6],n[8]),containerPaddingRight:new u(n[3],n[6],n[8])},lt={stepTitle:new tt("h6Regular","h5Regular")},pe=ce.getLocalizedStrings(),{common:oe}=pe,h=pe.commonSetUp.businessVerification,G=h.sourceOfFundOptions,$="additionalVerificationFields",ct=({companyOfficer:e,companyDetails:f,updateStatus:c,isDetailsSubmitted:x,onClose:d,onAdditionalVerificationFieldsChanged:I,onSendForVerificationClick:B,onCloseOverlay:j})=>{const p=ae(),k=E.labelWidth.value(p),D=se(c.fetchState),C=re({mode:"all",reValidateMode:"onChange",defaultValues:a.useMemo(()=>({[$]:{sourceOfFunds:{selectedOption:f?.sourceOfFunds??"",allOptions:Object.keys(G)}}}),[f?.sourceOfFunds])}),W=m=>G[m]??m,M=C.handleSubmit(()=>{B(e?.officerType??"Officer_1")}),P=async(m,w)=>{I(w[$])};return a.useEffect(()=>{const m=C.watch((w,{name:O})=>{O!=null&&w!=null&&le(()=>P(O,w))});return()=>{m.unsubscribe()}}),D==="In-Progress"&&c.fetchState==="Completed"||x===!0?t.jsxs(gt,{children:[t.jsxs(xt,{children:[t.jsx(nt,{}),t.jsx(ht,{windowSize:p,children:h.submittedTitle}),t.jsx(ft,{children:h.submittedDescription})]}),t.jsx(Ge,{label:h.submittedButton,onClick:j,variant:"primary"})]}):t.jsxs(dt,{windowSize:p,children:[t.jsx(ut,{windowSize:p,children:t.jsx(Ke,{title:"Back",enterTouchDelay:600,placement:"bottom",children:t.jsx(pt,{"data-testid":Xe("nav-bar-back-portfolio-allocation"),onClick:j||d})})}),t.jsxs(wt,{windowSize:p,children:[t.jsx(yt,{windowSize:p,children:h.verifyBusinessDetails}),t.jsx(bt,{children:t.jsxs(kt,{children:[t.jsx(Ct,{}),t.jsx(vt,{})]})})]}),t.jsx(he,{children:h.verifyBusinessDetailsDescription}),t.jsx(de,{...C,children:t.jsxs("form",{id:$,onSubmit:M,children:[t.jsx(mt,{children:t.jsx(Ye,{label:{label:h.sourceOfFundsLabel,width:k},style:{width:"auto"},additionalInfoLabel:h.sourceOfFundsAdditionalInfo,singleSelectField:{singleSelect:{name:rt($,"sourceOfFunds"),placeholder:h.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:W,showTickMark:!1,sortOptions:!1},defaultValue:{selectedOption:f?.sourceOfFunds??"",allOptions:Object.keys(G)},registerOptions:{required:!0,validate:m=>!!m?.selectedOption}},isFunctional:!0,errorInfoLabel:h.sourceOfFundsError.replace("_product_type_","business verification")})}),t.jsx(Ze,{formId:$,primaryBtn:{label:oe.footer.submit,style:{width:"auto",minWidth:p==="small"?"auto":"83px"},isLoading:c.fetchState==="In-Progress"},cancelBtn:{label:oe.footer.back,style:{width:p==="small"?"auto":"83px"},onClick:d},style:{position:"absolute",width:"100%",paddingTop:i.sp2,paddingBottom:i.sp2}})]})})]})},dt=o.div`
1
+ import{x as Me,u as Ue,e as ae,a2 as se,a as re,ca as le,B as ce,a8 as te,j as t,cP as He,g as Re,C as u,aX as _e,m as Ne,F as de,dO as Je,aS as qe,q as n,K as Ge,bp as Ke,$ as Xe,cg as Ye,a4 as Ze,o as i,t as ue,c7 as Qe,a3 as et,J as tt,y as it}from"./index-C7jkqxrR.js";import{b as a,n as o}from"./vendor-rkTZJa59.js";import{D as ot}from"./HelpButton-B3uWY2LR-OlttS1C0.js";import{r as nt}from"./verification-CW6uEyev-BVrJsi0i.js";import{q as ie}from"./SetUpDefaultSection-Bw-ODNSn-XyoiRDtn.js";import{f as at}from"./SpendMgmtSetupAccountSection-BQP4OHws-IXpe5hj1.js";import st from"./PortfolioAllocationFormPage-BLdGGltt-jcopE-iX.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./MeetingCalenderPopup-YiB2ETli-CqKaSUHn.js";import"./ChargeCardUtils-DtlGBAOG-CnFwGz8i.js";import"./CreditCardPaymentPlgSection-DkQpCIiA-CI4n-74w.js";import"./ChaseOverlay-D9_jipgQ-C9IApPhh.js";import"./PortfolioDetails-agrnhRRW-bdNc5pLU.js";import"./treasuryColorHelper-CF-h70rk-DcbjCnLZ.js";const rt=(e,f)=>`${e}.${f}`,E={labelWidth:new u(145,155),navBarContainerPaddingYaxis:new u(10,n[3]),containerPaddingLeft:new u(n[3],n[6],n[8]),containerPaddingRight:new u(n[3],n[6],n[8])},lt={stepTitle:new tt("h6Regular","h5Regular")},pe=ce.getLocalizedStrings(),{common:oe}=pe,h=pe.commonSetUp.businessVerification,G=h.sourceOfFundOptions,$="additionalVerificationFields",ct=({companyOfficer:e,companyDetails:f,updateStatus:c,isDetailsSubmitted:x,onClose:d,onAdditionalVerificationFieldsChanged:I,onSendForVerificationClick:B,onCloseOverlay:j})=>{const p=ae(),k=E.labelWidth.value(p),D=se(c.fetchState),C=re({mode:"all",reValidateMode:"onChange",defaultValues:a.useMemo(()=>({[$]:{sourceOfFunds:{selectedOption:f?.sourceOfFunds??"",allOptions:Object.keys(G)}}}),[f?.sourceOfFunds])}),W=m=>G[m]??m,M=C.handleSubmit(()=>{B(e?.officerType??"Officer_1")}),P=async(m,w)=>{I(w[$])};return a.useEffect(()=>{const m=C.watch((w,{name:O})=>{O!=null&&w!=null&&le(()=>P(O,w))});return()=>{m.unsubscribe()}}),D==="In-Progress"&&c.fetchState==="Completed"||x===!0?t.jsxs(gt,{children:[t.jsxs(xt,{children:[t.jsx(nt,{}),t.jsx(ht,{windowSize:p,children:h.submittedTitle}),t.jsx(ft,{children:h.submittedDescription})]}),t.jsx(Ge,{label:h.submittedButton,onClick:j,variant:"primary"})]}):t.jsxs(dt,{windowSize:p,children:[t.jsx(ut,{windowSize:p,children:t.jsx(Ke,{title:"Back",enterTouchDelay:600,placement:"bottom",children:t.jsx(pt,{"data-testid":Xe("nav-bar-back-portfolio-allocation"),onClick:j||d})})}),t.jsxs(wt,{windowSize:p,children:[t.jsx(yt,{windowSize:p,children:h.verifyBusinessDetails}),t.jsx(bt,{children:t.jsxs(kt,{children:[t.jsx(Ct,{}),t.jsx(vt,{})]})})]}),t.jsx(he,{children:h.verifyBusinessDetailsDescription}),t.jsx(de,{...C,children:t.jsxs("form",{id:$,onSubmit:M,children:[t.jsx(mt,{children:t.jsx(Ye,{label:{label:h.sourceOfFundsLabel,width:k},style:{width:"auto"},additionalInfoLabel:h.sourceOfFundsAdditionalInfo,singleSelectField:{singleSelect:{name:rt($,"sourceOfFunds"),placeholder:h.sourceOfFundsPlaceholder,showValueEyeIcon:!1,showEyeIconOnSelect:!1,getLabelForId:W,showTickMark:!1,sortOptions:!1},defaultValue:{selectedOption:f?.sourceOfFunds??"",allOptions:Object.keys(G)},registerOptions:{required:!0,validate:m=>!!m?.selectedOption}},isFunctional:!0,errorInfoLabel:h.sourceOfFundsError.replace("_product_type_","business verification")})}),t.jsx(Ze,{formId:$,primaryBtn:{label:oe.footer.submit,style:{width:"auto",minWidth:p==="small"?"auto":"83px"},isLoading:c.fetchState==="In-Progress"},cancelBtn:{label:oe.footer.back,style:{width:p==="small"?"auto":"83px"},onClick:d},style:{position:"absolute",width:"100%",paddingTop:i.sp2,paddingBottom:i.sp2}})]})})]})},dt=o.div`
2
2
  height: auto;
3
3
  padding-left: ${e=>`${E.containerPaddingLeft.valuePx(e.windowSize)}`};
4
4
  padding-right: ${e=>`${E.containerPaddingRight.valuePx(e.windowSize)}`};
@@ -1,4 +1,4 @@
1
- import{u as j,e as v,j as t,aX as z,B as C,aj as P,o as r,g as c,b_ as B,C as I,q as d,t as R}from"./index-BbDh7DHE.js";import{b as m,n as o}from"./vendor-rkTZJa59.js";import{$ as T}from"./BoxItem-Bwh-fULe-Qk6VZT8D.js";import{o as E}from"./commonDimensions-Dfc-15aJ-BHLyX2jV.js";import{O as L}from"./StatementItem-uDpMbqmR-B6So7O5M.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./downloadPdf-QB7_leFQ-CyDYMJUa.js";const h=C.getLocalizedStrings().spendManagement.treasury.statements,x={listItemMargin:new I(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:u,downloadEndPoint:w,statementListView:a,onBackClick:g})=>{const b=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>E.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(L,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:u,downloadEndPoint:w,documentType:"treasuryStatement",boxType:T(s,a.statements.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(N,{children:t.jsx(p,{windowSize:i,children:t.jsx(H,{children:h.noStatements})})})})};return t.jsxs(A,{children:[t.jsx(z,{title:h.title,backgroundColor:b.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(P,{children:({height:s,width:n})=>t.jsx(O,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},M=o.div``,p=o.div`
1
+ import{u as j,e as v,j as t,aX as z,B as C,aj as P,o as r,g as c,b_ as B,C as I,q as d,t as R}from"./index-C7jkqxrR.js";import{b as m,n as o}from"./vendor-rkTZJa59.js";import{$ as T}from"./BoxItem-Bwh-fULe-Cnvh0VLf.js";import{o as E}from"./commonDimensions-Dfc-15aJ-CxnVwTdu.js";import{O as L}from"./StatementItem-uDpMbqmR-DBTHHgkS.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./downloadPdf-QB7_leFQ-CoJ91cS7.js";const h=C.getLocalizedStrings().spendManagement.treasury.statements,x={listItemMargin:new I(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:u,downloadEndPoint:w,statementListView:a,onBackClick:g})=>{const b=j(),i=v(),f=m.createRef(),y=m.useRef(),$=a.statements.length===0,k=()=>E.transactionItemHeightResponsive.value(i),S=({index:s,style:n})=>{const l=a.statements[s];return $===!1?t.jsx(p,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(L,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:u,downloadEndPoint:w,documentType:"treasuryStatement",boxType:T(s,a.statements.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(N,{children:t.jsx(p,{windowSize:i,children:t.jsx(H,{children:h.noStatements})})})})};return t.jsxs(A,{children:[t.jsx(z,{title:h.title,backgroundColor:b.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(P,{children:({height:s,width:n})=>t.jsx(O,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.statements.length,itemSize:k,initialScrollOffset:0,children:S})})})]})},M=o.div``,p=o.div`
2
2
  margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{u as S,e as v,j as t,aX as L,B as z,aj as C,o as r,g as c,b_ as P,C as T,q as d,t as B}from"./index-BbDh7DHE.js";import{b as h,n as o}from"./vendor-rkTZJa59.js";import{$ as I}from"./BoxItem-Bwh-fULe-Qk6VZT8D.js";import{o as R}from"./commonDimensions-Dfc-15aJ-BHLyX2jV.js";import{O as E}from"./StatementItem-uDpMbqmR-B6So7O5M.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./downloadPdf-QB7_leFQ-CyDYMJUa.js";const p=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new T(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:u,taxLetterListView:a,onBackClick:g})=>{const b=S(),i=v(),f=h.createRef(),y=h.useRef(),$=a.taxLetters.length===0,k=()=>R.transactionItemHeightResponsive.value(i),j=({index:s,style:n})=>{const l=a.taxLetters[s];return $===!1?t.jsx(m,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:w,downloadEndPoint:u,documentType:"taxLetter",boxType:I(s,a.taxLetters.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(N,{children:t.jsx(m,{windowSize:i,children:t.jsx(H,{children:p.noTaxLetter})})})})};return t.jsxs(A,{children:[t.jsx(L,{title:p.title,backgroundColor:b.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(C,{children:({height:s,width:n})=>t.jsx(O,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},M=o.div``,m=o.div`
1
+ import{u as S,e as v,j as t,aX as L,B as z,aj as C,o as r,g as c,b_ as P,C as T,q as d,t as B}from"./index-C7jkqxrR.js";import{b as h,n as o}from"./vendor-rkTZJa59.js";import{$ as I}from"./BoxItem-Bwh-fULe-Cnvh0VLf.js";import{o as R}from"./commonDimensions-Dfc-15aJ-CxnVwTdu.js";import{O as E}from"./StatementItem-uDpMbqmR-DBTHHgkS.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./downloadPdf-QB7_leFQ-CoJ91cS7.js";const p=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new T(d[3],d[8])},ee=({currentTenantCompanyName:e,authParams:w,downloadEndPoint:u,taxLetterListView:a,onBackClick:g})=>{const b=S(),i=v(),f=h.createRef(),y=h.useRef(),$=a.taxLetters.length===0,k=()=>R.transactionItemHeightResponsive.value(i),j=({index:s,style:n})=>{const l=a.taxLetters[s];return $===!1?t.jsx(m,{windowSize:i,style:{...n,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(E,{currentTenantCompanyName:e,accountLast4:"",data:l,authParams:w,downloadEndPoint:u,documentType:"taxLetter",boxType:I(s,a.taxLetters.length)},l.id)}):t.jsx(M,{style:{...n},children:t.jsx(N,{children:t.jsx(m,{windowSize:i,children:t.jsx(H,{children:p.noTaxLetter})})})})};return t.jsxs(A,{children:[t.jsx(L,{title:p.title,backgroundColor:b.colors.grey4,style:{zIndex:3},onBackClick:g,source:"treasury"}),t.jsx(K,{windowSize:i,children:t.jsx(C,{children:({height:s,width:n})=>t.jsx(O,{ref:f,height:s,width:n,innerRef:y,itemKey:l=>l,itemCount:a.taxLetters.length,itemSize:k,initialScrollOffset:0,children:j})})})]})},M=o.div``,m=o.div`
2
2
  margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{e as ge,O as $t,j as o,$ as P,gV as bt,B as xe,a0 as W,K as Ee,m as Ze,a4 as et,o as t,C as f,a3 as De,T as St,am as vt,u as jt,a2 as J,bp as At,cV as tt,J as R,l as z,g2 as kt,g as S,r as Tt,y as ot,w as G,t as Y,f2 as Pt,a as Ct,ca as zt,F as Dt,fK as Lt,q as c,bw as rt,d1 as nt,bO as it,cG as Ft,cx as Mt,fe as Rt,f6 as Bt,x as Ot,n as It,f7 as Nt,ds as Et,c3 as _t,c2 as Vt,aR as Wt,be as Gt,fg as Yt,fp as Xt,ab as qt}from"./index-BbDh7DHE.js";import{n as r,b as x}from"./vendor-rkTZJa59.js";import{V as at}from"./PortfolioDetails-agrnhRRW-CwPi8dd_.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./treasuryColorHelper-CF-h70rk-5BW6rAOF.js";const Jt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Kt=1e3;function Qt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,m]=x.useState(a);x.useEffect(()=>{m(a)},[a]);const w=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Kt,value:l,onChange:w}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Ut(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Ht(i)},children:o.jsx(io,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Ut=e=>{const a=qt("0,0.[00]a",e,"$").toUpperCase();return`${Jt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Ht=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),eo=r.input`
1
+ import{e as ge,O as $t,j as o,$ as P,gV as bt,B as xe,a0 as W,K as Ee,m as Ze,a4 as et,o as t,C as f,a3 as De,T as St,am as vt,u as jt,a2 as J,bp as At,cV as tt,J as R,l as z,g2 as kt,g as S,r as Tt,y as ot,w as G,t as Y,f2 as Pt,a as Ct,ca as zt,F as Dt,fK as Lt,q as c,bw as rt,d1 as nt,bO as it,cG as Ft,cx as Mt,fe as Rt,f6 as Bt,x as Ot,n as It,f7 as Nt,ds as Et,c3 as _t,c2 as Vt,aR as Wt,be as Gt,fg as Yt,fp as Xt,ab as qt}from"./index-C7jkqxrR.js";import{n as r,b as x}from"./vendor-rkTZJa59.js";import{V as at}from"./PortfolioDetails-agrnhRRW-bdNc5pLU.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./treasuryColorHelper-CF-h70rk-DcbjCnLZ.js";const Jt=xe.getLocalizedStrings().spendManagement.treasury,F=[0,125e4,25e5,35e5,5e6],Kt=1e3;function Qt({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:n}){const d=Ot().analytics,[l,m]=x.useState(a);x.useEffect(()=>{m(a)},[a]);const w=h=>{const i=parseFloat(h.target.value),$=he(i,e);m(i),u($),n(i),d.trackTreasuryCalculatorClick("fund transfer",i)},v=h=>{const i=he(h,e);m(h),n(h),u(i),d.trackTreasuryCalculatorClick("fund transfer",h)};return o.jsxs(to,{sliderValue:l,children:[o.jsx(eo,{sliderValue:l,type:"range",min:F[0],max:F[F.length-1],step:Kt,value:l,onChange:w}),o.jsx(oo,{style:{width:`${Math.min(l/F[F.length-1]*92.5,92.5)}%`}}),o.jsx(ao,{sliderValue:l,style:{left:`calc(${Math.min(Math.max(l/F[F.length-1]*100,5),95)}% - 50px)`},children:Ut(l)}),o.jsx(ro,{children:F.map((h,i)=>o.jsx(no,{onClick:()=>v(h),"data-testid":P("slider-label",h.toString()),style:{left:Ht(i)},children:o.jsx(io,{isSelected:l>=h,children:Zt(h)})},h))})]})}const Ut=e=>{const a=qt("0,0.[00]a",e,"$").toUpperCase();return`${Jt.transferDrawer.calculator.sliderTooltipText} ${a}`};function he(e,a){const u=a/100,n=e*Math.pow(1+u/12,12);return Math.floor(n-e)}const Ht=e=>{switch(e){case 0:return"3%";case 1:return"28%";case 2:return"50.2%";case 3:return"74.5%";case 4:return"98%";default:return"100%"}},Zt=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),eo=r.input`
2
2
  width: 100%;
3
3
  &[type="range"]::-webkit-slider-runnable-track {
4
4
  height: 2px;
@@ -1,4 +1,4 @@
1
- import{B as $,j as s,l as u,u as B,$ as Y,aj as Z,b7 as z,b8 as F,aw as P,v as k,av as R,ab as O,b9 as q,ax as _,bb as G,o as L,g as K,t as N}from"./index-BbDh7DHE.js";import{b as v,f as Q,n as w}from"./vendor-rkTZJa59.js";import{d as V,g as T,p as D,u as W}from"./chartTypes-DmEm-9Ox-D8wy99Dp.js";import{o as X}from"./toCOABalancesWithID-DIO7qGqY-CpbC2N8j.js";import{V as H}from"./toChartData-D89UpEia-7GzevV61.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const I=w.div`
1
+ import{B as $,j as s,l as u,u as B,$ as Y,aj as Z,b7 as z,b8 as F,aw as P,v as k,av as R,ab as O,b9 as q,ax as _,bb as G,o as L,g as K,t as N}from"./index-C7jkqxrR.js";import{b as v,f as Q,n as w}from"./vendor-rkTZJa59.js";import{d as V,g as T,p as D,u as W}from"./chartTypes-DmEm-9Ox-ULKq2fZN.js";import{o as X}from"./toCOABalancesWithID-DIO7qGqY-BCZorL6x.js";import{V as H}from"./toChartData-D89UpEia-DmSMBtrE.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const I=w.div`
2
2
  display: flex;
3
3
  `,J=w.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{e as D,j as i,m as R,o as t,B as F,C as c,$ as S,aj as q,am as Y,c7 as E,q as a,t as K,a3 as V}from"./index-BbDh7DHE.js";import{b as k,n}from"./vendor-rkTZJa59.js";import W from"./TrendChart-Dn0GiuT9-f0hc-Dw5.js";import{C as _}from"./NoDataChart-gi34_J2e-BLVBAxAp.js";import{B as Q}from"./InsightsSection-CFeEzjB3-Cp-KSZAQ.js";import{f as X}from"./TransactionList-CkdTkJqL-ByxEuyvr.js";const Z=n.div`
1
+ import{e as D,j as i,m as R,o as t,B as F,C as c,$ as S,aj as q,am as Y,c7 as E,q as a,t as K,a3 as V}from"./index-C7jkqxrR.js";import{b as k,n}from"./vendor-rkTZJa59.js";import W from"./TrendChart-Dn0GiuT9-HQjjMVrP.js";import{C as _}from"./NoDataChart-gi34_J2e-BOq-1JyJ.js";import{B as Q}from"./InsightsSection-CFeEzjB3-D_1DfMdF.js";import{f as X}from"./TransactionList-CkdTkJqL-Cgr2VpIS.js";const Z=n.div`
2
2
  display: inline-block;
3
3
  `,G=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{u as ce,e as se,Y as Xe,a2 as en,ga as R,hc as J,B as H,a as nn,hd as tn,he as Te,ca as on,j as t,aX as cn,bV as sn,bX as ln,bY as an,F as rn,l as U,hf as dn,m as un,hg as Z,hh as pn,a4 as mn,hi as Ve,C as u,t as gn,o as l,cn as ye,a8 as W,gf as oe,hj as ie,q as d,J as Ae,g as $e,fE as _e,w as Se,aC as xn}from"./index-BbDh7DHE.js";import{b as K,n as s}from"./vendor-rkTZJa59.js";import{D as hn}from"./HelpButton-B3uWY2LR-Cc9qhHgW.js";import{h as wn}from"./VendorsAccountsSection-DytBkZ5j-B0G1TjWZ.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./MeetingCalenderPopup-YiB2ETli-eakVkALK.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},qe={title:new Ae("standardMedium","largeMedium")},bn=s.div`
1
+ import{u as ce,e as se,Y as Xe,a2 as en,ga as R,hc as J,B as H,a as nn,hd as tn,he as Te,ca as on,j as t,aX as cn,bV as sn,bX as ln,bY as an,F as rn,l as U,hf as dn,m as un,hg as Z,hh as pn,a4 as mn,hi as Ve,C as u,t as gn,o as l,cn as ye,a8 as W,gf as oe,hj as ie,q as d,J as Ae,g as $e,fE as _e,w as Se,aC as xn}from"./index-C7jkqxrR.js";import{b as K,n as s}from"./vendor-rkTZJa59.js";import{D as hn}from"./HelpButton-B3uWY2LR-OlttS1C0.js";import{h as wn}from"./VendorsAccountsSection-DytBkZ5j-BDTqXfPm.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./MeetingCalenderPopup-YiB2ETli-CqKaSUHn.js";const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(d[6],d[7]),iconContainerMarginRight:new u(12,d[3]),iconPadding:new u(10,12),rowGap:new u(d[2],d[3]),elementsMarginLeftRight:new u(d[3],d[4])},qe={title:new Ae("standardMedium","largeMedium")},bn=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>C.rowGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{a2 as b,j as t,hl as R,hm as _,e as F,B as O,bV as U,c as C,bX as N,bY as z,a as H,F as M,cj as G,l as T,cf as D,C as g,cg as K,g as A,p as J,m as X,K as Y,o as i,t as Q,q as B,r as Z,ap as ee}from"./index-BbDh7DHE.js";import{b as c,n as f}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(B[3],B[2]),width:new g(300,420,420)},te=f.div`
1
+ import{a2 as b,j as t,hl as R,hm as _,e as F,B as O,bV as U,c as C,bX as N,bY as z,a as H,F as M,cj as G,l as T,cf as D,C as g,cg as K,g as A,p as J,m as X,K as Y,o as i,t as Q,q as B,r as Z,ap as ee}from"./index-C7jkqxrR.js";import{b as c,n as f}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(B[3],B[2]),width:new g(300,420,420)},te=f.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{a as M,fh as x,a2 as U,l as q,e as A,B as W,j as i,ca as _,F as G,$ as Q,fi as H,o as a,g as J,ck as K,a4 as X,C as y,a3 as Y,c7 as Z,ap as ee,ao as te,q as c}from"./index-BbDh7DHE.js";import{b as m,n as l}from"./vendor-rkTZJa59.js";const F={marginRight:new y(c[3],c[8]),marginLeft:new y(c[3],c[8]),height:new y(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function ue(e){const{filesEndPoint:w,authParams:E,companyOfficer:t,updateStatus:f,onClose:$,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=M({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,S]=m.useState(!1),[N,B]=m.useState(!1),b=U(f.fetchState),j=t?.deleteFileStatusById??{},O=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),L=q.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&f.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,f,n,t?.additionalFiles]);const r=A(),h=W.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,k=n.handleSubmit(()=>{L.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),R=async(o,p)=>{const d=p[u].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),S(!0)):S(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&_(()=>R(d,p))});return()=>{o.unsubscribe()}}),i.jsx(G,{...n,children:i.jsxs("form",{id:u,onSubmit:k,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":Q("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(H,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:O,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onFileSizeError:o=>B(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(X,{formId:u,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:f.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
1
+ import{a as M,fh as x,a2 as U,l as q,e as A,B as W,j as i,ca as _,F as G,$ as Q,fi as H,o as a,g as J,ck as K,a4 as X,C as y,a3 as Y,c7 as Z,ap as ee,ao as te,q as c}from"./index-C7jkqxrR.js";import{b as m,n as l}from"./vendor-rkTZJa59.js";const F={marginRight:new y(c[3],c[8]),marginLeft:new y(c[3],c[8]),height:new y(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function ue(e){const{filesEndPoint:w,authParams:E,companyOfficer:t,updateStatus:f,onClose:$,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onSendForVerificationClick:P,onCompanyOfficerUpdated:C}=e,n=M({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[z,S]=m.useState(!1),[N,B]=m.useState(!1),b=U(f.fetchState),j=t?.deleteFileStatusById??{},O=t?.updateFileStatusById??{},T=Object.values(j??{}).filter(o=>o!=null),L=q.reduceAllFetchState(T);m.useEffect(()=>{b==="In-Progress"&&f.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}})},[b,f,n,t?.additionalFiles]);const r=A(),h=W.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,k=n.handleSubmit(()=>{L.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),R=async(o,p)=>{const d=p[u].front;o.includes("front")&&d?.fileId!=null?(C?.(t?.officerType??"Officer_1",[d?.fileId]),S(!0)):S(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&_(()=>R(d,p))});return()=>{o.unsubscribe()}}),i.jsx(G,{...n,children:i.jsxs("form",{id:u,onSubmit:k,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":Q("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(le,{children:i.jsx(se,{children:V})}),i.jsx(H,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:K,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${J.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:x(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:j,updateFileStatusById:O,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:v,updateFilesEntity:D,onFileSizeError:o=>B(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),z?i.jsx(X,{formId:u,primaryBtn:{label:h.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:f.fetchState==="In-Progress"},cancelBtn:{label:h.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=l(Z)`
2
2
  margin-top: 19px;
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  margin-bottom: ${a.sp2};
@@ -1 +1 @@
1
- import{a2 as o,B as v,j as i,hl as y,hm as b}from"./index-BbDh7DHE.js";import{b as e}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const B=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:g,newVendorState:V}=S,r=Object.assign({},g??V),[C,s]=e.useState(!1),[O,a]=e.useState(t.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(t.userVerificationStatus.fetchState),f=o(t.otpVerificationStatus?.fetchState),u=o(t.sendOtpStatus.fetchState),E=v.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&a(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,t.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(y,{showHelperText:!n,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?i.jsx(b,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?E:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:P=>h?.(P)}}):null})};export{B as default};
1
+ import{a2 as o,B as v,j as i,hl as y,hm as b}from"./index-C7jkqxrR.js";import{b as e}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const B=({vendorViewDetails:S,isExpressPayPage:n,onSaveVendor:l,onGetOtp:h,onResendOtp:d,onVerifyOtp:m,onVerifyOtpSuccess:c})=>{const{loggedInUserVerification:t,editVendorState:g,newVendorState:V}=S,r=Object.assign({},g??V),[C,s]=e.useState(!1),[O,a]=e.useState(t.initiateVerification===!0),p=o(r?.saveStatus?.fetchState),x=o(t.userVerificationStatus.fetchState),f=o(t.otpVerificationStatus?.fetchState),u=o(t.sendOtpStatus.fetchState),E=v.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return e.useEffect(()=>{p==="In-Progress"&&r?.saveStatus?.fetchState==="Error"&&t.initiateVerification===!0&&a(!0)},[r,t,p]),e.useEffect(()=>{x==="In-Progress"&&t.userVerificationStatus.fetchState==="Completed"&&(s(!1),l())},[t.userVerificationStatus]),e.useEffect(()=>{f==="In-Progress"&&t.otpVerificationStatus?.fetchState==="Completed"&&c?.(t.userId??"",t.phone??"",t.otpChallenge??"")},[f,t,c]),e.useEffect(()=>{u==="In-Progress"&&t.sendOtpStatus.fetchState==="Completed"&&(s(!0),a(!1))},[u,t.sendOtpStatus.fetchState]),i.jsx(i.Fragment,{children:C===!0?i.jsx(y,{showHelperText:!n,verifyOtpFetchState:t.otpVerificationStatus.fetchState,phoneNumber:t.phone??"",otpChallenge:t.otpChallenge,action:{onVerifyClick:m,onCancelClick:()=>s(!1),onResendOtp:d,onEditButtonClick:()=>{a(!0),s(!1)}}}):O===!0?i.jsx(b,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?E:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:P=>h?.(P)}}):null})};export{B as default};
@@ -1 +1 @@
1
- import{j as u}from"./index-BbDh7DHE.js";import{b as d}from"./vendor-rkTZJa59.js";import{f as k}from"./ACHDetailsPage-C0HaWoSJ-CYzWyp3u.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BankAccountWarningSection-CVhY2Ven-ByJf4Phz.js";import"./MagicLinkTitleSection-wjuKcqab-DTnb4_9g.js";import"./BankAccountSection-X5lu-xFg-rI1MYX2X.js";const R=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:m,fetchBankNameByRoutingStatus:p}=t;return d.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),u.jsx(k,{bankAccountToCreate:m,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})};export{R as default};
1
+ import{j as u}from"./index-C7jkqxrR.js";import{b as d}from"./vendor-rkTZJa59.js";import{f as k}from"./ACHDetailsPage-C0HaWoSJ-Dc5JPQ9N.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BankAccountWarningSection-CVhY2Ven-MI-JQ1yO.js";import"./MagicLinkTitleSection-wjuKcqab-D7vo35cb.js";import"./BankAccountSection-X5lu-xFg-TbmLt2Ax.js";const R=({vendorViewDetails:t,bankAccountContext:e,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})=>{const{bankAccountCreationState:o,bankNameByRouting:c,bankAccountToCreate:m,fetchBankNameByRoutingStatus:p}=t;return d.useEffect(()=>{(e==="vendor"&&o?.fetchState==="Completed"||t.editVendorState?.saveStatus.fetchState==="Completed"&&e!=="express-pay")&&a()},[o,t.editVendorState?.saveStatus.fetchState,e,a]),u.jsx(k,{bankAccountToCreate:m,bankAccountCreationState:o,bankNameByRouting:c,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:r,onACHDetailsUpdated:i,onBackClick:a,onFetchBankName:s})};export{R as default};
@@ -1,4 +1,4 @@
1
- import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,gC as Ae,gD as Ee,gE as be,gF as ft,a8 as bt,ca as wt,j as t,aX as Ct,F as $t,gG as St,gH as ue,q as l,cb as Dt,a4 as jt,o,bh as S,cn as Lt,gf as we,gI as Tt,cd as Vt,ce as kt,cf as Ot,gJ as It,fL as Pt,cl as Ft,gK as zt,gL as Mt,g as M,dr as Nt,dq as _t,cz as Wt,ab as de,am as Ue,w as qe,ds as Ht,af as Rt,gM as Bt,gN as At,t as Et,gO as Ut,bO as Ye,gP as qt,J as Ce,y as Je}from"./index-BbDh7DHE.js";import{b as $,n as a,j as Yt}from"./vendor-rkTZJa59.js";import{k as Jt}from"./SubTabSwitcher-BSxF2cHS-DcEcmm_M.js";import{f as Gt}from"./TransactionList-CkdTkJqL-ByxEuyvr.js";import{R as Qt}from"./TrendWithTransactions-DtPVZEAr-Czky0iLs.js";import{o as Xt,t as Kt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{C as Zt}from"./LabeledAddressValueField-CNyhuNMg-DZjijMbu.js";import{Y as es}from"./LabeledDropDownFormattedTextField-D8oMk4xt-B5tgITDK.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BoxItem-Bwh-fULe-Qk6VZT8D.js";import"./commonDimensions-Dfc-15aJ-BHLyX2jV.js";import"./TrendChart-Dn0GiuT9-f0hc-Dw5.js";import"./chartTypes-DmEm-9Ox-D8wy99Dp.js";import"./toCOABalancesWithID-DIO7qGqY-CpbC2N8j.js";import"./toChartData-D89UpEia-7GzevV61.js";import"./NoDataChart-gi34_J2e-BLVBAxAp.js";import"./InsightsSection-CFeEzjB3-Cp-KSZAQ.js";import"./NavigationDots-CFxiVMnb-BWrfrorl.js";const ts=a.div`
1
+ import{B as N,u as Re,e as ne,C as g,O as fe,l as se,cc as xt,a as yt,gB as Be,gC as Ae,gD as Ee,gE as be,gF as ft,a8 as bt,ca as wt,j as t,aX as Ct,F as $t,gG as St,gH as ue,q as l,cb as Dt,a4 as jt,o,bh as S,cn as Lt,gf as we,gI as Tt,cd as Vt,ce as kt,cf as Ot,gJ as It,fL as Pt,cl as Ft,gK as zt,gL as Mt,g as M,dr as Nt,dq as _t,cz as Wt,ab as de,am as Ue,w as qe,ds as Ht,af as Rt,gM as Bt,gN as At,t as Et,gO as Ut,bO as Ye,gP as qt,J as Ce,y as Je}from"./index-C7jkqxrR.js";import{b as $,n as a,j as Yt}from"./vendor-rkTZJa59.js";import{k as Jt}from"./SubTabSwitcher-BSxF2cHS-DzqRE0-4.js";import{f as Gt}from"./TransactionList-CkdTkJqL-Cgr2VpIS.js";import{R as Qt}from"./TrendWithTransactions-DtPVZEAr-DnuxxeAb.js";import{o as Xt,t as Kt}from"./arrow-south-east-round-PEovUgvH-D6oVD1ix.js";import{C as Zt}from"./LabeledAddressValueField-CNyhuNMg-BDiOnCQn.js";import{Y as es}from"./LabeledDropDownFormattedTextField-D8oMk4xt-NfRrE6TJ.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BoxItem-Bwh-fULe-Cnvh0VLf.js";import"./commonDimensions-Dfc-15aJ-CxnVwTdu.js";import"./TrendChart-Dn0GiuT9-HQjjMVrP.js";import"./chartTypes-DmEm-9Ox-ULKq2fZN.js";import"./toCOABalancesWithID-DIO7qGqY-BCZorL6x.js";import"./toChartData-D89UpEia-DmSMBtrE.js";import"./NoDataChart-gi34_J2e-BOq-1JyJ.js";import"./InsightsSection-CFeEzjB3-D_1DfMdF.js";import"./NavigationDots-CFxiVMnb-Dxb6vagd.js";const ts=a.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: center;
@@ -1 +1 @@
1
- import{j as S}from"./index-BbDh7DHE.js";import{b as C}from"./vendor-rkTZJa59.js";import{y as b}from"./DomesticWireDetailsPage-BfypyRjN-DhjsrA5n.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BankAccountSection-X5lu-xFg-rI1MYX2X.js";import"./MagicLinkTitleSection-wjuKcqab-DTnb4_9g.js";import"./BankAccountWarningSection-CVhY2Ven-ByJf4Phz.js";import"./MailingDetailsSection-DU4LYPzH-fYkr0XK5.js";import"./LabeledAddressValueField-CNyhuNMg-DZjijMbu.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};
1
+ import{j as S}from"./index-C7jkqxrR.js";import{b as C}from"./vendor-rkTZJa59.js";import{y as b}from"./DomesticWireDetailsPage-BfypyRjN-DhX6lTqU.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BankAccountSection-X5lu-xFg-TbmLt2Ax.js";import"./MagicLinkTitleSection-wjuKcqab-D7vo35cb.js";import"./BankAccountWarningSection-CVhY2Ven-MI-JQ1yO.js";import"./MailingDetailsSection-DU4LYPzH-BXsLAtDc.js";import"./LabeledAddressValueField-CNyhuNMg-BDiOnCQn.js";const V=({vendorViewDetails:r,bankAccountContext:t,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onFetchBankName:d,onAddressClick:c})=>{const{bankAccountCreationState:o,editVendorState:m,newVendorState:p,bankNameByRouting:u,bankAccountToCreate:k,fetchBankNameByRoutingStatus:l}=r,e=Object.assign({},m??p);return C.useEffect(()=>{(t==="vendor"&&o?.fetchState==="Completed"||e?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&a()},[o,e?.saveStatus?.fetchState,a,t]),S.jsx(b,{bankAccountToCreate:k,bankAccountCreationState:o,bankNameByRouting:u,addressToEdit:e?.vendorNewAddressStatus?.addressToCreate,mailingAddress:e?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:l,isDisabled:n,onSaveHandler:s,onWireDetailsUpdated:i,onBackClick:a,onAddressClick:c,onFetchBankName:d})};export{V as default};
@@ -1,4 +1,4 @@
1
- import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,aX as Be,$ as Ee,F as Re,cd as C,o as s,ch as Oe,gJ as We,fL as qe,cl as Me,gK as He,gL as Ue,ct as Ke,a4 as Ge,cv as Ye,cE as Ze,q as c,a3 as Qe,bh as D,c8 as _e,gR as Je,g as I,eW as Xe,bO as et,t as ce,eF as tt,gS as st,gT as lt,gU as M,cF as it}from"./index-BbDh7DHE.js";import{b as y,n as a}from"./vendor-rkTZJa59.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-D8oMk4xt-B5tgITDK.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function at(e){const{loadingState:i}=e;return t.jsx(ot,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function ot({googleAPIKey:e,addressToEdit:i,sectionId:o,isDisabled:h,style:O}){const E=oe(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:O,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:h,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(o,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:M(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(o,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"state"),defaultValue:i?.state,placeholder:M(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:h,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(o,"country"),placeholder:u.address.countryPlaceholder,defaultValue:K(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(o,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=a.div`
1
+ import{e as oe,u as Ne,B as ne,a as ke,cD as K,gQ as de,ca as Ae,C as w,j as t,aX as Be,$ as Ee,F as Re,cd as C,o as s,ch as Oe,gJ as We,fL as qe,cl as Me,gK as He,gL as Ue,ct as Ke,a4 as Ge,cv as Ye,cE as Ze,q as c,a3 as Qe,bh as D,c8 as _e,gR as Je,g as I,eW as Xe,bO as et,t as ce,eF as tt,gS as st,gT as lt,gU as M,cF as it}from"./index-C7jkqxrR.js";import{b as y,n as a}from"./vendor-rkTZJa59.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-D8oMk4xt-NfRrE6TJ.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function at(e){const{loadingState:i}=e;return t.jsx(ot,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function ot({googleAPIKey:e,addressToEdit:i,sectionId:o,isDisabled:h,style:O}){const E=oe(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:O,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:h,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(o,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:M(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(o,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:h,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"state"),defaultValue:i?.state,placeholder:M(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:h,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(o,"country"),placeholder:u.address.countryPlaceholder,defaultValue:K(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(o,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:h,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(o,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=a.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-left: ${s.sp3};
@@ -1,4 +1,4 @@
1
- import{e as ae,Y as Nn,u as mn,a as nt,hw as Pe,ca as tt,H as On,hx as ie,hy as ve,hz as fe,hA as be,hB as me,B as je,j as n,hs as ot,F as rt,aX as it,b as st,bV as at,bX as lt,bY as dt,br as ct,$ as Y,bg as mt,bS as pt,aj as ut,dl as ht,b_ as gt,C as w,m as wt,N as Ne,o as t,a7 as In,t as De,a6 as xt,q as c,w as Re,c3 as vt,l as zn,dr as Pn,bh as ze,aB as Tn,c6 as ft,bv as bt,dE as $t,ap as Ye,aP as pn,g as F,az as Dn,fl as St,dh as wn,cz as rn,hC as yt,hD as sn,p as jt,bp as Fe,dO as Rt,eu as xn,b6 as Ct,dt as Vt,K as vn,hE as kt,cn as Mt,cv as Nt,cw as Ot,ez as It,n as Ln,hF as zt,b4 as se,hG as fn,gh as Pt,b2 as Tt,aD as Dt,ds as Lt,v as _n,J as _t,eG as At,a9 as dn}from"./index-BbDh7DHE.js";import{b as f,n as o,j as cn}from"./vendor-rkTZJa59.js";import{r as Bt}from"./mui-C42whWwM.js";import{R as Ft}from"./Menu-Bi_Vto-l-BxB5wP7W.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const An=({steps:e})=>{const s=ae();return n.jsx(Ut,{windowSize:s,children:e.map((m,d)=>n.jsxs(Et,{children:[n.jsx(Gt,{children:d!==e.length-1?d+1:n.jsx(Ht,{})}),n.jsx(qt,{children:m}),d<e.length-1?n.jsx(Wt,{}):null]},`step_${d}`))})},Et=o.div`
1
+ import{e as ae,Y as Nn,u as mn,a as nt,hw as Pe,ca as tt,H as On,hx as ie,hy as ve,hz as fe,hA as be,hB as me,B as je,j as n,hs as ot,F as rt,aX as it,b as st,bV as at,bX as lt,bY as dt,br as ct,$ as Y,bg as mt,bS as pt,aj as ut,dl as ht,b_ as gt,C as w,m as wt,N as Ne,o as t,a7 as In,t as De,a6 as xt,q as c,w as Re,c3 as vt,l as zn,dr as Pn,bh as ze,aB as Tn,c6 as ft,bv as bt,dE as $t,ap as Ye,aP as pn,g as F,az as Dn,fl as St,dh as wn,cz as rn,hC as yt,hD as sn,p as jt,bp as Fe,dO as Rt,eu as xn,b6 as Ct,dt as Vt,K as vn,hE as kt,cn as Mt,cv as Nt,cw as Ot,ez as It,n as Ln,hF as zt,b4 as se,hG as fn,gh as Pt,b2 as Tt,aD as Dt,ds as Lt,v as _n,J as _t,eG as At,a9 as dn}from"./index-C7jkqxrR.js";import{b as f,n as o,j as cn}from"./vendor-rkTZJa59.js";import{r as Bt}from"./mui-C42whWwM.js";import{R as Ft}from"./Menu-Bi_Vto-l-B6nlDzVX.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";const An=({steps:e})=>{const s=ae();return n.jsx(Ut,{windowSize:s,children:e.map((m,d)=>n.jsxs(Et,{children:[n.jsx(Gt,{children:d!==e.length-1?d+1:n.jsx(Ht,{})}),n.jsx(qt,{children:m}),d<e.length-1?n.jsx(Wt,{}):null]},`step_${d}`))})},Et=o.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{j as t,e as J,a as he,B as U,ca as ye,O as ge,l as Y,bV as be,bX as fe,bY as xe,F as ve,a4 as we,C as p,cD as le,cE as Ce,o as y,ao as $e,cn as oe,u as ne,cF as De,cG as Z,ct as G,ah as H,cd as je,cH as Te,q as a,cv as Se,$ as ke,g as V,m as Fe,J as Oe,bp as Ae,w as Le,b6 as We}from"./index-BbDh7DHE.js";import{b as R,n as g}from"./vendor-rkTZJa59.js";import{W as ze,A as Ie}from"./BankAccountWarningSection-CVhY2Ven-ByJf4Phz.js";import{T as Re}from"./MailingDetailsSection-DU4LYPzH-fYkr0XK5.js";import{S as Pe}from"./CurrencySelectField-DhbePxwd-DMOVP1pM.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./LabeledAddressValueField-CNyhuNMg-DZjijMbu.js";const O={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function Ee({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:j,showAdditionalInfoLabel:k=!0}){const C=J(),{formState:{errors:b}}=oe(),$=ne(),D=Se(b,l.name),m=()=>{if(n===!0)return t.jsx(He,{children:t.jsx(Fe,{size:"Small",start:!0})});if(k&&j||D){let c=null;return o===!0&&k&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(Ne,{children:t.jsx(Ue,{})})})),t.jsxs(qe,{size:C,isError:D,hasToolTip:o,isDisabled:e!=null,children:[c,j]})}};return t.jsxs(_e,{size:C,style:f,isDisabled:e!=null,isError:D,"data-testid":ke("labeled-currency-field",l.name),children:[t.jsx(G,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:O.labelMarginLeft.value(C),marginRight:O.labelMarginRight.value(C),marginTop:O.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Me,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:O.controlHeight.value(C)}}),D?t.jsx(Be,{windowSize:C,hasError:D,children:u}):null,m()]})]})}const _e=g.div`
1
+ import{j as t,e as J,a as he,B as U,ca as ye,O as ge,l as Y,bV as be,bX as fe,bY as xe,F as ve,a4 as we,C as p,cD as le,cE as Ce,o as y,ao as $e,cn as oe,u as ne,cF as De,cG as Z,ct as G,ah as H,cd as je,cH as Te,q as a,cv as Se,$ as ke,g as V,m as Fe,J as Oe,bp as Ae,w as Le,b6 as We}from"./index-C7jkqxrR.js";import{b as R,n as g}from"./vendor-rkTZJa59.js";import{W as ze,A as Ie}from"./BankAccountWarningSection-CVhY2Ven-MI-JQ1yO.js";import{T as Re}from"./MailingDetailsSection-DU4LYPzH-BXsLAtDc.js";import{S as Pe}from"./CurrencySelectField-DhbePxwd-Cd-AHSQD.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./LabeledAddressValueField-CNyhuNMg-BDiOnCQn.js";const O={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function Ee({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:j,showAdditionalInfoLabel:k=!0}){const C=J(),{formState:{errors:b}}=oe(),$=ne(),D=Se(b,l.name),m=()=>{if(n===!0)return t.jsx(He,{children:t.jsx(Fe,{size:"Small",start:!0})});if(k&&j||D){let c=null;return o===!0&&k&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(Ne,{children:t.jsx(Ue,{})})})),t.jsxs(qe,{size:C,isError:D,hasToolTip:o,isDisabled:e!=null,children:[c,j]})}};return t.jsxs(_e,{size:C,style:f,isDisabled:e!=null,isError:D,"data-testid":ke("labeled-currency-field",l.name),children:[t.jsx(G,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:O.labelMarginLeft.value(C),marginRight:O.labelMarginRight.value(C),marginTop:O.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Me,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:O.controlHeight.value(C)}}),D?t.jsx(Be,{windowSize:C,hasError:D,children:u}):null,m()]})]})}const _e=g.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -1 +1 @@
1
- import{j as l}from"./index-BbDh7DHE.js";import{b as B}from"./vendor-rkTZJa59.js";import{f as u}from"./InternationalWireSwiftDetailsPage-CHh9rwda-DsugTIsT.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BankAccountWarningSection-CVhY2Ven-ByJf4Phz.js";import"./MailingDetailsSection-DU4LYPzH-fYkr0XK5.js";import"./LabeledAddressValueField-CNyhuNMg-DZjijMbu.js";import"./MagicLinkTitleSection-wjuKcqab-DTnb4_9g.js";const F=({vendorViewDetails:n,bankAccountContext:o,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onFetchBankNameBySwift:d,onAddressClick:c})=>{const{internationalBankAccountCreateStatus:a,internationalBankAccountToCreate:m,editVendorState:p,newVendorState:S,bankNameBySwift:f,fetchBankNameBySwiftStatus:k}=n,t={...p??S};return B.useEffect(()=>{(o==="vendor"&&a.fetchState==="Completed"||t?.saveStatus?.fetchState==="Completed")&&e()},[a,t?.saveStatus?.fetchState,e,o]),l.jsx(u,{bankAccountToCreate:m,bankAccountCreationState:a,bankNameBySwift:f,addressToEdit:t?.vendorNewAddressStatus?.addressToCreate,mailingAddress:t?.vendorAddress,addressType:"vendor_address",fetchBankNameBySwiftStatus:k,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onAddressClick:c,onFetchBankNameBySwift:d})};export{F as default};
1
+ import{j as l}from"./index-C7jkqxrR.js";import{b as B}from"./vendor-rkTZJa59.js";import{f as u}from"./InternationalWireSwiftDetailsPage-CHh9rwda-CYMl7fKC.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./BankAccountWarningSection-CVhY2Ven-MI-JQ1yO.js";import"./MailingDetailsSection-DU4LYPzH-BXsLAtDc.js";import"./LabeledAddressValueField-CNyhuNMg-BDiOnCQn.js";import"./MagicLinkTitleSection-wjuKcqab-D7vo35cb.js";const F=({vendorViewDetails:n,bankAccountContext:o,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onFetchBankNameBySwift:d,onAddressClick:c})=>{const{internationalBankAccountCreateStatus:a,internationalBankAccountToCreate:m,editVendorState:p,newVendorState:S,bankNameBySwift:f,fetchBankNameBySwiftStatus:k}=n,t={...p??S};return B.useEffect(()=>{(o==="vendor"&&a.fetchState==="Completed"||t?.saveStatus?.fetchState==="Completed")&&e()},[a,t?.saveStatus?.fetchState,e,o]),l.jsx(u,{bankAccountToCreate:m,bankAccountCreationState:a,bankNameBySwift:f,addressToEdit:t?.vendorNewAddressStatus?.addressToCreate,mailingAddress:t?.vendorAddress,addressType:"vendor_address",fetchBankNameBySwiftStatus:k,isDisabled:r,onSaveHandler:s,onBankDetailsUpdated:i,onBackClick:e,onAddressClick:c,onFetchBankNameBySwift:d})};export{F as default};
@@ -1,4 +1,4 @@
1
- import{e as ie,u as oe,B as te,C as c,ga as w,a8 as k,j as i,hk as g,hj as m,o as n,J as re,g as ne,dy as se,w as le,q as a}from"./index-BbDh7DHE.js";import{n as l}from"./vendor-rkTZJa59.js";const s={labelWidth:new c(270,340,350),sectionWidth:new c(343,580,726),iconContainerMaxWidthHeight:new c(a[6],a[7]),iconContainerMarginRight:new c(12,a[3]),iconPadding:new c(10,12),rowGap:new c(a[2],a[3]),elementsMarginLeftRight:new c(a[3],a[4]),controlWidth:n.sp6},T={title:new re("standardMedium","largeMedium")},de=l.div`
1
+ import{e as ie,u as oe,B as te,C as c,ga as w,a8 as k,j as i,hk as g,hj as m,o as n,J as re,g as ne,dy as se,w as le,q as a}from"./index-C7jkqxrR.js";import{n as l}from"./vendor-rkTZJa59.js";const s={labelWidth:new c(270,340,350),sectionWidth:new c(343,580,726),iconContainerMaxWidthHeight:new c(a[6],a[7]),iconContainerMarginRight:new c(12,a[3]),iconPadding:new c(10,12),rowGap:new c(a[2],a[3]),elementsMarginLeftRight:new c(a[3],a[4]),controlWidth:n.sp6},T={title:new re("standardMedium","largeMedium")},de=l.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>s.rowGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{a2 as A,a as B,B as P,j as r,bo as K,b as d,l as q,F as U,bp as W,w as f,bq as X,o,K as D,br as Z,t as L,bs as G,bt as C,b6 as J,g as y,ap as b,bu as Q}from"./index-BbDh7DHE.js";import{b as c,n as t}from"./vendor-rkTZJa59.js";import{A as Y,Z as k}from"./AccountLockedInfoModal-Nuuzfbv1-BZaq0B5e.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./handshake-BPg58FML-CVKh3Eii.js";const ee=e=>{if(!e)return"";try{const i=G(e);if(!i){const l=e.replace(/\D/g,"");if(l.length>=4){const g=l.slice(-4);return`+${l.slice(0,-4)||"1"} (•••) ••• ${g}`}return C(e)||e}const p=i.countryCallingCode,x=i.nationalNumber.slice(-4);return`+${p} (•••) ••• ${x}`}catch{const i=e.replace(/\D/g,"");if(i.length>=4){const p=i.slice(-4);return`+${i.slice(0,-4)||"1"} (•••) ••• ${p}`}return C(e)||e}},F=120,I=30,O=2,re="456px",te="256px",V=6,n=P.getLocalizedStrings().commonSetUp.twoFactorAuthentication,m="otpInputField",Te=e=>{const i=e.verifyOtpFetchState==="In-Progress",[p,x]=c.useState(!1),[l,g]=c.useState(!1),[$,T]=c.useState(0),[v,w]=c.useState(F),[h,E]=c.useState(I),S=A(e.verifyOtpFetchState),u=B({mode:"all",reValidateMode:"onChange",defaultValues:{[m]:""}}),j=u.watch(m),_=()=>{e.onCancelVerifyDevice()},R=()=>{j.trim().length===V&&e.onVerifyOtp(j)},M=n.footerHelperText.replace(/<button_text>/,n.verify);c.useEffect(()=>{S==="In-Progress"&&e.verifyOtpFetchState==="Error"&&(x(!0),T(s=>s+1),u.setValue(m,""))},[S,e.verifyOtpFetchState,u]),c.useEffect(()=>{if(v<=0){g(!0);return}const s=setInterval(()=>{w(a=>a<=1?0:a-1)},1e3);return()=>clearInterval(s)},[v]),c.useEffect(()=>{if(h<=0)return;const s=setInterval(()=>{E(a=>a<=1?0:a-1)},1e3);return()=>clearInterval(s)},[h]);const H=s=>{const a=Math.floor(s/60),z=s%60;return`${a}:${z.toString().padStart(2,"0")}`};return r.jsx(K,{open:!0,children:r.jsxs(oe,{children:[r.jsx(d,{controller:$>O,children:r.jsx(Y,{unlockDate:q.dateNow().add(1,"hour"),onSubmit:e.onCancelVerifyDevice})}),r.jsx(d,{controller:$<=O,children:r.jsx(U,{...u,children:r.jsxs(ge,{children:[r.jsxs(fe,{children:[r.jsx(ne,{children:n.verifyDeviceTitle}),r.jsx(se,{children:n.verifyDeviceDescription}),r.jsxs(le,{children:[r.jsx(ie,{children:ee(e.phoneNumber+"")}),r.jsx(W,{placement:"top",title:r.jsxs(f,{children:[n.changePhoneNumberHelperText,r.jsx(Ee,{href:`mailto:${k}`,children:k})]}),enterDelay:600,children:r.jsx(we,{})})]})]}),r.jsxs(ce,{children:[r.jsx(X,{value:j,valueLength:6,hasError:l===!0||p===!0,style:{margin:o.sp0},onChange:s=>{u.setValue(m,s),x(!1)}}),r.jsx(d,{controller:l===!1,children:r.jsx(N,{children:r.jsxs(je,{children:[n.codeExpiresIn," ",H(v)]})})}),r.jsx(d,{controller:l===!0,children:r.jsx(N,{children:r.jsx(ye,{children:n.codeExpired})})})]}),p===!0&&l===!1?r.jsxs(r.Fragment,{children:[r.jsx(d,{controller:$>=1,children:r.jsx(ae,{children:n.incorrectCode})}),r.jsx(d,{controller:$===2,children:r.jsx(ve,{children:r.jsxs(f,{children:[r.jsx(be,{}),n.accountLockWarning]})})})]}):null,r.jsx(d,{controller:e.resendVerifyDeviceOTPFetchState.error?.details?.application_error_code!=="ERR_OTP_RESEND_LIMIT_EXCEEDED",children:r.jsxs(de,{children:[r.jsx(pe,{children:n.codeNotReceived}),r.jsx(ue,{disabled:h>0,onClick:()=>{h===0&&(e.onResendOtp(),x(!1),g(!1),u.setValue(m,""),w(F),E(I))},children:n.resend}),h>0&&r.jsxs(he,{children:[P.getLocalizedStrings().common.in.toLowerCase()," ",h,"s"]})]})}),r.jsxs($e,{children:[r.jsxs(xe,{children:[r.jsx(D,{label:n.cancel,onClick:_,style:{width:82}}),r.jsx(D,{variant:"primary",label:n.verify,onClick:R,style:{width:82},loading:i,disabled:j.trim().length!==V||l===!0})]}),r.jsx(me,{children:M})]})]})})})]})})},oe=t.div`
1
+ import{a2 as A,a as B,B as P,j as r,bo as K,b as d,l as q,F as U,bp as W,w as f,bq as X,o,K as D,br as Z,t as L,bs as G,bt as C,b6 as J,g as y,ap as b,bu as Q}from"./index-C7jkqxrR.js";import{b as c,n as t}from"./vendor-rkTZJa59.js";import{A as Y,Z as k}from"./AccountLockedInfoModal-Nuuzfbv1-D8-h_fCC.js";import"./mui-C42whWwM.js";import"./analytics-Dr_Q0qi5.js";import"./routing-VwiwPky5.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-Ccg-ICil.js";import"./handshake-BPg58FML-CVKh3Eii.js";const ee=e=>{if(!e)return"";try{const i=G(e);if(!i){const l=e.replace(/\D/g,"");if(l.length>=4){const g=l.slice(-4);return`+${l.slice(0,-4)||"1"} (•••) ••• ${g}`}return C(e)||e}const p=i.countryCallingCode,x=i.nationalNumber.slice(-4);return`+${p} (•••) ••• ${x}`}catch{const i=e.replace(/\D/g,"");if(i.length>=4){const p=i.slice(-4);return`+${i.slice(0,-4)||"1"} (•••) ••• ${p}`}return C(e)||e}},F=120,I=30,O=2,re="456px",te="256px",V=6,n=P.getLocalizedStrings().commonSetUp.twoFactorAuthentication,m="otpInputField",Te=e=>{const i=e.verifyOtpFetchState==="In-Progress",[p,x]=c.useState(!1),[l,g]=c.useState(!1),[$,T]=c.useState(0),[v,w]=c.useState(F),[h,E]=c.useState(I),S=A(e.verifyOtpFetchState),u=B({mode:"all",reValidateMode:"onChange",defaultValues:{[m]:""}}),j=u.watch(m),_=()=>{e.onCancelVerifyDevice()},R=()=>{j.trim().length===V&&e.onVerifyOtp(j)},M=n.footerHelperText.replace(/<button_text>/,n.verify);c.useEffect(()=>{S==="In-Progress"&&e.verifyOtpFetchState==="Error"&&(x(!0),T(s=>s+1),u.setValue(m,""))},[S,e.verifyOtpFetchState,u]),c.useEffect(()=>{if(v<=0){g(!0);return}const s=setInterval(()=>{w(a=>a<=1?0:a-1)},1e3);return()=>clearInterval(s)},[v]),c.useEffect(()=>{if(h<=0)return;const s=setInterval(()=>{E(a=>a<=1?0:a-1)},1e3);return()=>clearInterval(s)},[h]);const H=s=>{const a=Math.floor(s/60),z=s%60;return`${a}:${z.toString().padStart(2,"0")}`};return r.jsx(K,{open:!0,children:r.jsxs(oe,{children:[r.jsx(d,{controller:$>O,children:r.jsx(Y,{unlockDate:q.dateNow().add(1,"hour"),onSubmit:e.onCancelVerifyDevice})}),r.jsx(d,{controller:$<=O,children:r.jsx(U,{...u,children:r.jsxs(ge,{children:[r.jsxs(fe,{children:[r.jsx(ne,{children:n.verifyDeviceTitle}),r.jsx(se,{children:n.verifyDeviceDescription}),r.jsxs(le,{children:[r.jsx(ie,{children:ee(e.phoneNumber+"")}),r.jsx(W,{placement:"top",title:r.jsxs(f,{children:[n.changePhoneNumberHelperText,r.jsx(Ee,{href:`mailto:${k}`,children:k})]}),enterDelay:600,children:r.jsx(we,{})})]})]}),r.jsxs(ce,{children:[r.jsx(X,{value:j,valueLength:6,hasError:l===!0||p===!0,style:{margin:o.sp0},onChange:s=>{u.setValue(m,s),x(!1)}}),r.jsx(d,{controller:l===!1,children:r.jsx(N,{children:r.jsxs(je,{children:[n.codeExpiresIn," ",H(v)]})})}),r.jsx(d,{controller:l===!0,children:r.jsx(N,{children:r.jsx(ye,{children:n.codeExpired})})})]}),p===!0&&l===!1?r.jsxs(r.Fragment,{children:[r.jsx(d,{controller:$>=1,children:r.jsx(ae,{children:n.incorrectCode})}),r.jsx(d,{controller:$===2,children:r.jsx(ve,{children:r.jsxs(f,{children:[r.jsx(be,{}),n.accountLockWarning]})})})]}):null,r.jsx(d,{controller:e.resendVerifyDeviceOTPFetchState.error?.details?.application_error_code!=="ERR_OTP_RESEND_LIMIT_EXCEEDED",children:r.jsxs(de,{children:[r.jsx(pe,{children:n.codeNotReceived}),r.jsx(ue,{disabled:h>0,onClick:()=>{h===0&&(e.onResendOtp(),x(!1),g(!1),u.setValue(m,""),w(F),E(I))},children:n.resend}),h>0&&r.jsxs(he,{children:[P.getLocalizedStrings().common.in.toLowerCase()," ",h,"s"]})]})}),r.jsxs($e,{children:[r.jsxs(xe,{children:[r.jsx(D,{label:n.cancel,onClick:_,style:{width:82}}),r.jsx(D,{variant:"primary",label:n.verify,onClick:R,style:{width:82},loading:i,disabled:j.trim().length!==V||l===!0})]}),r.jsx(me,{children:M})]})]})})})]})})},oe=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  min-width: ${te};