@zeniai/web-cockpit-ui 1.14.58-dev → 1.14.59-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 (229) hide show
  1. package/dist/assets/{ACHDetailsPage-DzIkTxTe-CGnlEvGr.js → ACHDetailsPage-Dh-9B-tS-BKldvbI-.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DcSfABe8-3zvQsiXL.js → AIPerformancePage-BXVWoVop-BDz2sJSr.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-DKZf9iEj-Cqpyy4Vs.js → AccountInfoPage-DQaAqqov-zqBvvgmh.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-Z1na4dJy-Bp2J4BQI.js → AccountInfoPageContent-CpnCTuuB-D1N9AAbn.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-4c3W-zeE-B1c5Jxib.js → AccountLockedInfoModal-DkfP7Aw7-DxqMYMO2.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-C5vlTGj8-Ds3maU4Z.js → AccountReconDetailsDrawerPage-D4wc6twC-DYJu-DGm.js} +1 -1
  7. package/dist/assets/{AccountRow-3d9RsrK--DaKRBKsx.js → AccountRow-CrG8EbbJ-C5c4hS7Z.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-CebFf63k-Dtc8wKba.js → AccountsPromoCardStack-BJPtx2Pe-BrO3SurU.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CUUW8OmY-ijRFX5im.js → AddAddressForCardDrawer-DdNhdiuv-DR_rGPF5.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-C-7QiNhe-Cz9c7fGy.js → AddToWalletPage-DhYdz5U2-CBBekvlG.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BDNPqEUA-b-lmDZ2s.js → AgingReportsPage-D42GrcOf-CoErzTcB.js} +1 -1
  12. package/dist/assets/{AllUserItems-q1-exTg0-I4ilmPPA.js → AllUserItems-vKh3Mm2X-BwTySL_M.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Biqhlmi5-CI8Q5HyB.js → ApAgingDetailPage-CwPtOern-CdQtrx1v.js} +1 -1
  14. package/dist/assets/{AppBasePage-OcF9VjD2-Bdlh0IQl.js → AppBasePage-DOG_AFC0-CUT3wwJW.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-Bvp-m86Z-BB2R_i-p.js → AppDrawerContent-BxOuACFq-BY_Wi0pb.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DoU4XLU1-CvfylkUK.js → ApprovalRulesSettingsPage-C_Op8xKo-YAo6-Sxl.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Derurnjv-5DUciMgH.js → ArAgingChart-DXEYzHyG-D0PB8GjF.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BANucXvz-Bj00e-OO.js → ArAgingDetailPage-Bc-KHlzV-ucTrDSe4.js} +1 -1
  19. package/dist/assets/{AttachmentView-DmZoR5fC-BdhRh1XM.js → AttachmentView-D7RHXhJ5-BAAcjA-7.js} +1 -1
  20. package/dist/assets/{BankAccountSection-Cw7uDvEJ-Bd6yTqI1.js → BankAccountSection-DC6iSj4R-BsAxAbXu.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-ClNYTjN_-BQ9-dTwM.js → BankAccountWarningSection-2lKoI5Zs-Dj_Poz3W.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-B48-v1cX-DmoRrTNq.js → BankConnectionsSettingsPage-C8yHSddE-BPyE73uV.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Dz1Us8Hp-Dvh6A91e.js → BillDetailPage-JnsrnTiI-CRxufuo7.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DJhSGn1E-BOs-lVeh.js → BillPayApprovalRuleDetailPage-BUZRTI5I-CRkErJ6g.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DZMg0cXF-D6fcVvgs.js → BillPayApprovalRulesPage-CLTcaidy-Bvnb2yJv.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-B0XdQSYS-fKxnWAWc.js → BillPayPromoPage-CkHwMvaQ-CwQAQZgp.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-Ft2KuiQF-DJ0GPF8U.js → BillPaySetUpPage-zJq3HkEC-bT_1YYhS.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-uQpN2px5-CCH8ecOp.js → BillingSettingsPage-DQKc4f6L-Bkf9rSRY.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DBtKf5-t-9GGijifn.js → BillsBulkReviewDrawerPage-SpuBHxBw-BgFnsCSs.js} +1 -1
  30. package/dist/assets/{BoxItem-DR7ZjTUs-C1VV8CvK.js → BoxItem-Di-YXnG--cmTXxwxj.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-7EvtWjc2-CdOmJRrr.js +138 -0
  32. package/dist/assets/{CardNumberSubText-C1IwXiVs-BtmlRQkR.js → CardNumberSubText-DzFn3_PZ-C9ZCSTzM.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-uh_slX-Q-DCtndNmX.js → CashbackDetailPage-CjQngqJh-CNd0id6g.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-DEsNdsI1-C8KKmQtV.js → ChargeCardDetailPage-RIKW8QpG-5zMhrBmS.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-BRErjFyU-9efbkwzY.js → ChargeCardListPage-BLscpHh2-CtC38uJe.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-3b_fwt_f-DFTzMCW1.js → ChargeCardListTable-CWs0yRb7-CCfyCYfZ.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-Dn0omfoT-DWD-VALN.js → ChargeCardPromoPage-DcSxmF13-B--2dn9Z.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-doVAo_Au-D-Ixqf31.js → ChargeCardSetupPage-D7KYTRhl-BcT1JXlI.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DGOegtho-Bs1IutSH.js → ChargeCardStatementsPage-Dcp15xx_-BOrgAbrH.js} +1 -1
  40. package/dist/assets/{ChargeCardUtils-BlLiJhdJ-Dg7co2BP.js → ChargeCardUtils-CCCxZqkT-61TtCpjk.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-DY7W-VhR-lpJ0bMnw.js → ChaseOverlay-Nom4V5v9-NN79_kIT.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-CDelWBRG-DS_wLJBI.js → CheckDepositDrawerPage-CtWXEXK--BravvnwG.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-BEIzIiuS-Cae50Vwc.js → CollapsableReportTable-CfzLsUMN-BupSz6gn.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-B5JwDvdV-22SX7YTN.js → CompanyOfficerDetailsSection-CuRcAM-3-BHLJpVyH.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-BcnnhR8L-CKzgL5RH.js → CompanyPassportCard-D23lD2Qq-ByoYXAJb.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-Cjc8jDSu-Dciot8Ts.js → CompanyPassportPage-tteVIvVs-Dnqp0vpO.js} +1 -1
  47. package/dist/assets/{CompleteProfile-bOwTw1Lh-C3KVTm6N.js → CompleteProfile-BkpO098y-ORcz2OsL.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-w-1sEoT7-DJmiMn2B.js → ConfettiBurst-xzxQ6c8X-BoCLy-7Y.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-B7_YMeTg-CK721ieE.js → CreateOrEditVendorPage-fv_bmvfi-CzsLkNiO.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-1CZyhIOU-DM7jOkAo.js → CreditCardPaymentDrawerPage-7fnYwExb-CgcY_sd_.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentPlgSection-zy5jp8oZ-C1FeG_GO.js → CreditCardPaymentPlgSection-DthqKiKn-CaFdyplw.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-DLcojhnq-GxGrtfJf.js → CurrencySelectField-DIdZl5cW-DZ4QIRLF.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-DIwdLnW_-URuxZzGT.js → CustomerOnboardingActivationPage-JhAaD-FC-CgaXelGg.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-BOI3JIGP-D4jiLFc2.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-G6eM-LXh-C21__FUD.js → CustomerOnboardingDetailPageSkeleton-D__ymliT-CIUKwMvS.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-ZUm80ZnR-BXGfs1fA.js → CustomerOnboardingNoStepsPage-CVere1yI-Dhi2fPd3.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-ap2hRZbg-BmCYAqsv.js → CustomerOnboardingPage-WNQCQJ5n-CAH1yTcO.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-JHpQNLLp-MnvQuCHK.js → CustomerOnboardingProductSuitePage-CAJfbnLK-BfYQQwIw.js} +1 -1
  59. package/dist/assets/{Dashboard-BGw23hBU-BMEdB3X2.js → Dashboard-D0UMJmya-BczA5Giq.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DxQfaMpu-zuEzookN.js → DashboardReportPage-BCFw6ao6-D3KPXS3h.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-G2W4zpsl-CwjTTMim.js → DashboardSidebarBackgroundAnimation-DHkCvHUA-3uoAq2Nw.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-DMKKoFPE-EaHMiJO6.js → DepositAccTransactionItem-d34JxwvA-xP5xNNeO.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-P_jQozTg-CCIMfRSh.js → DepositAccTransactionListPage-D7gDhDY8-CbzNTNTF.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-Cukq5TMS-XayFd7lz.js → DomesticWireDetailsPage-OrNehTKb-ZjH_fRSO.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-0TBZx4M5-tJw7aFF5.js → DownloadOverlay-DaCUudXP-CVZNoWAL.js} +1 -1
  66. package/dist/assets/{DrawerPage-BCFgiTrx-BpRcwO3p.js → DrawerPage-CmSHpc-z-iSTxaMwa.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-Bz6R4dHg--y88xLIK.js → EditPeoplePage-8KV3IPex-Bj4F00HM.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-CpyYBV_p-DhtE3Ix7.js → EditReimbursementDetailPage-CeB1Zddt-CX7-LisA.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-B2zcu4ey-AZAmTTuP.js → EntityDetailPage-0gSd2S2a-Bk21CGEs.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-D5aLYTXS-DxX7_ZQq.js → EntitySummarySection-CDqJFGbo-C_BhPxVx.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-DOCWbVlk-DU6plvze.js → ExpenseAutomationOverviewPage-m3uEsbuA-y6GuNqtY.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-CvRVtFoX-BLm68niC.js → ExpenseAutomationPage-41S7xtG5-gBOsYzMM.js} +50 -50
  73. package/dist/assets/{ExpressPayPage-BXf-9l9G-CHlzXKio.js → ExpressPayPage-D-7iK8kb-B4NN7Ool.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-LOJ6iaCh-CUZ-sXmH.js → FeaturePreviewPage-CGX75zlc-Da-yfHhx.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-BgJIGSUb-CLTuK3I_.js → FollowStepsSection-SyRYm6Xk-qRHgTOZ1.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-vKPeBn-E-Ct7koJCC.js → GlobalReviewListPage-cFCPjHNY-Bu6QwgAj.js} +1 -1
  77. package/dist/assets/{HelpButton-JzcF30dH-CB6SuxmB.js → HelpButton-BaJhgb0U-D2odikp_.js} +1 -1
  78. package/dist/assets/{InformationCardStack-DE_mlx0b-C88FUke7.js → InformationCardStack-CKwUXzzO-CxZ4zJeR.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-CPmZ9Zr6-tnBQERvR.js → InsightsCardStack-DgbzOi4U-Dvc9XXCQ.js} +1 -1
  80. package/dist/assets/{InsightsSection-mpQV3wZ8-4CdAfd3B.js → InsightsSection-Baicql5I-Cy9IT7DF.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-CPSSCQzQ-BBUxk6fr.js → IntegrationsSettingsPage-F3YIomsV-MWcDg6Dx.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-D6WfqTKR-DPVVasiw.js → InternationalWireSwiftDetailsPage-Bk3_uQsM-fzkyRJu7.js} +1 -1
  83. package/dist/assets/{InternationalWireVerificationPage-CryJKJXs-Bb-JpupC.js → InternationalWireVerificationPage-e30e4EN3-DosRWfnw.js} +1 -1
  84. package/dist/assets/{InviteFormPage-C7nLoXTU-DQ8Zo9RY.js → InviteFormPage--XxaRUk9-8SgyKEGU.js} +1 -1
  85. package/dist/assets/{InvitePageListView-CtRAy7TX-jnZ8ty_H.js → InvitePageListView-BxqSNNLQ-D2-KFzQG.js} +1 -1
  86. package/dist/assets/{InvitePeoplePage-ClFxfSTT-BZxpCDTB.js → InvitePeoplePage-DH3kZeNR-JarVlmok.js} +1 -1
  87. package/dist/assets/{InvoiceUploadSection-DjnuyOSw-kA9Q5RC1.js → InvoiceUploadSection-D-8BRSZh-C_cyOMSQ.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-CstjZX3q-CVES2HO-.js → IssueChargeCardPage-Cx-mINDz-CHMPey88.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-Brk71Pjr-Br7WYOjy.js → LabeledAddressValue-CBCPqHGX-Dr3MadHP.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-CvCb2aoN-BMraSweU.js → LabeledAddressValueField-CMBF_lk1-CXJsPPo5.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-Gqssp1Ri-D4KakohM.js → LabeledControlledCheckBoxField-DaiUqmLm-z5jbKpsi.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-VKo2nKGM-CJJoztRm.js → LabeledCreatableSingleSelectField-DnywMYhK-CuEc_EGD.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-COC_Ej58-XrCdeiIk.js → LabeledDocumentField-M2THEAOY-Dc822rdF.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-r2aCE7Vv-DoETpRb7.js → LabeledDropDownFormattedTextField-3XtnFSSO-BjRnQvhd.js} +1 -1
  95. package/dist/assets/{LabeledText-VrCpjPlp-ClFT9aSd.js → LabeledText-imTCum1u-C4LjRwSo.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CoAdkKTm-DZKcUQ_D.js → LabeledUserSingleSelectWithSubtitlesField-DlOa-ACw-D4rNrj__.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BP7diqSR-CfKOYSdV.js → LabeledZeniRolesDropDownField-XfcFfufN-DyDyz251.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-WS_VPmbY-BMhOvB7O.js → LinkJETransactionPage-B9eOkkRL-UaAvocit.js} +4 -4
  99. package/dist/assets/{LockCardPage-C0sABFjo-CRzPpS2y.js → LockCardPage-Ct7vGNS4-xE0ij8xJ.js} +1 -1
  100. package/dist/assets/{LowBalancePopup-Cnt8hF5d-CwzBbZJu.js → LowBalancePopup-YZDhdF8c-YFnNkRi7.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-DHMQHaja-9u2_93Hj.js → MagicLinkACHDetailsPage-BN-A0Efu-BDE_yHQ4.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CiLUscCx-zxVCbDr6.js → MagicLinkDomesticWireDetailsPage-dzeckdoJ-C14GG0C5.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-X2ADFf0h-CXRlqLrK.js → MagicLinkInternationalWireDetailsPage-CYqXDRUn-wjMDal6c.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-BRHxmUGi-RlvFx9Vv.js → MagicLinkSuccessPage-DC24iw6B-Dbig4zBi.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-CHy41StU-iaC_IZyx.js → MagicLinkTitleSection-BccVjN_n-DUbrRyeh.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-Djpl2M02-DRUGr-cD.js → MailingDetailsSection-BfdZmdwA-GzNbRy1Z.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-qui2SnEi-zaTm9eCM.js → MeetingCalenderPopup-YzTE9xU9-DZIf1_Kg.js} +1 -1
  108. package/dist/assets/{Menu-BMPH4-8R-BpGxpLB8.js → Menu-EG5GC1HM-B-5uM-Tx.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-Mohwcu-e-CWUSlqWi.js → MyBankConnectionsSettingsPage-DvbBOAdm-BPRzynV4.js} +1 -1
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-DePpW1nZ-C9q3vMXn.js → MyPendingActivationChargeCardListPage-BeNJP6gE-DFEiICFV.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-C--PD-iR-DaoANO6b.js → MyProfileSettingsPage-BRxBJZKl-gKdlJU9u.js} +1 -1
  112. package/dist/assets/{NavBarWithPicker-CDrtlEhe-BXT_gs6d.js → NavBarWithPicker-DcoxoePr-DY0E0Sw4.js} +1 -1
  113. package/dist/assets/{NavigationArrow-Ci8e8S3O-B8ujCRoJ.js → NavigationArrow-B8mAmEJR-C3_D4DIN.js} +1 -1
  114. package/dist/assets/{NavigationDots-CT4KVH38-BGK5cPzx.js → NavigationDots-DWLQ8EKT-Dn6PHYKg.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-Cih2BVZW-Cj5t7bgU.js → NewGlobalMerchantPage-BB_toJEW-DUyS3CYX.js} +1 -1
  116. package/dist/assets/{NoDataChart-Bb4iomO0-P7hz2s_V.js → NoDataChart-BuWkhFal-CMKpuqZD.js} +1 -1
  117. package/dist/assets/{NoDataTable-CGhIXUQS-CDx2kork.js → NoDataTable-BUdL3yV2-BAXiHNpg.js} +1 -1
  118. package/dist/assets/{NotFoundPage-C1yRpH5R-Ck1XUNUA.js → NotFoundPage-DIKyx0G7-QpsaV-Y3.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-B6niw-yz-CwrfbQTC.js → NotificationSettingsPage-BQKqMo0w-RU_hwiPu.js} +1 -1
  120. package/dist/assets/{NotificationsListConfig-BXhnYFMc-BTDY1rqZ.js → NotificationsListConfig-DY24LAfq-CzV20Ii_.js} +1 -1
  121. package/dist/assets/{NotificationsPage-BxD_x5RM-zpY3e44n.js → NotificationsPage-CcSiCmhM-DzTB0TJ2.js} +1 -1
  122. package/dist/assets/{OpExByVendorPage-DhU6KaAy-BGhweX73.js → OpExByVendorPage-BOD4I42j-4oUDHO_u.js} +1 -1
  123. package/dist/assets/{OverlayContainerPage-D1XDQqSC-DiLr-3XY.js → OverlayContainerPage-D1XDQqSC-CbO1P_nf.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-a4spNLTC-HTxHhtnZ.js → PandLWithForecastPage-DR0hOvcK-BZ8eDuBW.js} +1 -1
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BNP1S38J-BKexTB0-.js → PaymentAccountSetupBillingAddressSection-aY0Kwk1v-B2LjsYYN.js} +1 -1
  126. package/dist/assets/{PeoplePage-BkflVTQ7-DltmyGpk.js → PeoplePage-CgbpQTzF-ytts5urg.js} +1 -1
  127. package/dist/assets/{PortfolioAllocationFormPage-B6dIZdSj-1TnuK3pg.js → PortfolioAllocationFormPage-DyQS9mGR-k3yBOCSq.js} +29 -29
  128. package/dist/assets/{PortfolioDetails-DgBQTG2N-CH7_79Km.js → PortfolioDetails-YqgY6irK-B5_kIUnF.js} +1 -1
  129. package/dist/assets/{ProductsCarousel-98LvzRjI-B_uCpX-j.js → ProductsCarousel-D0vNX0Lg-BIRltpPH.js} +1 -1
  130. package/dist/assets/{PromoBaseCards-8w-GQx13-DTQa74HO.js → PromoBaseCards-D7B2WP4y-lLUSWcFR.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-Sok8rRG4-Cjf0nLBD.js → QBOConnectionDialog-BM3Ei-Uy-B7LqspAX.js} +1 -1
  132. package/dist/assets/{QBOSetupSection-BMRMT06i-DJALpgeV.js → QBOSetupSection-C1C9oOYp-CVAP_hlM.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cye5Dfay-CGpPHs6b.js → ReimbursementApprovalRuleDetailPage-2NCQPRtH-CR9C88jV.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-C8C8pUIT-CjmH8lZQ.js → ReimbursementApprovalRulesPage-D7M5LyNE-dlLzOYWa.js} +1 -1
  135. package/dist/assets/{ReimbursementDetailPage-BkrQE22J-D3U3w3Jc.js → ReimbursementDetailPage-CFvkeM65-CSth0LqE.js} +1 -1
  136. package/dist/assets/{ReimbursementPromoPage-qafth1vd-_RORg2Jf.js → ReimbursementPromoPage-BiajhsSb-Baig1ByR.js} +1 -1
  137. package/dist/assets/{ReimbursementSetUpPage-CnroOkJk-BCH-HReS.js → ReimbursementSetUpPage--vFw3Coy-BZ_6GPaW.js} +1 -1
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-2zlPBW1D-CFci4vmn.js → ReimbursementsBulkReviewDrawerPage-40sklAAn-B5qdPWLm.js} +1 -1
  139. package/dist/assets/{ReloadCard-B0LL0bsO-BrdpqtUX.js → ReloadCard-DHXj7tDB-CoTLieDN.js} +1 -1
  140. package/dist/assets/{ReportTableViewSelector-CwM38MkL-Clt78PC5.js → ReportTableViewSelector-BReW2rBY-De5-H-8i.js} +1 -1
  141. package/dist/assets/{ReportsPage-Cyl_WUQz-jLAMEAS-.js → ReportsPage-8dRHTbBF-BSX3EPHA.js} +1 -1
  142. package/dist/assets/{RevenueChart-CXxEH9pM-VtijpZqR.js → RevenueChart-BrJtZTP6-ckjmqhbu.js} +1 -1
  143. package/dist/assets/{ReviewDetailsPage-C0soI4uR-CarcY93y.js → ReviewDetailsPage-BYKWuqrn-BR43E93Y.js} +1 -1
  144. package/dist/assets/{ReviewOverlay-BKS6IxUd-1ICeh20u.js → ReviewOverlay-DejTxf0F-D0BNFHZK.js} +1 -1
  145. package/dist/assets/{RoleWithToolTip-BfLzD5K8-Bba4gM-x.js → RoleWithToolTip-SDWCAZAR-C5xFKYbN.js} +1 -1
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-1ULyqeCq-BoIFwh0V.js → ScheduleDetailsFixedAssetsPage-DmrofLij-wGg0nxY-.js} +1 -1
  147. package/dist/assets/{ScheduleDetailsPage-D-Z-Fi_m-BaMORKKh.js → ScheduleDetailsPage-ChMFxnSM-D7lnbvGR.js} +1 -1
  148. package/dist/assets/{ScheduleSequenceTable-DAwNCXh_-Q6E83xzc.js → ScheduleSequenceTable-D8Xld3H6-DxHk09G_.js} +1 -1
  149. package/dist/assets/{ScreenRoutes-BufP4FWU.js → ScreenRoutes-Lk4dQSrW.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-_zsQfBq1-0U-HhnaD.js → SetUpAccountSection-D3cMHFo9-tGxpQ_Hm.js} +1 -1
  151. package/dist/assets/{SetUpDefaultSection-BHYOBJ7g-BuIYblZ8.js → SetUpDefaultSection-DAYmX0ZV-wM42lVKW.js} +1 -1
  152. package/dist/assets/{SignIn-BOLyauQa-CixO2RtW.js → SignIn-44novL5w-Da7_TNTW.js} +1 -1
  153. package/dist/assets/{SignInScreen-YcOown53.js → SignInScreen-DD04CaKk.js} +1 -1
  154. package/dist/assets/{SpendManagementListViewPage-zh_Ui5iH-CGdOpKBT.js → SpendManagementListViewPage-DSoYdq_m-7NkIVVia.js} +3 -3
  155. package/dist/assets/{SpendManagementPerTabPage-Bu4V_wEU-CSfLUAuy.js → SpendManagementPerTabPage-xTIW-X7N-B96IfkCc.js} +1 -1
  156. package/dist/assets/{SpendManagementSection-vhFCT9_L-qwRdXZvK.js → SpendManagementSection-CJlsHGkm-CqhN8V8O.js} +1 -1
  157. package/dist/assets/{SpendMgmtSetupAccountSection-DiiBySox-BM3KKSU_.js → SpendMgmtSetupAccountSection-S-3M9Tex-DxNcuUHJ.js} +1 -1
  158. package/dist/assets/{StatementItem-5oh_s6z3-6OUEM9XJ.js → StatementItem-DX6-flmJ-DQRFWSb3.js} +1 -1
  159. package/dist/assets/{StatementsPage-CQqrzaz3-BJwsThFV.js → StatementsPage-DCKr_4XZ-Bsxshbva.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-C1BUhsR_-8sLNdfiT.js → StatusSwitcher-C6SduIx3-CZMTB5w2.js} +1 -1
  161. package/dist/assets/{SubTabSwitcher-DbtPzcHo-y1X0rE6B.js → SubTabSwitcher-W3Ntabka-CkJnLFDQ.js} +1 -1
  162. package/dist/assets/{SummaryCard-ChBY9-wb-Bw7p-RjC.js → SummaryCard-z1Y1Z21L-BvNDOBhc.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-BLvvJOu7-COHpvcme.js → TaskManagementPage-Dr7_IfHc-AYu_HBiG.js} +1 -1
  164. package/dist/assets/{TimeRangeSwitcher-BKBRRSFm-SlEGCNlP.js → TimeRangeSwitcher-CrkB8n_m-UKQ-nTM4.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-BYbWJkqV-Sx7SebtL.js → TimeframeSwitcher-CMpQebr--jb5OdLW-.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-CQ7RqzAP-CKRbf7Jg.js → TimeframeSwitcherWithToggle-MSmSK_yv-1RIM15xs.js} +1 -1
  167. package/dist/assets/{TopExCard-DlOpHPBt-t5AMNx03.js → TopExCard-VQ8z2vI8-CcFX43B0.js} +1 -1
  168. package/dist/assets/{TopExDetailPage-DiRn3jsO-DsHIdgbe.js → TopExDetailPage-DpnzP9SJ-DfzJMOHT.js} +1 -1
  169. package/dist/assets/TransactionDetailPage-CYUaKiqB-BzE195Mu.js +912 -0
  170. package/dist/assets/{TransactionList-bXlPU8EJ-CsgRWKIU.js → TransactionList-BingIVb_-DtIsd8Hw.js} +1 -1
  171. package/dist/assets/{TransactionListBig-C8XRWb2H-CEO2-wEp.js → TransactionListBig-u-0Ia9Ua-K9wDHKU_.js} +1 -1
  172. package/dist/assets/{TransactionListPage-CUX45pNJ-Cjx1dU3-.js → TransactionListPage-CYnEa2xe-O-SDZdNu.js} +1 -1
  173. package/dist/assets/{TransactionVendorDetailPage-CN37v29r-Bn0Qs16b.js → TransactionVendorDetailPage-BFkUirn2-CeHhiYbe.js} +1 -1
  174. package/dist/assets/{TransferDrawerPage-GsrHKsdt-CPhY9uVH.js → TransferDrawerPage-CX9GJ8vi-CEFyGVCx.js} +1 -1
  175. package/dist/assets/{TreasuryOverviewPage-C-yNzG5C-wM7S6XC2.js → TreasuryOverviewPage-C9I-VnRo-DTnaN1Tn.js} +1 -1
  176. package/dist/assets/{TreasuryPromoPage-BENRjIY1-VluX1kUr.js → TreasuryPromoPage-DUScnOPQ-Dkbv6YRb.js} +1 -1
  177. package/dist/assets/TreasurySetupPage-DzkvNyQm-B3xMK5Hg.js +144 -0
  178. package/dist/assets/{TreasuryStatementsPage-DTCPq8Gp-B--ZL0Y4.js → TreasuryStatementsPage-BipG_ii3-Dy6JBSif.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-O433FhAV-DJp0rfJO.js → TreasuryTaxLetterPage-DCrdgOsu-DCMVMaW8.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-D_3AEXbX-D5VhmFuv.js → TreasuryTransferOrReviewPage-DO9VVbX6-DZ53XF10.js} +62 -62
  181. package/dist/assets/{TrendChart-DdACpA7D-awtrGG14.js → TrendChart-BpsoQkO0-DB1sMg9j.js} +1 -1
  182. package/dist/assets/{TrendWithTransactions-BnHF9LmW-X7CQ4Pfm.js → TrendWithTransactions-D61X4lVu-B1TFib9_.js} +1 -1
  183. package/dist/assets/{UncategorizedAccountsMappingPage-CPwbKmda-BltiYNM6.js → UncategorizedAccountsMappingPage-CGGKjJaZ-D-H5tUAz.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-Du-y-JVz-BVzpDhf6.js → UnitIntegrationPage-cQpbU9rB-Cbb-Whyn.js} +1 -1
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-Pjy5PzIW-Cpkjr1U1.js → UploadAdditionalDocumentOverlay-jDJV9q65-D9UMm7kL.js} +1 -1
  186. package/dist/assets/{Vendor2FAPopup-DgjZcTQX-DrNGW2uE.js → Vendor2FAPopup-B3ecYMnd-64QYc3pi.js} +1 -1
  187. package/dist/assets/{VendorACHDetailsPage-DcNKtZ0R-ELKLGcxf.js → VendorACHDetailsPage-DgHf5ptD-DJ7gUVt7.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-DEEb2gjp-CUZwVnwd.js → VendorDetailPage-Bi8U23Yu-CYAI7EU_.js} +1 -1
  189. package/dist/assets/{VendorDomesticWireDetailsPage-y3jp785O-Cy5mapty.js → VendorDomesticWireDetailsPage-1NJj7GtJ-D3rBN46J.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-BduWVF51-Di0FCJx8.js → VendorFiling1099EditablePage-BRytcxuo-CZqTJihb.js} +1 -1
  191. package/dist/assets/{VendorFirstReviewPage-B8vqDzGi-Bp2ZfGwo.js → VendorFirstReviewPage-wW6F5Vyp-CwmSDV52.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireDetailsPage-DmJ3Bq2T-dpnRBprR.js → VendorInternationalWireDetailsPage-BvOCNJjZ-C9fzsF24.js} +1 -1
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Bxy4g8yL-DEIHbAOM.js → VendorInternationalWireSwiftDetailsPage-DfyLskrB-CQ9ndRc7.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-DhleXBjq-D7pc7nto.js → VendorsAccountsSection-BgZ0EsGs-KDRhKsoW.js} +1 -1
  195. package/dist/assets/{VerifyDevice-BdUpM2Xk-SRC45i0e.js → VerifyDevice-Djjoi0YZ-_3zMjBLM.js} +1 -1
  196. package/dist/assets/{VideoPlayer-Bh9pi5bb-BqO_YZ12.js → VideoPlayer-DGYFB2YS-DUfF6yFC.js} +1 -1
  197. package/dist/assets/{VideoPopup-BmSbL0tQ-BdCyOT4Q.js → VideoPopup-DJk2FZWR-CM_0HjD0.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-DfPbJNDz-QbWFDUy4.js → WarningsDrawerPage-CD08YNAB-Dx2KFQiH.js} +1 -1
  199. package/dist/assets/{ZeniAccountDetailPage-BgJTjD7y-CYWtq9SB.js → ZeniAccountDetailPage-BymuJnpr-wd8ZOXRP.js} +1 -1
  200. package/dist/assets/{ZeniAccountListViewPage-BWVLF3FE-LLLk-CBs.js → ZeniAccountListViewPage-CSf3_-PQ-BIF2NgM3.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-Qs5xZ8ja-CrDO9fOa.js → ZeniAccountNavBarPieces-F42ZriYE-DqNJ1jU2.js} +1 -1
  202. package/dist/assets/{ZeniAccountPromoPage-B9FLpxZq-BlSVDmdE.js → ZeniAccountPromoPage-VVCQ_UDm-Ct-iLwvJ.js} +1 -1
  203. package/dist/assets/{ZeniAccountSetupPage-CvumFc2I--HP8MNxX.js → ZeniAccountSetupPage-BOwiGnM--Dz_2kMjh.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-2Gm8bvIj-B-XJ0sll.js → ZeniCopyright-DkcWuMgx-RWRqD984.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-3iNLjlk5-DrUy3mRf.js → ZeniTransferAmountSlider-tcmR5JIX-Cd37-VEc.js} +1 -1
  206. package/dist/assets/{analyticsHelper-BjdxHYNU-ylGVD7-2.js → analyticsHelper-DgQ9dYv6-De-krZ12.js} +1 -1
  207. package/dist/assets/{analyticsHelper-DfZHUz5O.js → analyticsHelper-JHJDqaL3.js} +1 -1
  208. package/dist/assets/{chartTypes-C55wRbZm-DhTW0crF.js → chartTypes-BkGKZtjd-9mZz2BPE.js} +1 -1
  209. package/dist/assets/{commonDimensions-kvPZ9uhR-DQbxhhwD.js → commonDimensions-D-rqQGD_-DguqB4oO.js} +1 -1
  210. package/dist/assets/{detailCommon-flEwHQWE-CMzUPdgC.js → detailCommon-GKfk0vsu-okwQGabL.js} +1 -1
  211. package/dist/assets/{downloadPdf-9PwAfZrf-CivehzyW.js → downloadPdf-De1ILdAb-TsI5sZUf.js} +1 -1
  212. package/dist/assets/{index-CU0svkHW.js → index-Ci6w3djJ.js} +155 -155
  213. package/dist/assets/{mapLoadingInProgressToTreeNode-D2-Xk-a2-Byms7b6e.js → mapLoadingInProgressToTreeNode-BQLjNvTv-Bsg376BD.js} +1 -1
  214. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D8mXp6cH-QaunmZY4.js → mapSectionWithAcOnlyToTreeNode-C0VNdd8s-DEUZo2Rp.js} +1 -1
  215. package/dist/assets/{mapSpacerToTreeNode-DgTZkD7S-DEhHjHQU.js → mapSpacerToTreeNode-BU36CqfC-Cr9vicKb.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-Dc8D2GxV-CGuVbu0D.js → mapTimeframeBalancesToTreeNode-BVtoixEC-BiHZ5pyZ.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-DacdNIKt-9l0GpLu7.js → mapTimeframeBalancesToTreeNode-C45lf-nZ-CyNDhoCp.js} +1 -1
  218. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-ByVkwcZX-B0WkGWvQ.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DeErljHZ-B_ZutE8q.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-CHP1NmFV-B53Lqnlb.js → toCOABalancesWithID-jZvgYCO7-K9Aq1Sm_.js} +1 -1
  220. package/dist/assets/{toChartData-CV-IsjGn-DrX1S8Xg.js → toChartData-XC5K1jEk-BCy0qlOQ.js} +1 -1
  221. package/dist/assets/{treasuryColorHelper-73WJKkar-B6B4qh8C.js → treasuryColorHelper-Bn8hh2DU-D0UXXZoq.js} +1 -1
  222. package/dist/assets/{uploadAttachment-Cj3QcGO3-KJ3f0q5Q.js → uploadAttachment-CAl_Ockc-C-WoP6Qy.js} +1 -1
  223. package/dist/assets/{uploadReceipts-CQ7whQyJ-DaTTfVLX.js → uploadReceipts-CQ7whQyJ-CcIwDZ8Y.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +3 -3
  226. package/dist/assets/BusinessVerificationPage-Ccqlx-_j-Ck3zpa3h.js +0 -140
  227. package/dist/assets/CustomerOnboardingContainerPage-AGr9ylBU-BGA0gtkj.js +0 -1
  228. package/dist/assets/TransactionDetailPage-CVxiCsG1-C01wk2JT.js +0 -912
  229. package/dist/assets/TreasurySetupPage-DmIyCtnW-dsW9ITCo.js +0 -146
@@ -1,4 +1,4 @@
1
- import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,aQ as at,o as t,y as w,A as Oe,s as Ct,b6 as zt,c as Dt,aP as Z,c5 as Lt,ft as nt,O,l as L,gG as Ft,h as j,ar as Mt,H as st,ai as I,am as Y,fG as Rt,aa as Bt,cS as Ot,ad as It,gm as Et,u as d,ce as lt,fB as ct,cw as dt,dm as _t,dd as Nt,fS as Vt,fK as Wt,a9 as qt,an as Yt,fL as Gt,dM as Xt,cM as Jt,cL as Kt,bz as Ut,bX as Zt,fU as Qt,g1 as Ht,aX as er}from"./index-CU0svkHW.js";import{n as o,b as y}from"./vendor-Bs1fkIUX.js";import{q as ut}from"./PortfolioDetails-DgBQTG2N-CH7_79Km.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./treasuryColorHelper-73WJKkar-B6B4qh8C.js";const tr=$e.getLocalizedStrings().spendManagement.treasury,R=[0,125e4,25e5,35e5,5e6],rr=1e3;function or({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:i}){const l=qt().analytics,[c,h]=y.useState(a);y.useEffect(()=>{h(a)},[a]);const p=f=>{const $=parseFloat(f.target.value),s=ge($,e);h($),u(s),i($),l.trackTreasuryCalculatorClick("fund transfer",$)},A=f=>{const $=ge(f,e);h(f),i(f),u($),l.trackTreasuryCalculatorClick("fund transfer",f)};return r.jsxs(lr,{sliderValue:c,children:[r.jsx(sr,{sliderValue:c,type:"range",min:R[0],max:R[R.length-1],step:rr,value:c,onChange:p}),r.jsx(cr,{style:{width:`${Math.min(c/R[R.length-1]*92.5,92.5)}%`}}),r.jsx(hr,{sliderValue:c,style:{left:`calc(${Math.min(Math.max(c/R[R.length-1]*100,5),95)}% - 50px)`},children:ir(c)}),r.jsx(dr,{children:R.map((f,$)=>r.jsx(ur,{onClick:()=>A(f),"data-testid":D("slider-label",f.toString()),style:{left:ar($)},children:r.jsx(pr,{isSelected:c>=f,children:nr(f)})},f))})]})}const ir=e=>{const a=er("0,0.[00]a",e,"$").toUpperCase();return`${tr.transferDrawer.calculator.sliderTooltipText} ${a}`};function ge(e,a){const u=a/100,i=e*Math.pow(1+u/12,12);return Math.floor(i-e)}const ar=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%"}},nr=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),sr=o.input`
1
+ import{q as ye,aC as Pt,j as r,aM as D,hw as Ct,F as $e,aN as q,a as qe,m as at,aQ as nt,o as t,y as w,A as Oe,s as zt,b6 as Dt,c as Lt,aP as Z,c5 as Ft,ft as st,O,l as L,gG as Mt,h as j,ar as Rt,H as lt,ai as I,am as Y,fG as Bt,aa as Ot,cS as It,ad as Et,gm as _t,u as d,ce as ct,fB as dt,cw as ut,dm as Nt,dd as Vt,fS as Wt,fK as qt,a9 as Yt,an as Gt,fL as Xt,dM as Jt,cM as Kt,cL as Ut,bz as Zt,bX as Qt,fU as Ht,g1 as er,aX as tr}from"./index-Ci6w3djJ.js";import{n as o,b as y}from"./vendor-Bs1fkIUX.js";import{q as pt}from"./PortfolioDetails-YqgY6irK-B5_kIUnF.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./treasuryColorHelper-Bn8hh2DU-D0UXXZoq.js";const rr=$e.getLocalizedStrings().spendManagement.treasury,R=[0,125e4,25e5,35e5,5e6],or=1e3;function ir({interestRate:e=4.35,transferAmount:a,setYieldEarned:u,setTransferAmount:i}){const l=Yt().analytics,[c,h]=y.useState(a);y.useEffect(()=>{h(a)},[a]);const p=f=>{const $=parseFloat(f.target.value),s=ge($,e);h($),u(s),i($),l.trackTreasuryCalculatorClick("fund transfer",$)},k=f=>{const $=ge(f,e);h(f),i(f),u($),l.trackTreasuryCalculatorClick("fund transfer",f)};return r.jsxs(cr,{sliderValue:c,children:[r.jsx(lr,{sliderValue:c,type:"range",min:R[0],max:R[R.length-1],step:or,value:c,onChange:p}),r.jsx(dr,{style:{width:`${Math.min(c/R[R.length-1]*92.5,92.5)}%`}}),r.jsx(mr,{sliderValue:c,style:{left:`calc(${Math.min(Math.max(c/R[R.length-1]*100,5),95)}% - 50px)`},children:ar(c)}),r.jsx(ur,{children:R.map((f,$)=>r.jsx(pr,{onClick:()=>k(f),"data-testid":D("slider-label",f.toString()),style:{left:nr($)},children:r.jsx(hr,{isSelected:c>=f,children:sr(f)})},f))})]})}const ar=e=>{const a=tr("0,0.[00]a",e,"$").toUpperCase();return`${rr.transferDrawer.calculator.sliderTooltipText} ${a}`};function ge(e,a){const u=a/100,i=e*Math.pow(1+u/12,12);return Math.floor(i-e)}const nr=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%"}},sr=e=>Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:2}).format(e),lr=o.input`
2
2
  width: 100%;
3
3
  &[type="range"]::-webkit-slider-runnable-track {
4
4
  height: 2px;
@@ -22,7 +22,7 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
22
22
  background-repeat: no-repeat;
23
23
  cursor: pointer;
24
24
  }
25
- `,lr=o.div`
25
+ `,cr=o.div`
26
26
  position: relative;
27
27
  width: 70%;
28
28
  margin-left: 30px;
@@ -30,26 +30,26 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
30
30
  margin-bottom: 20px;
31
31
  margin-top: ${t.sp5};
32
32
  min-height: ${t.sp8};
33
- `,cr=o.div`
33
+ `,dr=o.div`
34
34
  position: absolute;
35
35
  height: 2px;
36
36
  margin-top: -${t.sp2};
37
37
  background-color: ${e=>e.theme.colors.hero};
38
- `,dr=o.div`
38
+ `,ur=o.div`
39
39
  position: absolute;
40
40
  bottom: ${t.sp0};
41
41
  top: ${t.sp5};
42
42
  width: 100%;
43
43
  display: flex;
44
44
  justify-content: center;
45
- `,ur=o.span`
45
+ `,pr=o.span`
46
46
  position: absolute;
47
47
  cursor: pointer;
48
48
  transform: translateX(-50%);
49
- `,pr=o(I)`
49
+ `,hr=o(I)`
50
50
  color: ${e=>e.isSelected?e.theme.colors.primary:e.theme.colors.grey1};
51
51
  white-space: nowrap;
52
- `,hr=o(I)`
52
+ `,mr=o(I)`
53
53
  position: absolute;
54
54
  top: -${t.sp5};
55
55
  white-space: nowrap;
@@ -60,7 +60,7 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
60
60
  justify-content: center;
61
61
  align-items: center;
62
62
  padding: 2px ${t.sp2};
63
- `,Q={navBarContainerPaddingXaxis:new w(10,19),containerPaddingLeft:new w(d[3],d[6],d[8]),containerPaddingRight:new w(d[3],d[6],d[8]),reviewContentWrapperPaddingBottom:new w(d[5],d[8]),elementsContainerPadding:new w(d[3],d[4])},Re={pageTitle:new O("h6Regular","h5Regular"),integerStyles:new O("h5Regular","h2Regular"),decimalStyles:new O("extraLargeMedium","h5Medium")},{common:{edit:mr,footer:{back:fr}},dateFormat:{visual:{DMMMYYYYFormat:gr}},spendManagement:{treasury:{transferDrawer:F},billPay:{insufficientFunds:{lowBalance:wr,addOrSwitchInitiateTransfer:xr,lowBalanceIn:yr}}}}=$e.getLocalizedStrings(),$r=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:i})=>{const l=ye();if(l==="small"){const c=kr(e,u,i.treasuryAccount.id);return r.jsxs(r.Fragment,{children:[r.jsxs(he,{style:c.topAccount?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:c.topAccountLabel}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,c.topAccount?.id??"",!0,c.topAccount?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[c.topAccount?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,c.topAccount?.id??"",!0,!0,!0)})]})]}),ce(c.topAccount,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]}),c.arrowDirection==="up"?r.jsx(io,{}):r.jsx(ao,{}),r.jsxs(he,{style:c.bottomAccount?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:c.bottomAccountLabel}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,c.bottomAccount?.id??"",!0,c.bottomAccount?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[c.bottomAccount?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,c.bottomAccount?.id??"",!0,!1,!0)})]})]}),ce(c.bottomAccount,i.treasuryAccount.id,l,!0)?r.jsx(fe,{}):null]})]})}else return r.jsxs(r.Fragment,{children:[r.jsxs(he,{style:e?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:"Transfer Funds From"}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,e?.id??"",!0,e?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[e?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ce(e,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]}),r.jsx(oo,{}),r.jsxs(he,{style:u?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:"To"}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,u?.id??"",!0,u?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[u?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ce(u,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]})]})},br=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const i=a.balance;return i?L.checkIfLowBalance(u,i):!0}if("accountBalance"in e){const i=e.accountBalance?.available;return i==null?!1:L.checkIfLowBalance(u,i)}return!1},vr=({transferDetails:e,fundDetails:a,portfolioAllocation:u,isOnSetup:i,setShowReviewContent:l,onTransferClick:c,onCancelClick:h})=>{const p=ye(),A=Dt(),f=Z(e.fetchState),[$,s]=y.useState(!1);y.useEffect(()=>{f==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?s(!0):s(!1)},[e.error]);const{fromAccount:S,toAccount:P,amount:m}=e.treasuryTransferMoneyLocalData,C=br(S,e.treasuryAccount,m);return r.jsxs(r.Fragment,{children:[r.jsxs(Rr,{windowSize:p,children:[r.jsx(Nr,{windowSize:p,children:r.jsx(Lt,{title:"Close",enterTouchDelay:600,placement:"bottom",children:r.jsx(Ye,{"data-testid":D("nav-bar-close-transfer-review"),onClick:h})})}),r.jsx(Vr,{windowSize:p,children:i===!0?F.stepTitle:F.reviewAndConfirm}),i===!0&&r.jsxs(r.Fragment,{children:[r.jsx(Wr,{windowSize:p,children:r.jsx(qr,{children:r.jsxs(Yr,{children:[r.jsx(Ge,{}),r.jsx(Ge,{}),r.jsx(Gr,{})]})})}),p==="small"?r.jsx(ro,{children:F.subTitle}):r.jsx(Ke,{children:F.subTitle})]}),r.jsx(to,{windowSize:p,children:r.jsx(nt,{amount:m,alwaysShowDecimal:!0,integerStyles:Re.integerStyles.styleObject(p),decimalStyles:Re.decimalStyles.styleObject(p)})}),i!==!0&&r.jsxs(r.Fragment,{children:[r.jsx(Er,{}),r.jsx(Ke,{children:r.jsxs(r.Fragment,{children:[F.review.prefix,`"${P?.label}" `,F.success.midfix,` "${S?.label}" `,F.review.suffix.replace("__date__",L.zeniDate(L.getNextNthWorkingDay(L.dateNow().toDate(),[0,6],1).toDateString()).format(gr))]})})]}),C?r.jsx(Ft,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:yr.replace("__account__",S?.id===e.treasuryAccount.id?S?.label??"":`${S?.label??""} ${S?.maskedAccountNumber??""}`),description:xr}):null,$?r.jsx(Mr,{children:r.jsxs(zr,{children:[r.jsxs(Br,{children:[r.jsx(Ir,{}),r.jsxs(Dr,{children:[r.jsx(Lr,{children:e.error?.title}),r.jsx(Fr,{children:e.error?.message})]})]}),r.jsx(Or,{children:r.jsx(Ye,{"data-testid":D("close-error-transfer-review"),onClick:()=>{s(!1)},style:{width:t.sp3,height:t.sp3,color:j.heroLight}})})]})}):null,r.jsx(_r,{windowSize:p,children:r.jsxs(Tr,{windowSize:p,children:[r.jsx(Pr,{windowSize:p,children:r.jsx($r,{fromAccount:S,themeContext:A,toAccount:P,transferDetails:e})}),r.jsx(Cr,{children:r.jsx(ut,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:jr(e),fundAllocations:Ar(e),page:"transfer review"})})]})})]}),r.jsx(at,{style:i!==!0?{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0}:{zIndex:4},helperText:i!==!0?F.review.footNote:void 0,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:i===!0?fr:mr,onClick:()=>{s(!1),l(!1)},style:{minWidth:94}},primaryBtn:{label:F.transferBtn,onClick:c,isLoading:e.fetchState==="In-Progress",isDisabled:C,style:{minWidth:94}}})]})},V=(e,a,u,i,l)=>{if(i===!0)return r.jsx(Xe,{isOptionSelected:u,isForReview:l,children:r.jsx(Je,{color:j.brandColorGoldDark})});if(a==="")return r.jsx(eo,{isForReview:l,children:r.jsx(Nt,{})});const c=e.find(p=>p.id===a),h=e.findIndex(p=>p.id===a);if(c!=null){if(c.accType==="depositAccount")return r.jsx(Xe,{isOptionSelected:u,isForReview:l,children:r.jsx(Je,{color:Vt(h)})});if(c.accType==="paymentAccount")return c.logo!==void 0&&(c.logo.base64||c.logo.url)?r.jsx(Zr,{src:Sr(c.logo),isOptionSelected:u,isForReview:l,loading:"lazy"}):r.jsx(Qr,{isOptionSelected:u,isForReview:l,children:r.jsx(Hr,{})})}return null},W=(e,a,u,i,l,c,h)=>{if(!u)return null;if(u===a.id)return(c||!i)&&a.balance?r.jsx(Ce,{children:q("0,0[.]00",a.balance)}):null;const p=e.find(f=>f.id===u);let A=!1;return l===!0&&h!=null&&p?.accountBalance?.available?.amount!=null&&(A=L.checkIfLowBalance(h,p.accountBalance.available)),i===!0&&!c?r.jsx(Jr,{children:p?.maskedAccountNumber}):r.jsxs(Xr,{className:"option-sublabel",children:[r.jsx(Ce,{children:p?.maskedAccountNumber}),p?.accountBalance?.available?r.jsx(Ur,{className:"dot"}):null,p?.accountBalance?.available?r.jsxs(Ce,{children:[q("0,0[.]00",p.accountBalance.available),A?r.jsx(Kr,{children:wr}):null]}):null,p?.balanceFetchStatus?.fetchState==="In-Progress"?r.jsx(it,{size:"Small",start:!0}):null]})},Sr=e=>e.base64!==void 0?`${Wt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",jr=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},Ar=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},kr=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ce=(e,a,u,i)=>u==="small"?e?.id===a&&i:e?.id===a,de=o.div`
63
+ `,Q={navBarContainerPaddingXaxis:new w(10,19),containerPaddingLeft:new w(d[3],d[6],d[8]),containerPaddingRight:new w(d[3],d[6],d[8]),reviewContentWrapperPaddingBottom:new w(d[5],d[8]),elementsContainerPadding:new w(d[3],d[4])},Re={pageTitle:new O("h6Regular","h5Regular"),integerStyles:new O("h5Regular","h2Regular"),decimalStyles:new O("extraLargeMedium","h5Medium")},{common:{edit:fr,footer:{back:gr}},dateFormat:{visual:{DMMMYYYYFormat:wr}},spendManagement:{treasury:{transferDrawer:F},billPay:{insufficientFunds:{lowBalance:xr,addOrSwitchInitiateTransfer:yr,lowBalanceIn:$r}}}}=$e.getLocalizedStrings(),br=({fromAccount:e,themeContext:a,toAccount:u,transferDetails:i})=>{const l=ye();if(l==="small"){const c=Tr(e,u,i.treasuryAccount.id);return r.jsxs(r.Fragment,{children:[r.jsxs(he,{style:c.topAccount?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:c.topAccountLabel}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,c.topAccount?.id??"",!0,c.topAccount?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[c.topAccount?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,c.topAccount?.id??"",!0,!0,!0)})]})]}),ce(c.topAccount,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]}),c.arrowDirection==="up"?r.jsx(ao,{}):r.jsx(no,{}),r.jsxs(he,{style:c.bottomAccount?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:c.bottomAccountLabel}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,c.bottomAccount?.id??"",!0,c.bottomAccount?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[c.bottomAccount?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,c.bottomAccount?.id??"",!0,!1,!0)})]})]}),ce(c.bottomAccount,i.treasuryAccount.id,l,!0)?r.jsx(fe,{}):null]})]})}else return r.jsxs(r.Fragment,{children:[r.jsxs(he,{style:e?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:"Transfer Funds From"}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,e?.id??"",!0,e?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[e?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,e?.id??"",!0,!0,!0)})]})]}),ce(e,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]}),r.jsx(io,{}),r.jsxs(he,{style:u?.id===i.treasuryAccount.id?{borderColor:a.colors.grey1,position:"relative"}:{},windowSize:l,children:[r.jsx(me,{children:"To"}),r.jsxs(pe,{windowSize:l,children:[V(i.transferMoneyParties,u?.id??"",!0,u?.id===i.treasuryAccount.id,!0),r.jsxs(de,{windowSize:l,children:[u?.label,r.jsx(ue,{children:W(i.transferMoneyParties,i.treasuryAccount,u?.id??"",!0,!1,!0)})]})]}),ce(u,i.treasuryAccount.id,l,!1)?r.jsx(fe,{}):null]})]})},vr=(e,a,u)=>{if(!e)return!0;if(e.id===a.id){const i=a.balance;return i?L.checkIfLowBalance(u,i):!0}if("accountBalance"in e){const i=e.accountBalance?.available;return i==null?!1:L.checkIfLowBalance(u,i)}return!1},Sr=({transferDetails:e,fundDetails:a,portfolioAllocation:u,isOnSetup:i,setShowReviewContent:l,onTransferClick:c,onCancelClick:h})=>{const p=ye(),k=Lt(),f=Z(e.fetchState),[$,s]=y.useState(!1);y.useEffect(()=>{f==="In-Progress"&&e.fetchState==="Error"&&e.error!=null?s(!0):s(!1)},[e.error]);const{fromAccount:S,toAccount:P,amount:m}=e.treasuryTransferMoneyLocalData,C=vr(S,e.treasuryAccount,m);return r.jsxs(r.Fragment,{children:[r.jsxs(Br,{windowSize:p,children:[r.jsx(Vr,{windowSize:p,children:r.jsx(Ft,{title:"Close",enterTouchDelay:600,placement:"bottom",children:r.jsx(Ye,{"data-testid":D("nav-bar-close-transfer-review"),onClick:h})})}),r.jsx(Wr,{windowSize:p,children:i===!0?F.stepTitle:F.reviewAndConfirm}),i===!0&&r.jsxs(r.Fragment,{children:[r.jsx(qr,{windowSize:p,children:r.jsx(Yr,{children:r.jsxs(Gr,{children:[r.jsx(Ge,{}),r.jsx(Ge,{}),r.jsx(Xr,{})]})})}),p==="small"?r.jsx(oo,{children:F.subTitle}):r.jsx(Ke,{children:F.subTitle})]}),r.jsx(ro,{windowSize:p,children:r.jsx(st,{amount:m,alwaysShowDecimal:!0,integerStyles:Re.integerStyles.styleObject(p),decimalStyles:Re.decimalStyles.styleObject(p)})}),i!==!0&&r.jsxs(r.Fragment,{children:[r.jsx(_r,{}),r.jsx(Ke,{children:r.jsxs(r.Fragment,{children:[F.review.prefix,`"${P?.label}" `,F.success.midfix,` "${S?.label}" `,F.review.suffix.replace("__date__",L.zeniDate(L.getNextNthWorkingDay(L.dateNow().toDate(),[0,6],1).toDateString()).format(wr))]})})]}),C?r.jsx(Mt,{variant:"low-balance",style:{marginTop:t.sp3,marginBottom:t.sp3},title:$r.replace("__account__",S?.id===e.treasuryAccount.id?S?.label??"":`${S?.label??""} ${S?.maskedAccountNumber??""}`),description:yr}):null,$?r.jsx(Rr,{children:r.jsxs(Dr,{children:[r.jsxs(Or,{children:[r.jsx(Er,{}),r.jsxs(Lr,{children:[r.jsx(Fr,{children:e.error?.title}),r.jsx(Mr,{children:e.error?.message})]})]}),r.jsx(Ir,{children:r.jsx(Ye,{"data-testid":D("close-error-transfer-review"),onClick:()=>{s(!1)},style:{width:t.sp3,height:t.sp3,color:j.heroLight}})})]})}):null,r.jsx(Nr,{windowSize:p,children:r.jsxs(Pr,{windowSize:p,children:[r.jsx(Cr,{windowSize:p,children:r.jsx(br,{fromAccount:S,themeContext:k,toAccount:P,transferDetails:e})}),r.jsx(zr,{children:r.jsx(pt,{isInReview:!0,isSetup:!1,fundDetails:a,allocation:u,amount:kr(e),fundAllocations:Ar(e),page:"transfer review"})})]})})]}),r.jsx(nt,{style:i!==!0?{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0}:{zIndex:4},helperText:i!==!0?F.review.footNote:void 0,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:i===!0?gr:fr,onClick:()=>{s(!1),l(!1)},style:{minWidth:94}},primaryBtn:{label:F.transferBtn,onClick:c,isLoading:e.fetchState==="In-Progress",isDisabled:C,style:{minWidth:94}}})]})},V=(e,a,u,i,l)=>{if(i===!0)return r.jsx(Xe,{isOptionSelected:u,isForReview:l,children:r.jsx(Je,{color:j.brandColorGoldDark})});if(a==="")return r.jsx(to,{isForReview:l,children:r.jsx(Vt,{})});const c=e.find(p=>p.id===a),h=e.findIndex(p=>p.id===a);if(c!=null){if(c.accType==="depositAccount")return r.jsx(Xe,{isOptionSelected:u,isForReview:l,children:r.jsx(Je,{color:Wt(h)})});if(c.accType==="paymentAccount")return c.logo!==void 0&&(c.logo.base64||c.logo.url)?r.jsx(Qr,{src:jr(c.logo),isOptionSelected:u,isForReview:l,loading:"lazy"}):r.jsx(Hr,{isOptionSelected:u,isForReview:l,children:r.jsx(eo,{})})}return null},W=(e,a,u,i,l,c,h)=>{if(!u)return null;if(u===a.id)return(c||!i)&&a.balance?r.jsx(Ce,{children:q("0,0[.]00",a.balance)}):null;const p=e.find(f=>f.id===u);let k=!1;return l===!0&&h!=null&&p?.accountBalance?.available?.amount!=null&&(k=L.checkIfLowBalance(h,p.accountBalance.available)),i===!0&&!c?r.jsx(Kr,{children:p?.maskedAccountNumber}):r.jsxs(Jr,{className:"option-sublabel",children:[r.jsx(Ce,{children:p?.maskedAccountNumber}),p?.accountBalance?.available?r.jsx(Zr,{className:"dot"}):null,p?.accountBalance?.available?r.jsxs(Ce,{children:[q("0,0[.]00",p.accountBalance.available),k?r.jsx(Ur,{children:xr}):null]}):null,p?.balanceFetchStatus?.fetchState==="In-Progress"?r.jsx(at,{size:"Small",start:!0}):null]})},jr=e=>e.base64!==void 0?`${qt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",kr=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id!==e.treasuryAccount.id)return e.treasuryTransferMoneyLocalData.amount},Ar=e=>{const{fromAccount:a}=e.treasuryTransferMoneyLocalData;if(a?.id===e.treasuryAccount.id)return e.treasuryAccount.fundAllocations},Tr=(e,a,u)=>e?.id===u?{topAccount:a,bottomAccount:e,topAccountLabel:"To",bottomAccountLabel:"Transfer Funds From",arrowDirection:"up"}:{topAccount:e,bottomAccount:a,topAccountLabel:"Transfer Funds From",bottomAccountLabel:"To",arrowDirection:"down"},ce=(e,a,u,i)=>u==="small"?e?.id===a&&i:e?.id===a,de=o.div`
64
64
  display: flex;
65
65
  flex-direction: column;
66
66
  `,ue=o(I)`
@@ -68,7 +68,7 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
68
68
  `,pe=o(Y)`
69
69
  display: flex;
70
70
  align-items: center;
71
- `,Tr=o.div`
71
+ `,Pr=o.div`
72
72
  display: flex;
73
73
  flex-direction: column;
74
74
  width: 100%;
@@ -81,7 +81,7 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
81
81
  ${e=>e.windowSize==="small"&&`
82
82
  width: auto;
83
83
  `}
84
- `,Pr=o.div`
84
+ `,Cr=o.div`
85
85
  display: flex;
86
86
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
87
87
  justify-content: space-between;
@@ -97,27 +97,27 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
97
97
  border: 1px solid ${e=>e.theme.colors.grey3};
98
98
  border-radius: ${t.sp2};
99
99
  width: ${e=>e.windowSize==="small"?"auto":"288px"};
100
- `,Cr=o.div`
100
+ `,zr=o.div`
101
101
  padding: ${t.sp2} ${t.sp3};
102
102
  background-color: ${e=>e.theme.colors.grey4};
103
103
  border: 1px solid ${e=>e.theme.colors.grey1};
104
104
  border-radius: ${t.sp2};
105
- `,zr=o.div`
105
+ `,Dr=o.div`
106
106
  display: flex;
107
107
  width: 100%;
108
108
  justify-content: space-between;
109
109
  padding: ${t.sp3} ${t.sp4};
110
110
  background-color: ${j.importantLight};
111
111
  border-radius: ${t.sp2};
112
- `,Dr=o.div`
112
+ `,Lr=o.div`
113
113
  display: flex;
114
114
  flex-direction: column;
115
115
  margin-left: ${t.sp2};
116
- `,Lr=o(dt)`
116
+ `,Fr=o(ut)`
117
117
  color: ${j.important};
118
- `,Fr=o(Y)`
118
+ `,Mr=o(Y)`
119
119
  color: ${j.important};
120
- `,Mr=o.div`
120
+ `,Rr=o.div`
121
121
  margin-top: ${t.sp3};
122
122
  display: flex;
123
123
  background-color: ${e=>e.theme.colors.grey5};
@@ -126,15 +126,15 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
126
126
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
127
127
  border-radius: ${t.sp2};
128
128
  box-shadow: ${e=>`${t.sp0} 2px 2px ${e.theme.colors.dropShadowNormal}`};
129
- `,Rr=o.div`
129
+ `,Br=o.div`
130
130
  height: auto;
131
131
  padding-left: ${e=>`${Q.containerPaddingLeft.valuePx(e.windowSize)}`};
132
132
  padding-right: ${e=>`${Q.containerPaddingRight.valuePx(e.windowSize)}`};
133
133
  margin-bottom: auto;
134
- `,Br=o.div`
134
+ `,Or=o.div`
135
135
  display: flex;
136
136
  align-items: flex-start;
137
- `,Or=o.div``,Ir=o(ct)`
137
+ `,Ir=o.div``,Er=o(dt)`
138
138
  width: ${t.sp4};
139
139
  height: ${t.sp4};
140
140
  color: ${j.important};
@@ -147,7 +147,7 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
147
147
  &:hover {
148
148
  color: ${e=>e.theme.colors.primary};
149
149
  }
150
- `,Er=o.div`
150
+ `,_r=o.div`
151
151
  display: flex;
152
152
  flex: 1;
153
153
  background-color: ${e=>e.theme.colors.grey3};
@@ -155,12 +155,12 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
155
155
  max-height: 1px;
156
156
  `,me=o(I)`
157
157
  color: ${e=>e.theme.colors.hero};
158
- `,_r=o.div`
158
+ `,Nr=o.div`
159
159
  display: flex;
160
160
  flex-direction: column;
161
161
  padding-top: ${t.sp3};
162
162
  padding-bottom: ${e=>`${Q.reviewContentWrapperPaddingBottom.valuePx(e.windowSize)}`};
163
- `,Nr=o.div`
163
+ `,Vr=o.div`
164
164
  display: flex;
165
165
  flex-direction: row;
166
166
  justify-content: flex-end;
@@ -170,23 +170,23 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
170
170
  padding: ${e=>`${Q.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
171
171
  z-index: 2;
172
172
  background-color: transparent;
173
- `,Vr=o(st)`
173
+ `,Wr=o(lt)`
174
174
  ${e=>`${Re.pageTitle.style(e.windowSize)}`};
175
175
  color: ${e=>e.theme.colors.primary};
176
176
  padding: ${t.sp3} ${t.sp0} ${t.sp2} ${t.sp0};
177
177
  ${e=>e.windowSize==="small"&&`
178
178
  padding-bottom: ${t.sp0};
179
179
  `}
180
- `,Wr=o.div`
180
+ `,qr=o.div`
181
181
  display: flex;
182
182
  flex-direction: column;
183
183
  gap: ${t.sp3};
184
184
  width: 100%;
185
185
  margin-bottom: ${t.sp3};
186
- `,qr=o.div`
186
+ `,Yr=o.div`
187
187
  display: flex;
188
188
  align-items: center;
189
- `,Yr=o.div`
189
+ `,Gr=o.div`
190
190
  display: flex;
191
191
  width: 100%;
192
192
  gap: ${t.sp3};
@@ -195,40 +195,40 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
195
195
  height: 2px;
196
196
  background-color: ${e=>e.theme.colors.primary};
197
197
  border-radius: ${t.sp2};
198
- `,Gr=o.div`
198
+ `,Xr=o.div`
199
199
  width: 33.33%;
200
200
  height: 2px;
201
201
  background-color: ${e=>e.theme.colors.grey2};
202
202
  border-radius: ${t.sp2};
203
- `,Xr=o(I)`
203
+ `,Jr=o(I)`
204
204
  color: ${e=>e.theme.colors.hero};
205
205
  display: flex;
206
206
  flex-direction: row;
207
207
  align-items: center;
208
208
  gap: ${t.sp2};
209
- `,Jr=o.span`
209
+ `,Kr=o.span`
210
210
  margin-left: ${t.sp2};
211
- `,Ce=o.div``,Kr=o(Zt)`
211
+ `,Ce=o.div``,Ur=o(Qt)`
212
212
  color: ${e=>e.theme.colors.brandColorGoldDark};
213
213
  margin-left: ${t.sp1};
214
- `,Ur=o.div`
214
+ `,Zr=o.div`
215
215
  width: ${t.sp1};
216
216
  height: ${t.sp1};
217
217
  min-width: ${t.sp1};
218
218
  background-color: ${e=>e.theme.colors.grey1};
219
219
  border-radius: 50%;
220
- `,Zr=o.img`
220
+ `,Qr=o.img`
221
221
  display: flex;
222
222
  width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
223
223
  height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
224
224
  min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
225
225
  margin-right: ${t.sp2};
226
- `,Qr=o.div`
226
+ `,Hr=o.div`
227
227
  min-width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
228
228
  width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
229
229
  height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
230
230
  margin-right: ${t.sp2};
231
- `,Hr=o(Ht)`
231
+ `,eo=o(er)`
232
232
  min-width: inherit;
233
233
  width: inherit;
234
234
  height: inherit;
@@ -238,18 +238,18 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
238
238
  width: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
239
239
  height: ${e=>e.isForReview?t.sp6:e.isOptionSelected?t.sp4:t.sp5};
240
240
  margin-right: ${t.sp2};
241
- `,Je=o(Qt)`
241
+ `,Je=o(Ht)`
242
242
  min-width: inherit;
243
243
  width: inherit;
244
244
  height: inherit;
245
245
  margin-right: ${t.sp2};
246
- `,eo=o.div`
246
+ `,to=o.div`
247
247
  width: ${e=>e.isForReview?t.sp6:t.sp4};
248
248
  height: ${e=>e.isForReview?t.sp6:t.sp4};
249
249
  margin-right: 12px;
250
250
  margin-left: ${t.sp1};
251
251
  color: ${e=>e.theme.colors.hero};
252
- `,to=o(lt)`
252
+ `,ro=o(ct)`
253
253
  color: ${e=>e.theme.colors.primary};
254
254
  margin: ${t.sp2} ${t.sp0} ${t.sp3} ${t.sp0};
255
255
  ${e=>e.windowSize==="small"&&`
@@ -259,18 +259,18 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
259
259
  `,Ke=o(Y)`
260
260
  color: ${e=>e.theme.colors.hero};
261
261
  margin-top: ${t.sp3};
262
- `,ro=o(I)`
262
+ `,oo=o(I)`
263
263
  color: ${e=>e.theme.colors.hero};
264
- `,oo=o(Ut)`
264
+ `,io=o(Zt)`
265
265
  width: ${t.sp4};
266
266
  height: ${t.sp4};
267
267
  color: ${e=>e.theme.colors.hero};
268
- `,io=o(Jt)`
268
+ `,ao=o(Kt)`
269
269
  width: ${t.sp4};
270
270
  height: ${t.sp4};
271
271
  color: ${e=>e.theme.colors.hero};
272
272
  align-self: center;
273
- `,ao=o(Kt)`
273
+ `,no=o(Ut)`
274
274
  width: ${t.sp4};
275
275
  height: ${t.sp4};
276
276
  color: ${e=>e.theme.colors.hero};
@@ -282,7 +282,7 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
282
282
  position: absolute;
283
283
  right: 50%;
284
284
  bottom: -25px;
285
- `,{common:ze,spendManagement:{treasury:B,zeniAccounts:{zeniAccountList:no},billPay:{insufficientFunds:De}}}=$e.getLocalizedStrings(),pt="amount",so="transferTo",lo="transferFrom",N="transferDetails",ht="transferDetailPage",Le=(e,a)=>`${e}.${a}`,mt=e=>`${e}_form`,x={largeLabelWidth:new w(120,120,160),labeleMarginLeft:new w(d[0],d[0]),labelMarginRight:new w(d[3],d[3]),labeleMarginBottom:new w(d[2],d[0]),labeledFieldPaddingLeft:new w(d[3],d[0]),labeledFieldPaddingRight:new w(d[3],d[2]),labeledFieldPaddingTop:new w(d[3],d[3]),labeledFieldPaddingBottom:new w(d[3],d[2]),infoLabelPaddingRight:new w(d[0],d[3]),infoLabelMarginTop:new w(d[1],d[0]),portfolioContainerPadding:new w(d[3],d[4]),rowContentSelectPaddingLeft:new w(d[3],d[4]),formFieldPaddingRight:new w(0,d[2])},we={yieldEarned:new O("smallMedium","standardMedium"),calculatorFooterText:new O("extraSmallRegular","smallRegular"),integerStyles:new O("h5Regular","h2Regular"),decimalStyles:new O("extraLargeMedium","h5Medium")};function co({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:i,maxInsuredAmount:l,plaidConnectionDetails:c,isOnSetup:h,onSaveChangesToLocalStore:p,onReviewClick:A,onEstablishConnectionClick:f,onFetchLinkTokenClick:$}){const s=ye(),S=x.largeLabelWidth.value(s),[P,m]=y.useState(!1),[C,G]=y.useState(!1),[b,X]=y.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),E=a.reduce((n,g)=>{const T=g.yield;return Math.max(n,T)},0),[be,ee]=y.useState(ge(b,E)),v=c.link_account_no_microdeposit,[M,ve]=y.useState(v.linkToken??null),[te,re]=y.useState(!1),[oe,Ie]=y.useState(!1),Se=e.transferMoneyPartiesFetchState,Ee=Z(Se),je=e.treasuryTransferMoneyLocalData.fromAccount?.id,Ae=e.treasuryTransferMoneyLocalData.toAccount?.id,_e=Z(je),Ne=Z(Ae),ke=e.transferMoneyParties.map(n=>n.id),Te=Z(ke),ft=y.useCallback(n=>{f?.(n),Ie(!1),re(!1)},[f]),gt=y.useCallback((n,g)=>{n!=null&&console.log("Plaid Connection Error",n,g)},[]),{open:ie,ready:J}=Rt({token:M,onSuccess:ft,onExit:gt}),K=y.useCallback(n=>{n.preventDefault(),n.stopPropagation(),J?ie():re(!0)},[ie,J]),_=Bt({mode:"all",reValidateMode:"onChange",defaultValues:y.useMemo(()=>Ue(e,i,h??!1,K),[e,i])}),{isValid:wt}=_.formState,{setError:xt,clearErrors:yt}=_;y.useEffect(()=>{v.fetchStatus.fetchState==="Completed"&&v.linkToken!=null&&v.linkToken!==M&&ve(v.linkToken)},[v.fetchStatus.fetchState,v.linkToken,M]),y.useEffect(()=>{v.linkToken===M&&v.fetchStatus.fetchState==="Completed"&&J&&Ie(!0)},[J,M,v.fetchStatus,v.linkToken,v.fetchStatus.fetchState]),y.useEffect(()=>{oe&&te&&ie()},[oe,ie,te]),y.useEffect(()=>{(L.zeniDate(new Date().toISOString()).isAfter(v.expiration)||v.linkToken==null)&&$?.("link_account_no_microdeposit")},[]),y.useEffect(()=>{const n=Te!=null&&JSON.stringify(Te)!==JSON.stringify(ke);(Ee==="In-Progress"&&Se==="Completed"||_e!==je||Ne!==Ae||n)&&_.reset(Ue(e,i,h??!1,K))},[J,M,v.fetchStatus.fetchState,Ee,Se,_e,Ne,Ae,je,Te,ke,_,e,i,h,K]);const $t=()=>e.transferMoneyParties.find(n=>n.id!==e.treasuryAccount.id&&n.accType==="depositAccount"),bt=()=>{const n=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(g=>g.id===n)},vt=async(n,g)=>{if(n!=null){const T={...g},ae=T[N].transferFrom.selectedOption,ne=T[N].transferTo.selectedOption;let se=e.transferMoneyParties.find(Pe=>Pe.id===ae),le=e.transferMoneyParties.find(Pe=>Pe.id===ne);ae===e.treasuryAccount.id&&(se=e.treasuryAccount),ne===e.treasuryAccount.id&&(le=e.treasuryAccount);const We={amount:T[N].amount??0,currencyCode:"USD",currencySymbol:"$"};n.includes("transferFrom")?ae===e.treasuryAccount.id?ne===e.treasuryAccount.id&&(le=$t()):le=e.treasuryAccount:n.includes("transferTo")&&(ne===e.treasuryAccount.id?ae===e.treasuryAccount.id&&(se=bt()):se=e.treasuryAccount);const kt={amount:We,fromAccount:se,toAccount:le};X(We.amount),p(kt)}};y.useEffect(()=>{const n=_.watch((g,{name:T})=>{T!=null&&g!=null&&Ot(()=>vt(T,g))});return()=>{n.unsubscribe()}}),y.useEffect(()=>{ee(ge(b,E))},[b,E]);const St=()=>{if(U?.id==null||U.id===""||!z.amount)return!1;if(U.id===e.treasuryAccount.id){const n=e.treasuryAccount.balance;if(n&&L.checkIfLowBalance(z,n))return!0}else{const n=e.transferMoneyParties.find(g=>g.id===U.id);if(n?.accountBalance?.available&&L.checkIfLowBalance(z,n.accountBalance.available))return!0}return!1},jt=_.handleSubmit(()=>{if(St()){xt("transferDetails.transferFrom",{type:"lowBalance",message:De.addMoney});return}yt("transferDetails.transferFrom"),wt&&A()}),{fromAccount:U,toAccount:Ve,amount:z}=e.treasuryTransferMoneyLocalData,At=n=>{if(!n||!z.amount)return"";const g=e.transferMoneyParties.find(T=>T.id===n);if(n===e.treasuryAccount.id){const T=e.treasuryAccount.balance;if(T&&L.checkIfLowBalance(z,T))return De.addMoney}else if(g?.accountBalance?.available&&L.checkIfLowBalance(z,g.accountBalance.available))return De.addMoney;return""};return r.jsxs(r.Fragment,{children:[P?r.jsx(po,{children:r.jsxs(mo,{children:[r.jsxs(fo,{children:[r.jsx(wo,{}),r.jsxs(xo,{children:[r.jsx(yo,{children:e.error?.title}),r.jsx($o,{children:e.error?.message})]})]}),r.jsx(go,{children:r.jsx(jo,{"data-testid":D("amount-details-error-close"),onClick:()=>{m(!1)},style:{width:t.sp3,height:t.sp3,color:j.heroLight}})})]})}):null,r.jsx(bo,{windowSize:s,children:r.jsx(nt,{amount:z,integerStyles:we.integerStyles.styleObject(s),decimalStyles:we.decimalStyles.styleObject(s),alwaysShowDecimal:!0})}),r.jsx(It,{..._,children:r.jsxs(ho,{id:mt(ht),onSubmit:jt,children:[r.jsxs(vo,{children:[r.jsx(Be,{size:s,children:r.jsx(Ze,{label:{label:ze.labels.transferFrom,width:S,style:{marginLeft:x.labeleMarginLeft.valuePx(s),marginBottom:x.labeleMarginBottom.valuePx(s),marginRight:x.labelMarginRight.valuePx(s)}},style:{paddingTop:x.labeledFieldPaddingTop.valuePx(s),paddingBottom:x.labeledFieldPaddingBottom.valuePx(s),paddingLeft:x.labeledFieldPaddingLeft.valuePx(s),paddingRight:x.labeledFieldPaddingRight.valuePx(s),border:"none",width:"100%",outline:"none",padding:0,display:s==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:x.infoLabelPaddingRight.valuePx(s),marginTop:x.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},singleSelectPickerField:{name:Le(N,lo),style:{position:"relative"},capitalizeOptions:!0,placeholder:B.transferDrawer.selectAccount,valueToLogo:(n,g)=>V(e.transferMoneyParties,n,g,n===e.treasuryAccount.id,!1),valueToSubLabels:(n,g)=>W(e.transferMoneyParties,e.treasuryAccount,n,g,!0,!1,z),defaultValue:{selectedOption:U?.id,allOptions:xe(e,!0,i,!0,K,!0)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}},valueToAdditionalLabel:At})}),!i&&r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx(Be,{size:s,children:r.jsx(Ze,{label:{label:ze.labels.transferTo,width:S,style:{marginLeft:x.labeleMarginLeft.valuePx(s),marginBottom:x.labeleMarginBottom.valuePx(s),marginRight:x.labelMarginRight.valuePx(s)}},style:{paddingTop:x.labeledFieldPaddingTop.valuePx(s),paddingBottom:x.labeledFieldPaddingBottom.valuePx(s),paddingLeft:x.labeledFieldPaddingLeft.valuePx(s),paddingRight:x.labeledFieldPaddingRight.valuePx(s),border:"none",width:"100%",outline:"none",padding:0,display:s==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:x.infoLabelPaddingRight.valuePx(s),marginTop:x.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},singleSelectPickerField:{name:Le(N,so),style:{position:"relative"},capitalizeOptions:!0,placeholder:B.transferDrawer.selectAccount,valueToLogo:(n,g)=>V(e.transferMoneyParties,n,g,n===e.treasuryAccount.id,!1),valueToSubLabels:(n,g)=>W(e.transferMoneyParties,e.treasuryAccount,n,g,!1,!1),defaultValue:{selectedOption:Ve?.id,allOptions:xe(e,!1,i,!0,K,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]}),r.jsx(Fe,{}),r.jsx(Et,{showAdditionalInfoLabel:!1,label:{label:ze.labels.amount,width:S},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:x.formFieldPaddingRight.valuePx(s),width:"auto"},formattedTextField:{type:"number",name:Le(N,pt),defaultValue:z.amount===0?void 0:z.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0},placeholder:B.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),i&&r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx(So,{size:s,children:r.jsx(ut,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:z,page:"fund transfer"})})]})]}),!i&&Ve?.accType==="treasuryAccount"&&r.jsxs(Ao,{children:[C?r.jsxs(ko,{children:[r.jsx(To,{windowSize:s,children:B.transferDrawer.calculator.heading.replace("__amount__",q("0,0.[00]a",{amount:l,currencySymbol:"$"})).replace("__rate__",E.toString())}),r.jsx(or,{interestRate:E,transferAmount:b,setYieldEarned:ee,setTransferAmount:X})]}):null,r.jsxs(Co,{windowSize:s,children:[r.jsxs(Lo,{windowSize:s,children:[r.jsx(zo,{children:r.jsx(Po,{windowSize:s,children:`${B.transferDrawer.calculator.footerText.annualYieldEarned} ${q("0,0",{amount:be,currencySymbol:"$"})}`})}),r.jsx(Do,{windowSize:s}),r.jsx(Fo,{children:`${B.transferDrawer.calculator.footerText.forTotalDeposit} ${q("0,0",{amount:b,currencySymbol:"$"})}`})]}),C?r.jsxs(He,{windowSize:s,onClick:()=>G(!1),"data-testid":D("calculator-footer-close"),children:[r.jsx(Qe,{className:"calculatorFooterLeftText",windowSize:s,children:B.transferDrawer.calculator.footerText.hide}),r.jsx(Mo,{className:"calculatorFooterArrowIcon"})]}):r.jsxs(He,{windowSize:s,onClick:()=>G(!0),"data-testid":D("calculator-footer-show"),children:[r.jsx(Qe,{className:"calculatorFooterLeftText",windowSize:s,children:B.transferDrawer.calculator.footerText.showYieldCalculator}),r.jsx(Ro,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const xe=(e,a,u,i=!0,l,c=!1,h,p)=>{const A=e.treasuryTransferMoneyLocalData.fromAccount?.id,f=e.treasuryTransferMoneyLocalData.toAccount?.id,$=e.transferMoneyParties.find(m=>m.id===A)||e.treasuryAccount,s=e.transferMoneyParties.find(m=>m.id===f)||e.treasuryAccount;let S=e.transferMoneyParties;a||(S=S.filter(m=>m.accType!=="paymentAccount"));const P=S.map(m=>{const C={label:m.label,value:m.id};return i&&(a?C.isDisabled=m.id===f||m.accType==="paymentAccount"&&s?.accType==="paymentAccount":C.isDisabled=m.id===A||m.accType==="paymentAccount"&&$?.accType==="paymentAccount"),C});if(!u){const m={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};i&&(a?m.isDisabled=!1:m.isDisabled=e.treasuryAccount.id===A),a?P.push(m):P.unshift(m)}if(c&&l){const m={label:no.transferDrawer.selectAddAccount,value:"",type:"button",onClick:l};P.push(m)}return P},uo=e=>{let a=-1,u;return e.transferMoneyParties.forEach(i=>{const l=i.accountBalance?.available?.amount??0;l>a&&(a=l,u=i.id)}),u},Ue=(e,a,u,i)=>{const{fromAccount:l,toAccount:c,amount:h}=e.treasuryTransferMoneyLocalData,p=()=>u?uo(e):l!=null?l.id:e.primaryPaymentAccount?.paymentAccountId;return{transferDetails:{[pt]:h.amount===0?void 0:h.amount,transferFrom:{allOptions:xe(e,!0,a,!0,i,!0),selectedOption:p()},transferTo:{allOptions:xe(e,!1,a,!0,i,!1),selectedOption:c?.id}}}},po=o.div`
285
+ `,{common:ze,spendManagement:{treasury:B,zeniAccounts:{zeniAccountList:so},billPay:{insufficientFunds:De}}}=$e.getLocalizedStrings(),ht="amount",lo="transferTo",co="transferFrom",N="transferDetails",mt="transferDetailPage",Le=(e,a)=>`${e}.${a}`,ft=e=>`${e}_form`,x={largeLabelWidth:new w(120,120,160),labeleMarginLeft:new w(d[0],d[0]),labelMarginRight:new w(d[3],d[3]),labeleMarginBottom:new w(d[2],d[0]),labeledFieldPaddingLeft:new w(d[3],d[0]),labeledFieldPaddingRight:new w(d[3],d[2]),labeledFieldPaddingTop:new w(d[3],d[3]),labeledFieldPaddingBottom:new w(d[3],d[2]),infoLabelPaddingRight:new w(d[0],d[3]),infoLabelMarginTop:new w(d[1],d[0]),portfolioContainerPadding:new w(d[3],d[4]),rowContentSelectPaddingLeft:new w(d[3],d[4]),formFieldPaddingRight:new w(0,d[2])},we={yieldEarned:new O("smallMedium","standardMedium"),calculatorFooterText:new O("extraSmallRegular","smallRegular"),integerStyles:new O("h5Regular","h2Regular"),decimalStyles:new O("extraLargeMedium","h5Medium")};function uo({transferDetails:e,fundDetails:a,portfolioAllocation:u,isFirstTransfer:i,maxInsuredAmount:l,plaidConnectionDetails:c,isOnSetup:h,onSaveChangesToLocalStore:p,onReviewClick:k,onEstablishConnectionClick:f,onFetchLinkTokenClick:$}){const s=ye(),S=x.largeLabelWidth.value(s),[P,m]=y.useState(!1),[C,G]=y.useState(!1),[b,X]=y.useState(e.treasuryTransferMoneyLocalData.amount?.amount??0),E=a.reduce((n,g)=>{const T=g.yield;return Math.max(n,T)},0),[be,ee]=y.useState(ge(b,E)),v=c.link_account_no_microdeposit,[M,ve]=y.useState(v.linkToken??null),[te,re]=y.useState(!1),[oe,Ie]=y.useState(!1),Se=e.transferMoneyPartiesFetchState,Ee=Z(Se),je=e.treasuryTransferMoneyLocalData.fromAccount?.id,ke=e.treasuryTransferMoneyLocalData.toAccount?.id,_e=Z(je),Ne=Z(ke),Ae=e.transferMoneyParties.map(n=>n.id),Te=Z(Ae),gt=y.useCallback(n=>{f?.(n),Ie(!1),re(!1)},[f]),wt=y.useCallback((n,g)=>{n!=null&&console.log("Plaid Connection Error",n,g)},[]),{open:ie,ready:J}=Bt({token:M,onSuccess:gt,onExit:wt}),K=y.useCallback(n=>{n.preventDefault(),n.stopPropagation(),J?ie():re(!0)},[ie,J]),_=Ot({mode:"all",reValidateMode:"onChange",defaultValues:y.useMemo(()=>Ze(e,i,h??!1,K),[e,i])}),{isValid:xt}=_.formState,{setError:yt,clearErrors:$t}=_;y.useEffect(()=>{v.fetchStatus.fetchState==="Completed"&&v.linkToken!=null&&v.linkToken!==M&&ve(v.linkToken)},[v.fetchStatus.fetchState,v.linkToken,M]),y.useEffect(()=>{v.linkToken===M&&v.fetchStatus.fetchState==="Completed"&&J&&Ie(!0)},[J,M,v.fetchStatus,v.linkToken,v.fetchStatus.fetchState]),y.useEffect(()=>{oe&&te&&ie()},[oe,ie,te]),y.useEffect(()=>{(L.zeniDate(new Date().toISOString()).isAfter(v.expiration)||v.linkToken==null)&&$?.("link_account_no_microdeposit")},[]),y.useEffect(()=>{const n=Te!=null&&JSON.stringify(Te)!==JSON.stringify(Ae);(Ee==="In-Progress"&&Se==="Completed"||_e!==je||Ne!==ke||n)&&_.reset(Ze(e,i,h??!1,K))},[J,M,v.fetchStatus.fetchState,Ee,Se,_e,Ne,ke,je,Te,Ae,_,e,i,h,K]);const bt=()=>e.transferMoneyParties.find(n=>n.id!==e.treasuryAccount.id&&n.accType==="depositAccount"),vt=()=>{const n=e.primaryPaymentAccount?.paymentAccountId;return e.transferMoneyParties.find(g=>g.id===n)},St=async(n,g)=>{if(n!=null){const T={...g},ae=T[N].transferFrom.selectedOption,ne=T[N].transferTo.selectedOption;let se=e.transferMoneyParties.find(Pe=>Pe.id===ae),le=e.transferMoneyParties.find(Pe=>Pe.id===ne);ae===e.treasuryAccount.id&&(se=e.treasuryAccount),ne===e.treasuryAccount.id&&(le=e.treasuryAccount);const We={amount:T[N].amount??0,currencyCode:"USD",currencySymbol:"$"};n.includes("transferFrom")?ae===e.treasuryAccount.id?ne===e.treasuryAccount.id&&(le=bt()):le=e.treasuryAccount:n.includes("transferTo")&&(ne===e.treasuryAccount.id?ae===e.treasuryAccount.id&&(se=vt()):se=e.treasuryAccount);const Tt={amount:We,fromAccount:se,toAccount:le};X(We.amount),p(Tt)}};y.useEffect(()=>{const n=_.watch((g,{name:T})=>{T!=null&&g!=null&&It(()=>St(T,g))});return()=>{n.unsubscribe()}}),y.useEffect(()=>{ee(ge(b,E))},[b,E]);const jt=()=>{if(U?.id==null||U.id===""||!z.amount)return!1;if(U.id===e.treasuryAccount.id){const n=e.treasuryAccount.balance;if(n&&L.checkIfLowBalance(z,n))return!0}else{const n=e.transferMoneyParties.find(g=>g.id===U.id);if(n?.accountBalance?.available&&L.checkIfLowBalance(z,n.accountBalance.available))return!0}return!1},kt=_.handleSubmit(()=>{if(jt()){yt("transferDetails.transferFrom",{type:"lowBalance",message:De.addMoney});return}$t("transferDetails.transferFrom"),xt&&k()}),{fromAccount:U,toAccount:Ve,amount:z}=e.treasuryTransferMoneyLocalData,At=n=>{if(!n||!z.amount)return"";const g=e.transferMoneyParties.find(T=>T.id===n);if(n===e.treasuryAccount.id){const T=e.treasuryAccount.balance;if(T&&L.checkIfLowBalance(z,T))return De.addMoney}else if(g?.accountBalance?.available&&L.checkIfLowBalance(z,g.accountBalance.available))return De.addMoney;return""};return r.jsxs(r.Fragment,{children:[P?r.jsx(po,{children:r.jsxs(mo,{children:[r.jsxs(fo,{children:[r.jsx(wo,{}),r.jsxs(xo,{children:[r.jsx(yo,{children:e.error?.title}),r.jsx($o,{children:e.error?.message})]})]}),r.jsx(go,{children:r.jsx(jo,{"data-testid":D("amount-details-error-close"),onClick:()=>{m(!1)},style:{width:t.sp3,height:t.sp3,color:j.heroLight}})})]})}):null,r.jsx(bo,{windowSize:s,children:r.jsx(st,{amount:z,integerStyles:we.integerStyles.styleObject(s),decimalStyles:we.decimalStyles.styleObject(s),alwaysShowDecimal:!0})}),r.jsx(Et,{..._,children:r.jsxs(ho,{id:ft(mt),onSubmit:kt,children:[r.jsxs(vo,{children:[r.jsx(Be,{size:s,children:r.jsx(Qe,{label:{label:ze.labels.transferFrom,width:S,style:{marginLeft:x.labeleMarginLeft.valuePx(s),marginBottom:x.labeleMarginBottom.valuePx(s),marginRight:x.labelMarginRight.valuePx(s)}},style:{paddingTop:x.labeledFieldPaddingTop.valuePx(s),paddingBottom:x.labeledFieldPaddingBottom.valuePx(s),paddingLeft:x.labeledFieldPaddingLeft.valuePx(s),paddingRight:x.labeledFieldPaddingRight.valuePx(s),border:"none",width:"100%",outline:"none",padding:0,display:s==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:x.infoLabelPaddingRight.valuePx(s),marginTop:x.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},singleSelectPickerField:{name:Le(N,co),style:{position:"relative"},capitalizeOptions:!0,placeholder:B.transferDrawer.selectAccount,valueToLogo:(n,g)=>V(e.transferMoneyParties,n,g,n===e.treasuryAccount.id,!1),valueToSubLabels:(n,g)=>W(e.transferMoneyParties,e.treasuryAccount,n,g,!0,!1,z),defaultValue:{selectedOption:U?.id,allOptions:xe(e,!0,i,!0,K,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}},valueToAdditionalLabel:At})}),!i&&r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx(Be,{size:s,children:r.jsx(Qe,{label:{label:ze.labels.transferTo,width:S,style:{marginLeft:x.labeleMarginLeft.valuePx(s),marginBottom:x.labeleMarginBottom.valuePx(s),marginRight:x.labelMarginRight.valuePx(s)}},style:{paddingTop:x.labeledFieldPaddingTop.valuePx(s),paddingBottom:x.labeledFieldPaddingBottom.valuePx(s),paddingLeft:x.labeledFieldPaddingLeft.valuePx(s),paddingRight:x.labeledFieldPaddingRight.valuePx(s),border:"none",width:"100%",outline:"none",padding:0,display:s==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:x.infoLabelPaddingRight.valuePx(s),marginTop:x.infoLabelMarginTop.valuePx(s),color:j.brandColorGoldDark},singleSelectPickerField:{name:Le(N,lo),style:{position:"relative"},capitalizeOptions:!0,placeholder:B.transferDrawer.selectAccount,valueToLogo:(n,g)=>V(e.transferMoneyParties,n,g,n===e.treasuryAccount.id,!1),valueToSubLabels:(n,g)=>W(e.transferMoneyParties,e.treasuryAccount,n,g,!1,!1),defaultValue:{selectedOption:Ve?.id,allOptions:xe(e,!1,i,!0,K,!1)},textAlignment:"right",registerOptions:{required:!0,validate:n=>n!=null&&!!n.selectedOption}}})})]}),r.jsx(Fe,{}),r.jsx(_t,{showAdditionalInfoLabel:!1,label:{label:ze.labels.amount,width:S},style:{padding:t.sp2,paddingLeft:t.sp0,paddingRight:x.formFieldPaddingRight.valuePx(s),width:"auto"},formattedTextField:{type:"number",name:Le(N,ht),defaultValue:z.amount===0?void 0:z.amount,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:n=>!!n&&n>0},placeholder:B.transferDrawer.amountPlaceholder,autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1}}),i&&r.jsxs(r.Fragment,{children:[r.jsx(Fe,{}),r.jsx(So,{size:s,children:r.jsx(pt,{isInReview:!0,fundDetails:a,allocation:u,isSetup:!1,amount:z,page:"fund transfer"})})]})]}),!i&&Ve?.accType==="treasuryAccount"&&r.jsxs(ko,{children:[C?r.jsxs(Ao,{children:[r.jsx(To,{windowSize:s,children:B.transferDrawer.calculator.heading.replace("__amount__",q("0,0.[00]a",{amount:l,currencySymbol:"$"})).replace("__rate__",E.toString())}),r.jsx(ir,{interestRate:E,transferAmount:b,setYieldEarned:ee,setTransferAmount:X})]}):null,r.jsxs(Co,{windowSize:s,children:[r.jsxs(Lo,{windowSize:s,children:[r.jsx(zo,{children:r.jsx(Po,{windowSize:s,children:`${B.transferDrawer.calculator.footerText.annualYieldEarned} ${q("0,0",{amount:be,currencySymbol:"$"})}`})}),r.jsx(Do,{windowSize:s}),r.jsx(Fo,{children:`${B.transferDrawer.calculator.footerText.forTotalDeposit} ${q("0,0",{amount:b,currencySymbol:"$"})}`})]}),C?r.jsxs(et,{windowSize:s,onClick:()=>G(!1),"data-testid":D("calculator-footer-close"),children:[r.jsx(He,{className:"calculatorFooterLeftText",windowSize:s,children:B.transferDrawer.calculator.footerText.hide}),r.jsx(Mo,{className:"calculatorFooterArrowIcon"})]}):r.jsxs(et,{windowSize:s,onClick:()=>G(!0),"data-testid":D("calculator-footer-show"),children:[r.jsx(He,{className:"calculatorFooterLeftText",windowSize:s,children:B.transferDrawer.calculator.footerText.showYieldCalculator}),r.jsx(Ro,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]})}const xe=(e,a,u,i=!0,l,c=!1,h,p)=>{const k=e.treasuryTransferMoneyLocalData.fromAccount?.id,f=e.treasuryTransferMoneyLocalData.toAccount?.id,$=e.transferMoneyParties.find(m=>m.id===k)||e.treasuryAccount,s=e.transferMoneyParties.find(m=>m.id===f)||e.treasuryAccount;let S=e.transferMoneyParties;a||(S=S.filter(m=>m.accType!=="paymentAccount"));const P=S.map(m=>{const C={label:m.label,value:m.id};return i&&(a?C.isDisabled=m.id===f||m.accType==="paymentAccount"&&s?.accType==="paymentAccount":C.isDisabled=m.id===k||m.accType==="paymentAccount"&&$?.accType==="paymentAccount"),C});if(!u){const m={label:"Treasury",value:e.treasuryAccount.id,isDisabled:!1};i&&(a?m.isDisabled=!1:m.isDisabled=e.treasuryAccount.id===k),a?P.push(m):P.unshift(m)}if(c&&l){const m={label:so.transferDrawer.selectAddAccount,value:"",type:"button",onClick:l};P.push(m)}return P},Ue=e=>{let a=-1,u;return e.transferMoneyParties.forEach(i=>{const l=i.accountBalance?.available?.amount??0;l>a&&(a=l,u=i.id)}),u},Ze=(e,a,u,i)=>{const{fromAccount:l,toAccount:c,amount:h}=e.treasuryTransferMoneyLocalData,p=()=>u?Ue(e):l!=null?l.id:Ue(e);return{transferDetails:{[ht]:h.amount===0?void 0:h.amount,transferFrom:{allOptions:xe(e,!0,a,!0,i,!1),selectedOption:p()},transferTo:{allOptions:xe(e,!1,a,!0,i,!1),selectedOption:c?.id}}}},po=o.div`
286
286
  margin-top: ${t.sp3};
287
287
  display: flex;
288
288
  background-color: ${e=>e.theme.colors.grey5};
@@ -306,7 +306,7 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
306
306
  `,fo=o.div`
307
307
  display: flex;
308
308
  align-items: flex-start;
309
- `,go=o.div``,wo=o(ct)`
309
+ `,go=o.div``,wo=o(dt)`
310
310
  width: ${t.sp4};
311
311
  height: ${t.sp4};
312
312
  color: ${j.important};
@@ -314,18 +314,18 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
314
314
  display: flex;
315
315
  flex-direction: column;
316
316
  margin-left: ${t.sp2};
317
- `,yo=o(dt)`
317
+ `,yo=o(ut)`
318
318
  color: ${j.important};
319
319
  `,$o=o(Y)`
320
320
  color: ${j.important};
321
- `,bo=o(lt)`
321
+ `,bo=o(ct)`
322
322
  color: ${e=>e.theme.colors.primary};
323
323
  margin: ${t.sp5} ${t.sp0} ${t.sp3} ${t.sp0};
324
324
  ${e=>e.windowSize==="small"&&`
325
325
  margin-top: ${t.sp1};
326
326
  margin-bottom: ${t.sp1};
327
327
  `}
328
- `,Ze=o(_t)`
328
+ `,Qe=o(Nt)`
329
329
  border-radius: ${t.sp2};
330
330
  border: ${e=>`1px solid ${e.theme.colors.grey3}`};
331
331
  `,vo=o.div`
@@ -384,10 +384,10 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
384
384
  &:hover {
385
385
  color: ${e=>e.theme.colors.primary};
386
386
  }
387
- `,Ao=o.div`
387
+ `,ko=o.div`
388
388
  margin-bottom: ${t.sp6};
389
389
  width: 90%;
390
- `,ko=o.div`
390
+ `,Ao=o.div`
391
391
  background-color: ${e=>e.theme.colors.background};
392
392
  border: 1px solid ${e=>e.theme.colors.grey3};
393
393
  border-top: none;
@@ -418,11 +418,11 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
418
418
  display: flex;
419
419
  flex-direction: row;
420
420
  align-items: center;
421
- `,Qe=o.div`
421
+ `,He=o.div`
422
422
  ${e=>we.calculatorFooterText.style(e.windowSize)}
423
423
  color: ${e=>e.theme.colors.hero};
424
424
  cursor: pointer;
425
- `,He=o.div`
425
+ `,et=o.div`
426
426
  display: flex;
427
427
  flex-direction: row;
428
428
  align-items: center;
@@ -449,23 +449,23 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
449
449
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
450
450
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
451
451
  width: ${e=>e.windowSize==="small"?"100%":"unset"};
452
- `,Fo=o(Yt)`
452
+ `,Fo=o(Gt)`
453
453
  color: ${e=>e.theme.colors.hero};
454
- `,Mo=o(Gt)`
454
+ `,Mo=o(Xt)`
455
455
  cursor: pointer;
456
456
  width: 12px;
457
457
  height: 12px;
458
458
  min-width: 12px;
459
459
  min-height: 12px;
460
460
  color: ${e=>e.theme.colors.hero};
461
- `,Ro=o(Xt)`
461
+ `,Ro=o(Jt)`
462
462
  cursor: pointer;
463
463
  width: 12px;
464
464
  height: 12px;
465
465
  min-width: 12px;
466
466
  min-height: 12px;
467
467
  color: ${e=>e.theme.colors.hero};
468
- `,H={navBarContainerPaddingXaxis:new w(10,19),containerPaddingLeft:new w(d[3],d[6],d[8]),containerPaddingRight:new w(d[3],d[6],d[8]),successContentMargin:new w(d[3],d[12]),buttonTrayGap:new w(d[4],d[5])},Bo={formTitle:new O("h6Regular","h5Regular")},{common:Me,spendManagement:{treasury:k}}=$e.getLocalizedStrings(),li=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:i,isFirstTransfer:l,plaidConnectionDetails:c,isOnSetup:h,onSaveChangesToLocalStore:p,onTransferClick:A,onAnotherTransferClick:f,onCancelClick:$,onBackClick:s,setShowReviewContent:S,onReviewClick:P,onEstablishConnectionClick:m,onFetchLinkTokenClick:C,onSkipClick:G})=>{const b=ye(),{fundsData:X,currentAllocation:E,fundAllocationOptions:be,fetchState:ee}=a,v=be.find(oe=>Tt(oe.allocation,E))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},M=()=>ee==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:ve,toAccount:te,amount:re}=e.treasuryTransferMoneyLocalData;return r.jsx(Eo,{windowSize:b,children:e.fetchState==="Completed"?r.jsxs(et,{windowSize:b,isTransferCompleted:!0,children:[r.jsx(tt,{windowSize:b,children:r.jsx(rt,{"data-testid":D("cross-transfer-success-close-button"),onClick:()=>{$()}})}),r.jsxs(Wo,{windowSize:b,children:[r.jsx(Pt,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),r.jsx(_o,{children:r.jsxs(r.Fragment,{children:[k.transferDrawer.success.prefix,r.jsx(No,{children:q("0,0.[00]",re)}),k.transferDrawer.success.midfix,`"${ve?.label}"`,k.transferDrawer.success.midfix2,`"${te?.label}".`]})}),r.jsxs(Vo,{windowSize:b,children:[r.jsx(qe,{variant:"secondary",label:k.transferDrawer.anotherTransfer,"data-testid":D("another-transfer-button","treasury"),onClick:()=>{f?.()},style:{minWidth:200}}),r.jsx(qe,{variant:"primary",label:k.transferDrawer.backToTreasury,"data-testid":D("back-to-treasury-button"),onClick:()=>{$()},style:{minWidth:200}})]})]})]}):u?r.jsx(vr,{transferDetails:e,setShowReviewContent:S,onTransferClick:A,fundDetails:X,portfolioAllocation:v,isOnSetup:h,onCancelClick:$}):r.jsxs(r.Fragment,{children:[r.jsxs(et,{windowSize:b,isTransferCompleted:!1,children:[r.jsx(tt,{windowSize:b,children:r.jsx(rt,{"data-testid":D("cross-amount-details-close-button"),onClick:()=>{$()}})}),b==="small"?r.jsx(qo,{windowSize:b,children:h===!0?k.transferDrawer.stepTitle:l?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}):r.jsx(Yo,{windowSize:b,children:h===!0?k.transferDrawer.stepTitle:l?k.transferDrawer.title:k.transferDrawer.transferBetweenAccounts}),h===!0&&r.jsx(Go,{windowSize:b,children:r.jsx(Xo,{children:r.jsxs(Jo,{children:[r.jsx(ot,{}),r.jsx(ot,{}),r.jsx(Ko,{})]})})}),b==="small"?r.jsx(Io,{children:k.transferDrawer.subTitle}):r.jsx(Oo,{children:k.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?r.jsx(co,{onSaveChangesToLocalStore:p,transferDetails:e,onReviewClick:P,fundDetails:X,portfolioAllocation:v,isOnSetup:h,isFirstTransfer:l,maxInsuredAmount:i,plaidConnectionDetails:c,onEstablishConnectionClick:m,onFetchLinkTokenClick:C}):r.jsx(it,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),M()?r.jsx(at,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:mt(ht),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:h===!0&&G?r.jsx(Uo,{onClick:G,"data-testid":D("skip-transfer-link"),children:k.transferDrawer.skip}):null,primaryBtn:{label:Me.review},cancelBtn:{label:h===!0?Me.footer.back:Me.cancel,onClick:()=>{h===!0?s():$()}}}):null]})})},Oo=o(Y)`
468
+ `,H={navBarContainerPaddingXaxis:new w(10,19),containerPaddingLeft:new w(d[3],d[6],d[8]),containerPaddingRight:new w(d[3],d[6],d[8]),successContentMargin:new w(d[3],d[12]),buttonTrayGap:new w(d[4],d[5])},Bo={formTitle:new O("h6Regular","h5Regular")},{common:Me,spendManagement:{treasury:A}}=$e.getLocalizedStrings(),li=({transferDetails:e,treasurySetupView:a,showReviewContent:u,maxInsuredAmount:i,isFirstTransfer:l,plaidConnectionDetails:c,isOnSetup:h,onSaveChangesToLocalStore:p,onTransferClick:k,onAnotherTransferClick:f,onCancelClick:$,onBackClick:s,setShowReviewContent:S,onReviewClick:P,onEstablishConnectionClick:m,onFetchLinkTokenClick:C,onSkipClick:G})=>{const b=ye(),{fundsData:X,currentAllocation:E,fundAllocationOptions:be,fetchState:ee}=a,v=be.find(oe=>Pt(oe.allocation,E))??{allocation:{},riskLevel:"Conservative",riskScore:0,optionIndex:0},M=()=>ee==="Completed"&&(e.treasuryTransferMoneyLocalData.fromAccount!=null||e.treasuryTransferMoneyLocalData.toAccount!=null||e.treasuryTransferMoneyLocalData.amount.amount>0),{fromAccount:ve,toAccount:te,amount:re}=e.treasuryTransferMoneyLocalData;return r.jsx(Eo,{windowSize:b,children:e.fetchState==="Completed"?r.jsxs(tt,{windowSize:b,isTransferCompleted:!0,children:[r.jsx(rt,{windowSize:b,children:r.jsx(ot,{"data-testid":D("cross-transfer-success-close-button"),onClick:()=>{$()}})}),r.jsxs(Wo,{windowSize:b,children:[r.jsx(Ct,{width:150,height:150,shouldDisplay:!0,animationInLoop:1}),r.jsx(_o,{children:r.jsxs(r.Fragment,{children:[A.transferDrawer.success.prefix,r.jsx(No,{children:q("0,0.[00]",re)}),A.transferDrawer.success.midfix,`"${ve?.label}"`,A.transferDrawer.success.midfix2,`"${te?.label}".`]})}),r.jsxs(Vo,{windowSize:b,children:[r.jsx(qe,{variant:"secondary",label:A.transferDrawer.anotherTransfer,"data-testid":D("another-transfer-button","treasury"),onClick:()=>{f?.()},style:{minWidth:200}}),r.jsx(qe,{variant:"primary",label:A.transferDrawer.backToTreasury,"data-testid":D("back-to-treasury-button"),onClick:()=>{$()},style:{minWidth:200}})]})]})]}):u?r.jsx(Sr,{transferDetails:e,setShowReviewContent:S,onTransferClick:k,fundDetails:X,portfolioAllocation:v,isOnSetup:h,onCancelClick:$}):r.jsxs(r.Fragment,{children:[r.jsxs(tt,{windowSize:b,isTransferCompleted:!1,children:[r.jsx(rt,{windowSize:b,children:r.jsx(ot,{"data-testid":D("cross-amount-details-close-button"),onClick:()=>{$()}})}),b==="small"?r.jsx(qo,{windowSize:b,children:h===!0?A.transferDrawer.stepTitle:l?A.transferDrawer.title:A.transferDrawer.transferBetweenAccounts}):r.jsx(Yo,{windowSize:b,children:h===!0?A.transferDrawer.stepTitle:l?A.transferDrawer.title:A.transferDrawer.transferBetweenAccounts}),h===!0&&r.jsx(Go,{windowSize:b,children:r.jsx(Xo,{children:r.jsxs(Jo,{children:[r.jsx(it,{}),r.jsx(it,{}),r.jsx(Ko,{})]})})}),b==="small"?r.jsx(Io,{children:A.transferDrawer.subTitle}):r.jsx(Oo,{children:A.transferDrawer.subTitle}),e.transferMoneyPartiesFetchState==="Completed"?r.jsx(uo,{onSaveChangesToLocalStore:p,transferDetails:e,onReviewClick:P,fundDetails:X,portfolioAllocation:v,isOnSetup:h,isFirstTransfer:l,maxInsuredAmount:i,plaidConnectionDetails:c,onEstablishConnectionClick:m,onFetchLinkTokenClick:C}):r.jsx(at,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})]}),M()?r.jsx(nt,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp3},formId:ft(mt),helperStyle:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:h===!0&&G?r.jsx(Uo,{onClick:G,"data-testid":D("skip-transfer-link"),children:A.transferDrawer.skip}):null,primaryBtn:{label:Me.review},cancelBtn:{label:h===!0?Me.footer.back:Me.cancel,onClick:()=>{h===!0?s():$()}}}):null]})})},Oo=o(Y)`
469
469
  color: ${e=>e.theme.colors.hero};
470
470
  `,Io=o(I)`
471
471
  color: ${e=>e.theme.colors.hero};
@@ -476,12 +476,12 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
476
476
  overflow-x: hidden;
477
477
  height: 100vh;
478
478
  width: 100%;
479
- `,_o=o(Ct)`
479
+ `,_o=o(zt)`
480
480
  color: ${e=>e.theme.colors.primary};
481
481
  text-align: center;
482
- `,No=o(zt)`
482
+ `,No=o(Dt)`
483
483
  display: inline;
484
- `,et=o.div`
484
+ `,tt=o.div`
485
485
  height: ${e=>e.isTransferCompleted?"100%":"auto"};
486
486
  padding-left: ${e=>`${H.containerPaddingLeft.valuePx(e.windowSize)}`};
487
487
  padding-right: ${e=>`${H.containerPaddingRight.valuePx(e.windowSize)}`};
@@ -499,7 +499,7 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
499
499
  justify-content: center;
500
500
  margin: ${e=>`${t.sp0} ${H.successContentMargin.valuePx(e.windowSize)}`};
501
501
  align-items: center;
502
- `,tt=o.div`
502
+ `,rt=o.div`
503
503
  display: flex;
504
504
  flex-direction: row-reverse;
505
505
  justify-content: space-between;
@@ -509,7 +509,7 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
509
509
  padding: ${e=>`${H.navBarContainerPaddingXaxis.valuePx(e.windowSize)} ${t.sp0}`};
510
510
  z-index: 2;
511
511
  background-color: ${e=>e.theme.colors.grey4};
512
- `,rt=o(Oe)`
512
+ `,ot=o(Oe)`
513
513
  cursor: pointer;
514
514
  color: ${e=>e.theme.colors.hero};
515
515
  width: ${t.sp4};
@@ -518,12 +518,12 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
518
518
  &:hover {
519
519
  color: ${e=>e.theme.colors.primary};
520
520
  }
521
- `,qo=o(Mt)`
521
+ `,qo=o(Rt)`
522
522
  color: ${e=>e.theme.colors.primary};
523
523
  margin-top: ${t.sp3};
524
524
  margin-bottom: ${t.sp0};
525
525
  margin-right: ${t.sp3};
526
- `,Yo=o(st)`
526
+ `,Yo=o(lt)`
527
527
  ${e=>`${Bo.formTitle.style(e.windowSize)}`};
528
528
  color: ${e=>e.theme.colors.primary};
529
529
  margin-top: ${t.sp3};
@@ -541,7 +541,7 @@ import{q as ye,aC as Tt,j as r,aM as D,hw as Pt,F as $e,aN as q,a as qe,m as it,
541
541
  display: flex;
542
542
  width: 100%;
543
543
  gap: ${t.sp3};
544
- `,ot=o.div`
544
+ `,it=o.div`
545
545
  width: 33.33%;
546
546
  height: 2px;
547
547
  background-color: ${e=>e.theme.colors.primary};
@@ -1,4 +1,4 @@
1
- import{F as Y,j as n,l as u,c as R,aM as w,b3 as Z,bQ as z,bR as A,bh as B,C as $,bg as P,aX as O,bS as q,bi as _,bU as G,o as L,h as K,am as N}from"./index-CU0svkHW.js";import{b as D,w as Q,n as k}from"./vendor-Bs1fkIUX.js";import{d as V,g as M,p as v,u as W}from"./chartTypes-C55wRbZm-DhTW0crF.js";import{o as X}from"./toCOABalancesWithID-CHP1NmFV-B53Lqnlb.js";import{V as J}from"./toChartData-CV-IsjGn-DrX1S8Xg.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const U=k.div`
1
+ import{F as Y,j as n,l as u,c as R,aM as w,b3 as Z,bQ as z,bR as A,bh as B,C as $,bg as P,aX as O,bS as q,bi as _,bU as G,o as L,h as K,am as N}from"./index-Ci6w3djJ.js";import{b as D,w as Q,n as k}from"./vendor-Bs1fkIUX.js";import{d as V,g as M,p as v,u as W}from"./chartTypes-BkGKZtjd-9mZz2BPE.js";import{o as X}from"./toCOABalancesWithID-jZvgYCO7-K9Aq1Sm_.js";import{V as J}from"./toChartData-XC5K1jEk-BCy0qlOQ.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const U=k.div`
2
2
  display: flex;
3
3
  `,H=k.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{q as D,j as i,m as R,o as t,F,y as c,aM as S,b3 as q,b6 as Y,L as E,u as a,am as K,A as V}from"./index-CU0svkHW.js";import{b as H,n}from"./vendor-Bs1fkIUX.js";import W from"./TrendChart-DdACpA7D-awtrGG14.js";import{C as _}from"./NoDataChart-Bb4iomO0-P7hz2s_V.js";import{q as X}from"./InsightsSection-mpQV3wZ8-4CdAfd3B.js";import{f as Z}from"./TransactionList-bXlPU8EJ-CsgRWKIU.js";const G=n.div`
1
+ import{q as D,j as i,m as R,o as t,F,y as c,aM as S,b3 as q,b6 as Y,L as E,u as a,am as K,A as V}from"./index-Ci6w3djJ.js";import{b as H,n}from"./vendor-Bs1fkIUX.js";import W from"./TrendChart-BpsoQkO0-DB1sMg9j.js";import{C as _}from"./NoDataChart-BuWkhFal-CMKpuqZD.js";import{q as X}from"./InsightsSection-Baicql5I-Cy9IT7DF.js";import{f as Z}from"./TransactionList-BingIVb_-DtIsd8Hw.js";const G=n.div`
2
2
  display: inline-block;
3
3
  `,J=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{c as ce,q as se,ax as Ke,aP as en,gO as R,hP as U,F as H,aa as nn,hQ as tn,hR as Te,cS as on,j as t,bF as cn,cD as sn,cE as ln,cF as an,ad as rn,l as J,hS as dn,m as un,hT as Y,hU as pn,aQ as mn,hV as _e,y as u,am as gn,o as l,d3 as fe,aU as W,gT as oe,hW as ie,u as d,O as Ae,h as $e,gg as Ve,ai as Se,bm as xn}from"./index-CU0svkHW.js";import{b as X,n as s}from"./vendor-Bs1fkIUX.js";import{D as hn}from"./HelpButton-JzcF30dH-CB6SuxmB.js";import{h as wn}from"./VendorsAccountsSection-DhleXBjq-D7pc7nto.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-qui2SnEi-zaTm9eCM.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{c as ce,q as se,ax as Ke,aP as en,gO as R,hP as U,F as H,aa as nn,hQ as tn,hR as Te,cS as on,j as t,bF as cn,cD as sn,cE as ln,cF as an,ad as rn,l as J,hS as dn,m as un,hT as Y,hU as pn,aQ as mn,hV as _e,y as u,am as gn,o as l,d3 as fe,aU as W,gT as oe,hW as ie,u as d,O as Ae,h as $e,gg as Ve,ai as Se,bm as xn}from"./index-Ci6w3djJ.js";import{b as X,n as s}from"./vendor-Bs1fkIUX.js";import{D as hn}from"./HelpButton-BaJhgb0U-D2odikp_.js";import{h as wn}from"./VendorsAccountsSection-BgZ0EsGs-KDRhKsoW.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-YzTE9xU9-DZIf1_Kg.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{aP as b,j as t,hY as R,hZ as _,q as F,F as O,cD as U,af as C,cE as z,cF as N,aa as M,ad as G,c$ as H,l as T,cX as D,y as g,cY as J,h as A,ap as Y,m as K,a as X,o as i,am as Z,u as E,ar as Q,b9 as ee}from"./index-CU0svkHW.js";import{b as c,n as f}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(E[3],E[2]),width:new g(300,420,420)},te=f.div`
1
+ import{aP as b,j as t,hY as R,hZ as _,q as F,F as O,cD as U,af as C,cE as z,cF as N,aa as M,ad as G,c$ as H,l as T,cX as D,y as g,cY as J,h as A,ap as Y,m as K,a as X,o as i,am as Z,u as E,ar as Q,b9 as ee}from"./index-Ci6w3djJ.js";import{b as c,n as f}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(E[3],E[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{aa as U,fV as x,aP as k,l as A,q as W,F as q,j as i,cS as _,ad as Q,aM as Z,fW as G,o as a,h as H,d0 as J,aQ as K,y,A as X,L as Y,b9 as ee,b8 as te,u as c}from"./index-CU0svkHW.js";import{b as m,n as l}from"./vendor-Bs1fkIUX.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:P,updateFilesEntity:v,onSendForVerificationClick:z,onCompanyOfficerUpdated:D}=e,n=U({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[C,S]=m.useState(!1),[N,B]=m.useState(!1),b=k(f.fetchState),j=t?.deleteFileStatusById??{},L=t?.updateFileStatusById??{},O=Object.values(j??{}).filter(o=>o!=null),T=A.reduceAllFetchState(O);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=W(),h=q.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{T.fetchState!=="In-Progress"&&z?.(t?.officerType??"Officer_1")}),M=async(o,p)=>{const d=p[u].front;o.includes("front")&&d?.fileId!=null?(D?.(t?.officerType??"Officer_1",[d?.fileId]),S(!0)):S(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&_(()=>M(d,p))});return()=>{o.unsubscribe()}}),i.jsx(Q,{...n,children:i.jsxs("form",{id:u,onSubmit:R,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":Z("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(G,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:J,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${H.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:L,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:P,updateFilesEntity:v,onFileSizeError:o=>B(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),C?i.jsx(K,{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(Y)`
1
+ import{aa as U,fV as x,aP as k,l as A,q as W,F as q,j as i,cS as _,ad as Q,aM as Z,fW as G,o as a,h as H,d0 as J,aQ as K,y,A as X,L as Y,b9 as ee,b8 as te,u as c}from"./index-Ci6w3djJ.js";import{b as m,n as l}from"./vendor-Bs1fkIUX.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:P,updateFilesEntity:v,onSendForVerificationClick:z,onCompanyOfficerUpdated:D}=e,n=U({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:x(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[C,S]=m.useState(!1),[N,B]=m.useState(!1),b=k(f.fetchState),j=t?.deleteFileStatusById??{},L=t?.updateFileStatusById??{},O=Object.values(j??{}).filter(o=>o!=null),T=A.reduceAllFetchState(O);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=W(),h=q.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=h,V=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,R=n.handleSubmit(()=>{T.fetchState!=="In-Progress"&&z?.(t?.officerType??"Officer_1")}),M=async(o,p)=>{const d=p[u].front;o.includes("front")&&d?.fileId!=null?(D?.(t?.officerType??"Officer_1",[d?.fileId]),S(!0)):S(!1)};return m.useEffect(()=>{const o=n.watch((p,{name:d})=>{d!=null&&p!=null&&_(()=>M(d,p))});return()=>{o.unsubscribe()}}),i.jsx(Q,{...n,children:i.jsxs("form",{id:u,onSubmit:R,children:[i.jsxs(re,{size:r,children:[i.jsx(oe,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":Z("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(G,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:J,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${H.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:L,filesEndPoint:w,authParams:E,hasError:N,onEditFileName:I,onDeleteFile:P,updateFilesEntity:v,onFileSizeError:o=>B(o),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),C?i.jsx(K,{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(Y)`
2
2
  margin-top: 19px;
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  margin-bottom: ${a.sp2};
@@ -1 +1 @@
1
- import{aP as o,F as y,j as i,hY as j,hZ as v}from"./index-CU0svkHW.js";import{b as e}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const H=({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),P=y.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(j,{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(v,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?P:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:E=>h?.(E)}}):null})};export{H as default};
1
+ import{aP as o,F as y,j as i,hY as j,hZ as v}from"./index-Ci6w3djJ.js";import{b as e}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const H=({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),P=y.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(j,{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(v,{showHelperText:!n,phoneNumber:t.phone??"",sendOtpFetchState:t.sendOtpStatus.fetchState,description:n?P:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:E=>h?.(E)}}):null})};export{H as default};
@@ -1 +1 @@
1
- import{j as u}from"./index-CU0svkHW.js";import{b as d}from"./vendor-Bs1fkIUX.js";import{f as k}from"./ACHDetailsPage-DzIkTxTe-CGnlEvGr.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BankAccountWarningSection-ClNYTjN_-BQ9-dTwM.js";import"./MagicLinkTitleSection-CHy41StU-iaC_IZyx.js";import"./BankAccountSection-Cw7uDvEJ-Bd6yTqI1.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-Ci6w3djJ.js";import{b as d}from"./vendor-Bs1fkIUX.js";import{f as k}from"./ACHDetailsPage-Dh-9B-tS-BKldvbI-.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BankAccountWarningSection-2lKoI5Zs-Dj_Poz3W.js";import"./MagicLinkTitleSection-BccVjN_n-DUbrRyeh.js";import"./BankAccountSection-DC6iSj4R-BsAxAbXu.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{F as _,c as Re,q as ne,y as g,aC as fe,l as se,cU as xt,aa as yt,hc as Ae,hd as Be,he as Ee,hf as be,hg as ft,aU as bt,cS as wt,j as t,bF as $t,ad as Ct,hh as St,hi as ue,u as l,cT as Dt,aQ as jt,o,b_ as S,d3 as Tt,gT as we,hj as Lt,cV as Vt,cW as kt,cX as Ot,hk as It,gn as Pt,d1 as Ft,hl as zt,hm as Mt,h as M,dL as _t,dK as Nt,df as Wt,aX as de,b6 as Ue,ai as qe,dM as Ht,a$ as Rt,hn as At,ho as Bt,am as Et,hp as Ut,cw as Ye,hq as qt,O as $e,H as Qe}from"./index-CU0svkHW.js";import{b as C,n as a,i as Yt}from"./vendor-Bs1fkIUX.js";import{k as Qt}from"./SubTabSwitcher-DbtPzcHo-y1X0rE6B.js";import{f as Xt}from"./TransactionList-bXlPU8EJ-CsgRWKIU.js";import{R as Gt}from"./TrendWithTransactions-BnHF9LmW-X7CQ4Pfm.js";import{o as Zt,t as Jt}from"./arrow-south-east-round-PEovUgvH-DnzbA_s-.js";import{W as Kt}from"./LabeledAddressValueField-CvCb2aoN-BMraSweU.js";import{Y as es}from"./LabeledDropDownFormattedTextField-r2aCE7Vv-DoETpRb7.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BoxItem-DR7ZjTUs-C1VV8CvK.js";import"./commonDimensions-kvPZ9uhR-DQbxhhwD.js";import"./TrendChart-DdACpA7D-awtrGG14.js";import"./chartTypes-C55wRbZm-DhTW0crF.js";import"./toCOABalancesWithID-CHP1NmFV-B53Lqnlb.js";import"./toChartData-CV-IsjGn-DrX1S8Xg.js";import"./NoDataChart-Bb4iomO0-P7hz2s_V.js";import"./InsightsSection-mpQV3wZ8-4CdAfd3B.js";import"./NavigationDots-CT4KVH38-BGK5cPzx.js";const ts=a.div`
1
+ import{F as _,c as Re,q as ne,y as g,aC as fe,l as se,cU as xt,aa as yt,hc as Ae,hd as Be,he as Ee,hf as be,hg as ft,aU as bt,cS as wt,j as t,bF as $t,ad as Ct,hh as St,hi as ue,u as l,cT as Dt,aQ as jt,o,b_ as S,d3 as Tt,gT as we,hj as Lt,cV as Vt,cW as kt,cX as Ot,hk as It,gn as Pt,d1 as Ft,hl as zt,hm as Mt,h as M,dL as _t,dK as Nt,df as Wt,aX as de,b6 as Ue,ai as qe,dM as Ht,a$ as Rt,hn as At,ho as Bt,am as Et,hp as Ut,cw as Ye,hq as qt,O as $e,H as Qe}from"./index-Ci6w3djJ.js";import{b as C,n as a,i as Yt}from"./vendor-Bs1fkIUX.js";import{k as Qt}from"./SubTabSwitcher-W3Ntabka-CkJnLFDQ.js";import{f as Xt}from"./TransactionList-BingIVb_-DtIsd8Hw.js";import{R as Gt}from"./TrendWithTransactions-D61X4lVu-B1TFib9_.js";import{o as Zt,t as Jt}from"./arrow-south-east-round-PEovUgvH-DnzbA_s-.js";import{W as Kt}from"./LabeledAddressValueField-CMBF_lk1-CXJsPPo5.js";import{Y as es}from"./LabeledDropDownFormattedTextField-3XtnFSSO-BjRnQvhd.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./BoxItem-Di-YXnG--cmTXxwxj.js";import"./commonDimensions-D-rqQGD_-DguqB4oO.js";import"./TrendChart-BpsoQkO0-DB1sMg9j.js";import"./chartTypes-BkGKZtjd-9mZz2BPE.js";import"./toCOABalancesWithID-jZvgYCO7-K9Aq1Sm_.js";import"./toChartData-XC5K1jEk-BCy0qlOQ.js";import"./NoDataChart-BuWkhFal-CMKpuqZD.js";import"./InsightsSection-Baicql5I-Cy9IT7DF.js";import"./NavigationDots-DWLQ8EKT-Dn6PHYKg.js";const ts=a.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: center;